Sparse Delta Memory: Scaling the State of Linear RNNs through Sparsity
Summary
Sparse Delta Memory (SDM) is a new architecture designed to significantly scale the hidden state capacity of gated linear Recurrent Neural Networks (RNNs). While linear attention models offer fixed state size and compute per token, they typically underperform softmax-attention-based transformers in long-context recall due to limited state size. SDM addresses this by extending the Gated DeltaNet architecture, replacing its dense key-value outer product with a sparse addressing scheme for reads and writes to a large explicit memory. This approach allows for orders of magnitude higher memory capacity. The research demonstrates that, under an isoFLOP constraint and with an identical number of parameters, increased state memory capacity substantially improves performance on in-context learning and long-context retrieval tasks. Furthermore, learning the initial state of the SDM memory as a parametric memory enhances performance across a wide range of common-knowledge and reasoning tasks.
Key takeaway
For Machine Learning Engineers developing long-context models, Sparse Delta Memory (SDM) offers a path to overcome linear RNN state limitations. If you are struggling with recall in linear attention architectures, consider implementing SDM's sparse memory scheme. This approach significantly boosts performance on in-context learning and retrieval tasks, even under isoFLOP constraints. Additionally, using SDM's parametric memory can enhance your model's common-knowledge and reasoning capabilities.
Key insights
Sparse Delta Memory scales linear RNNs' state for superior long-context and reasoning performance.
Principles
- Sparse memory addressing scales RNN state.
- Higher state capacity improves long-context recall.
- Parametric memory enhances reasoning tasks.
Method
SDM extends Gated DeltaNet by replacing dense key-value outer products with sparse reads and writes to a large explicit memory, enabling orders of magnitude higher state capacity.
In practice
- Improve long-context recall in linear RNNs.
- Enhance common-knowledge reasoning tasks.
Topics
- Sparse Delta Memory
- Linear RNNs
- Long-Context Models
- Gated DeltaNet
- In-Context Learning
- Memory Architectures
Best for: Research Scientist, AI Scientist, Machine Learning Engineer
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by Machine Learning.