发现语言模型可借自指因果环实现逆向记忆,突破传统生成限制。
RECALL: Library-Like Behavior In Language Models is Enhanced by Self-Referencing Causal Cycles
- 提出自指因果环机制,让模型从后文反推前文信息。
- 实验证明模型能准确回忆美国国歌前一句,突破反转诅咒局限。
- 适合研究模型记忆机制或改进上下文理解的研究者阅读。
我们引入自指因果环(RECALL)概念——一种使大语言模型(LLMs)突破单向因果性限制的机制,该限制导致所谓的‘反转诅咒’现象。当模型被提示顺序数据时,常无法正确回忆前序内容。例如,要求模型回忆美国国歌中‘O say does that star-spangled banner yet wave’前一句时,往往失败,这是因为如ChatGPT、Llama等模型基于前序标记生成文本,要求事实以一致的标记顺序学习与重现。尽管反转诅咒常被视为缺陷,我们提供证据表明其并非总是障碍。研究发现,由‘循环标记’驱动的RECALL机制可连接训练数据不同部分,使模型能从后续内容回溯先前信息。通过严格的概率形式化与受控实验,我们展示了此类循环如何影响模型的信息再现能力。为保证可复现性,代码与实验细节已公开于https://anonymous.4open.science/r/remember-B0B8/。
原文摘要 · Abstract (English)
We introduce the concept of the self-referencing causal cycle (abbreviated RECALL) - a mechanism that enables large language models (LLMs) to bypass the limitations of unidirectional causality, which underlies a phenomenon known as the reversal curse. When an LLM is prompted with sequential data, it often fails to recall preceding context. For example, when we ask an LLM to recall the line preceding "O say does that star-spangled banner yet wave" in the U.S. National Anthem, it often fails to correctly return "Gave proof through the night that our flag was still there" - this is due to the reversal curse. It occurs because language models such as ChatGPT and Llama generate text based on preceding tokens, requiring facts to be learned and reproduced in a consistent token order. While the reversal curse is often viewed as a limitation, we offer evidence of an alternative view: it is not always an obstacle in practice. We find that RECALL is driven by what we designate as cycle tokens - sequences that connect different parts of the training data, enabling recall of preceding tokens from succeeding ones. Through rigorous probabilistic formalization and controlled experiments, we demonstrate how the cycles they induce influence a model's ability to reproduce information. To facilitate reproducibility, we provide our code and experimental details at https://anonymous.4open.science/r/remember-B0B8/.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。