无需微调,在推理时直接对齐人类偏好,提升生成内容的合规性。
On-the-fly Preference Alignment via Principle-Guided Decoding
- 基于代理优化问题设计原则引导奖励函数,实现推理阶段动态对齐。
- 在通用和个性化任务中表现优于或媲美现有最优方法。
- 适合需快速响应、避免训练成本的部署场景,如实时对话系统。
随着大语言模型的发展,将其生成内容与人类价值观和偏好对齐日益重要。现有方法如基于人类反馈的强化学习虽有效,但需大量计算资源和标注数据,难以应对人类偏好的多样性和复杂性。本文提出一种名为OPAD的在线偏好对齐方法,通过推理阶段直接调整模型输出,无需微调。该方法首先构建一个不可行优化问题的代理解,再据此设计原则引导的奖励函数,最终通过最大化该奖励获得对齐策略。该策略利用约束策略与其无约束版本之间的差异进行优化。实验表明,OPAD在通用及个性化对齐任务中均达到竞争性或更优性能,兼具高效性与有效性。
原文摘要 · Abstract (English)
With the rapidly expanding landscape of large language models, aligning model generations with human values and preferences is becoming increasingly important. Popular alignment methods, such as Reinforcement Learning from Human Feedback, have shown significant success in guiding models with greater control. However, these methods require considerable computational resources, which is inefficient, and substantial collection of training data to accommodate the diverse and pluralistic nature of human preferences, which is impractical. These limitations significantly constrain the scope and efficacy of both task-specific and general preference alignment methods. In this work, we introduce On-the-fly Preference Alignment via Principle-Guided Decoding (OPAD) to directly align model outputs with human preferences during inference, eliminating the need for fine-tuning. Our approach involves first curating a surrogate solution to an otherwise infeasible optimization problem and then designing a principle-guided reward function based on this surrogate. The final aligned policy is derived by maximizing this customized reward, which exploits the discrepancy between the constrained policy and its unconstrained counterpart. OPAD directly modifies the model's predictions during inference, ensuring principle adherence without incurring the computational overhead of retraining or fine-tuning. Experiments show that OPAD achieves competitive or superior performance in both general and personalized alignment tasks, demonstrating its efficiency and effectiveness compared to state-of-the-art baselines.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。