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

LLM概率集中:对齐如何缩小生成范围

LLM Probability Concentration: How Alignment Shrinks the Generative Horizon

Data Science Institute, University of Chicago(芝加哥大学数据科学研究所);Department of Computer Science, University of Chicago(芝加哥大学计算机科学系)

Chenghao Yang, Sida Li, Ari Holtzman

AI总结:

研究发现对齐微调通过减少生成多样性,使LLM生成更一致,从而影响复杂推理稳定性。

摘要:

尽管具有惊人的能力,对齐的大语言模型(LLMs)生成的输出往往缺乏多样性。是什么驱动了这种生成的一致性?我们通过模型输出分布中的概率集中现象来研究这一现象。为了量化这种集中,我们引入了“分支因子”(BF)——一个与token无关的度量,用于衡量生成过程中可能的下一步的有效数量。我们的实证分析揭示了两个关键发现:(1)BF往往随着生成过程的推进而减少,表明LLMs在生成过程中变得更加可预测。(2)对齐微调在生成初期就显著使模型的输出分布变尖锐,整体上将BF减少2-5倍,甚至在起始位置减少一个数量级(例如从12到1.2)。这种显著的减少有助于解释为什么对齐模型往往对解码策略不敏感。基于这一见解,我们发现这种一致性对复杂推理有令人惊讶的影响。例如,对齐的推理链(CoT)模型(如DeepSeek-distilled模型)利用这种效应;通过生成更长的推理链,它们将生成推入后期、更加确定性(较低BF)的阶段,从而产生更稳定的输出。我们推测,对齐微调不会根本改变模型的行为,而是将其引导到风格化的token(如“Sure”)上,这些token解锁了基础模型中已存在的低熵轨迹。这一观点得到了引导实验的支持,这些实验显示用此类token提示基础模型可以同样减少BF。共同,我们的发现确立了BF作为理解和控制LLM输出的强大诊断工具——阐明了对齐如何减少变异性,如何CoT促进稳定的生成,以及如何将基础模型引导远离多样性。

英文摘要:

Despite their impressive capabilities, aligned large language models (LLMs) often generate outputs that lack diversity. What drives this consistency in the generation? We investigate this phenomenon through the lens of probability concentration in the model's output distribution. To quantify it, we use the Branching Factor (BF)--the exponentiated length-averaged entropy of the output distribution, interpreted as the effective number of plausible next steps during generation. Our empirical analysis reveals two key findings: (1) BF often decreases as generation progresses, suggesting that LLMs become more predictable; a controlled intervention indicates that this decline is largely a task-independent property of autoregressive self-conditioning, distinct from alignment, and can be locally reversed by unexpected context. (2) Alignment tuning sharpens the output distribution from the outset, reducing BF by a factor of 2--5 overall and up to an order of magnitude (e.g., from 12 to 1.2) at early positions. This reduction helps explain why aligned models are less sensitive to decoding strategies. It also has implications for complex reasoning: aligned Chain-of-Thought (CoT) models (e.g., DeepSeek-distilled models) generate longer reasoning chains that reach later, more deterministic (lower-BF) stages, yielding more stable outputs. We hypothesize that alignment does not fundamentally change model behavior, but instead steers the model toward stylistic tokens (e.g., ``Sure'') that unlock low-entropy trajectories already present in the base model. Nudging experiments support this view: prompting base models with such tokens similarly reduces BF. Together, our findings establish BF as a diagnostic for understanding and controlling LLM outputs, clarifying how alignment reduces variability, CoT stabilizes generation, and base models can be steered away from diversity.

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

↑