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

ProSocialAlign:语言模型中的偏好条件测试时间对齐

ProSocialAlign: Preference Conditioned Test Time Alignment in Language Models

Cisco Research(思科研究);Indian Institute of Technology Kharagpur(印度理工学院卡里格普尔分校);Eindhoven University of Technology, Netherlands (TU/e)(埃因霍温理工大学(荷兰))

Somnath Banerjee, Sayan Layek, Sayantan Adak, Mykola Pechenizkiy, Animesh Mukherjee, Rima Hazra

AI总结:

ProSocialAlign通过测试时间参数高效方法,在不重新训练模型的情况下,引导生成安全、富有同理心且价值观一致的响应,提升语言模型的安全性和对齐性。

摘要:

当前的语言模型安全范式在情感激烈或高风险环境中往往表现不足,其中仅拒绝的方法可能使用户感到疏远,而简单的顺从可能加剧风险。我们提出了ProSocialAlign,一种测试时间、参数高效的方法框架,旨在引导生成朝着安全、富有同理心且价值观一致的响应发展,而无需重新训练基础模型。我们正式化了五个以人类为中心的目标,并将安全视为字典序约束生成:首先,应用硬约束以消除有害的延续;然后在安全集内优化亲社会质量。我们的方法结合(i)方向调节,一种减去在参数空间中学习的“有害向量”的危害缓解机制,以及(ii)偏好感知的自回归奖励建模,该模型在多个属性上联合训练并解决梯度冲突,使解码能够实现细粒度、用户可控的解码。在五个安全基准上的实证评估显示了最先进的性能,减少了不安全的泄漏并提高了对人类价值观的对齐,多个评估指标上均有显著提升。ProSocialAlign为在推理时间生成情境敏感、安全且人类对齐的响应提供了稳健且模块化的基础。

英文摘要:

Current language model safety paradigms often fall short in emotionally charged or high-stakes settings, where refusal-only approaches may alienate users and naive compliance can amplify risk. We propose ProSocialAlign, a test-time, parameter-efficient framework that steers generation toward safe, empathetic, and value-aligned responses without retraining the base model. We formalize five human-centered objectives and cast safety as lexicographic constrained generation: first, applying hard constraints to eliminate harmful continuations; then optimizing for prosocial quality within the safe set. Our method combines (i) directional regulation, a harm-mitigation mechanism that subtracts a learned "harm vector" in parameter space, and (ii) preference-aware autoregressive reward modeling trained jointly across attributes with gradient conflict resolution, enabling fine-grained, user-controllable decoding. Empirical evaluations across five safety benchmarks demonstrate state-of-the-art performance, reducing unsafe leakage and boosting alignment to human values, with strong gains across multiple evaluation metrics. ProSocialAlign offers a robust and modular foundation for generating context-sensitive, safe, and human-aligned responses at inference time.

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

↑