atlas

Research map / Architectures and efficiency / Attention and transformers

LeaPformer: Enabling Linear Transformers for Autoregressive and Simultaneous Tasks via Learned Proportions

ICML 2024 · Architectures and efficiency › Attention and transformers · approach: Sparse efficient transformers for long context · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes LeaPformer, which replaces cosFormer's sequence-length-dependent cosine re-weighting with a learned, token-level proportion module so linear transformers can be applied to autoregressive and simultaneous tasks.

Problem

Position-based re-weighting functions for linear transformers (e.g., cosFormer) require the target/total sequence length, which is unknown in autoregressive and simultaneous tasks, and their static patterns limit flexibility.

Approach

Generalize positional re-weighting to relative sequence proportions and learn these proportions per token with a compact two-layer feed-forward LeaP module (ReLU, sigmoid output) shared across heads, so no sequence length is needed.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add learned proportions to cosFormercosFormer · LRA averageaccuracy: 57.43 -> 58.69Helped
Add learned proportions to cosFormercosFormer · LRARCP: 3.59 -> 5.20Helped
Add learned proportions to cosFormercosFormer · Wikitext-103b testperplexity: 24.17 -> 24.04; 0.13 perplexityHelped
Replace decoder self-attention with LeaPformer (ablation)SimulST en-de · MuST-C en-deBLEU: 15.07 -> 14.81; 0.26 BLEUHurt
Replace decoder self-attention with LeaPformer (ablation)SimulST fr-en · CoVoST 2 fr-enBLEU: 14.51 -> 14.28; 0.23 BLEUHurt
Increase cosFormer parameter count by 1.05x (ablation)cosFormer · LRA tasksaccuracyMixed
Replace encoder self-attention with LeaPformer (ablation)SimulST en-de · MuST-C en-deBLEU: 15.07 -> 12.00Hurt
Replace cross-attention with LeaPformer (ablation)SimulST en-de · MuST-C en-deBLEU: 15.07 -> 13.95Hurt
Replace all attention blocks with LeaPformer (ablation)SimulST en-de · MuST-C en-deBLEU: 15.07 -> 11.19Hurt
Replace encoder self-attention with LeaPformer (ablation)SimulST fr-en · CoVoST 2 fr-enBLEU: 14.51 -> 11.18Hurt
Replace cross-attention with LeaPformer (ablation)SimulST fr-en · CoVoST 2 fr-enBLEU: 14.51 -> 13.25Hurt
Replace all attention blocks with LeaPformer (ablation)SimulST fr-en · CoVoST 2 fr-enBLEU: 14.51 -> 9.69Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Long-Range Arena WikiText-103 MuST-C en-de CoVoST 2 fr-en

Benchmarks: Long-Range Arena WikiText-103 MuST-C en-de tst-COMMON CoVoST 2 fr-en

Metrics: accuracy throughput perplexity BLEU RCP CA-AL

Baselines: Softmax Attention Linear Attention Linformer Performer BigBird Reformer Skyformer RoPE w/ Linear Attn. cosFormer ReLU Attention

Builds on: cosFormer Linear Transformer RoPE Skyformer framework wait-k policy

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