arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.05066cs.CLcs.AIcs.LG
收藏

长上下文建模的不可能三角

The Impossibility Triangle of Long-Context Modeling

Yan Zhou

AI总结:

该研究提出长上下文建模的不可能三角,证明长序列模型无法同时满足效率、紧凑性与回忆能力,对52种架构分类并通过实验验证理论界限。

摘要:

我们识别并证明了支配长序列模型的一个基本权衡:没有模型能同时实现(i)与序列长度无关的每步计算(效率)、(ii)与序列长度无关的状态大小(紧凑性)以及(iii)回忆与序列长度成比例的历史事实的能力(回忆)。我们在统一了Transformer、状态空间模型、线性循环网络及其混合模型的在线序列处理器抽象框架内将这一权衡形式化。利用数据处理不等式和Fano不等式,我们证明,任何满足效率和紧凑性的模型,从任意长度的序列中最多能回忆起O(poly(d)/log V)个键值对,其中d为模型维度,V为词汇表大小。我们将2026年3月之前发表的52种架构归入该三角,表明每种架构最多实现三个属性中的两个,且混合架构在内部呈现连续轨迹。对合成关联回忆任务中五种代表性架构的实验验证了该理论界限:经验回忆能力严格低于信息论极限,且没有架构能逃脱该三角。

英文摘要:

We identify and prove a fundamental trade-off governing long-sequence models: no model can simultaneously achieve (i) per-step computation independent of sequence length (Efficiency), (ii) state size independent of sequence length (Compactness), and (iii) the ability to recall a number of historical facts proportional to sequence length (Recall). We formalize this trade-off within an Online Sequence Processor abstraction that unifies Transformers, state space models, linear recurrent networks, and their hybrids. Using the Data Processing Inequality and Fano's Inequality, we prove that any model satisfying Efficiency and Compactness can recall at most O(poly(d)/log V) key-value pairs from a sequence of arbitrary length, where d is the model dimension and V is the vocabulary size. We classify 52 architectures published before March 2026 into the triangle, showing that each achieves at most two of the three properties and that hybrid architectures trace continuous trajectories in the interior. Experiments on synthetic associative recall tasks with five representative architectures validate the theoretical bound: empirical recall capacity lies strictly below the information-theoretic limit, and no architecture escapes the triangle.

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

↑