atlas

Research map / Architectures and efficiency / Attention and transformers

Understanding Transformer Reasoning Capabilities via Graph Algorithms

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Transformer expressivity and learnability · 5 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.

Proposes a representational hierarchy of graph reasoning tasks (retrieval, parallelizable, search) by transformer depth/width/pause-token scaling regimes, with proofs and GraphQA experiments.

Problem

Which transformer scaling regimes (depth, width, number of blank pause tokens) can perfectly solve different classes of graph algorithmic reasoning tasks, given realistic parameter scalings?

Approach

Classifies graph tasks into retrieval, parallelizable, and search classes via MPC round-equivalence and proves matching depth/width bounds for transformers in four scaling regimes (D1, LD, LDP, LDW); logarithmic depth is necessary and sufficient for parallelizable tasks, single-layer small-width suffices for retrieval tasks.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train a 60M transformer explicitly on GraphQA instead of using the strongest listed prompting strategy60M transformer-100K · Node countaccuracy: 27.6 -> 100.0Helped
Train a 60M transformer explicitly on GraphQA instead of using the strongest listed prompting strategy60M transformer-100K · Edge countaccuracy: 12.8 -> 100.0Helped
Train a 60M transformer explicitly on GraphQA instead of using the strongest listed prompting strategy60M transformer-100K · Edge existenceaccuracy: 44.5 -> 96.1Helped
Train a 60M transformer explicitly on GraphQA instead of using the strongest listed prompting strategy60M transformer-100K · Node degreeaccuracy: 29.2 -> 91.7Helped
Train a 60M transformer explicitly on GraphQA instead of using the strongest listed prompting strategy60M transformer-100K · Connectivityaccuracy: 84.9 -> 98.0Helped
Train a 60M transformer explicitly on GraphQA instead of using the strongest listed prompting strategy60M transformer-100K · Cycle checkaccuracy: 76.0 -> 98.0Helped
Train a 60M transformer explicitly on GraphQA instead of using the strongest listed prompting strategy60M transformer-100K · Shortest pathaccuracy: 40.4 -> 97.2Helped
Train a 60M transformer explicitly on GraphQA instead of using the strongest listed prompting strategy60M transformer-100K · Triangle countingaccuracy: 12.7 -> 40.5Helped
Increase training data from 1K to 100K samples60M transformer · Connectivityaccuracy: 57.4 -> 97.1Helped
Increase training data from 1K to 100K samples60M transformer · Shortest pathaccuracy: 57.4 -> 97.2Helped
Use a fine-tuned T5-11B instead of the 60M transformer trained on 1K samplesGraphQA models · Connectivityaccuracy: 92.9 -> 98.4Helped
Use a fine-tuned T5-11B instead of the 60M transformer trained on 1K samplesGraphQA models · Shortest pathaccuracy: 57.4 -> 92.8Helped

Surprising findings

Limitations

Experimental setup

Datasets: GraphQA

Benchmarks: GraphQA

Metrics: accuracy

Baselines: GCN MPNN GIN zero-shot zero-cot few-shot cot cot-bag

Builds on: MPC model GraphQA pause tokens bounded communication transformer model

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