arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2604.07737cs.CL
收藏

SepSeq:一种无需训练的长数值序列处理框架

SepSeq: A Training-Free Framework for Long Numerical Sequence Processing in LLMs

University of Science and Technology of China(中国科学技术大学);Shanghai Innovation Institute(上海创新研究院);Nanjing University(南京大学);University of Edinburgh(爱丁堡大学);East China Normal University(华东师范大学);Hong Kong Polytechnic University(香港理工大学);Zhejiang University(浙江大学);Ocean University of China(中国海洋大学)

Jie Sun, Yu Liu, Lu Han, Qiwen Deng, Xiang Shu, Yang Xiao, Xingyu Lu, Jun Zhou, Pengfei Liu, Lintao Ma, Jiancan Wu, Xiang Wang

AI总结:

针对LLM处理长数值序列性能下降问题,提出SepSeq框架通过插入分隔符令牌缓解注意力分散,提升准确率并减少推理令牌消耗。

摘要:

尽管基于Transformer的大型语言模型(LLM)理论上支持大规模上下文窗口,但在处理长数值序列时却表现出严重的性能下降。我们归因于Softmax机制中的注意力分散,这阻止了模型集中注意力。为了解决这一问题,我们提出了Separate Sequence(SepSeq),一种无需训练的即插即用框架,通过战略性地插入分隔符令牌来缓解分散。机理上,我们证明分隔符令牌起到注意力sink的作用,通过重新校准注意力,使模型能够专注于局部片段同时保持全局上下文。在9种广泛采用的LLM上进行的广泛评估证实了我们的方法的有效性:SepSeq在不同领域中平均相对准确率提升了35.6%,同时平均减少了16.4%的总推理令牌消耗。

英文摘要:

While transformer-based Large Language Models (LLMs) theoretically support massive context windows, they suffer from severe performance degradation when processing long numerical sequences. We attribute this failure to the attention dispersion in the Softmax mechanism, which prevents the model from concentrating attention. To overcome this, we propose Separate Sequence (SepSeq), a training-free, plug-and-play framework to mitigate dispersion by strategically inserting separator tokens. Mechanistically, we demonstrate that separator tokens act as an attention sink, recalibrating attention to focus on local segments while preserving global context. Extensive evaluations on 9 widely-adopted LLMs confirm the effectiveness of our approach: SepSeq yields an average relative accuracy improvement of 35.6% across diverse domains while reducing total inference token consumption by 16.4% on average.

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

↑