Research map / Architectures and efficiency / Attention and transformers
Making Transformers Solve Compositional Tasks
Santiago Ontañón, Joshua Ainslie, Vaclav Cvicek, Zachary Fisher
Read the paperPlace an idea next to itCheck your own paper ↗
15measured effects
11improved
1no clear effect
3hurt
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use relative position encodings with embeddings and decoder-to-encoder labels (rel2-e) instead of absolute (ablation) | small Transformer · Average over 12 datasets | sequence-level accuracy: 0.137 -> 0.354 | Improved |
| use relative position bias only (rel-b) instead of embeddings (ablation) | small Transformer · PCFG-productivity | sequence-level accuracy: 0.174 -> 0.042 (abs vs rel-b) | Hurt |
| add relative position encodings with decoder-to-encoder labels (ablation) | small Transformer · Addition | sequence-level accuracy: 0.005 -> 0.988 | Improved |
| add copy decoder (ablation) | abs, rel-eb, rel2-eb · Average over 12 datasets | sequence-level accuracy: 0.346 -> 0.403 (rel2-eb) | Improved |
| add copy decoder (ablation) | abs · COGS | sequence-level accuracy: 0.177 -> 0.520 | Improved |
| increase layers from 2 to 4 (small) (ablation) | rel2-eb-c · Average over 12 datasets | sequence-level accuracy: 0.403 -> 0.479 | Improved |
| increase layers from 2 to 6 (small) (ablation) | rel2-eb-c · Average over 12 datasets | sequence-level accuracy: 0.403 -> 0.375 | Hurt |
| use large instead of small layer size (ablation) | rel2-eb-c · PCFG | sequence-level accuracy | Improved |
| increase model size (ablation) | rel2-eb-c · algorithmic tasks | sequence-level accuracy | No clear effect |
| share weights across layers (ablation) | rel2-eb-c models · Average over 12 datasets | sequence-level accuracy: 0.403 -> 0.468 (small-2 -> small-2s) | Improved |
| share weights across layers (ablation) | large-6 · PCFG-productivity | sequence-level accuracy: 0.530 -> 0.634 | Improved |
| share weights across layers (ablation) | rel2-eb-c models · COGS | sequence-level accuracy: 0.511 -> 0.450 (small-2 -> small-2s) | Hurt |
Open problems in Transformer expressivity and learnability
Do theorems about transformer expressivity and learning still hold for deep, softmax, trained models?
- Experiments use small models and synthetic tasks only. · 16 papers state it
- Theory covers one layer, linear attention or fixed matrices, not full transformers. · 12 papers state it
- Theorems and constructions are not shown to match trained transformers. · 6 papers state it
Closest papers by meaning
- The Impact of Depth on Compositional Generalization in Transformer Language Models (NAACL 2024 · similarity 0.91)
- Analyzing the Inner Workings of Transformers in Compositional Generalization (NAACL 2025 · similarity 0.90)
- When Can Transformers Ground and Compose: Insights from Compositional Generalization Benchmarks (EMNLP 2022 · similarity 0.90)
- Evaluating Compositional Generalization in Transformers: The Role of Composition Equivalence and Module Coverage (NeurIPS 2026 · similarity 0.90)
- Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks (ICML 2024 · similarity 0.89)
- Assign and Add: A Mechanistic Study of Compositional Arithmetic (NeurIPS 2026 · similarity 0.87)
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.