atlas

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

Transformers Provably Solve Parity Efficiently with Chain of Thought

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 that a one-layer softmax transformer trained by gradient descent can learn k-parity efficiently with chain-of-thought: impossible end-to-end without intermediate supervision, learnable in one step with teacher forcing, and in logarithmic steps with self-consistency filtering and data augmentation.

Problem

Understanding how transformers can be optimized with chain-of-thought (intermediate-state) supervision to solve complex compositional tasks, using k-parity as a test case where end-to-end gradient learning is provably hard.

Approach

Applies a one-layer transformer recursively to its own output over a binary tree decomposition of parity, with positional attention weights only; intermediate-state losses (teacher forcing) make parity learnable in one gradient step, and block-autoregressive masking, augmented random data as a self-consistency filter, and integer weight quantization allow learning without teacher forcing in log2 k

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
train only on the final prediction instead of supervising intermediate parity statesone-layer transformer · 64-bit k-parity (k=32)prediction loss: prediction error is stuck at 0.5Hurt
add intermediate-state loss without teacher forcing or self-consistencyone-layer transformer · 64-bit k-parity (k=32)prediction loss: never improves beyond 0.5No clear effect
add teacher forcing to intermediate-state supervisionone-layer transformer · 64-bit k-parity (k=32)prediction lossHelped
add data augmentation and self-consistency filtering to end-to-end CoTone-layer transformer · 64-bit k-parity (k=32)prediction lossHelped
add filtering to control error accumulation in end-to-end CoTbasic CoT model · 64-bit k-parity (k=32)prediction lossHelped

Surprising findings

Limitations

Experimental setup

Datasets: synthetic random k-parity samples (d=64 bits, k=8,16,32)

Benchmarks: synthetic k-parity (d=64, k=8,16,32)

Metrics: CoT loss prediction loss

Baselines: Direct end-to-end training Basic CoT without teacher forcing

Builds on: Wies23 (RNN parity with intermediate supervision) statistical query hardness of parity via gradient variance Transformer CoT expressivity (Feng et al.)

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