arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.10029cs.CL
收藏

ScaleFormer:用于长上下文Transformer的跨度表示累积

ScaleFormer: Span Representation Cumulation for Long-Context Transformer

University of Illinois Chicago(伊利诺伊大学芝加哥分校);The Pennsylvania State University(宾夕法尼亚州立大学)

Jiangshu Du, Wenpeng Yin, Philip Yu

AI总结:

针对标准自注意力二次复杂度限制Transformer处理长上下文的问题,提出即插即用框架ScaleFormer,通过分割长输入为重叠块、无参数融合机制累积上下文向量,实现线性复杂度,在长文档摘要任务中无需架构修改即可优于最先进方法。

摘要:

标准自注意力的二次复杂度严重限制了基于Transformer的模型在长上下文任务中的应用。尽管存在高效的Transformer变体,但它们通常需要架构更改和从头开始的昂贵预训练。为解决这一问题,我们提出ScaleFormer(长上下文Transformer的跨度表示累积框架)——一种简单有效的即插即用框架,无需架构修改即可适配现成预训练编解码器模型处理长序列。该方法将长输入分割为重叠块,并为解码器生成压缩的上下文感知表示。核心是一种新颖的无参数融合机制,使每个块的表示具备其在文档中位置的结构感知能力,具体通过将所有前置和后置块的累积上下文向量融入每个块的表示实现。此策略为模型提供文档叙事流的强信号,实现线性复杂度,并使预训练模型能有效处理长文本。长文档摘要实验表明,该方法无需架构修改或外部检索机制,即可与最先进方法竞争且常优于它们。

英文摘要:

The quadratic complexity of standard self-attention severely limits the application of Transformer-based models to long-context tasks. While efficient Transformer variants exist, they often require architectural changes and costly pre-training from scratch. To circumvent this, we propose ScaleFormer(Span Representation Cumulation for Long-Context Transformer) - a simple and effective plug-and-play framework that adapts off-the-shelf pre-trained encoder-decoder models to process long sequences without requiring architectural modifications. Our approach segments long inputs into overlapping chunks and generates a compressed, context-aware representation for the decoder. The core of our method is a novel, parameter-free fusion mechanism that endows each chunk's representation with structural awareness of its position within the document. It achieves this by enriching each chunk's boundary representations with cumulative context vectors from all preceding and succeeding chunks. This strategy provides the model with a strong signal of the document's narrative flow, achieves linear complexity, and enables pre-trained models to reason effectively over long-form text. Experiments on long-document summarization show that our method is highly competitive with and often outperforms state-of-the-art approaches without requiring architectural modifications or external retrieval mechanisms.

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

↑