arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.03122cs.CLcs.AIcs.LG
收藏

RIPPLECOT:通过思维链上下文学习放大语言模型中知识编辑的涟漪效应

RIPPLECOT: Amplifying Ripple Effect of Knowledge Editing in Language Models via Chain-of-Thought In-Context Learning

Johns Hopkins University(约翰斯·霍普金斯大学);University of California San Diego(加利福尼亚大学圣迭戈分校)

Zihao Zhao, Yuchen Yang, Yijiang Li, Yinzhi Cao

AI总结:

针对大语言模型知识编辑中多跳事实更新困难的涟漪效应问题,本文提出结合思维链推理的上下文学习编辑方法RippleCOT,通过“新事实、问题、思维、答案”结构引导模型分解多跳逻辑,在MQuAKE-cf基准上显著超越现有方法,准确率提升最高达87.1%。

摘要:

涟漪效应在大语言模型的知识编辑中构成了重大挑战。即,当编辑一个事实时,模型难以准确更新序列中的相关事实,这通过与相关事实链相连的多跳问题进行评估。近期策略已从传统的参数更新转向更灵活、计算密集度更低的方法,并已被证明在应对涟漪效应方面更为有效。上下文学习(ICL)编辑使用简单的演示“想象一下 + 新事实”来引导大语言模型,但在复杂的多跳问题上表现不佳,因为仅凭新事实无法明确此类场景中所涉及的事实链。此外,基于记忆的编辑为所有编辑及相关事实维护额外存储,需要持续更新才能保持有效。由于这些设计上的局限,该挑战依然存在,在 Vicuna-7B 的 MQuAKE-cf 基准上最高准确率仅为 33.8%。为解决这一问题,我们提出了 RippleCOT,这是一种结合思维链(COT)推理的新型 ICL 编辑方法。RippleCOT 将演示结构化为“新事实、问题、思维、答案”,引入思维组件来识别并分解问题中的多跳逻辑。该方法能够有效引导模型处理涉及相关事实链的复杂多跳问题。综合实验表明,RippleCOT 在涟漪效应上显著优于现有最优方法,准确率提升幅度从 7.8% 到 87.1% 不等。

英文摘要:

The ripple effect poses a significant challenge in knowledge editing for large language models. Namely, when a single fact is edited, the model struggles to accurately update the related facts in a sequence, which is evaluated by multi-hop questions linked to a chain of related facts. Recent strategies have moved away from traditional parameter updates to more flexible, less computation-intensive methods, proven to be more effective in addressing the ripple effect. In-context learning (ICL) editing uses a simple demonstration `Imagine that + new fact` to guide LLMs, but struggles with complex multi-hop questions as the new fact alone fails to specify the chain of facts involved in such scenarios. Besides, memory-based editing maintains additional storage for all edits and related facts, requiring continuous updates to stay effective. As a result of these design limitations, the challenge remains, with the highest accuracy being only 33.8% on the MQuAKE-cf benchmarks for Vicuna-7B. To address this, we propose RippleCOT, a novel ICL editing approach integrating Chain-of-Thought (COT) reasoning. RippleCOT structures demonstrations as `newfact, question, thought, answer`, incorporating a thought component to identify and decompose the multi-hop logic within questions. This approach effectively guides the model through complex multi-hop questions with chains of related facts. Comprehensive experiments demonstrate that RippleCOT significantly outperforms the state-of-the-art on the ripple effect, achieving accuracy gains ranging from 7.8% to 87.1%.

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

↑