SWGDN:滑窗注意力融入门控 Delta 线性注意力网络
One Token, Many Lessons: Sliding-Window Attention within Gated Delta Networks
AI 导读
研究者提出 Sliding-Window Gated DeltaNet(SWGDN),用滑动窗口注意力替换 Delta-Rule 线性注意力中的短卷积,对投影后的 query、key、value 做内容相关的局部聚合,改进状态更新所用的 key-value 学习对构造。
正文 · 原文
Abstract:Linear attention compresses historical context into a fixed-size recurrent state, reducing the computational and memory costs of long-sequence modeling. From the perspective of test-time regression (TTR), the state matrix can be viewed as an online-learned regression model, where keys and values serve as inputs and targets respectively, and queries are used to read from the model. From this perspective, the effectiveness of state learning depends not only on the update rule but also on how the key-value learning pairs used for state updates are constructed. While existing work has largely focused on how the state is updated and organized, we investigate how the learning pairs used for state updates are constructed. To this end, we propose Sliding-Window Gated DeltaNet (SWGDN), which replaces short convolutions in Delta-Rule linear attention with sliding-window attention to perform content-dependent local aggregation of projected queries, keys, and values. Our experiments show that SWGDN makes the key-value pairs used in consecutive updates more similar in both GDN2 and KDA. In SWGDN, carrying information from the same token across updates can help the recurrent state reinforce a previously learned association. The local mixing strategy can be incorporated into any Delta-Rule-based linear attention architecture without changing its state update equations or chunkwise parallel algorithms. We apply this strategy to two Delta-Rule variants, GDN2 and KDA, and experimental results demonstrate that SWGDN outperforms the original Delta-Rule baseline across multiple benchmarks.
| Subjects: | Machine Learning (cs.LG); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2611.33257 [cs.LG] |
| (or arXiv:2611.33257v1 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2611.33257 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Yuchen Song [view email]
[v1]
Tue, 24 Nov 2026 17:34:05 UTC (191 KB)
来源:arXiv cs.AI · arxiv.org