LaMemo: Language Modeling with Look-Ahead Memory
Not on the map. Why?
Abstract (arXiv)
Although Transformers with fully connected self-attentions are powerful to model long-term dependencies, they are struggling to scale to long texts with thousands of words in language modeling. One of the solutions is to equip the model with a recurrence memory. However, existing approaches directly reuse hidden states from the previous segment that encodes contexts in a uni-directional way. As a result, this prohibits the memory to dynamically interact with the current context that provides up-to-date information for token prediction. To remedy this issue, we propose Look-Ahead Memory (LaMemo) that enhances the recurrence memory by incrementally attending to the right-side tokens, and interpolating with the old memory states to maintain long-term information in the history. LaMemo embraces bi-directional attention and segment recurrence with an additional computation overhead only linearly proportional to the memory length. Experiments on widely used language modeling benchmarks demonstrate its superiority over the baselines equipped with different types of memory.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 27 of its 35 references that are in the map. First posted on arXiv 15 Apr 2022.
Builds on
27 of 35 references.
References · 27
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2016Layer Normalizationcited by 5,579
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
15 more
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
- 2014Neural Turing Machinescited by 630
- 2014Memory Networkscited by 354
- 2021Random Feature Attentioncited by 350
- 2018Long-Term Feature Banks for Detailed Video Understandingcited by 239
- 2018Adaptive Input Representations for Neural Language Modelingcited by 226
- 2019Adaptively Sparse Transformerscited by 154
- 2019Adaptive Attention Span in Transformerscited by 148
- 2018Sharp Nearby, Fuzzy Far Away: How Neural Language Models Use Contextcited by 113
- 2021Do Long-Range Language Models Actually Use Long-Range Context?cited by 92
- 2021Simple Local Attentions Remain Competitive for Long-Context Taskscited by 25
- 2021DiscoDVT: Generating Long Text with Discourse-Aware Discrete Variational Transformercited by 14
- 2021∞-former: Infinite Memory Transformercited by 7
Built on by
Citing papers per year: 2022: 1; 2023: 1; 2024: 0; 2025: 2.
4 papers.
- 2022Training Language Models with Memory Augmentationcited by 112
- 2023FashionNTM: Multi-turn Fashion Image Retrieval via Cascaded Memorycited by 11
- 2025Emergence of Episodic Memory in Transformers: Characterizing Changes in Temporal Structure of Attention Scores During Trainingcited by 4
- 2025CacheFormer: High Attention-Based Segment Cachingcited by 0
- 2025CacheFormer: High Attention-Based Segment Caching18 Apr 2025
- 2025Emergence of Episodic Memory in Transformers: Characterizing Changes in Temporal Structure of Attention Scores During Training9 Feb 2025
- 2023FashionNTM: Multi-turn Fashion Image Retrieval via Cascaded Memory20 Aug 2023
- 2022Training Language Models with Memory Augmentation25 May 2022