用Flip-Flop语言建模揭示注意力故障
Exposing Attention Glitches with Flip-Flop Language Modeling
AI总结:
本文提出flip-flop语言建模合成基准,揭示Transformer在长程复制任务中的注意力故障现象,并通过正则化与机制分析探讨其与LLM幻觉的关联。
摘要:
为什么大语言模型有时会输出事实性错误并表现出错误的推理?这些模型的脆弱性,尤其是在执行长链推理时,目前似乎是它们具备连贯综合知识、语用和抽象思维等先进能力所不可避免的代价。为了理解这一根本性未解问题,本文识别并分析了注意力故障(attention glitches)现象,即Transformer架构的归纳偏置间歇性地无法捕捉稳健推理。为了隔离该问题,我们引入了flip-flop语言建模(FFLM),这是一个参数化的合成基准族,旨在探测神经语言模型的外推行为。这个简单的生成任务要求模型在长程依赖上复制二进制符号,同时忽略中间的token。我们发现Transformer FFLM存在长尾的偶发性推理错误,其中一些可以通过各种正则化技术消除。我们的初步机制分析表明,剩余的错误可能非常难以诊断和解决。我们假设注意力故障可以解释自然LLM中的(部分)闭域幻觉。
英文摘要:
Why do large language models sometimes output factual inaccuracies and exhibit erroneous reasoning? The brittleness of these models, particularly when executing long chains of reasoning, currently seems to be an inevitable price to pay for their advanced capabilities of coherently synthesizing knowledge, pragmatics, and abstract thought. Towards making sense of this fundamentally unsolved problem, this work identifies and analyzes the phenomenon of attention glitches, in which the Transformer architecture's inductive biases intermittently fail to capture robust reasoning. To isolate the issue, we introduce flip-flop language modeling (FFLM), a parametric family of synthetic benchmarks designed to probe the extrapolative behavior of neural language models. This simple generative task requires a model to copy binary symbols over long-range dependencies, ignoring the tokens in between. We find that Transformer FFLMs suffer from a long tail of sporadic reasoning errors, some of which we can eliminate using various regularization techniques. Our preliminary mechanistic analyses show why the remaining errors may be very difficult to diagnose and resolve. We hypothesize that attention glitches account for (some of) the closed-domain hallucinations in natural LLMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。