Muir: Linear Attention with Sensitivity-Allocated Gating and Matched-Filter Readout

Tushaar Gangavarapu, Gil Tabak, Clemens JS Schaefer

arXiv:2611.08376 · 2026-11-08 공개 · arXiv · PDF

transformer linear-attention gated-deltanet perplexity-reduction feed-forward-network sensitivity-allocated-gating matched-filter-readout delta-rule-models

Abstract

Linear attention compresses context into a fixed-size key-value state for linear-time training and constant-memory inference. Gated delta-rule models decay this state and erase its prediction for an incoming key before writing a new value; Gated DeltaNet-2 (GDN-2) generalizes this with channel-wise decay and decoupled, full-rank erase and write gates. However, we show that state updates are far less sensitive to erasure than to writes: key activation and unit normalization concentrate key energy onto a sparse subset of channels, whereas value writes scale all channels, so the erase gate can be parameterized at lower rank. Furthermore, slow-decaying state rows accumulate much larger norms than fast rows, dominating unweighted readout and forcing stronger write-time erasure to suppress interference. Guided by this analysis, we introduce Muir, which fuses all gates into a sensitivity-allocated low-rank projection, re-weights state rows with a matched-filter readout gate, and reinvests the saved parameters in a wider feed-forward network. Because standard chunkwise algorithms become numerically unstable at the large chunk sizes needed to saturate wide matrix units, we design a parallel update for stable, efficient training. Across 166M-1.34B parameters, Muir lowers perplexity by 1.8-2.0% over GDN-2 and 2.5-3.6% over Transformer, raises commonsense accuracy by up to 1.9 points, and improves extractive recall over GDN-2. At 1.34B, Muir outperforms both baselines on multi-hop and multi-needle recall, extrapolates 2,560x from its 4K training length to 10M-token streams without perplexity drift, and maintains near-100% passkey retrieval to 1M tokens with static readout. Muir achieves these gains while matching GDN-2 throughput, reaching its 100B-token validation loss 1.2x faster, and training 2.7x faster than Transformer at 32K.

한국어 요약

한 줄 요약

Muir는 감도 분배 게이트와 매칭 필터 읽기 기법을 통해 GDN-2 대비 1.8–2.0%의 퍼플렉시티 감소와 2.7배 빠른 학습 속도를 달성한 선형 어텐션 모델이다.

핵심 기여도

핵심 아이디어

기존 GDN-2는 channel-wise decay와 decoupled erase/write gate를 통해 state 간섭을 억제했지만, key activation과 unit normalization이 key energy를 소수의 채널에 집중시키는 현상을 발견했다. 이는 erase gate가 write gate보다 훨씬 낮은 랭크로도 충분히 작동함을 의미한다. 또한, slow-decaying state row는 norm이 빠르게 증가해 readout 시 간섭을 유발하므로, matched-filter readout를 도입하여 row별 가중치를 조정함으로써 write-time erasure를 17% 감소시켰다. Muir는 이러한 통찰을 바탕으로 erase, decay, write gate를 sensitivity-allocated low-rank projection으로 통합하고, FFN 너비를 확장하여 파라미터 예산 내 성능을 극대화했다.

기술적 접근법

주요 결과

의의 및 한계

Muir는 GDN-2의 full-rank erase gate와 unweighted readout의 한계를 해결하여, 파라미터 예산 내 FFN 확장과 state 간섭 최소화를 동시에 달성했다. 특히, matched-filter readout는 state row norm 불균형을 줄이며 write-time erasure를 줄이는 데 기여했다. 그러나 static readout은 multi-lag adaptability에 제한이 있고, dynamic readout은 write rank를 줄여 single-needle retention을 저하시킨다. 또한, short-context에서는 Splash Attention이 Muir의 chunkwise kernel보다 빠르며, 이는 향후 Pallas kernel 최적화를 필요로 한다.

실용적 활용

Muir는 긴 텍스트 이해, 멀티홉 추론, in-context retrieval 등 대규모 언어 모델이 필요한 산업 분야에 적용 가능하다. 특히, 10M 토큰 길이의 스트리밍 처리와 1M 토큰까지의 정확한 passkey 검색 기능은 문서 검색, 대화 시스템, 실시간 번역 등에 유용하다.