cs.LGAug 23, 2026

SANE: State Anomaly Neutralization for Stable Extreme-Context Delta-Rule Models

Authors: Qingwen Lin, Boyan Xu, Xiao Liu, Zhifeng Hao, Ruichu Cai

Organizations: School of Computer Science, Guangdong University of Technology · Yuanshi Intelligence · College of Science, Shantou University

Abstract

Delta-Rule recurrent models maintain a fixed-size state, enabling O(1)O(1) inference memory but potentially becoming unstable under extreme-context extrapolation. By tracking RWKV-7 over sequences of up to 100M tokens, we empirically identify a distinct failure pattern: localized norm explosion atop a relatively sparse substrate, rather than global state saturation. Analysis of the recurrent update suggests that persistent decay keeps weakly updated entries small, whereas uneven injections allow a few channels to accumulate extreme values. Motivated by this diagnosis, we propose State Anomaly Neutralization (SANE), which applies adaptive tanh⁡\tanh compression at chunk boundaries while preserving the intra-chunk parallel structure. Within a safe threshold range (3≤α≤53 \le α\le 5), SANE matches the baseline on 11 short-context reasoning benchmarks with no statistically significant degradation. After a 100M-token prefix, which exceeds the training length by over 24,000×24{,}000\times, SANE retains functional reasoning (33.4633.46--35.5635.56) while the baseline encounters numerical overflow. In contrast, overly permissive thresholds (α≥8α\ge 8) remain numerically stable but lose reasoning capability entirely, showing that numerical stabilization alone does not guarantee functional reasoning and revealing a capacity--stability trade-off in state compression.

Figures & tables

Explore similar work

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

    Jul 8, 2026Loïc Cabannes, Pierre-Emmanuel Mazaré, Gergely Szilvasy +6Long-Context RetrievalMemory-Augmented Language Models

  2. STEPQuant: When and Where Errors Matter in Delta-Rule Recurrent State Quantization

    Sep 29, 2026Bingchen Yao, Haobo Xu, Haokun Lin +6LLM QuantizationLLM Inference Acceleration

  3. OSDN: Improving Delta Rule with Provable Online Preconditioning in Linear Attention

    May 13, 2026Chenyu Zhou, Hongpei Li, Yuerou Liu +3Transformer AttentionLinear Attention