scimeatlas

Research map / Architectures and efficiency / Attention and transformers

Improving Transformers with Probabilistic Attention Keys

Tam Minh Nguyen, Tan Minh Nguyen, Dung D. D. Le, Duy Khuong Nguyen, Viet-Anh Tran, Richard Baraniuk, Nhat Ho, Stanley Osher

ICML 2022Architectures and efficiency › Attention and transformersapproach: Linear attention approximationsopen problems in this approach6 citations (OpenAlex)

FPT Software AI Center · University of California, Los Angeles · VinUniversity · Deezer Research · Rice University · University of Texas at Austin

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

12measured effects
8improved
2no clear effect
2hurt

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.

On benchmark leaderboards

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace ordinary attention keys with Gaussian-mixture keys using half as many headsSoftmax transformer · LRA Retrievaltest accuracy (%): 81.74 -> 82.23Improved
Use shifted mixture keys instead of ordinary mixture keysMGK · LRA Retrievaltest accuracy (%): 82.23 -> 82.79Improved
Replace linear-transformer keys with a mixture of linear keys using half as many headsLinear transformer · LRA Retrievaltest accuracy (%): 81.18 -> 81.34Improved
Replace softmax keys with Gaussian-mixture keys using half as many headsSoftmax transformer (medium) · WikiText-103 testPPL: 29.60 -> 28.86Improved
Add mixture keys while keeping dot-product attention (ablation)One-head softmax transformer · LRA Retrievaltest accuracy (%): 77.90 -> 79.23Improved
Use Gaussian distance rather than dot product for mixture-key attention (ablation)One-head Softmax MGK · LRA Retrievaltest accuracy (%): 79.23 -> 80.63Improved
Add key shifting to Gaussian MGK (ablation)One-head Gaussian MGK · LRA Retrievaltest accuracy (%): 80.63 -> 81.23Improved
Vary the second mixture component's fixed variance across tested values (ablation)MGK · IWSLT'14 German-EnglishBLEU: 34.31, 34.36, 34.61, 34.34, 34.27No clear effect
Make the mixture variances learnable instead of fixing them (ablation)MGK · IWSLT'14 German-EnglishBLEU: 32.86Hurt
Use hard E-step inference instead of the default learned soft E-step (ablation)MGK · LRA ListOpstest accuracy (%): 37.13 -> 19.40Hurt
Use hard E-step inference instead of the default learned soft E-step (ablation)sMGK · LRA ListOpstest accuracy (%): 37.31 -> 37.25No clear effect
Use shifted mixture keys instead of unshifted mixture keys (ablation)MGK · LRA Retrievaltest accuracy (%): 80.63 -> 81.23Improved

Open problems in linear attention approximations

Can linear attention match softmax attention on retrieval and at larger scale, with real speedups?

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