Research map / Architectures and efficiency / Attention and transformers
Self-Attention Networks Can Process Bounded Hierarchical Languages
Shunyu Yao, Binghui Peng, Christos Papadimitriou, Karthik Narasimhan
Princeton University · Columbia University
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: Add dropout
use more attention heads or dropout in Transformer · Dyck-(k,D) · close accuracy Hurt
What 1,045 accepted papers report for this change
- 716 improved
- 114 no clear effect
- 21 mixed
- 194 hurt
- Don't Drop Dropout: Optimizing Layer Sparsity for Efficient LLM Training and Inference ICML 2026 · apply layer dropout to whole transformer blocks instead of attention and FFN sub-blocks separately · 20 TPP val loss, 271M · val loss: 2.377 -> 2.367Improved
- Quantifying the Uncertainty of Foundation Models with Singular Value Ensembles ICML 2026 · use MC Dropout · vision and SST-2 · accuracy: 86.3 -> 76.6 on Flowers102Hurt
- Motion Planning in Compressed Representation Spaces ICML 2026 · add nested dropout during training · WOMD guided generation · goal FDE: 4.145 -> 1.104Improved
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 |
|---|---|---|---|
| use scalar positional encoding i/6000 (POS/N) instead of Fourier (COS) or learned (LEARN) encodings (ablation) | Transformer · Dyck-(8,10) test (longer inputs) | close accuracy | Improved |
| use a 2-layer Transformer (POS/N) instead of a 1-layer LSTM at the same memory size | Dyck-(8,10) models · Dyck-(8,10) test | close accuracy: >90% at d_model 20 (Transformer) vs 40 (LSTM); >95% at 30 vs 50 | Improved |
| use 2-layer Transformer instead of 1-layer LSTM at large k and D | Dyck-(k,D) models · Dyck-(k,D) validation and test | close accuracy: LSTM < 80% at (32,15), (128,10), (128,15); Transformer > 99.9% val, > 94% test | Improved |
| increase Transformer depth from 2 to 5 layers (POS/N) (ablation) | Transformer · Dyck-(k,D) validation | close accuracy | No clear effect |
| use POS/N scalar positional encoding instead of learned encoding in RoBERTa (ablation) | RoBERTa on WikiText-103 · WikiText-103 MLM validation | loss: 1.31 -> 1.55 | Hurt |
| use more attention heads or dropout in Transformer (ablation) | Transformer on Dyck · Dyck-(k,D) | close accuracy | Hurt |
Open problems in long-context KV and memory attention
How can long-context attention be made fast and small in memory without losing quality against full attention?
- Validated only on models up to about 13B parameters. · 8 papers state it
- Speedups are limited because the code is not fused or kernel-optimized. · 5 papers state it
- Compressed or sparse attention still trails full attention. · 4 papers state it
Closest papers by meaning
- How Can Self-Attention Networks Recognize Dyck-n Languages? (EMNLP 2020 · similarity 0.92)
- RNNs can generate bounded hierarchical languages with optimal memory (EMNLP 2020 · similarity 0.90)
- Tree-Structured Attention with Hierarchical Accumulation (ICLR 2020 · similarity 0.89)
- Towards Better Modeling Hierarchical Structure for Self-Attention with Ordered Neurons (EMNLP 2019 · similarity 0.89)
- Scaling Stick-Breaking Attention: An Efficient Implementation and In-depth Study (ICLR 2025 · similarity 0.87)
- RAT: Bridging RNN Efficiency and Attention Accuracy via Chunk-based Sequence Modeling (NeurIPS 2025 · similarity 0.86)
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.