Palette: A Modular, Controllable, and Efficient Framework for On-Demand Authorization of Safety Alignment Relaxation in Large Language ModelsPalette: A Modular, Controllable, and Efficient Framework for On-demand Authorized Safety Alignment Relaxation in LLMs
The authors propose PALETTE, which searches for refusal directions and internalizes them as LoRA adapters to relax refusal by authorized domain; the authors claim that on benchmarks such as GenHarm and WMDP it achieves low refusal in the target domain with utility close to the base model.
- One-size-fits-all safety alignment makes the model apply the same refusal policy to ordinary users and authorized professionals, and may refuse legitimate requests in professional settings. The problem the authors aim to solve is: how to relax refusals in authorized domains while maintaining the original safety behavior in other domains.
- PALETTE first uses difference-in-means to generate candidate refusal directions, then performs a Pareto search over a control objective and a utility objective to select a direction, after which it uses LoRA on the (n−1)-th block to internalize the shift along that direction into the weights and mines hard negatives; LoRAs from different domains can be combined by parameter addition.
- On GenHarm, WMDP, CoSApien, and MM-SafetyBench, the authors report that PALETTE reduces the refusal rate in authorized domains to a low level, keeps refusal in non-target domains close to the base model, and keeps utility close to the base model; CAST often reduces refusal in non-target domains, AutoDAN's bypass is limited, and SFT harms utility.
- The authors point out: authorization verification itself remains an open problem; the method relies on representative allowed/disallowed samples, and incomplete coverage may leak in relevant unseen cases; similar domains or conflicting preferences may require additional conflict-resolution mechanisms. The experiments cover 5 open-source models and 4 benchmarks, and no statistical significance tests are reported.
- Threat model
- The paper assumes a provider-managed deployment: user authorization has already been verified by provider-side credentials and access control, adapters remain on the backend and are loaded according to the authorization scope, and users have only inference access. The paper assumes authorization has been verified by an external mechanism, and the reliability of authorization itself is outside the scope of the method.
- Evaluated models
- LLaMA2-7B-ChatLLaMA3.1-8B-InstructQwen2.5-7B-InstructQwen2.5-14B-InstructQwen2.5-VL-7B
- Benchmarks
- GenHarmWMDPCoSApienMM-SafetyBenchMMLUGSM8KMMMUMMBench
- Metrics
- refusal rateresponse accuracyanswer accuracyutility (MMLU/GSM8K/MMMU/MMBench)
The Palette framework can relax the refusal behavior of large language models in authorized domains on demand while preserving standard safety alignment in other scenarios. It locates the refusal direction through multi-objective search and internalizes it into the model via lightweight adaptation; safety control for each domain can be learned independently and combined via parameter merging, enabling multi-domain authorization without retraining. Experiments on four safety benchmarks, multiple model variants, and LLMs and VLMs show that it achieves precise safety control without sacrificing general capabilities.
Paper analysis
What problem does this paper attempt to solve?
Address the problem of one-size-fits-all alignment falsely refusing authorized professional requests: relax refusals by authorized domain while maintaining the original safety policy in the remaining domains.
Core problem: one-size-fits-all safety alignment applies the same refusal policy to all users, which refuses requests that are unsafe for ordinary users but legitimate for authorized professionals; the authors aim to study how to selectively relax refusals in authorized target domains while maintaining standard safety behavior in other domains.
- Problem setting and motivation: The authors give the example that a query about a Nipah virus isolate is risky for the general public but legitimate for vaccine researchers; model providers need to efficiently provide controllable, differentiated safety alignment for different authorized users (Introduction).
- Shortcomings of existing methods (according to the paper): Retraining-based methods require large amounts of preference or response data and repeated optimization for different safety needs; training-free activation steering requires manual selection of intervention layers, directions, and strengths, has insufficient control precision, and adds inference-time computation.
- Core observation: Ablating different candidate refusal directions produces different behavioral effects—some directions push Pallowed toward compliance while maintaining utility, while others change it only limitedly or cause Pdisallowed drift; therefore, suitable directions can be automatically selected through multi-objective search (Section 3.2).
- Proposed approach in the paper: The PALETTE framework—multi-objective search for refusal directions, lightweight adaptation (LoRA) to internalize the directions into model parameters, hard negative mining to reduce behavioral drift, and support for combining single-domain adapters into multi-domain authorization via parameter merging.
- Threat model / deployment setting:
- Goal: Adjust model behavior according to the verified authorization scope after provider-side credentials and access control have established authorization (Introduction).
- Deployment form: provider-managed deployment, where adapters remain on the backend and are loaded according to the authorization scope, and users only receive inference access (Figure 1).
- Assumption: The paper assumes authorization has been verified by an external authentication or access control mechanism; the reliability of authorization itself is listed by the authors as an open problem (Section 5).
What related research exists?
Related work is divided into three groups: personalized alignment, over-refusal, and activation steering; the baselines are SFT, AutoDAN, and CAST.
Personalized alignment and adaptation
- In-context alignment ([37]–[42] etc.) — adjusts model behavior through prompts or examples; the paper points out that it relies on strong reasoning ability, is unreliable for small and medium-sized models, and is difficult to scale to diverse personalized safety needs.
- Retraining-based alignment and model merging ([44]–[49], [50]–[53], e.g., Controllable Preference Optimization, Rewarded Soups, Personalized Soups) — can effectively change behavior, but is computationally expensive and requires repeated optimization for different preferences.
- CoSApien / Controllable Safety Alignment (Zhang et al., 2024, [13]) — the paper calls it the most related work, performing inference-time adaptation to diverse safety needs; the paper points out that it still requires first fine-tuning with DPO on tens of thousands of preference pairs, which is costly in practice.
Over-refusal
- OR-Bench, XSTest, TrustLLM ([54]–[56]) — point out that safety-aligned models refuse benign requests containing surface-level sensitive cues.
- Mitigation methods ([57], [14], [58], [59]) — improve refusal calibration on benign inputs through prompt engineering, decoupled refusal training, or representation-level correction. The paper emphasizes that its setting is different: the target instructions themselves violate general safety rules but are legitimate in authorized professional scenarios, so this is not about reducing false refusals but about moving the safety boundary.
Activation steering and controllability
- Refusal directions and steering (Arditi et al., 2024 [20]; [17], [60], [61]) — regulate behavior by injecting or ablating refusal-related directions; the paper states that these methods apply steering uniformly to all inputs and lack personalization.
- Conditional steering ([16], [63]–[65]) — selectively trigger steering based on the input; the paper names CAST (Lee et al., 2024, [16]), which gates steering using activation similarity in the forward pass, and points out that it relies on surface triggers (such as specific keywords), has reduced fine-grained control precision, and adds inference overhead.
Baselines and benchmarks
- Baseline methods: vanilla SFT, AutoDAN (bypass implemented via prompts), CAST (conditional activation steering, which the paper calls its direct competitor).
- Benchmarks/datasets: GenHarm (built by the authors), WMDP, CoSApien, MM-SafetyBench; utility evaluation uses MMLU, GSM8K, MMMU, MMBench.
The authors position this paper as: more resource-efficient than retraining, more precise than training-free steering control and without inference-time overhead, and supporting compositional multi-domain authorization through parameter merging.
How does the paper address this problem?
Three steps: candidate refusal direction generation and multi-objective search, LoRA internalization of the directions and mining of hard negative samples, and parameter merging to achieve multi-domain composition.
Overall approach: PALETTE first automatically searches for a refusal direction that balances compliance in the target domain with utility preservation, then uses lightweight adaptation to internalize the shift along that direction into the model weights, and finally combines multiple single-domain adapters into multi-domain authorization through parameter addition.
Problem formulation
- The instruction space X is partitioned into three disjoint sets: Psafe (allowed by both general and personalized standards), Palowed (violates general rules but is legitimate within the user's authorized domain), and Pdisallowed (beyond the user's legitimacy boundary) (Section 2.2).
- The goal is to learn a decision function D(x) = 1 when x ∈ RU (compliance), otherwise 0 (refusal), i.e., to recover the user's legitimacy boundary R_U.
Multi-objective search for refusal directions
- Use difference-in-means to extract a candidate direction pool R = {r1, …, rk} on activations (following the extraction framework of Arditi et al.; Dharmful comes from AdvBench, MaliciousInstruct, TDC23-RedTeaming, and Dharmless comes from Alpaca, Appendix B.3).
- Control objective: Ocontrol(r) = α PA(r) − (1−α) PD(r), where P_A and P_D are bypass scores on Palowed and Pdisallowed (based on the softmax probability of the refusal word set Vref at the first generation step), and α reflects user preference.
- Utility objective: minimize the KL divergence between the original distribution and the steered distribution on Psafe; select the candidate on the Pareto frontier of the two objectives that has the highest control score and balances utility, rather than manually tuning a threshold.
Weight internalization and hard negative mining
- After selecting the optimal direction rn*, train only the LoRA parameters of the (n−1)-th block so that its output approximates the label-conditioned target activation: for y=1 (Palowed), approximate hn − λrn*, and for y=0 (Pdisallowed ∪ Psafe), reconstruct the original activation hn (Equation 6).
- The authors point out that the reconstruction and steering objectives compete with each other, and whether joint optimization succeeds depends on whether the selected direction can cleanly separate target compliance from non-target drift.
- Hard negative mining: First briefly pretrain on randomly sampled disallowed prompts, then measure the increase in bypass score of candidate disallowed prompts relative to the base model, and take those with the largest increase as hard negatives for formal training.
Parameter merging enables compositional safety
- During training, the original activations are reconstructed in non-target domains, so that the LoRA update is approximately zero outside the target domain; therefore, single-domain LoRAs can be directly added and merged without retraining for each authorization combination (Appendix C provides a conditional interference analysis under linear mapping: the worst-case perturbation grows at most linearly with the number of merged adapters, but the authors explicitly state that this does not constitute a guarantee of interference-free composition).
Key hyperparameters and evaluation method
- LoRA rank 8, scaling 16, batch size 8, trained for 300 epochs; learning rate 1e-3 for LLaMA2-7B and 1e-4 for the other models; α=0.5; λ is 2.5 for LLMs and 1.5 for VLMs; train/test split 20%/80% (Appendix B.2).
- Refusal determination uses keyword detection (the method of [66]); metrics are refusal rate and response accuracy, and WMDP additionally reports answer accuracy against the gold answer (refusals counted as incorrect).
What experiments did the paper conduct?
Single-domain/multi-domain/fine-grained control and utility are measured on 4 benchmarks and 5 models, along with t-SNE visualization, OOD negative-domain and component ablations.
Experimental setup
- Models tested: LLaMA2-7B-Chat, LLaMA3.1-8B-Instruct, Qwen2.5-7B-Instruct, Qwen2.5-14B-Instruct (LLM), Qwen2.5-VL-7B-Instruct (VLM); all aligned versions.
- Datasets: GenHarm (built by the authors, 1,186 items, 5 harmful domains, 200+ items per domain); WMDP (question stems taken, 590 items filtered that LLaMA2-7B-Chat would refuse); CoSApien (three roles GD/AB/PP selected, 300 items in total after LLM augmentation and manual verification); MM-SafetyBench (6 scenarios selected, 972 image-text pairs in total).
- Baselines: SFT, AutoDAN, CAST; SFT's response data were collected after suppressing refusal using the steering technique of [20].
- Metrics and determination: refusal rate, response accuracy; WMDP additionally reports answer accuracy (refusals counted as incorrect); utility is MMLU/GSM8K (LLM), MMMU/MMBench (VLM); refusal is determined by keyword detection.
- Number of repetitions: All reported results are averages of three runs; the paper does not report error bars or statistical significance tests.
Main results
Single-domain control (GenHarm, refusal rate for the row allowing Hate, according to Table H.1/H.2/H.3/H.4):
Swipe horizontally to read the table
Model Method Hate (allowed domain) ↓ Other domains (Violence/Disinfo/Sexual/Illegal) ↑ Avg. Utility LLaMA2-7B Base 1.000 1.000/1.000/1.000/1.000 0.365 LLaMA2-7B CAST 0.113 0.157/0.459/0.189/0.129 0.325 LLaMA2-7B PALETTE 0.080 1.000/0.918/0.989/0.988 0.355 LLaMA3.1-8B CAST 0.132 0.205/0.020/0.147/0.407 0.661 LLaMA3.1-8B PALETTE 0.103 0.976/0.857/0.947/0.944 0.698 Qwen2.5-7B CAST 0.274 0.831/0.745/0.789/0.870 0.750 Qwen2.5-7B PALETTE 0.151 0.952/0.765/0.905/0.907 0.779 Qwen2.5-14B CAST 0.224 0.873/0.764/0.815/0.889 0.782 Qwen2.5-14B PALETTE 0.112 0.988/0.863/0.944/0.947 0.822 - The authors state that PALETTE reduces the refusal rate in the allowed domain to around 0.1, while refusal in non-target domains is close to the base model; CAST shows a larger drop in refusal rate in non-target harmful domains (which the authors call safety leakage), and AutoDAN's bypass is limited.
- In terms of utility, PALETTE's MMLU/GSM8K average is close to the base model (e.g., LLaMA3.1-8B is 0.698 vs. 0.698); although SFT can reduce refusal in the target domain, its average utility drops to 0.157–0.305 (Table H.1/H.2), so the authors exclude SFT in subsequent complex settings.
WMDP (LLaMA3.1-8B, refusal rate, according to Table 1): When Chem is allowed, PALETTE reduces the refusal rate in that domain from 0.964 for the base model to 0.072, while Bio/Cyber/GenHarm remain at 0.752/0.987/0.977; when CAST allows Chem, the Bio refusal rate drops to 0.461. answer accuracy (Table H.9): authorized units rise from 0.01–0.05 for the base model to 0.45–0.66 for PALETTE, averaging 0.54 across the three authorized units (CAST 0.45), and averaging 0.07 across the six unauthorized units (CAST 0.41).
Multi-domain and fine-grained control
- Multi-domain (GenHarm, parameter merging, no retraining): On LLaMA2-7B, when allowing Hate and Disinfo are merged, the refusal rates in the two domains drop to 0.066 and 0.122 respectively, and the refusal rates in the remaining domains are 0.907–0.964 (Table H.5); for LLaMA3.1-8B under the same setting, they are 0.187 and 0.153 (Table H.6). The authors state that the merged adapters shrink at the apex in the allowed domains, and the non-target axes coincide with the base model.
- Fine-grained (CoSApien, LLaMA2-7B, Table 2): PALETTE's Allowed response accuracy for the three roles GD/AB/PP is 0.880/1.0/0.882, Disallowed is 0.958/0.862/1.0, and utility is 0.353 (base model 0.365); CAST's Disallowed accuracy is 0.229/0.707/0.479. The authors state that PALETTE achieves a better trade-off between allowing and refusing.
- VLM (MM-SafetyBench, Qwen2.5-VL-7B, Table I.1): When Sex is allowed, the refusal rate in that domain drops from 1.000 to 0.159, while IA/Fraud remain at 0.973/0.915; when IA is allowed, MMMU is 0.508 (base model 0.509). The authors state that controllability on VLMs is weaker than on LLMs, and offer two conjectures: visual tokens are numerous and redundant, and training data categories are imbalanced and semantically overlapping.
Visualization and OOD negative-domain robustness
- t-SNE visualization (Figure 7, Appendix G): The authors state that in the base model, safe instructions and harmful instructions are separated by a decision boundary; after training to allow Hate, its representation moves into the compliant region, while other harmful domains remain unchanged; after merging the Hate and Disinfo adapters, both move into the compliant region. In the figure, the background color indicates refusal probability (blue refusal, red compliance), and the changes in cluster positions are consistent with the authors' description.
- OOD negative-domain ablation (Figure 8, LLaMA3.1-8B): During training, one negative domain is removed from Pdisallowed each time; when a semantically distant domain is removed, the change in response accuracy for most domains is +0%, and when a semantically overlapping domain is removed, a decrease occurs (the authors state that when Hate is allowed while Disinfo is omitted, the refusal accuracy in the related domain decreases). The authors therefore consider semantically similar domains to be key boundary samples.
Other ablations and analyses
- Component ablation (Table F.3, allowing Hate, LLaMA3.1-8B): After removing direction selection, the Hate refusal rate is 0.189 (full version 0.103); removing weight internalization degrades to indiscriminate ablation, and the refusal rate in each domain drops to 0–0.047; after removing hard negative mining, the Disinfo refusal rate drops from 0.857 to 0.632.
- Iterative optimization (Table F.1): Average response accuracy rises from 0.900 at round 1 to 0.919 at round 3, remains 0.919 at round 4, and the authors state that it converges after round 3.
- Data ratio (Table F.2): At 1:1:1, Pallowed 89.6%, Pdisallowed 92.1%, utility 69.8%; when ρdis. is increased to 2.0, Pdisallowed 96.4% and Pallowed drops to 83.9%.
- α and λ (Figure F.1/F.3): α from 0.1 to 0.9 shows an allowed/refusal accuracy trade-off, with the intersection at about 0.5; as λ rises to around 2.5, accuracy tends to peak or stabilize, and the Violence domain decreases after λ exceeds 2.5.
- Efficiency (Table E.1): For LLaMA2-7B, direction generation 5.3 s, direction selection 162 s, safety adaptation 69 s; peak memory during the adaptation stage is 2.1 GB (LLaMA2-7B) to 4.1 GB (Qwen2.5-14B, A6000).
What are some points that can be further explored?
The authors list three limitations: authorization verification, sample coverage, and inter-domain conflict; the experiments cover 5 open-source models and 4 benchmarks.
Limitations and future directions noted by the authors
- Authorization verification is an open problem: The method assumes user authorization has already been verified through authentication or access control mechanisms, but the authors state that reliable authorization itself remains a difficult and open problem (Section 5; the same statement appears in Appendix L).
- Reliance on representative samples: The method relies on representative allowed and disallowed samples; incomplete coverage may cause safety leakage in relevant unseen cases (Section 5).
- Similar domains and conflicting preferences: Although adapter merging supports compositional control, semantically similar domains or mutually conflicting safety preferences may require additional conflict-resolution mechanisms; the authors leave these problems to future work (Section 5).
- VLM data and adaptation: The authors state that multimodal training data samples are imbalanced and semantic overlap exists between categories; constructing a more balanced multimodal benchmark might be more effective but is costly and beyond the scope of this paper (Appendix I).
Scope of experimental coverage
- The models tested are LLaMA2-7B-Chat, LLaMA3.1-8B-Instruct, Qwen2.5-7B/14B-Instruct, and Qwen2.5-VL-7B-Instruct, 5 in total, all open-source aligned versions; the paper does not experiment on closed-source models.
- Benchmarks cover GenHarm (1,186 items), WMDP (590 items), CoSApien three roles (300 items), and MM-SafetyBench six scenarios (972 pairs); utility covers MMLU, GSM8K, MMMU, and MMBench.
- The multi-domain experiments are two-domain combinations (five pairwise combinations of GenHarm), and results for merging three or more domains are not reported.
- All results are averages of three runs; the paper does not report error bars or statistical significance tests.
- Refusal determination uses a keyword detection method; the paper does not report the agreement between this determination method and human judgment.
- Efficiency is reported as peak memory and per-stage time on a single RTX 4090 (A6000 for Qwen2.5-14B) (Table E.1).
Summarize the main content of the paper
PALETTE: a LoRA adapter that searches for and internalizes a refusal direction, relaxes refusal by authorized domain, and supports multi-domain composition via parameter merging.
PALETTE is a modular framework for authorized safety relaxation, addressing the problem that one-size-fits-all alignment falsely refuses professional legitimate requests.
- Problem: General refusal policies treat ordinary users and authorized professionals the same; the authors study how, after provider-side authorization verification, to relax refusal by authorization domain while maintaining the original safety behavior in other domains.
- Method: Use difference-in-means to generate candidate refusal directions, and select a direction via Pareto search over a control objective (α-weighted difference in allowed/refusal bypass scores) and a utility objective (KL divergence on Psafe); then use LoRA on a single block to internalize the direction shift into the weights, and mine hard negatives; single-domain adapters are combined into multi-domain authorization by parameter addition.
- Single-domain results: On GenHarm, when Hate is allowed, PALETTE reduces the refusal rate in that domain to 0.080–0.151 on four LLMs, keeps non-target domains above 0.765, and utility is close to the base model (Table H.1–H.4); CAST shows a larger drop in refusal rate in non-target domains.
- WMDP: When Chem is allowed, the refusal rate in that domain drops from 0.964 to 0.072 (LLaMA3.1-8B, Table 1); answer accuracy in the authorized domain rises from 0.01–0.05 for the base model to 0.45–0.66 (Table H.9).
- Multi-domain and fine-grained: When LLaMA2-7B merges allowing Hate and Disinfo, the refusal rates in the two domains are 0.066/0.122 (Table H.5); for the three CoSApien roles, Allowed accuracy is 0.880/1.0/0.882 and Disallowed is 0.958/0.862/1.0 (Table 2).
- Authors' conclusion: The authors state that PALETTE provides controllable safety relaxation with almost no utility loss across multiple benchmarks, architectures, and modalities, and that a 7B model completes adaptation within minutes on a single RTX 4090; they also acknowledge that authorization verification, sample coverage, and inter-domain conflict remain open problems.
Related papers
Show 3 more papers
- Forcing a Letter Suppresses Refusal: Mechanistic Evidence from WMDPAnalysis / interpretabilityarXiv
- On Evaluating the Durability of Safeguards for Open-Weight LLMsAnalysis / interpretabilityICLR 2025