atlas

Research map / Architectures and efficiency / Attention and transformers

Self-Improving Transformers Overcome Easy-to-Hard and Length Generalization Challenges

ICML 2025 · Architectures and efficiency › Attention and transformers · approach: Transformer expressivity and learnability · 1 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 that iterative self-improvement (self-generated labels filtered by length and majority voting) lets small from-scratch transformers and pretrained Llama models generalize far beyond their training difficulty on arithmetic, string, and maze tasks without architectural changes.

Problem

Standard transformers struggle with length generalization and easy-to-hard generalization on algorithmic tasks such as addition, multiplication, string copy/reverse, and maze shortest-path, and prior fixes typically require task-specific architectural or positional-encoding changes.

Approach

Alternate between generating labels with the current model on progressively harder problems and fine-tuning on the accumulated self-generated data, using unsupervised filters (relative length filtering and majority voting across seeds) to prevent error avalanches, with a standard transformer and no positional-encoding changes.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Filter 5-by-6 multiplication labels by consensus from at least 4 of 5 modelsSelf-improvement on multiplication · 5-by-6 multiplicationself-generated data accuracy: 31% to 93.3%Helped
Remove data filtering (ablation)Self-improvement on multiplication · 6-by-6 multiplication, round 7accuracyHurt
Apply both majority voting and length filtering (ablation)Self-improvement on multiplication · 6-by-6 multiplicationaccuracyHelped
Apply length filtering with threshold 2 (ablation)Self-improvement on forward addition · Forward additionlength generalizationHelped
Use an accelerated schedule that samples multiple difficulty levels per round (ablation)Self-improvement on multiplication · 10-by-10 multiplicationself-improvement rounds to perfect test performance: 41 to 19 roundsHelped
Train a single model with 5× more self-improvement data instead of independent models with majority voting (ablation)Majority-voting self-improvement · Multiplication, out-of-distributionperformanceHurt
Share self-improvement data across models rather than use independently generated datasets (ablation)Majority-voting self-improvement · Multiplication, out-of-distributionperformanceHurt
Use a shared initial training seed instead of different initial seeds (ablation)Majority-voting self-improvement · Multiplication, out-of-distributionperformanceNo clear effect
Use majority voting instead of no filtering (ablation)Maze-solving self-improvement · Maze solving with increasing hopsgeneralization accuracyHelped
Use majority voting instead of no filtering (ablation)Maze-solving self-improvement · 9-hop mazes with increasing node countgeneralization accuracyHelped
Use move-validity verification rather than end-validity verification alone (ablation)Verifier-filtered maze self-improvement · Maze solving with increasing hops and nodesself-improvement performanceHelped
Increase the quantity of lower-quality self-generated data (ablation)Low-performing reverse-addition models · 11-digit and 12-digit reverse additionaccuracyHurt

Surprising findings

Limitations

Experimental setup

Datasets: synthetic arithmetic (reverse/forward addition, multiplication) generated by the authors synthetic string copy/reverse synthetic tree-graph maze shortest-path

Benchmarks: reverse addition forward addition CoT multiplication string copy/reverse maze shortest path

Metrics: exact-match accuracy accuracy on maximum digit length (OOD)

Baselines: No filtering self-improvement Oracle verifier filtering Single-model self-improvement without majority voting

Builds on: STaR ReST NoPE LoRA

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