atlas

Research map / Architectures and efficiency / Attention and transformers

Two Heads are Better than One: Simulating Large Transformers with Small Ones

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Sparse efficient transformers for long context · 1 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 a large transformer with input length N can be simulated by O((N/M)^2) small transformers of input length M (tight in the worst case), and by only O(N/M) under average-case, sliding-window, or attention-sink assumptions.

Problem

Long input sequences make self-attention quadratic, while hardware is optimized for short sequences; the question is whether large transformers can be simulated using multiple small transformers and how many calls are needed.

Approach

Treats small transformers as oracles and decomposes the N x N attention into M x M blocks, using synthetic tokens (constant-valued normalizers) to recover block-wise softmax numerators and denominators; under bounded-score or random-permutation assumptions, only O(N/M) oracle calls are needed, and sliding-window/attention-sink structure also yields linear calls.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use small transformers to simulate a large transformer on arbitrary inputsLarge transformer with L layers and H heads · Arbitrary inputs, standard attentionoracle calls: O((\frac{N}{M})^2\cdot\frac{HL}{H'L'})Helped
Restrict both transformers to causal maskingSmall-transformer simulation · Arbitrary inputs, causal maskingoracle calls: O((\frac{N}{M})^2\cdot\frac{HL}{H'L'})No clear effect
Assume bounded attention scores and bounded contribution magnitudesSmall-transformer simulation · Inputs satisfying the stated boundedness conditionsoracle calls: O((\frac{N}{M})^2\cdot\frac{HL}{H'L'}) -> O(\frac{N}{M}\cdot \frac{HL}{H'L'})Helped
Use constant-size sliding-window maskingSmall-transformer simulation · Constant-size sliding windoworacle calls: O((\frac{N}{M})^2\cdot\frac{HL}{H'L'}) -> O(\frac{N}{M}\cdot\frac{HL}{H'L'})Helped
Add constant-size attention sinks to sliding-window attentionSliding-window small-transformer simulation · Constant-size sliding window with constant-size attention sinksoracle calls: O(\frac{N}{M}\cdot\frac{HL}{H'L'})No clear effect
Use N/M small transformers to simulate a large transformer in the worst caseSingle-head, single-layer transformers · Worst-case inputsexpressive powerHurt

Surprising findings

Limitations

Experimental setup

Baselines: Hierarchical Transformers Reformer Longformer Performer Mamba

Builds on: StreamingLLM Hierarchical Transformers

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