Research map / Architectures and efficiency / Attention and transformers
Improving Transformer Models by Reordering their Sublayers
Ofir Press, Noah A. Smith, Omer Levy
University of Washington · Allen Institute for AI · Meta
Read the paperPlace an idea next to itCheck your own paper ↗
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
- WikiText-103 leaderboard perplexity 17.96 · rank 32 of 123 papers
- text8 leaderboard bits per character 1.076 · rank 3 of 10 papers
- Enwik8 leaderboard bits per character 0.968 · rank 2 of 15 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| reorder sublayers into sandwich pattern (k=6) | Baevski and Auli transformer LM · WikiText-103 test | perplexity: 18.63 -> 17.96 | Improved |
| reorder sublayers into sandwich pattern (k=6), 5 seeds | Baevski and Auli transformer LM · WikiText-103 dev | perplexity: 18.65 -> 17.98 | Improved |
| sandwich reordering (k=7) | Books-domain transformer LM · Toronto Books Corpus test | perplexity: 11.89 -> 10.83 | Improved |
| sandwich reordering (k=5) | Adaptive Span model · enwik8 test | bits per character: 0.9752 -> 0.968 | Improved |
| sandwich reordering (k=3) | Adaptive Span model · text8 test | bits per character: 1.0802 -> 1.076 | No clear effect |
| sandwich reordering of encoder or decoder | Transformer-large · WMT14 En-De newstest14 | BLEU: baseline 28.74 vs 28.45-28.81 | No clear effect |
| extreme ordering s^16 f^16 instead of interleaved (ablation) | WikiText-103 LM · WikiText-103 dev | perplexity: 18.82 | No clear effect |
| random permutation of sublayers (16 s, 16 f) (ablation) | interleaved baseline · WikiText-103 dev | perplexity: 7 of 20 at least as good as baseline average 18.65; best 18.19 | Mixed |
| unbalanced number of self-attention and feedforward sublayers (ablation) | random transformer models · WikiText-103 dev | perplexity: 4 of 20 beat average baseline; best 18.12 | Mixed |
| sandwich coefficient k=14 or 15 instead of smaller k (ablation) | sandwich transformer · WikiText-103 dev | perplexity | Hurt |
| use sandwich ordering instead of interleaved (ablation) | transformer LM attention heads · WikiText-103 validation | average attention distance: Baseline-Baseline 1.081e-3, Sandwich-Sandwich 1.067e-3, Baseline-Sandwich 1.289e-3 | Mixed |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- Transformer XL — Transformer-XL: Attentive Language Models beyond a Fixed-Length Context (ACL 2019) · better on 1 of 1 shared result
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in sparse efficient transformers for long context
Do sparse and efficient long-context attention methods keep their quality and speed at larger model scale?
- Not tested on models larger than a few billion parameters. · 12 papers state it
- Training costs more or is less stable than a standard transformer. · 7 papers state it
- Quality still falls behind softmax attention or the teacher model. · 6 papers state it
Closest papers by meaning
- IOT: Instance-wise Layer Reordering for Transformer Structures (ICLR 2021 · similarity 0.91)
- Bigram Subnetworks: Mapping to Next Tokens in Transformer Language Models (NeurIPS 2025 · similarity 0.90)
- Transformer Layers as Painters (AAAI 2025 · similarity 0.89)
- Looking Beyond the Top-1: Transformers Determine Top Tokens in Order (ICML 2025 · similarity 0.89)
- Relaxed Recursive Transformers: Effective Parameter Sharing with Layer-wise LoRA (ICLR 2025 · similarity 0.89)
- Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks (ICML 2024 · similarity 0.89)
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.