Research map / Architectures and efficiency / Attention and transformers
Analyzing the Inner Workings of Transformers in Compositional Generalization
Ryoma Kumon, Hitomi Yanaka
The University of Tokyo
Read the paperPlace an idea next to itCheck your own paper ↗
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.
This paper tried a common change: Train longer
train longer (up to 500 epochs) · PP in indirect object NP generalization · exact match accuracy Mixed
What 494 accepted papers report for this change
- 263 improved
- 83 no clear effect
- 40 mixed
- 108 hurt
- Lightweight Federated Incremental Learning via Decoupled Replay ICML 2026 · increase local training epochs from 5 to 40 · CIFAR10 (α=1.0) · test accuracyImproved
- When Do Hallucinations Arise? A Graph Perspective on the Evolution of Path Reuse and Path Compression ICML 2026 · train longer on the full path search space (overfitting stage) · SBM graph, 10 communities, pin=0.6 · accuracy: 1.0 -> 0.98Hurt
- Causes and Consequences of Representational Similarity in Machine Learning Models ICML 2026 · train longer on LLM continued pretraining to test insufficient adaptation · perplexity across overlap settings · perplexityImproved
See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| prune the base model to a subnetwork found with subnetwork probing on generalization data | Transformer, machine translation · PP in indirect object NP generalization | exact match accuracy (%): 47.0 -> 91.4 | Improved |
| prune to a subnetwork | Transformer, semantic parsing · PP in indirect object NP generalization | exact match accuracy (%): 55.3 -> 91.2 | Improved |
| prune to a subnetwork | Transformer, machine translation · PP in subject NP generalization | exact match accuracy (%): 0.0 -> 57.0 | Improved |
| prune to a subnetwork | Transformer, semantic parsing · PP in subject NP generalization | exact match accuracy (%): 0.1 -> 12.4 | Improved |
| remove all syntactic constituency or dependency information (concept scrubbing) (ablation) | base model and subnetwork · PP in indirect object NP generalization | exact match accuracy | Hurt |
| remove dependency information (ablation) | subnetwork, machine translation · generalization sets | exact match accuracy | No clear effect |
| remove constituency of PP modification of indirect object NPs (ablation) | subnetwork · PP in indirect object NP generalization | exact match accuracy | Mixed |
| remove constituency of PP modification of direct object NPs (ablation) | subnetwork, semantic parsing · PP in subject NP generalization | exact match accuracy | Improved |
| remove constituency of PP modification of subject NPs (ablation) | subnetwork · PP in subject NP generalization | exact match accuracy | Hurt |
| add relative-clause hint sentences to training data | base model · PP in indirect object NP generalization | exact match accuracy: about +40% | Improved |
| train longer (up to 500 epochs) | subnetwork vs base, machine translation · PP in indirect object NP generalization | exact match accuracy | Mixed |
Open problems this paper states
- “Results may not transfer to larger models, as only relatively small models trained on a small synthetic dataset were tested.” → Mechanisms are shown only at small scale, with larger models untested. (an open problem in attention head mechanisms)
- “Compositional generalization tasks use synthetic datasets that may not represent the variety of natural language.” → Findings come from synthetic or toy tasks that may not match natural language. (an open problem in attention head mechanisms)
Open problems in attention head mechanisms
Do the attention-head mechanisms and length-generalization results hold in full-scale, real-world models?
- Mechanisms are shown only at small scale, with larger models untested. · 19 papers state it
- Theory covers only one-layer or attention-only transformers. · 14 papers state it
- Findings come from synthetic or toy tasks that may not match natural language. · 12 papers state it
Closest papers by meaning
- The Impact of Depth on Compositional Generalization in Transformer Language Models (NAACL 2024 · similarity 0.93)
- When Can Transformers Ground and Compose: Insights from Compositional Generalization Benchmarks (EMNLP 2022 · similarity 0.92)
- Characterizing intrinsic compositionality in transformers with Tree Projections (ICLR 2023 · similarity 0.91)
- Compositional Generalization for Primitive Substitutions (EMNLP 2019 · similarity 0.91)
- Inducing Transformer's Compositional Generalization Ability via Auxiliary Sequence Prediction Tasks (EMNLP 2021 · similarity 0.91)
- When does compositional structure yield compositional generalization? A kernel theory. (ICLR 2025 · similarity 0.91)
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.