Gated DeltaNet-2: Decoupling Erase and Write in Linear Attention

· Source: Artificial Intelligence · Field: Technology & Digital — Artificial Intelligence & Machine Learning · Depth: Expert, quick

Summary

Gated DeltaNet-2 is a novel linear attention model that significantly advances memory editing by decoupling the erase and write functions within its recurrent state. Generalizing both Gated DeltaNet and Kimi Delta Attention (KDA), this model introduces distinct channel-wise erase gate b_t and write gate w_t, addressing the scalar tie limitation of previous approaches. Trained with 1.3B parameters on 100B FineWeb-Edu tokens, Gated DeltaNet-2 achieves the strongest overall results among Mamba-2, Gated DeltaNet, KDA, and Mamba-3 variants across language modeling, commonsense reasoning, and retrieval benchmarks. Its performance advantage is particularly notable on long-context RULER needle-in-a-haystack tasks, improving multi-key retrieval and maintaining strength in recurrent and hybrid settings.

Key takeaway

For Machine Learning Engineers evaluating linear attention models for long-context applications, Gated DeltaNet-2 offers a compelling solution. Its innovative decoupling of erase and write gates provides superior memory editing, leading to stronger performance in language modeling, commonsense reasoning, and especially long-context retrieval. You should consider integrating Gated DeltaNet-2 to enhance the efficiency and accuracy of your models on complex, memory-intensive tasks.

Key insights

Decoupling erase and write operations with channel-wise gates significantly enhances linear attention's memory editing capabilities.

Principles

Method

Gated DeltaNet-2 derives a fast-weight update view, utilizes a chunkwise WY algorithm with channel-wise decay, and employs a gate-aware backward pass for efficient parallel training.

In practice

Topics

Code references

Best for: Research Scientist, AI Engineer, AI Scientist, Machine Learning Engineer, NLP Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Artificial Intelligence.