arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.14400cs.AI
收藏

HPS: 人类偏好对齐的硬偏好采样

HPS: Hard Preference Sampling for Human Preference Alignment

Singapore Management University(新加坡国立管理学院);The Hong Kong Polytechnic University(香港理工大学)

Xiandong Zou, Wanyu Lin, Yuchen Li, Pan Zhou

AI总结:

本文提出HPS框架,通过优先选择最受好评的响应并拒绝所有不受欢迎和有害的响应,提升大语言模型与人类偏好的对齐效率和鲁棒性。

摘要:

对齐大型语言模型(LLM)响应与人类偏好对于构建安全可控的AI系统至关重要。尽管基于Plackett-Luce(PL)和Bradley-Terry(BT)模型的偏好优化方法已显示出潜力,但它们面临处理有害内容不佳、不受欢迎响应利用效率低以及特别是对于PL模型计算成本高的挑战。为了解决这些问题,我们提出了硬偏好采样(HPS),一种新的稳健且高效的框架,用于人类偏好对齐。HPS引入了一种训练损失,优先选择最受好评的响应,同时拒绝所有不受欢迎和有害的响应。它强调“硬”不受欢迎的响应——那些接近受欢迎的响应——以增强模型的拒绝能力。通过利用单样本蒙特卡洛采样策略,HPS减少了计算开销,同时保持对齐质量。理论上,HPS在现有PL方法上提高了样本效率,并最大化了受喜欢与不受欢迎响应之间的奖励差距,确保更清晰的区分。在HH-RLHF和PKU-Safety数据集上的实验验证了HPS的有效性,实现了与BLEU和奖励分数相当的性能,同时显著提高了奖励差距,从而减少有害内容的生成。

英文摘要:

Aligning Large Language Model (LLM) responses with human preferences is vital for building safe and controllable AI systems. While preference optimization methods based on Plackett-Luce (PL) and Bradley-Terry (BT) models have shown promise, they face challenges such as poor handling of harmful content, inefficient use of dispreferred responses, and, specifically for PL, high computational costs. To address these issues, we propose Hard Preference Sampling (HPS), a novel framework for robust and efficient human preference alignment. HPS introduces a training loss that prioritizes the most preferred response while rejecting all dispreferred and harmful ones. It emphasizes "hard" dispreferred responses -- those closely resembling preferred ones -- to enhance the model's rejection capabilities. By leveraging a single-sample Monte Carlo sampling strategy, HPS reduces computational overhead while maintaining alignment quality. Theoretically, HPS improves sample efficiency over existing PL methods and maximizes the reward margin between preferred and dispreferred responses, ensuring clearer distinctions. Experiments on HH-RLHF and PKU-Safety datasets validate HPS's effectiveness, achieving comparable BLEU and reward scores while greatly improving reward margins and thus reducing harmful content generation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑