Research map / Architectures and efficiency / Attention and transformers
Switch Attention: Towards Dynamic and Fine-grained Hybrid Transformers
Yusheng Zhao, Hourun Li, Bohan Wu, Yichun Yin, Lifeng Shang, Jingyang Yuan, Meng Zhang, Ming Zhang
Huawei · Peking University
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.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use dynamic routing instead of static hybrid SH (3:1) | hybrid attention (1.5B) · LongBench-E (average) | score: 35.2 -> 37.4 | Improved |
| use dynamic routing instead of static hybrid SH (3:1) | hybrid attention (1.5B) · In-context retrieval | score: 4.5% relative improvement | Improved |
| use Switch Attention instead of DuoAttention | hybrid attention (1.5B) · LongBench-E (average) | score: 33.9 -> 37.4 | Improved |
| use Switch Attention instead of full attention | FullAttn (1.5B) · LongBench-E (average) | score: 37.4 -> 37.4 | No clear effect |
| use Switch Attention instead of full attention | FullAttn (1.5B) · Commonsense reasoning | accuracy | No clear effect |
| add adaptive regularization (ablation) | Switch Attention · LongBench-E summarization (avg) | score: 24.9 -> 26.2 | Improved |
| add the NLL term in adaptive weight (ablation) | Switch Attention · LongBench-E summarization (avg) | score: 25.3 -> 26.2 | Improved |
| set alpha to 100 instead of 0 (ablation) | Switch Attention · LongBench-E summarization (avg) | score: 24.7 -> 26.2 | Improved |
| use epsilon 0.1 instead of 0.2 or 0.01 (ablation) | Switch Attention · LongBench-E summarization (avg) | score: 25.8 / 25.1 -> 26.2 | Improved |
| use Switch Attention instead of full attention | FullAttn (3B) · LongBench-E (average) | score: 37.2 -> 36.6 | Hurt |
| use Switch Attention instead of SH (3:1) | hybrid attention · NIAH | retrieval accuracy: 0.95 -> 1.00 | Improved |
| use Switch Attention instead of full attention | FullAttn (32K) · KV-cache access at 32K | tokens accessed: approximately 4.4x reduction (standard); up to 12x (simple) | Improved |
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.
- DuoAttention — DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Heads (ICLR 2025) · 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 this paper states
- “Experiments cover models only up to 3B parameters, so effectiveness at larger scales is unverified.” → Not tested on models larger than a few billion parameters. (an open problem in sparse efficient transformers for long context)
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
- Rethinking Attention: Exploring Shallow Feed-Forward Neural Networks as an Alternative to Attention Layers in Transformers (Student Abstract) (AAAI 2024 · similarity 0.89)
- SwitchHead: Accelerating Transformers with Mixture-of-Experts Attention (NeurIPS 2024 · similarity 0.89)
- On-the-Fly Adaptive Distillation of Transformer to Dual-State Linear Attention for Long-Context LLM Serving (ICML 2025 · similarity 0.88)
- Token Statistics Transformer: Linear-Time Attention via Variational Rate Reduction (ICLR 2025 · similarity 0.88)
- Transformers Learn Nonlinear Features In Context: Nonconvex Mean-field Dynamics on the Attention Landscape (ICML 2024 · similarity 0.88)
- Viewing Transformers Through the Lens of Long Convolutions Layers (ICML 2024 · similarity 0.88)
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.