Appearance
The wall is the same, the exits aren't
Every efficient-attention paper starts from the same bill. Self-attention costs O(N²) in tokens per layer, so doubling context length in a language model or doubling resolution in a ViT quadruples the attention term. Two recent papers pay that bill in different currencies.
Muir keeps the linear-attention shape, a fixed-size key-value state updated per token, and attacks the update rule itself. SSoG throws out the dot product and replaces it with a learned mixture of Gaussian kernels that factor along spatial axes.
One targets sequence length. One targets image resolution. Both cut the asymptotic cost by changing what the operator computes, rather than by sparsifying which entries get attended to.
That distinction matters. Sparsity tricks keep the quadratic form and skip entries. These two change the math so the quadratic term never appears in the first place.
Muir starts with an audit of where the state is sensitive
Linear attention compresses context into a fixed-size state. The delta rule makes that state a running prediction: decay a little, erase what the model would have predicted for the incoming key, then write the new value.
Gated DeltaNet-2 generalized this with channel-wise decay and decoupled, full-rank erase and write gates. The Muir authors asked a narrower question. Does erasure need the same rank as the write?
No, and the reason is mechanical. Key activations pass through unit normalization, which concentrates key energy onto a sparse subset of channels. Value writes scale every channel. The erase signal, computed from the key, lives in a much smaller subspace than the write signal, so parameterizing the erase gate at lower rank loses little.
There's a second effect that costs more. Slow-decaying state rows accumulate much larger norms than fast rows. In an unweighted readout, those fat rows dominate the output, which forces the model to erase harder at write time just to keep interference down. The model pays a tax on every write because the readout has no idea which rows to trust.
Key numbers from Muir, 166M to 1.34B parameters
- 1.8-2.0% lower perplexity than GDN-2 at matched throughput
- 2.5-3.6% lower perplexity than a Transformer baseline
- up to 1.9 points better commonsense accuracy
- 2,560x extrapolation: 4K training length, 10M-token streams, no perplexity drift
- near-100% passkey retrieval to 1M tokens with a static readout
- 1.2x faster to GDN-2's 100B-token validation loss, 2.7x faster training than Transformer at 32K
Those extrapolation numbers deserve a translation. 2,560x means you train on 4K-token sequences and run on 10M-token streams without the perplexity curve sliding. For a document-retrieval service, that's the difference between chunking a contract into 40 pieces and feeding it whole.
Three changes on one parameter budget
Muir makes three moves, and they're coupled.
The gates get fused into a single sensitivity-allocated low-rank projection. Instead of giving erase and write the same rank, the projection allocates rank where the state is sensitive, which is mostly on the write side.
The readout becomes a matched filter. In signal processing, a matched filter weights each observation by how much signal it carries relative to noise. Here, each state row gets a gate that scales its contribution by how reliable that row is, so slow rows with large norms stop steamrolling the output. Interference gets handled at read time instead of write time.
The saved parameters go into a wider feed-forward network. This is the part that gets dropped from casual summaries. Muir matches GDN-2's throughput at equal parameter count; the difference is where the budget goes, with the FFN absorbing the allowance the gates gave back.
Quick Take: Muir's gains come from noticing that erase gates need less rank than write gates, and that readout, not write-time erasure, is the right place to fix row-norm imbalance.
The chunkwise algorithm falls apart at the chunk sizes you want
Chunkwise parallel training is how linear attention gets tensor-core utilization: process a chunk in parallel, carry the state across chunks. Muir wants wide matrix units, which means large chunks.
At those chunk sizes, the standard chunkwise formulation loses numerical stability. The paper designs a parallel update that holds up and keeps the training loop efficient.
If you've trained linear-attention models before, the row-norm imbalance is familiar. The state keeps a few loud rows and the rest are close to noise. Muir's readout gate is the first fix I've seen that addresses it at the read side instead of paying for it on every write.
SSoG swaps the dot product for separable Gaussians
A ViT token grid is two-dimensional. Dense attention treats every token pair identically: compute a dot-product similarity, then mix values by those weights.
SSoG replaces that with a learned mixture of Gaussian kernels, factored along the two spatial axes. A 2D Gaussian with diagonal covariance splits into a row kernel and a column kernel. Sum several of them and you get a spatial operator applied as two 1D passes instead of one N×N matrix. Cost per layer drops from O(N²) to subquadratic.
The parameter story matters as much as the FLOP story. In the matched discrete setting, SSoG beats dense attention while using 8.8-16.6% fewer parameters, with depth and training recipe held fixed. Fewer parameters and higher accuracy at the same depth means the operator is doing the work, not extra capacity.
Why the Lipschitz bound is what the ODE version buys
For a continuous-depth network, the layer is an ODE: dh/dt = f(h, t). Picard-Lindelöf says a unique solution exists on an interval when f is Lipschitz continuous in h.
Dot-product attention's Lipschitz constant is unbounded outside a compact input domain. Logits can blow up as norms grow. In a discrete transformer that's a training headache. In an ODE solver it becomes a correctness problem: the solver takes a step where the vector field changes too fast, and the integration either fails or returns nonsense.
SSoG with fixed kernels is globally Lipschitz continuous. That gives the continuous-depth variant a unique solution across the whole integration interval, a global guarantee that dense-attention counterparts don't have in general.
The "with fixed kernels" clause is doing real work here. Make the kernel parameters input-dependent and you're back to a bounded-domain argument. You keep the cheaper operator and lose the theorem.
What the numbers show
All results below are CIFAR-100 on a matched comparison, with depth and training recipe fixed across both arms.
| Setting | Resolution | Top-1 vs dense | Throughput vs dense | Peak memory |
|---|---|---|---|---|
| Discrete Transformer | 224x224 | +2.2 to +4.1 pts | not reported | not reported |
| Looped Transformer | 224x224 | +5.4 to +8.1 pts | not reported | not reported |
| Neural ODE | 1024x1024 | not reported | up to +154% | over 60% lower |
| Discrete and looped | 1024x1024 | not reported | over +30% | not reported |
A 4.1-point Top-1 gap in a matched setting is large. CIFAR-100 at 224x224 is also a small dataset, and gains like this usually shrink on ImageNet. Treat the accuracy numbers as directional and the throughput numbers as the stronger signal, because throughput gaps widen with resolution in exactly the way the asymptotics predict. At 1024x1024 the continuous-depth variant runs up to 154% faster with over 60% lower peak memory, and the margin grows from there.
Common pitfalls
Cutting erase-gate rank without touching anything else. Shrink erase rank to a quarter of write rank and leave the rest at GDN-2 defaults, and you've removed the mechanism that suppressed interference from fat slow rows. Ship the lower rank and the matched-filter readout in the same change set.
Running the reference chunkwise kernel at large chunk sizes. The instabilities the paper fixes show up as loss spikes that look like bad data. They aren't. If your loss goes sideways at chunk 512 and everything else is clean, suspect the scan, not the dataset.
Reading 2,560x as a general long-context claim. The 10M-token evaluation covers perplexity and passkey retrieval with a static readout. Nothing in the paper shows the model deciding at inference time which slice of a 10M-token stream matters. That's a harder task and it isn't measured.
Making SSoG's kernels input-dependent and keeping the ODE claim. The global Lipschitz property comes from fixed kernels. Dynamic kernels might still train fine, but the uniqueness argument no longer applies and you'd need to re-prove it for your variant.
Benchmarking throughput at 224x224 and extrapolating. The cost curves diverge with resolution, so the gap at your deployment size is the only number that matters. At small resolutions the parameter overhead can eat most of the win.
Where the two would combine
| Dimension | Muir | SSoG |
|---|---|---|
| Bottleneck attacked | sequence length and state size | per-layer token cost at high resolution |
| Component replaced | delta-rule state update and readout | dot-product attention kernel |
| Asymptotic cost | linear time, constant memory at inference | subquadratic per layer, two 1D passes |
| Extra engineering | stable parallel update for large chunks | none reported beyond standard training |
| Evidence base | 166M-1.34B LM: perplexity, commonsense, recall | ViT at 224x224, inference to 1024x1024 |
| Assumption that can break | readout gate tuned jointly with decay rates | tokens sit on a regular grid |
A video transformer needs both properties at once, long temporal context and high spatial resolution. Nothing in either paper tests the combination. The two stability stories also don't overlap: Muir's problem is numerics inside the chunk scan, SSoG's is the grid assumption behind axis factorization. Stack them and you inherit both failure modes with no shared fix.
One Thing to Remember
The analysis is the transferable artifact, not the operator. Muir is worth reading for the finding that state updates are asymmetric in sensitivity, with erasure needing far less rank than writing. SSoG is worth reading for the finding that fixing your kernels buys a Lipschitz bound, and that the bound is what makes continuous-depth training well-posed. If you're designing your own cheap attention variant, start from where your state or kernel is sensitive, not from which sparsity pattern looks cheapest on a FLOP chart.
The Bottom Line for Your Stack
If you already have a GDN-2 long-context baseline in training, port Muir's gate allocation and matched-filter readout before trying anything more exotic. Same throughput, 1.8-2.0% lower perplexity, and the gains hold at 1M-token retrieval where most linear-attention proposals quietly fall apart.
If you're running a continuous-depth or weight-shared ViT above 512x512, SSoG is the better bet. Up to 154% higher throughput, over 60% lower peak memory at 1024x1024, and a Lipschitz guarantee that keeps fixed-step ODE solvers from wandering off.
If your workload needs both at once, prototype at reduced resolution and reduced context before committing. Neither paper tests composition, and the two failure modes are unrelated. Budget a week for chunk-size stability testing and another for checking whether your token layout is regular enough for axis factorization to be valid.
One thing to watch: the SSoG results are CIFAR-100 only. An ImageNet run at 224x224 with a modern recipe would tell you whether the 2-4 point gains survive scale, and that's the number that decides whether this ships in production ViTs.