scimeatlas

Research map / Architectures and efficiency / Attention and transformers

A Transformer with Stack Attention

Jiaoda Li, Jennifer C. White, Mrinmaya Sachan, Ryan Cotterell

NAACL 2024Architectures and efficiency › Attention and transformersapproach: Long-context KV and memory attentionopen problems in this approach7 citations (OpenAlex)

ETH Zurich · University of Cambridge

Read the paperPlace an idea next to itCheck your own paper ↗

11measured effects
6improved
2no 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.

This paper tried a common change: Add positional encoding

Add sinusoidal or rotary positional encodings to stack transformer · DCF RS and SM · accuracy (%): SM MLM 93.1 -> 74.7 (sincos) Hurt

What 733 accepted papers report for this change

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 changedWhereMeasuredEffect
Add stack attention sub-layerTransformer MLM · DCF Reverse Stringaccuracy (%): 54.8 -> 100.0Improved
Add stack attention sub-layerTransformer ALM · DCF Stack Manipulationaccuracy (%): 50.4 -> 92.8Improved
Add stack attention sub-layerTransformer MLM · DCF Modular Arithmeticaccuracy (%): 30.1 -> 34.3No clear effect
Add stack attention sub-layerTransformer ALM · DCF Solve Equationaccuracy (%): 20.2 -> 20.3No clear effect
Add stack attention to a transformer trained from scratchTransformer MLM · PTBperplexity: 95.53 -> 34.28Improved
Add stack attention to a transformer trained from scratchTransformer ALM · PTBperplexity: 73.14 -> 69.86Improved
Add stack attention to a transformer trained from scratchTransformer ALM · WikiText-2perplexity: 191.01 -> 206.42Hurt
Add stack attention to fine-tuned pre-trained modelsRoBERTa / GPT-2 · PTB, WikiText-2perplexity: ALM PTB 21.26 -> 32.36Hurt
Add sinusoidal or rotary positional encodings to stack transformer (ablation)Stack transformer · DCF RS and SMaccuracy (%): SM MLM 93.1 -> 74.7 (sincos)Hurt
Add relative positional encoding to stack transformer (ablation)Stack transformer MLM · DCF Stack Manipulationaccuracy (%): 93.1 -> 98.5Improved
Add positional encodings to vanilla transformer (ablation)Vanilla transformer · DCF star-free tasks (RS, SM)accuracy (%): RS MLM 54.8 -> 79.4 (ALiBi)Improved

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?

All 5 open problems and what was already tried →

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy