atlas

Research map / Label-efficient and robust learning / OOD and anomaly detection

How Far Can Transformers Reason? The Globality Barrier and Inductive Scratchpad

NeurIPS 2024 · Label-efficient and robust learning › OOD and anomaly detection · approach: Robust fine-tuning for OOD generalization · 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.

Introduces the globality degree to characterize which distributions Transformers can weakly learn from scratch, argues high-globality tasks (cycle task, syllogism chains) are unlearnable, and proposes inductive scratchpads that break the barrier and improve length generalization on cycle, parity and addition tasks.

Problem

Which target distributions can regular Transformers trained from scratch efficiently (weakly) learn, given that they are expressive enough for many tasks; in particular, whether syllogism/graph-path composition over long chains is learnable, and how scratchpads can help.

Approach

Defines the globality degree of a distribution as the least number of input tokens (beyond the token histogram) needed to correlate non-trivially with the label; conjectures weak learnability by Transformers iff constant globality, and proposes inductive scratchpads that reindex positions and attention-mask so each step is an induction function of only the last state.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use an inductive scratchpad with random spaces in the inputAddition · Addition length generalizationgeneralization length: 10 \rightarrow 18Helped
Use an inductive scratchpad with shifted operandsAddition · Addition length generalizationgeneralization length: 4 \rightarrow 26Helped
Use an inductive scratchpad with random spaces in the inputParity · Parity length generalizationgeneralization length: From 30 bits to 55 bitsHelped
Replace the fully educated DFS scratchpad with an inductive scratchpad (ablation)Cycle task · Cycle task OODOOD generalizationHelped
Use a fully educated DFS scratchpad rather than an inductive scratchpad (ablation)Cycle task · Cycle task OODOOD generalizationHurt

Surprising findings

Limitations

Experimental setup

Datasets: synthetic cycle task graphs synthetic parity bit strings synthetic addition problems random directed graphs for implications task

Benchmarks: cycle task (n-cycle graph connectivity) parity length generalization addition length generalization

Metrics: accuracy iterations to reach 95% accuracy maximum length generalized to

Baselines: DFS scratchpad fully educated scratchpad NoPE (Kazemnejad et al.) RASP-L index hints recursive scratchpad (Shen et al.)

Builds on: scratchpad (Nye et al.) chain-of-thought RASP-L Universal Transformers

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