atlas

Research map / Architectures and efficiency / Attention and transformers

MonarchAttention: Zero-Shot Conversion to Fast, Hardware-Aware Structured Attention

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Linear attention approximations · 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.

Proposes MonarchAttention, a zero-shot, hardware-efficient sub-quadratic attention substitute that projects softmax attention onto Monarch matrices via alternating maximization of the softmax variational objective.

Problem

Softmax attention has quadratic complexity in sequence length, and existing sub-quadratic alternatives either require retraining or fail to deliver wall-clock speedups on modern GPUs.

Approach

Approximate softmax attention by a Monarch matrix found by alternating maximization of the softmax variational objective (entropy-regularized linear objective) over block rank-one factors, which reduces cost to Theta(N sqrt(N) d) and maps onto batched matmuls on tensor cores and FlashAttention-like fused kernels.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace all DiT attention layers with MonarchAttention instead of NyströmformerDiT-XL · ImageNet image generationFID: 5.97 -> 2.82Helped
Replace all DiT attention layers with MonarchAttention instead of NyströmformerDiT-XL · ImageNet image generationsFID: 13.47 -> 5.09Helped
Replace BART encoder attention with zero-shot MonarchAttention instead of zero-shot NyströmformerBART-B · BookSum-chapters, 8192 tokensROUGE-1: 32.86 -> 34.60Helped
Fine-tune after swapping in MonarchAttentionBART-B · BookSum-chapters, 8192 tokensROUGE-1: 34.60 -> 35.38Helped
Replace attention in BART with MonarchAttention rather than softmaxBART-B · BookSum-chapters, 8192 tokensROUGE-1: 35.57 -> 34.60Hurt
Increase alternating-maximization steps from 0 to 1 (ablation)MonarchAttention · ViT-B, layer 0 head 5variational objective: 418 -> 937Helped
Increase alternating-maximization steps from 1 to 2 (ablation)MonarchAttention · ViT-B, layer 0 head 5variational objective: 937 -> 940Helped
Increase alternating-maximization steps from 2 to 3 (ablation)MonarchAttention · ViT-B, layer 0 head 5variational objective: 940 -> 940No clear effect
Replace RoBERTa layer 6 attention rather than an initial or final layer (ablation)RoBERTa-B · SQuAD1.1F1: 86.3 F1Hurt
Replace the fourth quarter rather than earlier quarters of DiT attention (ablation)DiT-XL · ImageNet image generationFID: 0.07, 0.21, 0.34, 1.35Hurt
Use MonarchAttention instead of softmax attentionTransformers · Attention runtime, N=256speedup: 1.4×Helped
Use MonarchAttention instead of FlashAttention-2Transformers · Attention runtime, N=4Kspeedup: 4.5×Helped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-1K ImageNet-21K SQuAD1.1 BookSum-chapters ImageNet Actor graph dataset

Benchmarks: ImageNet-1K SQuAD1.1 BookSum-chapters ImageNet FID (DiT generation) Actor node classification

Metrics: top-5 accuracy F1 ROUGE-1 ROUGE-L FID sFID runtime speed-up attention FLOPs

Baselines: linear-attention performer cosformer nystromformer FlashAttention-2

Builds on: FlashAttention-2 Monarch matrices Performer Nyströmformer cosFormer

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