🤗 Upvotes: 103 | cs.CL, cs.LG Authors: Xichong Zhang, Xixuan Hao, Zhichen Liu, Le Zhou, Zeyu Zhang, Boyu Chen, Mingfei Lu, Zehao Lin, Bo Tang, Yonggang Zhang, Linyun Liu, Feiyu Xiong, Jianlin Su, Zhiyu Li Title: Stable Gated DeltaNet-2: Understanding and Mitigating Recurrent State Instability Arxiv: http://arxiv.org/abs/2611.34051v1 Abstract: Linear attention offers an efficient solution for long-sequence modeling via linear complexity and fixed-size recurrent states. Gated DeltaNet-2 (GDN-2) introduces independent channel-wise control over erasure and writing, enhancing state-update expressiveness and in-context retrieval, yet it suffers from training failures during long-context training. We trace these failures to the asymmetry between reading and modification directions during erasure, which yields non-normal erase operators whose directional gains accumulate across tokens, triggering exponential state growth even without new writes. To resolve this, we propose \model{}, employing symmetric erasure to ensure non-expansive state propagation and decay-regulated residual writing to preserve writing flexibility. Theoretically, we establish an $O(\sqrt{T})$ upper bound on recurrent state growth while retaining chunkwise parallel computation. Experiments on ~1.6B parameter models show that \model{} achieves stable training alongside improved long-context retrieval. Compared to GDN-2, it boosts the 128K average RULER score by 6.80 points in the recurrent setting and average accuracy across nine downstream tasks by 0.62 points in the hybrid setting.
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
Evan: Welcome to Daily Paper Cast. Evan: Today, we're diving into a paper from Hugging Face's daily paper list of November 27, 2026. It has received 103 upvotes. Ashley: The title of the paper is 'Stable Gated DeltaNet-2: Understanding and Mitigating Recurrent State Instability'. Evan: The first two authors listed are Xichong Zhang from MemTensor and USTC, and Xixuan Hao from HKUST(GZ). Ashley: And the corresponding author is Yonggang Zhang from HKUST.
Evan: Alright, Ashley, can you give us some background on the growing demand for long-context understanding and sequence modeling? Ashley: Certainly, Evan. As language models increasingly tackle tasks involving long-context understanding and extended generation, the computational and memory bottlenecks of traditional softmax attention become more pronounced. Large language models, such as those developed recently, face significant challenges when it comes to efficiently processing and retaining large amounts of sequential data.
Evan: How have researchers approached these bottlenecks so far? Ashley: One promising solution has been linear attention mechanisms, which simplify the process by compressing historical information into a fixed-size recurrent state. This approach reduces the complexity significantly and supports constant-time autoregressive decoding. Building on this idea, gating mechanisms and delta-rule-based updates have enhanced the expressiveness of these recurrent states, allowing for more precise control over what information is retained and modified during training.
Evan: That brings us to Gated DeltaNet-2. What advancements does it offer over previous models? Ashley: Gated DeltaNet-2, or GDN-2, improves upon its predecessors by introducing independent channel-wise controls for erasure and writing. This refinement provides greater flexibility in how information is updated within the recurrent state, enhancing in-context retrieval capabilities. Evan: There seems to be a catch, though. The paper mentions training failures with GDN-2 during long-context training.
Can you explain this instability issue? Ashley: Yes, Evan, the instability comes from an asymmetry between how the model reads and modifies information during erasure. In simpler terms, GDN-2 employs non-normal erase operators, meaning these operations can amplify certain state directions. This can cause the recurrent state to grow exponentially even if no new information is being written, eventually leading to numerical overflow and training failures. Evan: How do the authors propose to resolve this instability?
Ashley: To tackle this, the authors introduce Stable GDN-2. The key here is symmetric erasure, which ensures non-expansive state propagation. This approach aligns the reading and modification directions during erasure, preventing the exponential growth in the recurrent state. Additionally, they employ decay-regulated residual writing to maintain flexibility while controlling the overall energy introduced into the system. This balanced mechanism helps in preserving stable training over extended contexts. Evan: What are the main contributions of Stable GDN-2, then?
Ashley: The authors contribute in several ways. Firstly, they provide a thorough understanding of why recurrent state instability occurs in GDN-2. Next, they propose the Stable GDN-2 model itself, ensuring stable state propagation with symmetric erasure and decay-regulated residual writing. Finally, they validate their model through extensive experiments, showing improved performance in long-context retrieval and downstream tasks, and maintaining competitive language modeling quality. Evan: That wraps up the Introduction section of the paper.
Evan: Let’s dive into the methods outlined in the paper. What does the Stable GDN-2 architecture look like? Ashley: Stable GDN-2 builds upon the Gated DeltaNet-2 architecture by incorporating symmetric erasure and decay-regulated residual writing. Essentially, this approach aims to control the recurrent state amplification while retaining channel-wise gating for more precise updates. Evan: Can you explain how symmetric erasure works? Ashley: Sure, Evan. Symmetric erasure addresses the instability caused by asymmetric directions during erasure.
Instead of applying the erase gate directly to the key vector, the method splits the erase gate into two square-root factors and applies one to each key factor. This ensures that the reading and modification directions are aligned, thus preventing the amplification of the recurrent state. Evan: And how does decay-regulated residual writing come into play? Ashley: Decay-regulated residual writing supplements the main write path of the recurrent state while controlling the energy introduced by the residual path. Specifically, this mechanism scales the residual by the square root of the complementary fraction of decay.
So, the stronger the decay, the more writing it allows, and vice versa. Evan: That seems like a vital addition. How does Stable GDN-2 handle training and computational efficiency? Ashley: The design maintains chunkwise parallel computation. This means that instead of processing the entire sequence length, the model breaks it into manageable chunks, allowing for efficient parallel computation within each chunk. Furthermore, while the residual path adds more complexity, it still operates within the efficient framework of Diagonal-Plus-Low-Rank (DPLR) transitions.
Evan: How does the model guarantee that the recurrent state won't grow uncontrollably during training? Ashley: The authors provide a theoretical guarantee for recurrent state stabilization. By using symmetric erasure, they ensure that the state transitions are non-expansive—which means the recurrent state's energy can't grow without new writes. Additionally, decay regulation tightens this control, providing an upper bound on the recurrent state growth. They established an upper bound of O(√T), where T is the sequence length.
Evan: Let’s talk about how the authors validated Stable GDN-2. What datasets did they use and why? Ashley: The authors used the Prolong dataset for pretraining. This corpus combines segments of up to 512,000 tokens, retokenized using the TinyLlama tokenizer. The dataset provides a robust context for examining long-context retrieval capabilities because it merges sequences of varying lengths into uniform 64,000-token sequences.
This setup allows them to test recurrent state propagation over significantly extended contexts. Evan: What were the main baselines and evaluation metrics? Ashley: The authors compared Stable GDN-2 with several existing models, including Gated DeltaNet-2 (GDN-2), Kimi Delta Attention (KDA), D-Clip, and β-Guard. As for evaluation, they looked at three primary areas: downstream task performance, language modeling quality, and long-context retrieval capabilities.
For downstream tasks, they assessed zero-shot performance across nine common-sense reasoning tasks. Language modeling quality was measured using perplexity on WikiText and LAMBADA datasets. Finally, long-context retrieval was evaluated using the RULER benchmark, which tests the ability to retrieve and utilize historical information at different context lengths. Evan: Quite comprehensive. What were the key findings in terms of performance? Ashley: In the recurrent setting, Stable GDN-2 outperformed other models, achieving the highest average RULER scores across 32,000, 64,000, and 128,000 token context lengths.
This indicates strong long-context retrieval capabilities. For downstream tasks, it matched GDN-2's average accuracy of 50.39%, outperforming other stabilization methods. Additionally, it demonstrated competitive perplexity scores on the WikiText dataset, though some trade-offs were evident compared to KDA, indicating different stabilization designs might emphasize distinct modeling aspects. Evan: How did Stable GDN-2 perform in the hybrid architecture setting?
Ashley: Stable GDN-2 achieved the highest average downstream accuracy in the hybrid setting, at 50.53%, slightly improving over GDN-2 and other baselines. Similar trends in perplexity were noted, with our method displaying small differences compared to others. Importantly, its long-context retrieval remained strong, with particularly pronounced advantages in tasks necessitating tracking variable states over extended contexts. Evan: Did the authors perform any ablation studies to understand the impact of different components?
Ashley: Indeed, they did. The ablation studies focused on removing residual writing or decay regulation individually to examine their contributions. Removing residual writing led to reduced performance across downstream tasks and long-context retrieval, demonstrating its importance in recovering writing capacity suppressed by symmetric erasure. On the other hand, removing decay regulation resulted in significant degradation in long-context retrieval performance, highlighting the necessity of controlling residual write gains.
Evan: To wrap up this section, it's clear that Stable GDN-2 provides a robust solution to recurrent state instability with balanced mechanisms for erasure and writing. The proposed methods ensure stable training and competitive performance across various benchmarks. Ashley: Indeed, Evan. That's the end of the Method section. Evan: Let's dive into the experiments and results section of the paper. Ashley, what experimental setup did the authors use to validate Stable GDN-2?
Ashley: The authors used the Prolong dataset for pretraining, which is designed for long-context sequence modeling. This dataset includes sequences of up to 512,000 tokens, and it was retokenized with the TinyLlama tokenizer. They repacked it into uniform sequences of 64,000 tokens for training, providing a consistent and robust context to test recurrent state propagation over significantly extended lengths. Evan: That sounds thorough. How did they compare Stable GDN-2 against other models?
Ashley: The authors conducted extensive comparisons with several baselines, including the original Gated DeltaNet-2, Kimi Delta Attention, D-Clip, and β-Guard. Each of these models has different mechanisms for stabilizing or enhancing recurrent state updates, making them suitable benchmarks for evaluating the effectiveness of Stable GDN-2. Evan: And what evaluation metrics did they use? Ashley: They focused on three primary areas: downstream task performance, language modeling quality, and long-context retrieval capabilities.
Downstream tasks were evaluated using zero-shot performance across nine different common-sense reasoning tasks, like PIQA and HellaSwag. Language modeling quality involved measuring perplexity on the WikiText and LAMBADA datasets. Long-context retrieval capabilities were assessed using the RULER benchmark, which examines the model's ability to utilize historical information over extended contexts of various lengths. Evan: Let's start with the recurrent model setting. How did Stable GDN-2 perform here?
Ashley: In the recurrent setting, Stable GDN-2 excelled in long-context retrieval. It achieved the highest average RULER scores across context lengths of 32,000, 64,000, and 128,000 tokens. For example, at the 128,000-token length, it scored 11.62, significantly outperforming GDN-2's score of 4.82 and D-Clip's 7.02. Evan: That's impressive. How about the downstream task performance?
Ashley: Stable GDN-2 matched GDN-2's average accuracy of 50.39% for downstream tasks, which was the highest among the models tested. This indicates that Stable GDN-2 retains the strong performance characteristics of GDN-2 while offering enhanced stability. Evan: What about the language modeling quality, especially on the WikiText dataset? Ashley: Stable GDN-2 demonstrated competitive perplexity scores across various context windows of the WikiText dataset, although it didn't always outperform KDA in this metric.
Its scores were lower than GDN-2, D-Clip, and β-Guard across context windows from 8,000 to 64,000 tokens, suggesting nuanced trade-offs in stabilization designs. Evan: And how did it perform in the hybrid architecture? Ashley: In the hybrid setting, Stable GDN-2 continued to show strong performance. It achieved the highest average downstream accuracy at 50.53%, slightly improving over GDN-2 and other baselines. Its long-context retrieval capabilities remained competitive, with particularly pronounced advantages in tasks requiring tracking variable states over extended contexts, such as Frequent-Word Extraction and Variable Tracking.
Evan: Did the authors conduct any ablation studies to dissect the contributions of different components of their model? Ashley: Yes, they did. The ablation studies examined the impact of removing residual writing and decay regulation individually. Removing residual writing led to reduced performance across both downstream tasks and long-context retrieval, confirming its role in recovering the suppressed writing capacity. In contrast, removing decay regulation resulted in significant declines in long-context retrieval performance, underscoring its importance in controlling the residual write gains.
Evan: That's quite revealing. So, stable state propagation combined with effective write mechanisms are critical for this model's performance. Ashley: Indeed. Stable GDN-2's performance across a variety of tasks and benchmarks confirms its robustness and stability. It effectively addresses the recurrent state instability seen in its predecessor while maintaining competitive language modeling quality. Evan: Alright, that wraps up the experiments and results section of the paper. Evan: Now, let's delve into the related work discussed in the paper.
Ashley, can you give us an overview? Ashley: Evan. The paper places Stable GDN-2 within the context of prior developments in linear attention mechanisms and delta-rule models. These models have significantly evolved to improve sequence modeling through more expressive gating mechanisms and state updates. Evan: Let's start with the advancements in linear attention. What are the key contributions in this area? Ashley: Linear attention has transformed how we approach sequence modeling.
The basic formulation uses kernel feature maps to summarize the prefix in a recurrent state of key–value outer products. This allows for efficient retrieval of information, independent of context length. An important step was interpreting these recurrences as fast-weight programmers, which motivated the use of delta-rule updates to selectively revise existing associations. Evan: What about gated mechanisms and delta rules? Ashley: Gated mechanisms and delta rules significantly enhance the expressiveness of these recurrent states.
The introduction of gating provided more precise control over what information is retained and modified. For example, gated linear attention transformers prioritized hardware-efficient training by implementing gating at each layer. This setup ensures that only the most relevant information is maintained through a sequence. Evan: And it seems this approach has roots in older attempts to address long-range dependencies? Ashley: Exactly. Long-range learning challenges have been recognized since the early days of neural networks.
Techniques like fixed exponential decay in RetNet and input-dependent per-channel decay in gated linear attention models are among the methods devised to manage how long the recurrent state retains its contents. Evan: How do other contemporary models compare in terms of recurrent state updates and stability? Ashley: Other models explore different routes to enhance stability and memory capacity. For instance, RetNet and Gated DeltaNet introduced various forms of decayed states management and discrete memory sections.
Kimi Delta Attention refined the decay to a diagonal matrix to provide finer control. Meanwhile, models like DeltaProduct and RWKV-7 pursued more expressive transitions through different mechanisms, each contributing uniquely to the stability and expressiveness of recurrent memory. Evan: So, where does Stable GDN-2 fit in this landscape? Ashley: Stable GDN-2 addresses recurrent state amplification, a fundamental source of instability identified in GDN-2.
While GDN-2 introduced independent channel-wise erase and write gates, Stable GDN-2 goes further by ensuring non-expansive memory propagation through symmetric erasure. This alignment prevents cumulative amplification while preserving flexible memory updates—a crucial balancing act. Evan: This seems important not just for stability but also for optimizing memory usage in sequence modeling. Ashley: Exactly right. Stable GDN-2's innovations highlight a critical aspect of sequence modeling: controlling how memory is written and erased to maintain both stability and capability.
Its approach mitigates the risk of numerical instability while ensuring the model uses its recurrent state effectively across long contexts. Evan: That indeed rounds out a comprehensive discussion of related work. Ashley: And with that, we've covered the Related Work section of the paper. Evan: Let's wrap up today's session by summarizing the key contributions and takeaways from the paper. Ashley, what stands out the most to you? Ashley: Sure, Evan. The paper makes significant strides in addressing the instability issues found in GDN-2 through the introduction of Stable GDN-2.
One major contribution is the adoption of symmetric erasure, which prevents exponential growth in the recurrent state by aligning the reading and modification directions during erasure. This non-expansive propagation ensures that the model remains stable, even with extended context lengths. Evan: And what about the decay-regulated residual writing? Ashley: Decay-regulated residual writing is another critical component. It supplements the main write path while controlling the energy added by residual writes. By scaling the residual proportionally to the decay, it manages the overall energy, maintaining writing flexibility without compromising stability.
This balanced mechanism supports efficient training by providing an upper bound on recurrent state growth. Evan: How did these approaches perform in experiments? Ashley: Experiments showed that Stable GDN-2 excels in long-context retrieval, outperforming other models in the recurrent setting, and providing strong performance in downstream tasks and language modeling. The ablation studies further highlighted the importance of both symmetric erasure and decay regulation in maintaining this high level of performance.
Evan: To sum up, Stable GDN-2 presents a robust solution to recurrent state instability while offering competitive performance across various benchmarks. Ashley: Evan. This paper underscores the importance of balancing stability with expressiveness in sequence modeling, ensuring robust and effective long-context understanding. Evan: That’s all for today's episode. Thanks for tuning in to Daily Paper Cast. Ashley: We hope you found this discussion insightful.
Make sure to join us next time for more deep dives into cutting-edge research. Evan: Until then, stay curious and keep exploring the world of AI. Goodbye!