Research map / Architectures and efficiency / Attention and transformers
Can the Transformer Learn Nested Recursion with Symbol Masking?
Jean-Philippe Bernardy, Adam Ek, Vladislav Maraev
University of Gothenburg
Read the paperPlace an idea next to itCheck your own paper ↗
4measured effects
3improved
1hurt
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 2 layers/8 heads instead of 8 layers/2 heads (ablation) | BERT-like masked Transformer encoder · Dyck generalisation to longer distances | accuracy: 0.643 -> 0.844 | Improved |
| use 2 layers/8 heads instead of 8 layers/2 heads (ablation) | BERT-like masked Transformer encoder · Dyck generalisation to deeper nesting | accuracy: 0.518 -> 0.672 | Improved |
| test at deeper nesting (9) than training (3) instead of longer distance | 2 layers, 8 heads model · Dyck generalisation | accuracy: 0.844 -> 0.672 | Hurt |
| mask fewer symbols (very long distances, i.e. beginning matched with end) | all configurations · Dyck longer distances | accuracy by distance | Improved |
Open problems in attention head and block redesign
Do attention redesigns still help at large scale, or only in small models and carefully set conditions?
- Theory rests on simplifying assumptions that real transformers break. · 13 papers state it
- Tested only on small models, not at LLM scale. · 12 papers state it
- Gains over the baseline attention are small or mixed. · 10 papers state it
Closest papers by meaning
- Pause Tokens Strictly Increase the Expressivity of Constant-Depth Transformers (NeurIPS 2025 · similarity 0.82)
- Self-Improving Transformers Overcome Easy-to-Hard and Length Generalization Challenges (ICML 2025 · similarity 0.81)
- Algorithmic Capabilities of Random Transformers (NeurIPS 2024 · similarity 0.81)
- Limits of Transformer Language Models on Learning to Compose Algorithms (NeurIPS 2024 · similarity 0.81)
- Fixed Universal Transformers (NeurIPS 2026 · similarity 0.80)
- The Expressive Power of Transformers with Chain of Thought (ICLR 2024 · similarity 0.80)
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.