arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.13299cs.CLcs.AI
收藏

Transformer上下文扩展综述:方法与评估

A Survey on Transformer Context Extension: Approaches and Evaluation

Harbin Institute of Technology(哈尔滨工业大学);Communication University of China(中国传媒大学);Huawei Technologies, Co., Ltd.(华为技术有限公司)

Yijun Liu, Jinzheng Yu, Yang Xu, Zhongyang Li, Qingfu Zhu

AI总结:

本文综述了Transformer模型在长上下文场景下的扩展方法,提出位置编码、上下文压缩、检索增强和注意力模式四类分类,并梳理了评估基准与未来挑战。

摘要:

基于Transformer的大型语言模型(LLMs)已广泛应用于自然语言处理(NLP)领域,展现出强大的性能,尤其是在处理短文本任务方面。然而,在长上下文场景中,由于一些挑战,LLMs的性能会下降。为了缓解这一现象,近期提出了大量相关工作。在本综述中,我们首先列出了将预训练LLMs应用于处理长上下文所面临的挑战。然后,我们系统地回顾了与长上下文相关的方法,并提出了我们的分类法,将其分为四大类:位置编码、上下文压缩、检索增强和注意力模式。除了方法之外,我们还关注长上下文的评估,基于现有的长上下文基准整理了相关数据、任务和指标。最后,我们总结了长上下文领域中尚未解决的问题,并对未来发展提出了我们的看法。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑