arXiv:2605.23278cs.CLstat.ML2026-05被引 2

语言模型为何有效?关键在于上下文是否足够捕捉隐藏信息。

When Is Next-Token Prediction Useful? Marginalization, Ergodicity, Mixture Identifiability, Local Sufficiency, RAG, Tools, and Programming

  • 区分三种语言过程:完整条件、仅文本边际、模型学习的分布
  • 只有当上下文是隐藏因素的充分统计量时,预测才真正有用
  • RAG和工具使用可提升上下文充分性,适合处理复杂任务

基于观测序列训练的语言模型常被描述为学习给定前序标记的下一个标记的条件分布。这一描述仅在特定条件下成立。模型从实际生成轨迹中学习,并不直接观察完整的条件规律;它仅接收连续路径的采样结果。真实语言生成不仅依赖先前词语,还受非文本因素影响,如事实、事件、意图、目标、信念、社会语境及任务约束。本文区分了三个常被混淆的对象:以隐藏情境为条件的完整语言过程、通过积分隐含情境得到的仅文本边际过程,以及从有限语料库中学习到的模型诱导分布。将模型训练解释为估计仅文本的边际规律,需强假设:平稳性、代表性与遍历性。这些假设在统计估计中常见,但应用于异质语料库时存在问题。即使假设成立,边际文本规律也仅在观测前缀近似为相关隐藏情境的充分统计量时才有用。信息论上,这要求给定观测文本后,下一个标记与被忽略情境之间的剩余条件互信息很小。论文进一步将此分析拓展至异质训练语料库,并将检索增强生成(RAG)和工具使用解释为实现条件充分性的机制。

原文摘要 · Abstract (English)

Language models trained on observed sequences are often described as learning the conditional distribution of the next token given previous tokens. This description is only conditionally correct. A model trained on realized token trajectories does not observe full conditional laws; it receives sampled continuations. Moreover, real language generation is conditioned not only on previous words but also on non-textual circumstances: facts, events, intentions, goals, beliefs, social context, and task-specific constraints. This paper distinguishes three objects that are often conflated: the full conditional language process conditioned on latent circumstances, the marginal text-only process obtained by integrating those circumstances out, and the model-induced distribution learned from finite observed corpora. The paper argues that interpreting model training as estimating the marginal text-only law requires strong assumptions of stationarity, representativeness, and ergodicity, assumptions that are standard in statistical estimation but problematic when applied to heterogeneous language corpora. Even if these assumptions hold, the marginal text-only law is useful only when the observed prefix is an approximately sufficient statistic for the latent circumstances relevant to continuation. In information-theoretic terms, usefulness requires that the residual conditional mutual information between the next token and the omitted circumstances, given the observed text, be small. The paper then extends this argument to heterogeneous training corpora. Finally, the paper interprets Retrieval Augmented Generation (RAG) and tool use as conditional sufficiency devices.

语言模型RAG条件推理信息论

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。