2025-05-13 · 进阶 · 机器学习 · 自然语言处理

Overflow Prevention Enhances Long-Context Recurrent LLMs

本文提出了一种名为OPRM的基于块推断的策略,通过预填充和选择性解码来提高长上下文循环LLMs的性能,有效缓解了长上下文模型在处理长序列时的内存溢出问题。

更新于 2025-05-13。作者:Assaf Ben-Kish、Itamar Zimerman、M. Jehanzeb Mirza、James Glass、Leonid Karlinsky、Raja Giryes。

中文摘要

最近在大型语言模型(LLM)中的一种趋势是开发亚二次模型的递归子模型,这些模型提高了长上下文处理的效率。我们研究了领先的长期上下文大型模型,重点关注它们固定大小的递归内存如何影响其性能。我们的实验表明,即使这些模型被训练用于扩展上下文,它们对长上下文的使用仍然未得到充分利用。具体来说,我们展示了一种基于块推断的程序,该程序仅识别和处理输入中最相关的部分,可以缓解递归内存失败,并适用于许多长上下文任务:在LongBench上,我们的方法将Falcon3-Mamba-Inst-7B的整体性能提高了14%,Falcon-Mamba-Inst-7B提高了28%,RecurrentGemma-IT-9B提高了50%,RWKV6-Finch-7B提高了51%。令人惊讶的是,这种简单的方法也在具有挑战性的LongBench v2基准测试中达到了最先进的成果,与等效大小的Transformer表现相当。此外,我们的发现也引发了对递归模型是否真正利用了长距离依赖关系的疑问,因为我们的单块策略在需要跨上下文关系的任务中也表现出更强的性能。

英文摘要

A recent trend in LLMs is developing recurrent sub-quadratic models that improve long-context processing efficiency. We investigate leading large long-context models, focusing on how their fixed-size recurrent memory affects their performance. Our experiments reveal that, even when these models are trained for extended contexts, their use of long contexts remains underutilized. Specifically, we demonstrate that a chunk-based inference procedure, which identifies and processes only the most relevant portion of the input can mitigate recurrent memory failures and be effective for many long-context tasks: On LongBench, our method improves the overall performance of Falcon3-Mamba-Inst-7B by 14%, Falcon-Mamba-Inst-7B by 28%, RecurrentGemma-IT-9B by 50%, and RWKV6-Finch-7B by 51%. Surprisingly, this simple approach also leads to state-of-the-art results in the challenging LongBench v2 benchmark, showing competitive performance with equivalent size Transformers. Furthermore, our findings raise questions about whether recurrent models genuinely exploit long-range dependencies, as our single-chunk strategy delivers stronger performance - even in tasks that presumably require cross-context relations.

解读

一句话总结

本文提出了一种名为OPRM的基于块推断的策略,通过预填充和选择性解码来提高长上下文循环LLMs的性能,有效缓解了长上下文模型在处理长序列时的内存溢出问题。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源