atlas

Research map / Graph learning / Knowledge and temporal graphs

Towards an Understanding of Stepwise Inference in Transformers: A Synthetic Graph Navigation Model

ICML 2024 · Graph learning › Knowledge and temporal graphs · approach: Graph-based dialog systems · 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.

Studies stepwise inference (scratchpad/CoT-like) in small autoregressive Transformers trained on a synthetic graph path-existence/navigation task, reproducing gaps, a diversity-accuracy tradeoff, simplicity bias, and in-context controllability effects.

Problem

Stepwise inference protocols such as scratchpads and chain-of-thought improve LLM performance on multi-step problems, but their underlying mechanisms are poorly understood.

Approach

Casts multi-step reasoning as graph navigation on synthetic Bernoulli and hierarchical DAGs, training small GPT-style Transformers from scratch with and without intermediate path tokens, and uses this abstraction to reproduce scale-observed phenomena and give mechanistic hypotheses (approximate distance-based greedy navigation).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use stepwise inference instead of direct inferenceTransformer graph navigation · Bernoulli DAG and hierarchical DAGpath-classification accuracyHelped
Limit training paths to shorter lengthsStepwise versus direct inference · Hierarchical DAG; test paths with length at least the training thresholdstepwise inference gap in classification accuracyHelped
Increase sampling temperatureAutoregressive Transformer · Fixed start and goal node pairpath diversityHelped
Increase sampling temperatureAutoregressive Transformer · Fixed start and goal node pairpath accuracyHurt
Use stepwise inference with randomly corrupted training tokensTransformer graph navigation · Single-graph scenario with 5%, 10%, and 20% token corruptionstepwise inference gapHelped
Increase graph edge densityStepwise versus direct inference · Hierarchical DAG, edge density from 0.08 to 0.12stepwise inference gapHurt
Generate paths at higher sampling temperaturesTrained Transformer · Bernoulli DAGgenerated path length relative to ground-truth path lengthHelped
Use in-context exemplars specifying a chain of motifsTransformer motif navigation · Unseen orders of motifs, up to the training chain lengthsuccessful navigationHelped
Increase the number of chained motifs beyond the maximum seen in trainingTransformer motif navigation · Longer motif chainssuccessful steeringHurt
Place conflicting motif-chain exemplars in the promptTransformer motif navigation · Two chains with the same initial and terminal motifsselection of the first chainHelped
Use the simplified algorithm extracted from the attention-only modelFull trained Transformer · Held-out node pairsclassification accuracyNo clear effect
Vary embedding dimensionality in the one-layer attention-only model (ablation)One-layer Transformer without MLP or post-LayerNorm · Bernoulli DAG with 200 nodes and $p=0.05$generalization to held-out node pairsHelped

Surprising findings

Limitations

Experimental setup

Datasets: synthetic Bernoulli DAGs synthetic hierarchical DAGs synthetic motif-chain exemplar sequences

Benchmarks: held-out node pairs in synthetic graphs

Metrics: classification accuracy (path / no path) path validity unique valid path diversity path length misstep rate planning failure rate

Baselines: direct inference (no intermediate steps)

Builds on: chain-of-thought scratchpad nanoGPT

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