Lune

NeurIPS2023顶会

Exposing Attention Glitches with Flip-Flop Language Modeling

Bingbin Liu, Jordan T. Ash, Surbhi Goel, Akshay Krishnamurthy, Cyril Zhang

摘要

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.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 35 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation 引用了 Generalization through Memorization: Nearest Neighbor Language Models
  • Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation 引用了 Language Models are Few-Shot Learners
  • Mechanistically analyzing the effects of fine-tuning on procedurally defined tasks 引用了 Language Models are Few-Shot Learners
  • Teaching Arithmetic to Small Transformers 引用了 Language Models are Few-Shot Learners
  • Teaching Arithmetic to Small Transformers 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Can large language models explore in-context? 引用了 Language Models are Few-Shot Learners
  • Can large language models explore in-context? 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Repeat After Me: Transformers are Better than State Space Models at Copying 引用了 Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
  • Repeat After Me: Transformers are Better than State Space Models at Copying 引用了 Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation
  • Repeat After Me: Transformers are Better than State Space Models at Copying 引用了 Language Models are Few-Shot Learners
  • Repeat After Me: Transformers are Better than State Space Models at Copying 引用了 Can Mamba Learn How To Learn? A Comparative Study on In-Context Learning Tasks
  • Can Mamba Learn How To Learn? A Comparative Study on In-Context Learning Tasks 引用了 Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
  • Can Mamba Learn How To Learn? A Comparative Study on In-Context Learning Tasks 引用了 Language Models are Few-Shot Learners
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper35

  1. Repeat After Me: Transformers are Better than State Space Models at CopyingSamy Jelassi, David Brandfonbrener, Sham M. Kakade, Eran MalachICML 2024 · 176 次引用
  2. Teaching Arithmetic to Small TransformersNayoung Lee, Kartik Sreenivasan, Jason D. Lee, Kangwook Lee 等ICLR 2024 · 128 次引用
  3. Can Mamba Learn How To Learn? A Comparative Study on In-Context Learning TasksJongho Park, Jaeseung Park, Zheyang Xiong, Nayoung Lee 等ICML 2024 · 124 次引用
  4. Mechanistically analyzing the effects of fine-tuning on procedurally defined tasksSamyak Jain, Robert Kirk, Ekdeep Singh Lubana, Robert P. Dick 等ICLR 2024 · 108 次引用
  5. Can large language models explore in-context?Akshay Krishnamurthy, Keegan Harris, Dylan J. Foster, Cyril Zhang 等NeurIPS 2024 · 95 次引用

它引用的 Paper42

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma 等NeurIPS 2022 · 22,562 次引用
  3. Transformers are RNNs: Fast Autoregressive Transformers with Linear AttentionAngelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, François FleuretICML 2020 · 2,665 次引用
  4. Train Short, Test Long: Attention with Linear Biases Enables Input Length ExtrapolationOfir Press, Noah A. Smith, Mike LewisICLR 2022 · 1,168 次引用
  5. Generalization through Memorization: Nearest Neighbor Language ModelsUrvashi Khandelwal, Omer Levy, Dan Jurafsky, Luke Zettlemoyer 等ICLR 2020 · 1,038 次引用

相关 Paper

  1. When Do Hallucinations Arise? A Graph Perspective on the Evolution of Path Reuse and Path CompressionXinnan Dai, Kai Yang, cheng Luo, Shenglai Zeng 等ICML 2026
  2. Why LLMs Hallucinate on Structured Knowledge: A Mechanistic Analysis of Reasoning over Linearized RepresentationsShanghao Li, Jinda Han, Yibo Wang, Yuanjie Zhu 等ACL 2026
  3. Faith and Fate: Limits of Transformers on CompositionalityNouha Dziri, Ximing Lu, Melanie Sclar, Xiang Lorraine Li 等NeurIPS 2023 · 728 次引用
  4. Do Robot Snakes Dream like Electric Sheep? Investigating the Effects of Architectural Inductive Biases on HallucinationJerry Huang, Prasanna Parthasarathi, Mehdi Rezagholizadeh, Boxing Chen 等ACL Findings 2025
  5. There's No Such Thing as Simple Reasoning for LLMsNurul Fajrin Ariyani, Zied Bouraoui, Richard Booth, Steven SchockaertACL Findings 2025
黄昏的海面,两侧是细线勾勒的悬崖