mlsanityData to 7 Oct 2026

ETT: Expanding the Long Context Understanding Capability of LLMs at Test-Time

arXiv 2507.06313 ↗First posted 8 Jul 2025cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

Transformer-based Language Models' computation and memory overhead increase quadratically as a function of sequence length. The quadratic cost poses challenges when employing LLMs for processing long sequences. In this work, we introduce ourmodelacronym~(Extend at Test-Time), method for extending the context length of short context Transformer-based LLMs, with constant memory requirement and linear computation overhead. ETT enable the extension of the context length at test-time by efficient fine-tuning the model's parameters on the input context, chunked into overlapping small subsequences. We evaluate ETT on LongBench by extending the context length of GPT-Large and Phi-2 up to 32 times, increasing from 1k to 32k tokens. This results in up to a 30 percent improvement in the model's accuracy. We also study how context can be stored in LLM's weights effectively and efficiently. Through a detailed ablation study, we examine which Transformer modules are most beneficial to fine-tune at test-time. Interestingly, we find that fine-tuning the second layer of the FFNs is more effective than full fine-tuning, leading to a further improvement in the models' accuracy.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 18 of its 26 references that are in the map. First posted on arXiv 8 Jul 2025.

Builds on

18 of 26 references.

References · 18

  1. 2020Scaling Laws for Neural Language Modelscited by 6,411
  2. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  3. 2020Longformer: The Long-Document Transformercited by 3,362
  4. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  5. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  6. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  7. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
  8. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
  9. 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 329
  10. 2016Using Fast Weights to Attend to the Recent Pastcited by 161
  11. 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 133
  12. 2023Test-Time Training on Nearest Neighbors for Large Language Modelscited by 82
6 more
  1. 2017Dynamic Evaluation of Neural Sequence Modelscited by 53
  2. 2024Efficiently Learning at Test-Time: Active Fine-Tuning of LLMscited by 42
  3. 2024The Computational Limits of State-Space Models and Mamba via the Lens of Circuit Complexitycited by 21
  4. 2025Continuous Self-Improvement of Large Language Models by Test-time Training with Verifier-Driven Sample Selectioncited by 13
  5. 2024Empirical Study on Updating Key-Value Memories in Transformer Feed-forward Layerscited by 8
  6. 2025LIFT: A Novel Framework for Enhancing Long-Context Understanding of LLMs via Long Input Fine-Tuningcited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.