mlsanityData to 7 Oct 2026

Provable Failure of Language Models in Learning Majority Boolean Logic via Gradient Descent

arXiv 2504.04702 ↗First posted 7 Apr 2025cs.LG cs.AI cs.CCcited by 8

On the map: LLM reasoning → Reasoning benchmarks and evaluation

Abstract (arXiv)

Recent advancements in Transformer-based architectures have led to impressive breakthroughs in natural language processing tasks, with models such as GPT-4, Claude, and Gemini demonstrating human-level reasoning abilities. However, despite their high performance, concerns remain about the inherent limitations of these models, especially when it comes to learning basic logical functions. While complexity-theoretic analyses indicate that Transformers can represent simple logic functions (e.g., mathsfAND, mathsfOR, and majority gates) by its nature of belonging to the mathsfTC0 class, these results assume ideal parameter settings and do not account for the constraints imposed by gradient descent-based training methods. In this work, we investigate whether Transformers can truly learn simple majority functions when trained using gradient-based methods. We focus on a simplified variant of the Transformer architecture and consider both n=poly(d) and n=exp(Omega(d)) number of training samples, where each sample is a d-size binary string paired with the output of a basic majority function. Our analysis demonstrates that even after poly(d) gradient queries, the generalization error of the Transformer model still remains substantially large, growing exponentially with d. This work highlights fundamental optimization challenges in training Transformers for the simplest logical reasoning tasks and provides new insights into their theoretical limitations.

Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 31 of its 48 references that are in the map. First posted on arXiv 7 Apr 2025.

Builds on

31 of 48 references.

Closest ancestors · 1

Same direction, newest first

  1. 2023Code Llama: Open Foundation Models for Code24 Aug

Other references · 30

  1. 2017Attention Is All You Needcited by 59,932
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  4. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  5. 2023How Good Are GPT Models at Machine Translation? A Comprehensive Evaluationcited by 344
  6. 2022Transformers Learn Shortcuts to Automatacited by 260
  7. 2024Chain of Thought Empowers Transformers to Solve Inherently Serial Problemscited by 256
  8. 2023Adapted Large Language Models Can Outperform Medical Experts in Clinical Text Summarizationcited by 244
  9. 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformerscited by 191
  10. 2024Learning-to-Cache: Accelerating Diffusion Transformer via Layer Cachingcited by 138
  11. 2021Saturated Transformers are Constant-Depth Threshold Circuitscited by 137
  12. 2018The Best of Both Worlds: Combining Recent Advances in Neural Machine Translationcited by 101
18 more
  1. 2022A Logic for Expressing Log-Precision Transformerscited by 67
  2. 2024Understanding Transformer Reasoning Capabilities via Graph Algorithmscited by 64
  3. 2024Transformers Provably Solve Parity Efficiently with Chain of Thoughtcited by 49
  4. 2024Mitigating Object Hallucination via Concentric Causal Attentioncited by 48
  5. 2024Neural network learns low-dimensional polynomials with SGD near the information-theoretic limitcited by 45
  6. 2024Theoretical limitations of multi-layer Transformercited by 43
  7. 2024Pretrained transformer efficiently learns low-dimensional target functions in-contextcited by 29
  8. 2022VALHALLA: Visual Hallucination for Machine Translationcited by 27
  9. 2023The Descriptive Complexity of Graph Neural Networkscited by 26
  10. 2024Circuit Complexity Bounds for RoPE-based Transformer Architecturecited by 26
  11. 2024Bypassing the Exponential Dependency: Looped Transformers Efficiently Learn In-context by Multi-step Gradient Descentcited by 21
  12. 2024The Computational Limits of State-Space Models and Mamba via the Lens of Circuit Complexitycited by 21
  13. 2022What is my math transformer doing? -- Three results on interpretability and generalizationcited by 19
  14. 2024HSR-Enhanced Sparse Attention Accelerationcited by 19
  15. 2025On the Computational Capability of Graph Neural Networks: A Circuit Complexity Bound Perspectivecited by 14
  16. 2024On the Comparison between Multi-modal and Single-modal Contrastive Learningcited by 10
  17. 2024Modern Hopfield Networks Require Chain-of-Thought to Solve mathsfNC1-Hard Problemscited by 9
  18. 2024Curse of Attention: A Kernel-Based Perspective for Why Transformers Fail to Generalize on Time Series Forecasting and Beyondcited by 8

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 7; 2026: 1.

8 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2023Assessing Logical Reasoning Capabilities of Encoder-Only Transformer Models
  2. 2023Transformers in the Service of Description Logic-based Contexts
  3. 2026To See the Unseen: on the Generalization Ability of Transformers in Symbolic Reasoning
  4. 2024Transformer-based Language Models for Reasoning in the Description Logic ALCQ
  5. 2024Reasoning in Transformers -- Mitigating Spurious Correlations and Reasoning Shortcuts
  6. 2024Grokked Transformers are Implicit Reasoners: A Mechanistic Journey to the Edge of Generalization
  7. 2025Transformers with RL or SFT Provably Learn Sparse Boolean Functions, But Differently
  8. 2023Empower Nested Boolean Logic via Self-Supervised Curriculum Learning