arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.04285cs.CLcond-mat.stat-mechcs.LGstat.ML
收藏

利用Softmax熵的累积量展开探究下一词元预测的几何结构

Probing Geometry of Next Token Prediction Using Cumulant Expansion of the Softmax Entropy

Institute of Physics, University of Amsterdam(阿姆斯特丹大学物理研究所);Massachusetts Institute of Technology(麻省理工学院)

Karthik Viswanathan, Sang Eon Park

AI总结:

本研究提出基于softmax熵累积量展开的框架,通过追踪GPT-2、Pythia模型在Pile-10K提示上的累积量变化,揭示LLM下一词元预测中的高阶统计结构学习规律,为高维神经网络特征学习动态提供轻量的数学化探测工具。

摘要:

我们提出了一个累积量展开框架,用于量化大语言模型(LLM)在下一词元预测过程中内化高阶统计结构的方式。通过将每一层logit分布的softmax熵视为其“中心”分布周围的扰动,我们推导出了闭式累积量观测值,可依次分离出更高阶的相关性。在实验中,我们在Pile-10K提示集上追踪了GPT-2和Pythia模型中的这些累积量。(i)结构化提示在各层间呈现出特征性的“上升-平台”曲线,而词元打乱的提示则保持平坦,揭示了累积量曲线对有意义上下文的依赖性。(ii)在训练过程中,所有累积量在饱和前均单调递增,直观展现了模型从捕捉方差到学习偏度、峰度及更高阶统计结构的演进过程。(iii)数学提示与通用文本相比呈现出截然不同的累积量特征,量化了模型处理数学内容与语言内容时采用的根本不同的机制。综上,这些结果确立了累积量分析作为一种轻量、有数学依据的探针,可用于研究高维神经网络中的特征学习动态。

英文摘要:

We introduce a cumulant-expansion framework for quantifying how large language models (LLMs) internalize higher-order statistical structure during next-token prediction. By treating the softmax entropy of each layer's logit distribution as a perturbation around its "center" distribution, we derive closed-form cumulant observables that isolate successively higher-order correlations. Empirically, we track these cumulants in GPT-2 and Pythia models on Pile-10K prompts. (i) Structured prompts exhibit a characteristic rise-and-plateau profile across layers, whereas token-shuffled prompts remain flat, revealing the dependence of the cumulant profile on meaningful context. (ii) During training, all cumulants increase monotonically before saturating, directly visualizing the model's progression from capturing variance to learning skew, kurtosis, and higher-order statistical structures. (iii) Mathematical prompts show distinct cumulant signatures compared to general text, quantifying how models employ fundamentally different processing mechanisms for mathematical versus linguistic content. Together, these results establish cumulant analysis as a lightweight, mathematically grounded probe of feature-learning dynamics in high-dimensional neural networks.

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

↑