arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2402.10962cs.CLcs.AIcs.LG
收藏

测量与控制语言模型对话中的指令(不)稳定性

Measuring and Controlling Instruction (In)Stability in Language Model Dialogs

Harvard University(哈佛大学);Northeastern University(东北大学)

Kenneth Li, Tianle Liu, Naomi Bashkansky, David Bau, Fernanda Viégas, Hanspeter Pfister, Martin Wattenberg

AI总结:

提出定量基准评估语言模型对话中的指令稳定性,发现八轮对话内存在显著指令漂移,并基于注意力衰减分析提出轻量级方法 split-softmax 以有效控制该现象。

摘要:

系统提示是定制语言模型聊天机器人的标准工具,使其能够遵循特定指令。使用系统提示时的一个隐含假设是它们将保持稳定,因此聊天机器人会在整个对话期间继续按照规定指令生成文本。我们提出一个定量基准来测试这一假设,通过两个受指令约束的聊天机器人之间的自我聊天来评估指令稳定性。测试 LLaMA2-chat-70B 和 GPT-3.5 等流行模型,我们揭示了在八轮对话内存在显著的指令漂移。对这一现象的实证和理论分析表明,Transformer 注意力机制因长交流中的注意力衰减而起到了作用。为应对注意力衰减和指令漂移,我们提出了一种名为 split-softmax 的轻量级方法,该方法与两个强基线相比表现更优。

英文摘要:

System-prompting is a standard tool for customizing language-model chatbots, enabling them to follow a specific instruction. An implicit assumption in the use of system prompts is that they will be stable, so the chatbot will continue to generate text according to the stipulated instructions for the duration of a conversation. We propose a quantitative benchmark to test this assumption, evaluating instruction stability via self-chats between two instructed chatbots. Testing popular models like LLaMA2-chat-70B and GPT-3.5, we reveal a significant instruction drift within eight rounds of conversations. An empirical and theoretical analysis of this phenomenon suggests the transformer attention mechanism plays a role, due to attention decay over long exchanges. To combat attention decay and instruction drift, we propose a lightweight method called split-softmax, which compares favorably against two strong baselines.

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

↑