Research map / Architectures and efficiency / Attention and transformers
How Can Self-Attention Networks Recognize Dyck-n Languages?
Javid Ebrahimi, Dhruv Gelda, Wei Zhang
Visa Research
Read the paperPlace an idea next to itCheck your own paper ↗
12measured effects
7improved
1no clear effect
4hurt
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 |
|---|---|---|---|
| add a starting symbol to the vocabulary (ablation) | self-attention network · Dyck-2, length 76-100 | accuracy (%): 14.52 -> 93.34 | Improved |
| add a starting symbol to the vocabulary (ablation) | self-attention network · Dyck-2, length 102-126 | accuracy (%): 0.006 -> 58.82 | Improved |
| add a starting symbol to the vocabulary (ablation) | self-attention network · Dyck-3, length 102-126 | accuracy (%): 5.50 -> 66.88 | Improved |
| add a starting symbol to the vocabulary (ablation) | self-attention network · Dyck-4, length 102-126 | accuracy (%): 9.080 -> 72.38 | Improved |
| add a starting symbol to the vocabulary (ablation) | self-attention network · Dyck-1 | accuracy (%): 98.88 -> 100.0 (length 102-126) | No clear effect |
| add a starting symbol to the vocabulary (ablation) | LSTM · Dyck-4, length 102-126 | accuracy (%): 60.24 -> 55.90 | Hurt |
| add a starting symbol to the vocabulary (ablation) | LSTM · Dyck-2, length 102-126 | accuracy (%): 73.20 -> 70.90 | Hurt |
| use LSTM- instead of SA+ | SA+ · Dyck-2, length 102-126 | accuracy (%): 58.82 -> 73.20 | Improved |
| use SA+ instead of LSTM- | LSTM- · Dyck-4, length 102-126 | accuracy (%): 60.24 -> 72.38 | Improved |
| increase the number of bracket types from 2 to 4 | SA+ · Dyck, length 102-126 | accuracy (%): 58.82 -> 72.38 | Improved |
| increase the number of bracket types from 2 to 4 | LSTM- · Dyck, length 102-126 | accuracy (%): 73.20 -> 60.24 | Hurt |
| remove dropout | all models · Dyck-n | accuracy | Hurt |
Open problems in sparse and structured attention
How well do the theory and the efficient designs of attention carry over from simplified models to full-scale transformers?
- Theory covers only simplified one-layer or single-head attention. · 12 papers state it
- Experiments stay at small model scale. · 8 papers state it
- Theory assumes token distributions that real data does not match. · 7 papers state it
Closest papers by meaning
- Self-Attention Networks Can Process Bounded Hierarchical Languages (ACL 2021 · similarity 0.92)
- Self-Attentional Models for Lattice Inputs (ACL 2019 · similarity 0.88)
- Why Self-Attention? A Targeted Evaluation of Neural Machine Translation Architectures (EMNLP 2018 · similarity 0.85)
- Towards Better Modeling Hierarchical Structure for Self-Attention with Ordered Neurons (EMNLP 2019 · similarity 0.85)
- Context-Aware Self-Attention Networks (AAAI 2019 · similarity 0.85)
- Training Neural Networks as Recognizers of Formal Languages (ICLR 2025 · similarity 0.85)
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.