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
TL;DR
This work tackles the challenge of aligning LLMs to be both helpful and harmless by introducing Preference Vector, a modular framework that trains separate models for individual preferences and composes their effects at inference via parameter-space vectors. By extracting preference vectors as differences between opposite-preference models ($\phi_{\text{Helpful}} = \theta_{\text{Helpful+}} - \theta_{\text{Helpful-}}$ and $\phi_{\text{Harmless}} = \theta_{\text{Harmless+}} - \theta_{\text{Harmless-}}$) and aggregating into a base model with scalars ($\theta_{\text{Aggregated}} = \theta_{\text{Base}} + \eta_{\text{Helpful}} \cdot \phi_{\text{Helpful}} + \eta_{\text{Harmless}} \cdot \phi_{\text{Harmless}}$), the approach enables flexible, test-time control and easy extension to new preferences. Experiments on PKU-SafeRLHF across multiple models show improved helpfulness with comparable harmlessness, and demonstrate robustness of the vectors across seeds with a predominantly unidirectional structure. The results indicate that modular preference vectors can be added or scaled at inference to tailor behavior without retraining, offering a scalable path for multi-objective safety alignment in LLMs.
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.
