SWGDN: Improving Gated Delta Networks with Sliding-Window Attention
Yuchen Song
Xi'an Jiaotong-Liverpool University
Published November 30, 2026 · on the feed December 3, 2026 · ▲ 4 · arXiv 2611.33257
The 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 than the baseline. 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, at the 340M-parameter scale. Experimental results demonstrate that SWGDN outperforms the original Delta-Rule baselines across multiple benchmarks.
The Brief
2:08A short podcast summary of the paper. Written and voiced by AI.
Transcript
SWGDN. Improving Gated Delta Networks with Sliding-Window Attention. By Yuchen Song, from Xi'an Jiaotong-Liverpool University. Published on the thirtieth of November.
Linear attention compresses everything that came before into a recurrent state of fixed size, which keeps the compute and memory cost of long sequences down. One useful way to look at that state comes from test-time regression. The state matrix behaves like a regression model learned online: keys are its inputs, values are its targets, and queries read predictions back out of it. Seen this way, how well the state learns depends on two things. One is the update rule. The other is how the key-value pairs it learns from are constructed in the first place.
Existing work has concentrated on the first of those, on how the state is updated and organized. The construction of the learning pairs has had much less attention, and that is the question taken up here.
The answer is Sliding-Window Gated DeltaNet, or SWGDN. Delta-Rule linear attention normally applies short convolutions before the state update. SWGDN replaces them with sliding-window attention, so the projected queries, keys and values are aggregated locally in a way that depends on their content, rather than through a fixed convolution.
The change is deliberately local. The mixing strategy can be dropped into any linear attention architecture based on the Delta Rule without altering its state update equations, and without altering its chunkwise parallel algorithms. Everything about how the state is updated stays exactly as it was. Only the pairs it is fed are built differently. The authors apply the strategy to two Delta-Rule variants, GDN2 and KDA, each at a scale of three hundred and forty million parameters.
Two kinds of result are reported. The first is a direct look at the learning pairs: with SWGDN, the key-value pairs used in consecutive updates are more similar to one another than they are in the baseline. The second is performance. Across multiple benchmarks, SWGDN outperforms the original Delta-Rule baselines it was built on.
The contribution reframes where improvement in linear attention can come from. If the state is a regression model learning online, then its training data matters as much as its learning rule, and a change to the data alone, leaving the rule untouched, is enough to beat the baselines.
More with an account
Listen to every day’s papers
Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.
Join free