Sparse Delta Memory: Scaling the State of Linear RNNs through Sparsity

Loïc Cabannes, Pierre-Emmanuel Mazaré, Gergely Szilvasy, Matthijs Douze, Maria Lomeli, Ilze Amanda Auzina, Justin Carpentier, Gabriel Synnaeve, Hervé Jégou

arXiv:2607.07386 · 2026-07-11 공개 · arXiv · PDF

long-context in-context-learning retrieval attention-models gated-deltanet parametric-memory sparse-delta-memory linear-rnn

Abstract

Linear attention models allow a fixed state size and a fixed amount of compute per token. However, due to their limited state size, linear attention models fall behind in long-context recall compared to softmax-attention-based transformer architectures. Increasing the state size of linear attention improves recall performance but at the cost of higher FLOPs. In this work, we introduce Sparse Delta Memory (SDM), an architecture that scales the hidden state of gated linear RNNs to orders of magnitude higher capacity using a sparse addressing scheme. SDM extends the Gated DeltaNet architecture by replacing the dense key-value outer product with sparse reads and writes to a large explicit memory. We show that, under an isoFLOP constraint and with an identical number of parameters, a higher state memory capacity significantly improves performance on in-context learning and long-context retrieval tasks. Moreover, by learning the initial state of the SDM memory and therefore using it as a parametric memory, we show that the model further improves on a wide range of common-knowledge and reasoning tasks.

한국어 요약

한 줄 요약

SDM은 Gated DeltaNet의 상태 크기를 수천 배 확장하면서 FLOPs를 동일하게 유지하는 스파스 메모리 기반 RNN 구조를 제안한다.

핵심 기여도

핵심 아이디어

기존의 Gated DeltaNet(GDN)은 고정된 상태 크기로 인해 긴 문맥 추출 성능이 제한된다. SDM은 GDN의 상태 업데이트를 **스파스한 읽기/쓰기**로 대체함으로써, 상태 크기를 수천 배 확장하면서도 **FLOPs를 동일하게 유지**한다. 이는 Product-Key Memory 기반의 스파스 주소 지정 방식을 도입한 결과이다.

또한, SDM은 **초기 상태를 학습 가능한 파라미터로 사용**함으로써, 사전 학습 지식을 메모리에 저장해 다양한 추론 및 상식 태스크에서 성능을 향상시킨다. 이는 GDN과 달리 초기 상태를 학습하지 않는 점에서 차별화된다.

기술적 접근법

주요 결과

의의 및 한계

SDM은 고정된 메모리 및 계산량을 유지하면서도 GDN과 Mamba2 등 기존 Linear RNN의 주요 한계인 **긴 문맥 추출 성능**을 개선한다. 이는 자동화된 에이전트, 코드베이스 처리, 장기 비디오 분석 등에서 **장기 메모리 기반 추론**을 가능하게 한다는 점에서 학술적·실용적 의의가 있다.

그러나 SDM은 **스파스 메모리 접근 방식**이 특정 태스크에서 효과적이지 않을 수 있으며, **메모리 초기화 학습**이 모든 경우에 동일한 성능 향상을 보장하지는 않는다. 또한, **대규모 훈련 데이터**가 필요하다는 점도 한계로 작용할 수 있다.

실용적 활용

SDM은 코드베이스 분석, 장기 추론 추적, 자동화 에이전트, 장기 비디오 처리 등에서 **고정 메모리 예산 내에서 긴 문맥을 처리**해야 하는 상황에 적합하다. 특히, **소프트웨어 엔지니어링**, **연구 보조**, **개인 비서 시스템** 등에서 활용 가능하며, **다중 모달리티 시스템**에서 장기 메모리 문제를 해결하는 데 기여할 수 있다.