Gradual Forgetting: Logarithmic Compression for Extending Transformer Context Windows
Not on the map. Why?
Abstract (arXiv)
Most approaches to long-context processing increase the complexity of the transformer's internal architecture by integrating mechanisms such as recurrence or auxiliary memory modules. In this work, we introduce an alternative approach that modifies the input representation itself, rather than the transformer architecture. Inspired by cognitive models of human memory, our method applies a scale-invariant logarithmic compression to the input tokens. The resulting compressed representation is processed by a standard, unmodified transformer, preserving architectural simplicity. We evaluate this approach on the WikiText-103 and PG-19 language modeling benchmarks, showing a reduction in perplexity compared to uncompressed baselines. Moreover, performance improves consistently with longer compressed temporal contexts, showing that input-level logarithmic compression is a simple and effective way to extend a transformer's long-range memory.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 21 of its 46 references that are in the map. First posted on arXiv 25 Oct 2025.
Builds on
21 of 46 references.
References · 21
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2016Layer Normalizationcited by 5,669
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2020Reformer: The Efficient Transformercited by 1,668
- 2020Rethinking Attention with Performerscited by 1,601
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2019Temporal Fusion Transformers for Interpretable Multi-horizon Time Series Forecastingcited by 761
9 more
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
- 2014Neural Turing Machinescited by 644
- 2014Memory Networkscited by 363
- 2022Recurrent Memory Transformercited by 203
- 2016Criticality in Formal Languages and Statistical Physicscited by 35
- 2025LM2: Large Memory Modelscited by 13
- 2021DeepSITH: Efficient Learning via Decomposition of What and When Across Time Scalescited by 5
- 2021A deep convolutional neural network that is invariant to time rescalingcited by 5
- 2018Estimating scale-invariant future in continuous timecited by 4
Built on by
Citing papers per year: 2026: 1.
1 paper.