long-context retrieval-augmented linear-attention parameter-scales training-throughput gated-delta-net delta-net validation-loss
Abstract
Self-attention lets each token retrieve information from the full context, but its quadratic cost in sequence length limits training and inference at long context. This paper presents a comparative study of softmax attention and four recent recurrent linear-attention architectures: DeltaNet, Gated DeltaNet, Kimi Delta Attention, and Gated DeltaNet-2. We express these mechanisms in a common recurrent-memory notation, making explicit how they differ in expressivity, memory decay, erase and write control, training throughput, and implementation complexity. Our experiments center on 350M-parameter models trained for 15B tokens, and include optimizer and learning-rate comparisons, hybrid-versus-pure stack comparisons, sequence-length runtime measurements, larger DeltaNet runs at 1.3B and 3B parameters, and a small set of downstream evaluations. The reported speed results measure training throughput and iteration time; we do not provide an empirical inference-speed benchmark. Within the reported 350M-parameter, 15B-token sweep, Kimi Delta Attention with Muon reaches the lowest final validation loss, a pure Gated DeltaNet stack trained with AdamW has the highest normalized training throughput, hybrid stacks generally improve loss at a throughput cost, and Muon consistently lowers final validation loss relative to AdamW in the matched architecture settings we evaluate. We introduce and evaluate lightweight cross-layer routing mechanisms for DeltaNet-style memories. The most natural DeltaNet-inspired formulation, forwarding a lower layer's delta-rule write error into the next layer's value target, does not improve over matched baselines. Routing into the aligned hidden stream and forwarding the write value instead yields a modest improvement in the matched runs we report: Cross-Layer Value Routing (CLVR) lowers final validation loss for both DeltaNet and Gated DeltaNet.
한국어 요약
한 줄 요약
본 연구는 DeltaNet 계열의 선형 어텐션 아키텍처를 비교 분석하고, Cross-Layer Value Routing(CLVR)을 통해 성능을 개선하는 방법을 제시한다.
핵심 기여도
- DeltaNet, Gated DeltaNet, Kimi Delta Attention, Gated DeltaNet-2를 공통 재귀 메모리 표기법으로 비교.
- 350M 파라미터, 15B 토큰 학습 환경에서 Kimi Delta Attention + Muon이 가장 낮은 검증 손실(-0.01~0.02) 달성.
- Gated DeltaNet + AdamW가 가장 높은 정규화된 학습 처리량(throughput) 기록.
- Cross-Layer Value Routing(CLVR)이 DeltaNet과 Gated DeltaNet에서 검증 손실을 0.001~0.002 개선.
핵심 아이디어
본 연구는 Self-attention의 제곱 비용 문제를 해결하기 위해 DeltaNet 계열의 선형 어텐션 아키텍처를 비교 분석한다. DeltaNet은 고정 크기 메모리에 잔차(residual)만 기록하는 델타 규칙(delta rule)을 도입하여 간섭을 줄인다. Gated DeltaNet은 메모리 상태에 스칼라 감쇠를 추가하고, Kimi Delta Attention은 채널별 감쇠 게이트를 도입한다. Gated DeltaNet-2는 채널별로 지우기와 쓰기 게이트를 분리하여 제어를 세분화한다. 이러한 메커니즘은 메모리 선택성, 감쇠, 제어의 균형을 달리하며, 이를 공통 재귀 메모리 표기법으로 비교함으로써 설계 공간을 명확히 한다.
기술적 접근법
- **모델**: DeltaNet, Gated DeltaNet, Kimi Delta Attention, Gated DeltaNet-2
- **학습 환경**: 350M 파라미터, 15B 토큰 학습, Muon 및 AdamW 최적화 알고리즘 사용
- **비교 항목**: 검증 손실, 처리량, 최적화기 민감도, 순차 길이 시간, 하이브리드 vs 순수 스택 구조
- **추가 실험**: 1.3B, 3B 파라미터의 DeltaNet 대규모 실험 포함
- **Cross-Layer Routing**: CLER(하위 레이어의 delta-rule write error 전달) 실험 실패, CLVR(하위 레이어의 write value 전달)로 0.001~0.002 개선
주요 결과
- **Kimi Delta Attention + Muon**: 350M 파라미터, 15B 토큰 학습에서 가장 낮은 검증 손실 달성
- **Gated DeltaNet + AdamW**: 정규화된 학습 처리량 1.6× 빠름
- **Hybrid Stack**: 손실 개선(+0.005~0.01) 있으나 처리량 감소
- **CLVR**: DeltaNet, Gated DeltaNet에서 각각 0.001, 0.002의 검증 손실 감소
- **Downstream Task**: Kimi Delta Attention이 AdamW 대비 Muon으로 0.005~0.01 개선
의의 및 한계
본 연구는 DeltaNet 계열의 메모리 기반 어텐션 메커니즘을 체계적으로 비교하여, 성능과 처리량, 메모리 제어 간의 trade-off를 명확히 한다. CLVR는 경량화된 cross-layer 정보 공유 방법으로, 선형 시간 구조를 유지하면서도 성능을 개선한다. 그러나 CLVR의 효과는 모델 규모가 커질수록 감소하며, Kimi Delta Attention 및 Gated DeltaNet-2와의 호환성은 여전히 미지수이다. 또한, 추론 속도는 측정되지 않았으며, 실험은 단일 실행 기반으로 재현성에 한계가 있다.
실용적 활용
DeltaNet 계열의 선형 어텐션은 대규모 텍스트 처리, 실시간 번역, 긴 문맥 이해 등에서 유용할 수 있다. CLVR는 메모리 기반 모델에서 정보 유실을 줄이는 경량화된 방법으로, 다층 구조의 언어 모델 개선에 활용 가능하다.