Adaptive Helpfulness-Harmlessness Alignment with Preference Vectors

Ren-Wei Liang, Chin-Ting Hsu, Chan-Hung Yu, Saransh Agrawal, Shih-Cheng Huang, Shang-Tse Chen, Kuan-Hao Huang, Shao-Hua Sun · OpenReview

Abstract: Ensuring that large language models (LLMs) are both helpful and harmless is a critical challenge, as overly strict constraints can lead to excessive refusals, while permissive models risk generating harmful content. Existing approaches, such as reinforcement learning from human feedback (RLHF) and direct preference optimization (DPO), attempt to balance these trade-offs but suffer from performance conflicts, limited controllability, and poor extendability. To address these issues, we propose Preference Vector, a novel framework inspired by task arithmetic. Instead of optimizing multiple preferences within a single objective, we train separate models on individual preferences, extract behavior shifts as preference vectors, and dynamically merge them at test time. This modular approach enables fine-grained, user-controllable preference adjustments and facilitates seamless integration of new preferences without retraining. Experiments show that our proposed Preference Vector framework improves helpfulness without excessive conservatism, allows smooth control over preference trade-offs, and supports scalable multi-preference alignment.

Introduction

Aligning Large Language Models (LLMs) often resembles a zero-sum game. Maximizing helpfulness can inadvertently lead to the generation of dangerous content, while prioritizing safety often results in "over-refusal," where models decline to answer even benign queries. This phenomenon, known as the "Alignment Tax," stems from the limitations of current methods like Reinforcement Learning from Human Feedback (RLHF) and Direct Preference Optimization (DPO). These methods typically optimize multiple, often conflicting, objectives within a single training run, leading to suboptimal trade-offs, fixed behavioral balances that cannot be adjusted post-training, and poor extendability when new preferences need to be integrated.

Methodology

We introduce Preference Vectors, a modular framework that treats alignment as a set of steerable directions in parameter space rather than a monolithic optimization problem. The framework operates in three distinct stages:

  1. Choosing Preferences: For each target trait (e.g., Helpfulness), we utilize two dataset variants: a "preferred" set and an "avoided" set (created by flipping labels in standard preference datasets).
  2. Extracting Preference Vectors: A base model ($\theta_{base}$) is fine-tuned on these datasets using DPO to create specialized models: $\theta_{Helpful+}$, $\theta_{Helpful-}$, $\theta_{Harmless+}$, and $\theta_{Harmless-}$. The Preference Vector ($\phi$) is calculated via parameter subtraction: $\phi_{Helpful} = \theta_{Helpful+} - \theta_{Helpful-}$.
  3. Aggregation: At inference time, these vectors are merged into the base model using scaling coefficients ($\eta$): $\theta_{Aggregated} = \theta_{Base} + \eta_{Helpful} \cdot \phi_{Helpful} + \eta_{Harmless} \cdot \phi_{Harmless}$.
Overview of the Preference Vector framework: (a) Choosing Preferences, (b) Extracting Preference Vectors, and (c) Aggregation.

This approach allows the "intensity" of each preference to be adjusted dynamically by changing $\eta$, requiring no retraining. The study utilized datasets including PKU-SafeRLHF for training, and HarmfulQA, ToxicChat, TruthfulQA, and UltraFeedback for evaluation.

Results and Key Insights

Our experiments demonstrate that Preference Vectors provide a superior balance between helpfulness and harmlessness compared to traditional baselines. On Llama-3.1-8B, our approach achieved a helpfulness score of 2.003, significantly outperforming Safe-RLHF (1.577) and Reward Soup (1.814).

Performance comparison of Preference Vector (Ours) against various baselines across different model architectures.

Key findings include:

  • Reduced Over-Refusal: The refusal rate on benign questions was significantly lower (0.101) compared to Safe-RLHF (0.212), indicating the model is less prone to excessive conservatism.
  • Efficiency: The training pipeline is approximately 4x faster than RLHF-based baselines by avoiding the computationally expensive PPO loop.
  • Modular Extendability: The framework successfully integrated additional traits like "Honesty" and "Emotional Awareness" (Psychocounsel) onto pre-aligned models without performance degradation.
  • The Power of Subtraction: Using the full preference vector ($\theta_+ - \theta_-$) outperformed using only the positive component ($\theta_+ - \theta_{base}$), as subtracting the "avoided" behavior more effectively steers the model away from undesirable outputs.

Conclusion

The Preference Vector framework offers a scalable and controllable alternative to traditional alignment methods. By treating behavioral traits as modular vectors, we enable fine-grained control over the helpfulness-harmlessness trade-off and simplify the integration of new preferences. Future work will focus on automating the selection of optimal scaling coefficients and investigating vector interference when merging a larger number of behavioral traits.

Summary updated

BibTeX
@misc{liang2025adaptive,
  author = {Ren-Wei Liang and Chin-Ting Hsu and Chan-Hung Yu and Saransh Agrawal and Shih-Cheng Huang and Shang-Tse Chen and Kuan-Hao Huang and Shao-Hua Sun},
  title = {{Adaptive Helpfulness-Harmlessness Alignment with Preference Vectors}},
  year = {2025},
  eprint = {2504.20106},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.20106},
}
Figure