fla_gated_deltanet2
Gated DeltaNet replaces self-attention with a gated delta rule that can both erase and selectively update memory.
Language · 785 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Language
- Parameters
- 26.2M
- Operations
- 785
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICLR 2025
- Cited by
- 1 (as of 29 October 2026)
- Authors
- Songlin Yang, Jan Kautz, Ali Hatamizadeh
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m4922
- Graph hash
- 5dab4bd0150e3817a097a5bb33b6c642d574e0374be1bdfa707a60514217c4b7
- Skeleton hash
- 8524b3bf13ea3f554c0805bbc3b5024234a3d79cecdb2e13195b556ea8a1f519
- Architecture hash
- 3aa7953366fd721772662d0a96725a713ec19d9509293f5f0d17a22a0801a5c6
- Diagram SHA-256
- d0574826bcc91b02482586ea1182c228a86da69d5fec33ef65839844fd4ffdbb
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
Gated DeltaNet is a sequence model in the linear Transformer line whose state update, the gated delta rule, combines two earlier mechanisms: gating for adaptive memory control and the delta update rule for precise memory modifications. The paper's observation is that the two are complementary: gating enables rapid memory erasure, while the delta rule allows targeted updates.
A data-dependent gating term between 0 and 1 controls how fast the state decays. Pushing it toward 0 clears memory promptly, and pushing it toward 1 switches to the pure delta rule, which updates specific content without affecting other information. The model follows Llama's macro architecture, stacking token mixer layers with SwiGLU MLP layers, but replaces self-attention with gated delta rule token mixing. Queries, keys and values come from a linear projection, a short convolution and SiLU, with L2 normalization applied to the queries and keys for training stability.
The paper reports that Gated DeltaNet outperforms both Mamba2 and DeltaNet on benchmarks that include language modeling, in-context retrieval, length extrapolation and long-context understanding. It also describes hybrid variants that combine Gated DeltaNet layers with sliding window attention or Mamba2 layers. A separate paper introduces Gated DeltaNet-2, which generalizes Gated DeltaNet by separating erasing and writing into a channel-wise erase gate and a channel-wise write gate.
Key idea. The paper combines gating with the delta update rule into a gated delta rule and derives a hardware-efficient chunkwise algorithm for training the resulting model.
- Gated DeltaNet
- GDN
- Gated Delta Networks
- gated delta rule
- linear Transformer
- delta rule
- language model
- flash-linear-attention
- linear recurrence
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{yang2025gateddeltanetworksimproving,
title={Gated Delta Networks: Improving Mamba2 with Delta Rule},
author={Songlin Yang and Jan Kautz and Ali Hatamizadeh},
year={2025},
eprint={2412.06464},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2412.06464},
}