Provable Failure of Language Models in Learning Majority Boolean Logic via Gradient Descent
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
Other references · 30
- 2017Attention Is All You Needcited by 59,932
- 2023GPT-4 Technical Reportcited by 18,132
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2023How Good Are GPT Models at Machine Translation? A Comprehensive Evaluationcited by 344
- 2022Transformers Learn Shortcuts to Automatacited by 260
- 2024Chain of Thought Empowers Transformers to Solve Inherently Serial Problemscited by 256
- 2023Adapted Large Language Models Can Outperform Medical Experts in Clinical Text Summarizationcited by 244
- 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformerscited by 191
- 2024Learning-to-Cache: Accelerating Diffusion Transformer via Layer Cachingcited by 138
- 2021Saturated Transformers are Constant-Depth Threshold Circuitscited by 137
- 2018The Best of Both Worlds: Combining Recent Advances in Neural Machine Translationcited by 101
18 more
- 2022A Logic for Expressing Log-Precision Transformerscited by 67
- 2024Understanding Transformer Reasoning Capabilities via Graph Algorithmscited by 64
- 2024Transformers Provably Solve Parity Efficiently with Chain of Thoughtcited by 49
- 2024Mitigating Object Hallucination via Concentric Causal Attentioncited by 48
- 2024Neural network learns low-dimensional polynomials with SGD near the information-theoretic limitcited by 45
- 2024Theoretical limitations of multi-layer Transformercited by 43
- 2024Pretrained transformer efficiently learns low-dimensional target functions in-contextcited by 29
- 2022VALHALLA: Visual Hallucination for Machine Translationcited by 27
- 2023The Descriptive Complexity of Graph Neural Networkscited by 26
- 2024Circuit Complexity Bounds for RoPE-based Transformer Architecturecited by 26
- 2024Bypassing the Exponential Dependency: Looped Transformers Efficiently Learn In-context by Multi-step Gradient Descentcited by 21
- 2024The Computational Limits of State-Space Models and Mamba via the Lens of Circuit Complexitycited by 21
- 2022What is my math transformer doing? -- Three results on interpretability and generalizationcited by 19
- 2024HSR-Enhanced Sparse Attention Accelerationcited by 19
- 2025On the Computational Capability of Graph Neural Networks: A Circuit Complexity Bound Perspectivecited by 14
- 2024On the Comparison between Multi-modal and Single-modal Contrastive Learningcited by 10
- 2024Modern Hopfield Networks Require Chain-of-Thought to Solve mathsfNC1-Hard Problemscited by 9
- 2024Curse of Attention: A Kernel-Based Perspective for Why Transformers Fail to Generalize on Time Series Forecasting and Beyondcited by 8
Built on by
Citing papers per year: 2025: 7; 2026: 1.
8 papers.
- 2025T2VWorldBench: A Benchmark for Evaluating World Knowledge in Text-to-Video Generationcited by 18
- 2025Your Vision-Language Model Can't Even Count to 20: Exposing the Failures of VLMs in Compositional Countingcited by 17
- 2025T2VTextBench: A Human Evaluation Benchmark for Textual Control in Video Generation Modelscited by 9
- 2025Towards High-Order Mean Flow Generative Models: Feasibility, Expressivity, and Provably Efficient Criteriacited by 5
- 2025Minimalist Softmax Attention Provably Learns Constrained Boolean Functionscited by 4
- 2025Too Easily Fooled? Prompt Injection Breaks LLMs on Frustratingly Simple Multiple-Choice Questionscited by 4
- 2025Fundamental Limits of Crystalline Equivariant Graph Neural Networks: A Circuit Complexity Perspectivecited by 0
- 2026SciDocBench: A Workflow-Centered Benchmark and Data Pipeline for Scientific Document Understandingcited by 0
- 2026SciDocBench: A Workflow-Centered Benchmark and Data Pipeline for Scientific Document Understanding4 Sep 2026
- 2025Fundamental Limits of Crystalline Equivariant Graph Neural Networks: A Circuit Complexity Perspective7 Oct 2025
- 2025Your Vision-Language Model Can't Even Count to 20: Exposing the Failures of VLMs in Compositional Counting6 Oct 2025
- 2025Too Easily Fooled? Prompt Injection Breaks LLMs on Frustratingly Simple Multiple-Choice Questions16 Aug 2025
- 2025Towards High-Order Mean Flow Generative Models: Feasibility, Expressivity, and Provably Efficient Criteria9 Aug 2025
- 2025T2VWorldBench: A Benchmark for Evaluating World Knowledge in Text-to-Video Generation24 Jul 2025
- 2025Minimalist Softmax Attention Provably Learns Constrained Boolean Functions26 May 2025
- 2025T2VTextBench: A Human Evaluation Benchmark for Textual Control in Video Generation Models8 May 2025
Similar, not cited
Close in wording, no citation either way
- 2023Assessing Logical Reasoning Capabilities of Encoder-Only Transformer Models
- 2023Transformers in the Service of Description Logic-based Contexts
- 2026To See the Unseen: on the Generalization Ability of Transformers in Symbolic Reasoning
- 2024Transformer-based Language Models for Reasoning in the Description Logic ALCQ
- 2024Reasoning in Transformers -- Mitigating Spurious Correlations and Reasoning Shortcuts
- 2024Grokked Transformers are Implicit Reasoners: A Mechanistic Journey to the Edge of Generalization
- 2025Transformers with RL or SFT Provably Learn Sparse Boolean Functions, But Differently
- 2023Empower Nested Boolean Logic via Self-Supervised Curriculum Learning