多令牌分歧:测量和引导上下文计算密度
Multiple Token Divergence: Measuring and Steering In-Context Computation Density
AI总结:
多令牌分歧通过测量语言模型的计算努力,提供了一种轻量级工具,用于分析和引导生成文本的计算动态。
摘要:
测量语言模型的上下文计算努力是一个关键挑战,因为像下一个令牌损失这样的指标无法捕捉推理复杂性。基于潜在状态压缩性的先前方法可能具有侵入性和不稳定性。我们提出了多令牌分歧(MTD),这是一种简单的计算努力度量,定义为模型完整输出分布与浅层辅助预测头分布之间的KL散度。MTD可以直接从具有多个预测头的预训练模型中计算,不需要额外训练。在此基础上,我们引入了分歧引导,一种新的解码方法,用于控制生成文本的计算特性。我们实证显示,MTD在区分复杂任务和简单任务方面比先前方法更有效。在数学推理基准上,MTD与问题难度呈正相关。较低的MTD与更准确的推理相关。MTD提供了一种实用、轻量的工具,用于分析和引导语言模型的计算动态。
英文摘要:
Measuring the in-context computational effort of language models is a key challenge, as metrics like next-token loss fail to capture reasoning complexity. Prior methods based on latent state compressibility can be invasive and unstable. We propose Multiple Token Divergence (MTD), a simple measure of computational effort defined as the KL divergence between a model's full output distribution and that of a shallow, auxiliary prediction head. MTD can be computed directly from pre-trained models with multiple prediction heads, requiring no additional training. Building on this, we introduce Divergence Steering, a novel decoding method to control the computational character of generated text. We empirically show that MTD is more effective than prior methods at distinguishing complex tasks from simple ones. On mathematical reasoning benchmarks, MTD correlates positively with problem difficulty. Lower MTD is associated with more accurate reasoning. MTD provides a practical, lightweight tool for analyzing and steering the computational dynamics of language models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。