Learning Compositional Functions with Transformers from Easy-to-Hard Data
Not on the map. Why?
Abstract (arXiv)
Transformer-based language models have demonstrated impressive capabilities across a range of complex reasoning tasks. Prior theoretical work exploring the expressive power of transformers has shown that they can efficiently perform multi-step reasoning tasks involving parallelizable computations. However, the learnability of such constructions, particularly the conditions on the data distribution that enable efficient learning via gradient-based optimization, remains an open question. Towards answering this question, in this work we study the learnability of the k-fold composition task, which requires computing an interleaved composition of k input permutations and k hidden permutations, and can be expressed by a transformer with O(log k) layers. On the negative front, we prove a Statistical Query (SQ) lower bound showing that any SQ learner that makes only polynomially-many queries to an SQ oracle for the k-fold composition task distribution must have sample size exponential in k, thus establishing a statistical-computational gap. On the other hand, we show that this function class can be efficiently learned, with runtime and sample complexity polynomial in k, by gradient descent on an O(log k)-depth transformer via two different curriculum learning strategies: one in which data consists of k'-fold composition functions with k' ≤ k presented in increasing difficulty, and another in which all such data is presented simultaneously. Our work sheds light on the necessity and sufficiency of having both easy and hard examples in the data distribution for transformers to learn complex compositional tasks.
Key facts. Cited by 36 papers in the map (data through 14 Oct 2026). First posted on arXiv 29 May 2025.
Builds on
0 of 0 references.
No references here yet.
Built on by
Citing papers per year: 2025: 15; 2026: 21.
36 papers.
Sort:
By area:
- 2025Scaling Latent Reasoning via Looped Language Modelscited by 165
- 2025Transformers Provably Learn Chain-of-Thought Reasoning with Length Generalizationcited by 14
- 2026Sharp Capacity Scaling of Spectral Optimizers in Learning Associative Memorycited by 14
- 2026Sequential Group Composition: A Window into the Mechanics of Deep Learningcited by 10
- 2025h1: Bootstrapping LLMs to Reason over Longer Horizons via Reinforcement Learningcited by 9
- 2025Benefits and Limitations of Communication in Multi-Agent Reasoningcited by 7
- 2025Beyond Statistical Learning: Exact Learning Is Essential for General Intelligencecited by 6
- 2025From Shortcut to Induction Head: How Data Diversity Shapes Algorithm Selection in Transformerscited by 6
- 2026Outcome-Based RL Provably Leads Transformers to Reason, but Only With the Right Datacited by 6
- 2026Provable Learning of Random Hierarchy Models and Hierarchical Shallow-to-Deep Chainingcited by 6
- 2025Shift is Good: Mismatched Data Mixing Improves Test Performancecited by 5
- 2025T-SHRED: Symbolic Regression for Regularization and Model Discovery with Transformer Shallow Recurrent Decoderscited by 4
24 more
- 2025On the Statistical Query Complexity of Learning Semiautomata: a Random Walk Approachcited by 4
- 2025Provable Benefit of Curriculum in Transformer Tree-Reasoning Post-Trainingcited by 4
- 2026Length Generalization Bounds for Transformerscited by 4
- 2025Provably Learning from Modern Language Models via Low Logit Rankcited by 3
- 2026Shattered Compositionality: Counterintuitive Learning Dynamics of Transformers for Arithmeticcited by 3
- 2026Positive Distribution Shift as a Framework for Understanding Tractable Learningcited by 3
- 2025Transformers with RL or SFT Provably Learn Sparse Boolean Functions, But Differentlycited by 2
- 2026Deep Networks Learn Deep Hierarchical Modelscited by 2
- 2026Breaking the Reversal Curse in Autoregressive Language Models via Identity Bridgecited by 2
- 2026When does Chain-of-Thought Help: A Markovian Perspectivecited by 2
- 2026Transformers Provably Learn to Internalize Chain-of-Thoughtcited by 2
- 2026Invariant Learning Dynamics of Transformers in Inductive Reasoning Taskscited by 2
- 2025Understanding the Staged Dynamics of Transformers in Learning Latent Structurecited by 1
- 2026MathMixup: Boosting LLM Mathematical Reasoning with Difficulty-Controllable Data Synthesis and Curriculum Learningcited by 1
- 2026Boule or Baguette? A Study on Task Topology, Length Generalization, and the Benefit of Reasoning Tracescited by 1
- 2026Transformers Efficiently Perform In-Context Logistic Regression via Normalized Gradient Descentcited by 1
- 2026Fine-Tuning Dynamics of In-Context Factual Recall in Transformerscited by 1
- 2026SciDocBench: A Workflow-Centered Benchmark and Data Pipeline for Scientific Document Understandingcited by 1
- 2025GSM-Agent: Understanding Agentic Reasoning Using Controllable Environmentscited by 0
- 2025Limit Analysis for Symbolic Multi-step Reasoning Tasks with Information Propagation Rules Based on Transformerscited by 0
- 2026How Transformers Learn to Plan via Multi-Token Predictioncited by 0
- 2026The Power of Power Law: Asymmetry Enables Compositional Reasoningcited by 0
- 2026Assign and Add: A Mechanistic Study of Compositional Arithmeticcited by 0
- 2026Length Generalization for Transformers via Compressioncited by 0
- 2026Length Generalization for Transformers via Compression8 Sep 2026
- 2026SciDocBench: A Workflow-Centered Benchmark and Data Pipeline for Scientific Document Understanding4 Sep 2026
- 2026Invariant Learning Dynamics of Transformers in Inductive Reasoning Tasks13 Jul 2026
- 2026Assign and Add: A Mechanistic Study of Compositional Arithmetic29 May 2026
- 2026Transformers Provably Learn to Internalize Chain-of-Thought27 May 2026
- 2026Fine-Tuning Dynamics of In-Context Factual Recall in Transformers26 May 2026
- 2026Transformers Efficiently Perform In-Context Logistic Regression via Normalized Gradient Descent7 May 2026
- 2026The Power of Power Law: Asymmetry Enables Compositional Reasoning24 Apr 2026
- 2026How Transformers Learn to Plan via Multi-Token Prediction13 Apr 2026
- 2026Sharp Capacity Scaling of Spectral Optimizers in Learning Associative Memory27 Mar 2026
- 2026When does Chain-of-Thought Help: A Markovian Perspective27 Feb 2026
- 2026Boule or Baguette? A Study on Task Topology, Length Generalization, and the Benefit of Reasoning Traces16 Feb 2026
24 more
- 2026Length Generalization Bounds for Transformers13 Feb 2026
- 2026Positive Distribution Shift as a Framework for Understanding Tractable Learning9 Feb 2026
- 2026Sequential Group Composition: A Window into the Mechanics of Deep Learning3 Feb 2026
- 2026Breaking the Reversal Curse in Autoregressive Language Models via Identity Bridge2 Feb 2026
- 2026Shattered Compositionality: Counterintuitive Learning Dynamics of Transformers for Arithmetic30 Jan 2026
- 2026Provable Learning of Random Hierarchy Models and Hierarchical Shallow-to-Deep Chaining27 Jan 2026
- 2026Outcome-Based RL Provably Leads Transformers to Reason, but Only With the Right Data21 Jan 2026
- 2026MathMixup: Boosting LLM Mathematical Reasoning with Difficulty-Controllable Data Synthesis and Curriculum Learning14 Jan 2026
- 2026Deep Networks Learn Deep Hierarchical Models1 Jan 2026
- 2025From Shortcut to Induction Head: How Data Diversity Shapes Algorithm Selection in Transformers21 Dec 2025
- 2025Provably Learning from Modern Language Models via Low Logit Rank10 Dec 2025
- 2025Understanding the Staged Dynamics of Transformers in Learning Latent Structure24 Nov 2025
- 2025Transformers with RL or SFT Provably Learn Sparse Boolean Functions, But Differently22 Nov 2025
- 2025Transformers Provably Learn Chain-of-Thought Reasoning with Length Generalization10 Nov 2025
- 2025Provable Benefit of Curriculum in Transformer Tree-Reasoning Post-Training10 Nov 2025
- 2025Scaling Latent Reasoning via Looped Language Models29 Oct 2025
- 2025Shift is Good: Mismatched Data Mixing Improves Test Performance29 Oct 2025
- 2025Benefits and Limitations of Communication in Multi-Agent Reasoning14 Oct 2025
- 2025h1: Bootstrapping LLMs to Reason over Longer Horizons via Reinforcement Learning8 Oct 2025
- 2025On the Statistical Query Complexity of Learning Semiautomata: a Random Walk Approach5 Oct 2025
- 2025Limit Analysis for Symbolic Multi-step Reasoning Tasks with Information Propagation Rules Based on Transformers27 Sep 2025
- 2025GSM-Agent: Understanding Agentic Reasoning Using Controllable Environments26 Sep 2025
- 2025Beyond Statistical Learning: Exact Learning Is Essential for General Intelligence30 Jun 2025
- 2025T-SHRED: Symbolic Regression for Regularization and Model Discovery with Transformer Shallow Recurrent Decoders18 Jun 2025
- 2025Scaling Latent Reasoning via Looped Language Modelscited by 165
- 2025Transformers Provably Learn Chain-of-Thought Reasoning with Length Generalizationcited by 14
- 2025h1: Bootstrapping LLMs to Reason over Longer Horizons via Reinforcement Learningcited by 9
- 2025Benefits and Limitations of Communication in Multi-Agent Reasoningcited by 7
- 2025Beyond Statistical Learning: Exact Learning Is Essential for General Intelligencecited by 6
- 2026Outcome-Based RL Provably Leads Transformers to Reason, but Only With the Right Datacited by 6
- 2025Provable Benefit of Curriculum in Transformer Tree-Reasoning Post-Trainingcited by 4
- 2025Transformers with RL or SFT Provably Learn Sparse Boolean Functions, But Differentlycited by 2
- 2026Breaking the Reversal Curse in Autoregressive Language Models via Identity Bridgecited by 2
- 2026When does Chain-of-Thought Help: A Markovian Perspectivecited by 2
- 2026Transformers Provably Learn to Internalize Chain-of-Thoughtcited by 2
- 2026Invariant Learning Dynamics of Transformers in Inductive Reasoning Taskscited by 2
12 most cited of 15 All 15 (JSON)
- 2026Invariant Learning Dynamics of Transformers in Inductive Reasoning Tasks13 Jul 2026
- 2026Transformers Provably Learn to Internalize Chain-of-Thought27 May 2026
- 2026When does Chain-of-Thought Help: A Markovian Perspective27 Feb 2026
- 2026Boule or Baguette? A Study on Task Topology, Length Generalization, and the Benefit of Reasoning Traces16 Feb 2026
- 2026Breaking the Reversal Curse in Autoregressive Language Models via Identity Bridge2 Feb 2026
- 2026Outcome-Based RL Provably Leads Transformers to Reason, but Only With the Right Data21 Jan 2026
- 2026MathMixup: Boosting LLM Mathematical Reasoning with Difficulty-Controllable Data Synthesis and Curriculum Learning14 Jan 2026
- 2025Transformers with RL or SFT Provably Learn Sparse Boolean Functions, But Differently22 Nov 2025
- 2025Transformers Provably Learn Chain-of-Thought Reasoning with Length Generalization10 Nov 2025
- 2025Provable Benefit of Curriculum in Transformer Tree-Reasoning Post-Training10 Nov 2025
- 2025Scaling Latent Reasoning via Looped Language Models29 Oct 2025
- 2025Benefits and Limitations of Communication in Multi-Agent Reasoning14 Oct 2025
12 newest of 15 All 15 (JSON)
- 2026Sharp Capacity Scaling of Spectral Optimizers in Learning Associative Memorycited by 14
- 2026Sequential Group Composition: A Window into the Mechanics of Deep Learningcited by 10
- 2025From Shortcut to Induction Head: How Data Diversity Shapes Algorithm Selection in Transformerscited by 6
- 2026Provable Learning of Random Hierarchy Models and Hierarchical Shallow-to-Deep Chainingcited by 6
- 2025Shift is Good: Mismatched Data Mixing Improves Test Performancecited by 5
- 2025T-SHRED: Symbolic Regression for Regularization and Model Discovery with Transformer Shallow Recurrent Decoderscited by 4
- 2025On the Statistical Query Complexity of Learning Semiautomata: a Random Walk Approachcited by 4
- 2026Length Generalization Bounds for Transformerscited by 4
- 2025Provably Learning from Modern Language Models via Low Logit Rankcited by 3
- 2026Shattered Compositionality: Counterintuitive Learning Dynamics of Transformers for Arithmeticcited by 3
- 2026Positive Distribution Shift as a Framework for Understanding Tractable Learningcited by 3
- 2026Deep Networks Learn Deep Hierarchical Modelscited by 2
12 most cited of 21 All 21 (JSON)
- 2026Length Generalization for Transformers via Compression8 Sep 2026
- 2026SciDocBench: A Workflow-Centered Benchmark and Data Pipeline for Scientific Document Understanding4 Sep 2026
- 2026Assign and Add: A Mechanistic Study of Compositional Arithmetic29 May 2026
- 2026Fine-Tuning Dynamics of In-Context Factual Recall in Transformers26 May 2026
- 2026Transformers Efficiently Perform In-Context Logistic Regression via Normalized Gradient Descent7 May 2026
- 2026The Power of Power Law: Asymmetry Enables Compositional Reasoning24 Apr 2026
- 2026How Transformers Learn to Plan via Multi-Token Prediction13 Apr 2026
- 2026Sharp Capacity Scaling of Spectral Optimizers in Learning Associative Memory27 Mar 2026
- 2026Length Generalization Bounds for Transformers13 Feb 2026
- 2026Positive Distribution Shift as a Framework for Understanding Tractable Learning9 Feb 2026
- 2026Sequential Group Composition: A Window into the Mechanics of Deep Learning3 Feb 2026
- 2026Shattered Compositionality: Counterintuitive Learning Dynamics of Transformers for Arithmetic30 Jan 2026
12 newest of 21 All 21 (JSON)