arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.09719cs.CLcs.AIcs.LG
收藏

面向大语言模型对齐的激活值谱编辑

Spectral Editing of Activations for Large Language Model Alignment

University of Edinburgh(爱丁堡大学);University of Cambridge(剑桥大学)

Yifu Qiu, Zheng Zhao, Yftah Ziser, Anna Korhonen, Edoardo M. Ponti, Shay B. Cohen

AI总结:

针对大语言模型生成不实、有偏见内容的问题,提出推理时激活值谱编辑(SEA)方法,通过投影表征调整正负例协方差并支持非线性扩展,实验证明其在效果、泛化及效率上更优且对模型其他能力影响小。

摘要:

大语言模型(LLM)常表现出不良行为,例如生成不实或有偏见的内容。研究表明,在现有对齐方法的基础上编辑其内部表征,可有效缓解这类问题。我们提出一种全新的推理时编辑方法——激活值谱编辑(spectral editing of activations, SEA),将输入表征投影到与正例(如实情内容)协方差最大、同时与负例(如幻觉内容)协方差最小的方向上。我们还通过特征函数将该方法扩展至非线性编辑场景。我们针对真实性与偏见相关基准开展了大量实验,涉及6种不同规模、不同模型家族的开源大语言模型。结果表明,SEA在效果、相似任务泛化能力以及计算与数据效率方面均表现更优。我们还证实,SEA编辑对模型其他能力的负面影响十分有限。

英文摘要:

Large language models (LLMs) often exhibit undesirable behaviours, such as generating untruthful or biased content. Editing their internal representations has been shown to be effective in mitigating such behaviours on top of the existing alignment methods. We propose a novel inference-time editing method, namely spectral editing of activations (SEA), to project the input representations into directions with maximal covariance with the positive demonstrations (e.g., truthful) while minimising covariance with the negative demonstrations (e.g., hallucinated). We also extend our method to non-linear editing using feature functions. We run extensive experiments on benchmarks concerning truthfulness and bias with six open-source LLMs of different sizes and model families. The results demonstrate the superiority of SEA in effectiveness, generalisation to similar tasks, as well as computation and data efficiency. We also show that SEA editing only has a limited negative impact on other model capabilities.

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

↑