atlas

Research map / Large language models / Reasoning and chain of thought

From Sparse Dependence to Sparse Attention: Unveiling How Chain-of-Thought Enhances Transformer Sample Efficiency

ICLR 2025 · Large language models › Reasoning and chain of thought · approach: Long CoT dynamics and efficiency · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows theoretically and empirically that chain-of-thought improves transformer sample efficiency on parity learning (polynomial vs. exponential samples) by introducing sparse sequential dependencies that induce sparse, interpretable attention.

Problem

Why chain-of-thought helps LLM reasoning is unclear; prior theory attributes it to expressiveness, but expressiveness is not the bottleneck for simple tasks. The paper asks how CoT affects sample complexity of learning.

Approach

Frame CoT as introducing sparse sequential dependencies among tokens; with CoT a one-layer transformer learns parity with polynomial samples and its attention becomes one-hot on the secret indices, while without CoT learning requires exponential samples under bounded memory SGD.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add step-by-step CoT examplesTransformer parity learning · Parity (n,k)sample complexity: 2^{\Omega(k)} without CoT; \Tilde O(n) with CoTHelped
add CoT training dataGPT-2-style Transformers · Parity (n=30, k=1,2,3,4)sample complexityHelped
use multi-pass training instead of one-pass trainingTransformer without CoT · Parity (n=20, k=6)evaluation accuracyHelped
add CoT training data rather than multi-pass no-CoT trainingTransformer parity learning · Parity (n=20, k=6)epochs to perfect accuracy: 5 epochsHelped
increase the number of heads rather than the number of layersTransformer trained without CoT · Parity (n=20, k=6)evaluation accuracyHelped
use CoT-formatted GSM8K data instead of final-answer-only dataPretrained Qwen2-7B · GSM8Knormalized attention entropyHelped
fine-tune on CoT dataQwen2-7B · GSM8K with CoTnormalized attention entropyHelped
train on 1000000 samples rather than 50000 samples4-layer 4-head Transformer without CoT · Parity (n=20, k=6)evaluation accuracyHurt

Surprising findings

Limitations

Experimental setup

Datasets: GSM8K synthetic parity data

Benchmarks: GSM8K synthetic parity problems

Metrics: sample complexity evaluation accuracy normalized attention entropy

Baselines: No-CoT training Qwen2-Math-7B

Builds on: GPT-2 DenseNet branching program memory-bounded learning lower bounds

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy