A Survey on Transformer Context Extension: Approaches and Evaluation

Yijun Liu, Jinzheng Yu, Yang Xu, Zhongyang Li, Qingfu Zhu
3/17/2025
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Large language models (LLMs) based on Transformer have been widely applied in the filed of natural language processing (NLP), demonstrating strong performance, particularly in handling short text tasks. However, when it comes to long context scenarios, the performance of LLMs degrades due to some challenges. To alleviate this phenomenon, there is a number of work proposed recently. In this survey, we first list the challenges of applying pre-trained LLMs to process long contexts. Then systematically review the approaches related to long context and propose our taxonomy categorizing them into four main types: positional encoding, context compression, retrieval augmented, and attention pattern. In addition to the approaches, we focus on the evaluation of long context, organizing relevant data, tasks, and metrics based on existing long context benchmarks. Finally, we summarize unresolved issues in the long context domain and put forward our views on future developments.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2025survey,
  title  = {A Survey on Transformer Context Extension: Approaches and Evaluation},
  author = {Yijun Liu and Jinzheng Yu and Yang Xu and Zhongyang Li and Qingfu Zhu},
  year   = {2025},
  eprint = {2503.13299},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.13299v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.13299.svg)](https://codeofpaper.com/paper/2503.13299)

Discussion