atlas

Research map / Architectures and efficiency / Attention and transformers

Viewing Transformers Through the Lens of Long Convolutions Layers

ICML 2024 · Architectures and efficiency › Attention and transformers · approach: Sparse efficient transformers for long context

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 LaS-Attention, a transformer attention variant that adds an exponentially locally decaying mask and row-wise average-pool smoothing to attention, improving Long Range Arena performance without extra parameters.

Problem

Transformers perform poorly on long-range tasks (e.g., Long Range Arena) compared with state-space and global convolution layers; the paper asks which inductive biases explain this gap.

Approach

Identify smoothness and exponential locality as key inductive biases of long-range layers and inject them into attention: an exponentially decaying distance mask (ELD) multiplies attention scores per head, and 1-D average pooling over each attention row smooths them, adding no learnable parameters.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add LaS smoothness and locality to attentionTransformer · LRA benchmarkaverage accuracy: +12.04%Helped
Use LaS-Chunk attention with blocks of size 128Transformer · LRA benchmarkaverage accuracy: +11.34%Helped
Add local and smooth operatorsTransformer · sMNISTaccuracy: 98.90% -> 99.18%Helped
Add local and smooth operatorsTransformer · pMNISTaccuracy: 97.90% -> 98.05%Helped
Add smoothness operator (ablation)LaS-Chunk · LRA ListOps, Text, Retrieval, and Imageaccuracy: 0.08%, 3.25%, 3.2%, and 3.52%Helped
Add ELD locality operator (ablation)LaS-Chunk · LRA ListOps, Text, Retrieval, and Imageaccuracy: 5.13%, 8.46%, 2.42%, and 5.42%Helped
Replace ELD with Alibi (ablation)LaS-Chunk · LRA ListOps, Text, Retrieval, and ImageaccuracyHurt
Narrow the context window by decreasing chunk size (ablation)LaS transformer · LRA Image, Text, ListOps, and PathfinderaccuracyHurt
Increase the number of training samples (ablation)LaS transformer · LRA Image, Text, ListOps, and PathfinderaccuracyHelped
Add LaS inductive biasVanilla Attention · SelectR2 score: 0.971 -> 0.783Hurt
Add LaS inductive biasVanilla Attention · CumMax and CumSumR2 score: 1.0 -> 0.995; 1.0 -> 0.997No clear effect
Add LaS attentionVanilla Attention · Text8bits per byte: 1.3557 -> 1.3332Helped

Surprising findings

Limitations

Experimental setup

Datasets: Long Range Arena sequential MNIST permuted MNIST Text8 Enwik8 Wikitext-103 Atomic tasks (Select, CumSum, CumMax)

Benchmarks: Long Range Arena sequential MNIST permuted MNIST Text8 Enwik8 Atomic tasks

Metrics: accuracy bits per byte R2 score training speed peak memory

Baselines: Transformer Reformer Linformer BigBird Performer Luna-256 S4 SGConv MEGA LSTM

Builds on: Alibi S4 Mega SGConv Luna

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