Systolic Linear Attention(SLA):面向TPU的门控Delta注意力协同设计
Systolic Linear Attention: Co-Designing Tile-Grouped Gated Delta Attention for TPUs
研究提出Systolic Linear Attention(SLA),围绕TPU的256×256脉动矩阵单元重构门控Delta注意力,将key维度拓宽至256并在分组value head间共享key与标量写门β_t,把衰减门分为四个64通道tile。
arXiv:2611.06828v2 Announce Type: replace Abstract: Gated-delta linear attention layers such as Gated DeltaNet (GDN), Kimi Delta Attention (KDA), and GDN-2 are tuned for GPUs, where small tensor-core tiles and fast vector registers make unpacked heads, per-channel decay rescaling, and per-value-head chunk solves cheap. On Google TPUs, which concentrate compute in wide $256 \times 256$ systolic matrix units backed by a slower vector unit, direct ports leave half of each matrix tile padded (for $d_k = 128$ heads) and repeat decay rescaling and chunk solves across every value head. We present \textbf{Systolic Linear Attention (SLA)}, which reshapes gated delta attention around the matrix unit by widening keys to $256$ and sharing both keys and scalar write gates $\beta_t$ across grouped value heads ($R\times$ fewer chunk solves), grouping decay gates into four $64$-channel tiles, and fusing exact FP32 block-doubling chunk inversion and its backward reuse inside one on-chip kernel. With exact chunk inversion on TPU v7x, $2$-stage \texttt{SLA-R4} (four value heads per key head) runs $2.1\times$--$2.6\times$ faster than open-source MaxText KDA and $1.4\times$--$2.4\times$ faster than open-source Tokamax KDA, while using $49\%$--$61\%$ less temporary high-bandwidth memory (HBM). Across a $2{,}048$-chip TPU v7x pre-training study of sparse Mixture-of-Experts (MoE) models from $6.5\text{B}$ to $63.1\text{B}$ nominal parameters, SLA trains $11\%$--$24\%$ faster than MaxText KDA ($4\%$--$21\%$ faster than Tokamax KDA), matches KDA perplexity on three paired seeds at $12.5\text{B}$, and stays within $3\%$ at other scales.
来源:arXiv (AI + Vision + Imaging) · arxiv.org