Gated Delta Networks: Improving Mamba2 with Delta Rule

Songlin Yang, Jan Kautz, Ali Hatamizadeh
12/9/2024
cs.CLcs.LG

No official code found. Best implementation: NVlabs/GatedDeltaNet (634 stars, last commit 2026-03-13).

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.

View on arXivView PDF

Code Implementations(1)

[ICLR 2025] Official PyTorch Implementation of Gated Delta Networks: Improving Mamba2 with Delta Rule

63436Shell, PythonDec 5, 20247 months agoNOASSERTION

Similar Papers

Cite this paper

@article{yang2024gated,
  title  = {Gated Delta Networks: Improving Mamba2 with Delta Rule},
  author = {Songlin Yang and Jan Kautz and Ali Hatamizadeh},
  year   = {2024},
  eprint = {2412.06464},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.06464v3},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.06464.svg)](https://codeofpaper.com/paper/2412.06464)

Discussion