你不需要长上下文

·

研究论文 · 2026/11/04

生成较晚的token比生成较早的token成本更高,在前沿开放权重模型上成本差异可能高达7倍。通过频繁压缩上下文,我们在广泛的长视野和长输入任务中发现,前沿语言模型在保持短上下文时几乎不牺牲任务准确率。我们进一步证明,即使在每个上下文中最多只采取一个行动,LLM在长视野软件工程任务上的性能也不会崩溃,并基于此提出了语义状态空间模型(SSSM)的概念。我们的发现质疑了对长上下文语言模型的需求。

该研究挑战了长上下文模型的必要性,提出了通过频繁压缩和语义状态空间模型来降低成本并保持性能的新视角,对高效LLM设计有重要启示。

Later tokens are costlier to generate than earlier tokens. On frontier open weight models, the disparity in cost may rise to as much as 7x. Through frequent compaction, we show across a broad range of long-horizon and long-input tasks that frontier language models sacrifice little to no task accuracy when maintaining short contexts. We further demonstrate that LLM performance does not collapse on long-horizon software engineering tasks even when taking at most one action per context, and based on that we outline the concept of semantic state space models (SSSMs). Our findings question the need for long-context language models.

阅读原文

参与讨论