Muir:带有灵敏度分配门控和匹配滤波读出的线性注意力
Muir: Linear Attention with Sensitivity-Allocated Gating and Matched-Filter Readout
AI总结:
该研究提出Muir模型,通过灵敏度分配低秩投影、匹配滤波读出门等改进线性注意力,在1.66亿至13.4亿参数下,降低困惑度、提升准确率与召回率,训练推理效率优于Transformer和GDN-2。
摘要:
线性注意力将上下文压缩为固定大小的键值状态,以实现线性时间训练和恒定内存推理。门控δ规则模型会衰减该状态并在写入新值前擦除传入键的预测;门控DeltaNet-2(GDN-2)通过通道级衰减以及解耦的满秩擦除和写入门对其进行泛化。然而,我们发现状态更新对擦除的敏感性远低于对写入的敏感性:键激活和单元归一化将键能量集中在稀疏的通道子集上,而值写入会缩放所有通道,因此擦除门可在较低秩下参数化。此外,慢衰减状态行的范数比快衰减行大得多,主导了未加权读出,并迫使更强的写入时擦除以抑制干扰。基于此分析,我们引入Muir,它将所有门融合为灵敏度分配的低秩投影,用匹配滤波读出门重新加权状态行,并将节省的参数投入更宽的前馈网络。由于标准分块算法在饱和宽矩阵单元所需的大块大小下会数值不稳定,我们设计了并行更新以实现稳定高效的训练。在1.66亿至13.4亿参数范围内,Muir的困惑度比GDN-2低1.8-2.0%,比Transformer低2.5-3.6%,常识准确率最高提升1.9个百分点,抽取式召回率优于GDN-2。在13.4亿参数时,Muir在多跳和多需求召回上优于两个基线,从4K训练长度外推到1000万token流时无困惑度漂移,在静态读出下对100万token保持近100%的密钥检索。Muir在达到1000亿token验证损失的同时,吞吐量与GDN-2相当,速度比Transformer快1.2倍,在32K时训练速度快2.7倍。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。