Partition, Prompt, Aggregate: Statistical Self-Consistency in Language Models

AK's Picks LLM HDCE Other LLM
2026年07月16日
上下文学习通常被理解为一种条件推断形式:提示(prompt)定义了特定语境,而模型的输出则被视为对相应条件分布的一种估计。若该解释成立,则大语言模型(LLM)所生成的估计结果理应满足基本的概率恒等式。尤其值得注意的是,全概率定律指出:对总体的任意一个有效划分,各子群体上的条件分布按先验权重加权平均后,应恰好聚合为该总体层面的边缘分布。本研究旨在系统考察LLM的估计结果在多大程度上遵循这一自洽性原则。我们以二叉树作为评估框架,递归地将总体划分为日益精细的子群体;随后,在提示中以自然语言描述各子群体特征,引导LLM生成对应估计,并将这些子群体层面的估计结果按权重聚合回总体层面的估计值,进而比较不同粒度划分下所得总体估计之间的一致性。我们将该评估流程应用于多个问题领域及当前最先进的前沿模型,结果表明:LLM普遍存在对基本一致性性质的广泛违背。针对角色提示(persona prompting)的深入分析揭示出一种我们称之为“宏观谬误”(macro fallacy)的规律:由更细粒度子群体响应重构得到的总体估计,往往比直接生成的总体层面估计更贴近人类参考数据。这一效应在不同树结构与不同估计任务中均稳定存在,且可通过隐式提示(implicit prompting)部分恢复。综上所述,这些发现表明:模型确实具备相关子群体的知识,却未能可靠地将其整合进总体层面的聚合估计之中。这一能力缺口,确立了统计自洽性作为一种尚未饱和、且无需依赖外部参考标准的新型LLM评估准则。
In-context learning is commonly interpreted as a form of conditional inference, in which the prompt specifies a context and the model's output is treated as an estimate of the corresponding conditional distribution. If this interpretation holds, then LLM estimates should satisfy basic probabilistic identities. In particular, the law of total probability asserts that prior-weighted conditional distributions aggregate into population-level marginals over any valid partition of the population. In this work, we investigate to what extent LLM estimates adhere to this self-consistency principle. We use binary trees as an evaluation scaffold to recursively partition a population into increasingly fine-grained subpopulations. We then prompt LLMs with verbalized subpopulation descriptions in context, aggregate the resulting estimates back into population-level estimates, and compare them across partitions of varying granularity. Applying this protocol across problem domains and state-of-the-art frontier models, we show widespread violations of basic consistency properties. An in-depth study of persona prompting reveals a pattern we call the macro fallacy: estimates reconstructed from more fine-grained subpopulation responses are often better aligned with human reference data than direct population-level estimates. This effect persists across variations in tree structure and estimation task, and can be partially recovered through implicit prompting. Together, these findings suggest that models possess relevant subpopulation knowledge but do not reliably propagate it into aggregate estimates. This gap establishes statistical self-consistency as an unsaturated, reference-free criterion for evaluating LLMs.
许愿