Ehrenfeucht-Haussler Rank and Chain of Thought
Pablo Barceló, Alexander Kozachinskiy, Tomasz Steifer
Abstract
The notion of rank of a Boolean function has been a cornerstone in PAC learning theory, enabling quasipolynomial-time learning algorithms for polynomial-size decision trees. We present a novel characterization of rank, grounded in the well-known Transformer architecture. We show that the rank of a function f corresponds to the minimum number of Chain of Thought (CoT) steps required by a single-layer Transformer with hard attention to compute f . Based on this characterization we establish tight bounds on the number of CoT steps required for specific problems, showing that ℓ-fold function composition necessitates exactly ℓ CoT steps. Furthermore, we analyze the problem of identifying the position of the k-th occurrence of 1 in a Boolean sequence, proving that it requires k CoT steps. Finally, we introduce the notion of the multi-head rank that captures multi-head single-layer transformers, and perform the analysis of PAC-learnability of the classes of functions with bounded multi-head rank.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
5 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- The Expressive Power of Transformers with Chain of Thought cites Tighter Bounds on the Expressivity of Transformer Encoders
- Logical Languages Accepted by Transformer Encoders with Hard Attention cites Tighter Bounds on the Expressivity of Transformer Encoders
- Lower Bounds for Chain-of-Thought Reasoning in Hard-Attention Transformers cites The Expressive Power of Transformers with Chain of Thought
- Lower Bounds for Chain-of-Thought Reasoning in Hard-Attention Transformers cites Logical Languages Accepted by Transformer Encoders with Hard Attention
- Lower Bounds for Chain-of-Thought Reasoning in Hard-Attention Transformers cites Chain of Thought Empowers Transformers to Solve Inherently Serial Problems
- Lower Bounds for Chain-of-Thought Reasoning in Hard-Attention Transformers cites Masked Hard-Attention Transformers Recognize Exactly the Star-Free Languages
- A Provable Expressiveness Hierarchy in Hybrid Linear-Full Attention cites The Expressive Power of Transformers with Chain of Thought
- A Provable Expressiveness Hierarchy in Hybrid Linear-Full Attention cites Lower Bounds for Chain-of-Thought Reasoning in Hard-Attention Transformers
- A Provable Expressiveness Hierarchy in Hybrid Linear-Full Attention cites Chain of Thought Empowers Transformers to Solve Inherently Serial Problems
- Transformers with RL or SFT Provably Learn Sparse Boolean Functions, But Differently cites The Expressive Power of Transformers with Chain of Thought
- Transformers with RL or SFT Provably Learn Sparse Boolean Functions, But Differently cites Lower Bounds for Chain-of-Thought Reasoning in Hard-Attention Transformers
- Transformers with RL or SFT Provably Learn Sparse Boolean Functions, But Differently cites Chain of Thought Empowers Transformers to Solve Inherently Serial Problems
- Transformers with RL or SFT Provably Learn Sparse Boolean Functions, But Differently cites Multi-head Transformers Provably Learn Symbolic Multi-step Reasoning via Gradient Descent
- Chain of Thought Empowers Transformers to Solve Inherently Serial Problems cites Tighter Bounds on the Expressivity of Transformer Encoders
- Provable Sample Efficiency of Curriculum Post-Training for Transformer Reasoning cites The Expressive Power of Transformers with Chain of Thought
- Provable Sample Efficiency of Curriculum Post-Training for Transformer Reasoning cites Lower Bounds for Chain-of-Thought Reasoning in Hard-Attention Transformers
- Provable Sample Efficiency of Curriculum Post-Training for Transformer Reasoning cites Chain of Thought Empowers Transformers to Solve Inherently Serial Problems
- Provable Sample Efficiency of Curriculum Post-Training for Transformer Reasoning cites Multi-head Transformers Provably Learn Symbolic Multi-step Reasoning via Gradient Descent
- Masked Hard-Attention Transformers Recognize Exactly the Star-Free Languages cites The Expressive Power of Transformers with Chain of Thought
- Masked Hard-Attention Transformers Recognize Exactly the Star-Free Languages cites Logical Languages Accepted by Transformer Encoders with Hard Attention
- Masked Hard-Attention Transformers Recognize Exactly the Star-Free Languages cites Tighter Bounds on the Expressivity of Transformer Encoders
- Multi-head Transformers Provably Learn Symbolic Multi-step Reasoning via Gradient Descent cites The Expressive Power of Transformers with Chain of Thought
- Multi-head Transformers Provably Learn Symbolic Multi-step Reasoning via Gradient Descent cites Lower Bounds for Chain-of-Thought Reasoning in Hard-Attention Transformers
- Multi-head Transformers Provably Learn Symbolic Multi-step Reasoning via Gradient Descent cites Chain of Thought Empowers Transformers to Solve Inherently Serial Problems
Cited by top-tier papers5
- Multi-head Transformers Provably Learn Symbolic Multi-step Reasoning via Gradient DescentTong Yang, Yu Huang, Yingbin Liang, Yuejie ChiNeurIPS 2025 · 8 citations
- Lower Bounds for Chain-of-Thought Reasoning in Hard-Attention TransformersAlireza Amiri Bavandpour, Xinting Huang, Mark Rofin, Michael HahnICML 2025
- A Provable Expressiveness Hierarchy in Hybrid Linear-Full AttentionXiaowei Ye, Xiaoyu He, Chao Liao, Chen Wu et al.ICML 2026
- Transformers with RL or SFT Provably Learn Sparse Boolean Functions, But DifferentlyBochen Lyu, Yiyang Jia, Xiaohao Cai, Zhanxing ZhuICML 2026
- Provable Sample Efficiency of Curriculum Post-Training for Transformer ReasoningDake Bu, Wei Huang, Andi Han, Atsushi Nitanda et al.ICML 2026
Builds on6
- Chain of Thought Empowers Transformers to Solve Inherently Serial ProblemsZhiyuan Liu, Hong Liu, Denny Zhou, Tengyu MaICLR 2024 · 259 citations
- The Expressive Power of Transformers with Chain of ThoughtWilliam Merrill, Ashish SabharwalICLR 2024 · 243 citations
- Tighter Bounds on the Expressivity of Transformer EncodersDavid Chiang, Peter Cholak, Anand PillayICML 2023 · 80 citations
- Masked Hard-Attention Transformers Recognize Exactly the Star-Free LanguagesAndy Yang, David Chiang, Dana AngluinNeurIPS 2024 · 58 citations
- Logical Languages Accepted by Transformer Encoders with Hard AttentionPablo Barceló, Alexander Kozachinskiy, Anthony Widjaja Lin, Vladimir V. PodolskiiICLR 2024 · 36 citations
Related papers
- Compositional Reasoning with Transformers, RNNs, and Chain of ThoughtGilad Yehudai, Noah Amsel, Joan BrunaNeurIPS 2025 · 7 citations
- Learning Linear Attention in Polynomial TimeMorris Yau, Ekin Akyürek, Jiayuan Mao, Joshua B. Tenenbaum et al.NeurIPS 2025 · 7 citations
- Chain-of-Thought Provably Enables Learning the (Otherwise) UnlearnableChenxiao Yang, Zhiyuan Li, David WipfICLR 2025
- Provably Learning Attention with QueriesSatwik Bhattamishra, Kulin Shah, Michael Hahn, Varun KanadeICML 2026
- Transformers Provably Solve Parity Efficiently with Chain of ThoughtJuno Kim, Taiji SuzukiICLR 2025
