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

通过表征工程将大语言模型与人类偏好对齐

Aligning Large Language Models with Human Preferences through Representation Engineering

School of Computer Science, Fudan University(复旦大学计算机科学技术学院)

Wenhao Liu, Xiaohua Wang, Muling Wu, Tianlong Li, Changze Lv, Zixuan Ling, Jianhao Zhu, Cenyuan Zhang, Xiaoqing Zheng, Xuanjing Huang

AI总结:

本文提出RAHF方法,通过表征工程识别并变换LLM内部与人类偏好相关的表征,以高效、稳定地实现广泛偏好对齐,克服RLHF的不稳定性与实现困难。

摘要:

将大语言模型(LLMs)与人类偏好对齐,对于提升其在有用性、真实性、安全性、无害性和趣味性方面的效用至关重要。现有的对齐方法通常采用基于人类反馈的强化学习(RLHF),依据人类标注的模型响应相对质量来微调LLMs。然而,RLHF在微调过程中容易不稳定,并且在实现上存在困难。受表征工程(RepE)这一新兴领域的启发,本研究旨在识别嵌入在LLM活动模式中的高层人类偏好相关表征,并通过变换其表征来实现对模型行为的精确控制。这一新方法被称为基于人类反馈的表征对齐(RAHF),被证明有效、计算高效且易于实现。大量实验表明,RAHF不仅能捕获表征,还能操纵表征,以对齐广泛的人类偏好或价值观,而不是局限于单一概念或功能(例如诚实性或偏见)。RAHF在适应多样化人类偏好方面的通用性,显示出其提升LLM性能的潜力。

英文摘要:

Aligning large language models (LLMs) with human preferences is crucial for enhancing their utility in terms of helpfulness, truthfulness, safety, harmlessness, and interestingness. Existing methods for achieving this alignment often involves employing reinforcement learning from human feedback (RLHF) to fine-tune LLMs based on human labels assessing the relative quality of model responses. Nevertheless, RLHF is susceptible to instability during fine-tuning and presents challenges in implementation.Drawing inspiration from the emerging field of representation engineering (RepE), this study aims to identify relevant representations for high-level human preferences embedded in patterns of activity within an LLM, and achieve precise control of model behavior by transforming its representations. This novel approach, denoted as Representation Alignment from Human Feedback (RAHF), proves to be effective, computationally efficient, and easy to implement.Extensive experiments demonstrate the efficacy of RAHF in not only capturing but also manipulating representations to align with a broad spectrum of human preferences or values, rather than being confined to a singular concept or function (e.g. honesty or bias). RAHF's versatility in accommodating diverse human preferences shows its potential for advancing LLM performance.

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

↑