Gated Delta Networks: Improving Mamba2 with Delta Rule
Abstract
Linear Transformers have gained attention as efficient alternatives to standard Transformers, but their performance in retrieval and long-context tasks has been limited. To address these limitations, recent work has explored two distinct mechanisms: gating for adaptive memory control and the delta update rule for precise memory modifications. We observe that these mechanisms are complementary: gating enables rapid memory erasure while the delta rule facilitates targeted updates. Building on this insight, we introduce the gated delta rule and develop a parallel training algorithm optimized for modern hardware. Our proposed architecture, Gated DeltaNet, consistently surpasses existing models like Mamba2 and DeltaNet across multiple benchmarks, including language modeling, common-sense reasoning, in-context retrieval, length extrapolation, and long-context understanding. We further enhance performance by developing hybrid architectures that combine Gated DeltaNet layers with sliding window attention or Mamba2 layers, achieving both improved training efficiency and superior task performance.
Community
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Taipan: Efficient and Expressive State Space Language Models with Selective Attention (2024)
- Mechanism and Emergence of Stacked Attention Heads in Multi-Layer Transformers (2024)
- Hymba: A Hybrid-head Architecture for Small Language Models (2024)
- The Evolution of RWKV: Advancements in Efficient Language Modeling (2024)
- Birdie: Advancing State Space Models with Reward-Driven Objectives and Curricula (2024)
- KV Shifting Attention Enhances Language Modeling (2024)
- Revealing and Mitigating the Local Pattern Shortcuts of Mamba (2024)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment:
@librarian-bot
recommend
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper