atlas

Research map / Architectures and efficiency / Attention and transformers

Do Efficient Transformers Really Save Computation?

ICML 2024 · Architectures and efficiency › Attention and transformers · approach: Transformer expressivity and learnability · 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.

Shows that Sparse and Linear Transformers can express general dynamic-programming chain-of-thought reasoning but need hidden dimension growing with problem size (Ω̃(√L)), while locality in reasoning steps restores efficiency; validated on Arithmetic, LIS, and Edit Distance experiments.

Problem

Whether efficient Transformers (Sparse and Linear) truly reduce computation relative to standard Transformers when performing chain-of-thought reasoning modeled as dynamic programming.

Approach

Theoretically shows that efficient Transformers need hidden dimension growing with output length for general DP problems (via an information-bottleneck argument under log-precision), and identifies an m-locality condition under which Sparse Transformers achieve Õ(mL) complexity with constant hidden dimension, validated empirically on Arithmetic, LIS, and ED.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Linear Transformer instead of Standard TransformerArithmetic task · Arithmetic, Length 87, 221, 355, and 505GFLOPs: 0.027 vs 0.422; 0.266 vs 4.220; 0.426 vs 6.756; 0.605 vs 9.584Hurt
Use Sparse Transformer instead of Linear TransformerArithmetic task · Arithmetic, Length 87, 221, 355, and 505GFLOPs: 0.422 vs 0.106; 4.220 vs 1.055; 6.756 vs 1.690; 9.584 vs 2.399Helped
Increase problem sizeSparse Transformer and Linear Transformer · Arithmetic, ED, and LISrequired embedding dimensionHurt
Use fixed embedding dimensions of 128 or 256Standard Transformer · Arithmetic, ED, and LISaccuracyHelped
Increase locality by modifying ED to ED_LocalSparse Transformer and Linear Transformer · ED_Localrequired embedding dimensionHelped

Surprising findings

Limitations

Experimental setup

Datasets: Arithmetic expression evaluation (synthetic) Longest Increasing Subsequence (synthetic) Edit Distance (synthetic) ED_Local (synthetic, higher locality)

Benchmarks: Arithmetic LIS ED

Metrics: final answer accuracy minimum GFLOPs to reach 90% accuracy

Baselines: Standard Transformer Linear Transformer Sparse Transformer

Builds on: Feng et al. chain-of-thought dynamic programming theory Sparse Transformer Linear Transformer

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