Adaptive Memory Decay for Log-Linear Attention
Not on the map. Why?
Abstract (arXiv)
Sequence models face a fundamental tradeoff between memory capacity and computational efficiency. Transformers achieve expressive context modeling at quadratic cost, while linear attention and state-space models run in linear time by compressing context into a fixed-size hidden state, inherently limiting recall. Log-linear attention navigates this tradeoff by organizing memory across a Fenwick tree hierarchy, growing its hidden state logarithmically with sequence length at log-linear compute cost. However, its memory decay parameter λ is fixed and independent of the input, assigning uniform weights across all hierarchy levels regardless of the content, which introduces unnecessary rigidity. We propose learning λ directly from the input via a lightweight two-layer MLP, producing per-token, per-level decay that adapts to content rather than position. A softplus activation lets each Fenwick tree level scale independently, avoiding the inter-level competition that softmax introduces. This modification preserves log-linear complexity exactly and adds negligible parameter overhead. We evaluate on associative recall, selective copying, and language modeling, finding that input-dependent decay consistently outperforms the baseline, with the largest gains in long-range memory settings where baseline λ degrades or collapses entirely.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 29 of its 32 references that are in the map. First posted on arXiv 7 May 2026.
Builds on
29 of 32 references.
References · 29
- 2017Attention Is All You Needcited by 60,361
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 827
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
17 more
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 532
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 514
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
- 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 499
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 396
- 2024xLSTM: Extended Long Short-Term Memorycited by 327
- 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 208
- 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 204
- 2024The Illusion of State in State-Space Modelscited by 187
- 2024Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrencecited by 159
- 2025RWKV-7 "Goose" with Expressive Dynamic State Evolutioncited by 141
- 2024HGRN2: Gated Linear RNNs with State Expansioncited by 127
- 2023Hierarchically Gated Recurrent Neural Network for Sequence Modelingcited by 102
- 2024Unlocking State-Tracking in Linear RNNs Through Negative Eigenvaluescited by 101
- 2024Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Modelscited by 57
- 2023GateLoop: Fully Data-Controlled Linear Recurrence for Sequence Modelingcited by 46
- 2025Log-Linear Attentioncited by 40
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025LoLA: Low-Rank Linear Attention With Sparse Caching
- 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routing
- 2025Forgetting Transformer: Softmax Attention with a Forget Gate
- 2026Switching Linear Attention
- 2026LinearARD: Linear-Memory Attention Distillation for RoPE Restoration
- 2026Sliding-window beats linear attention
- 2026DeltaLog: Deferred Materialization of Recurrent States for Linear Attention Decoding
- 2026Learning to Remember, Learn, and Forget in Attention-Based Models