arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.00888cs.CLcs.HC
收藏

利用演示反馈对齐语言模型

Aligning Language Models with Demonstrated Feedback

Stanford University(斯坦福大学);USC(美国南加州大学)

Omar Shaikh, Michelle S. Lam, Joey Hejna, Yijia Shao, Hyundong Cho, Michael S. Bernstein, Diyi Yang

AI总结:

DITTO利用少于10个用户演示作为反馈,通过在线模仿学习生成偏好对并用DPO优化,实现LLM对特定场景的定制,平均胜率提升19%。

摘要:

语言模型被对齐以模仿众多用户的集体声音,导致其输出无法与任何特定个体完全契合。通过监督微调或RLHF可以将大语言模型(LLM)从通用输出中引导出来,但对于新的临时任务,这需要规模过大的数据集。我们认为,相反地,可以通过利用极少量的演示(少于10个)作为反馈,将LLM对齐到特定场景。我们的方法,即演示迭代任务优化(Demonstration ITerated Task Optimization, DITTO),直接将语言模型的输出与用户演示的行为对齐。DITTO借鉴在线模仿学习的思想,通过将用户的演示视为优于LLM及其中间检查点的输出,从而廉价地生成在线比较数据。具体而言,DITTO的操作方式是让LLM生成被认为劣于专家演示的样本。该方法迭代地构建这些LLM生成样本与专家演示之间的成对偏好关系,可能包括不同训练检查点之间的比较。然后,利用这些构造的偏好对,通过偏好优化算法(如DPO)训练模型。我们评估了DITTO在新闻文章、电子邮件和博客文章等领域中学习细粒度风格和任务对齐的能力。此外,我们进行了一项用户研究,征集了参与者(N=16)的各种演示。在我们的基准测试和用户研究中,我们发现DITTO的胜率平均比少样本提示、监督微调和其他自我对弈方法高出19个百分点。通过直接将演示作为反馈,DITTO为LLM的有效定制提供了一种新颖的方法。

英文摘要:

Language models are aligned to emulate the collective voice of many, resulting in outputs that align with no one in particular. Steering LLMs away from generic output is possible through supervised finetuning or RLHF, but requires prohibitively large datasets for new ad-hoc tasks. We argue that it is instead possible to align an LLM to a specific setting by leveraging a very small number (< 10) of demonstrations as feedback. Our method, Demonstration ITerated Task Optimization (DITTO), directly aligns language model outputs to a user's demonstrated behaviors. Derived using ideas from online imitation learning, DITTO cheaply generates online comparison data by treating users' demonstrations as preferred over output from the LLM and its intermediate checkpoints. Concretely, DITTO operates by having an LLM generate examples that are presumed to be inferior to expert demonstrations. The method iteratively constructs pairwise preference relationships between these LLM-generated samples and expert demonstrations, potentially including comparisons between different training checkpoints. These constructed preference pairs are then used to train the model using a preference optimization algorithm (e.g. DPO). We evaluate DITTO's ability to learn fine-grained style and task alignment across domains such as news articles, emails, and blog posts. Additionally, we conduct a user study soliciting a range of demonstrations from participants (N = 16). Across our benchmarks and user study, we find that win-rates for DITTO outperform few-shot prompting, supervised fine-tuning, and other self-play methods by an avg. of 19% points. By using demonstrations as feedback directly, DITTO offers a novel method for effective customization of LLMs.

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

↑