利用Softmax熵的累积量展开探测下一词预测的几何结构 Probing Geometry of Next Token Prediction Using Cumulant Expansion of the Softmax Entropy 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2025-10-05
⬇️ 8 次下载
👁️ 预览文献
💡 AI 中文简介
研究用累积量展开分析大语言模型预测下一个词时如何学习高阶统计结构。方法是将每层logit分布的softmax熵视为扰动,推导出可分离各阶相关性的累积量。在GPT-2和Pythia模型上实验发现:有意义文本的累积量随层数先升后稳,乱序文本则平坦;训练中累积量单调增长至饱和,显示模型从学方差到学偏度、峰度等;数学文本有独特累积量特征。这提供了一种轻量、有数学基础的探测工具。
领域自然语言处理 / 大语言模型可解释性
适合谁读需要一定专业背景(概率统计、深度学习基础)
核心贡献1. 提出基于累积量展开的框架,可分离并量化LLM中逐层的高阶统计相关性;2. 实证揭示模型从低阶到高阶统计结构的学习动态,并区分数学与语言内容的不同处理机制。
关键数据在GPT-2和Pythia模型、Pile-10K提示上:结构化提示的累积量随层数先升后稳,乱序提示平坦;训练中所有累积量单调增长至饱和;数学提示与通用文本的累积量特征显著不同。
推荐理由想了解大模型内部如何一步步学会高阶统计规律?这篇论文用累积量展开给出了轻量又数学严谨的探测方法,结果直观有趣。
关键词["累积量展开", "Softmax熵", "下一词预测", "大语言模型", "特征学习", "高阶统计"]

原文摘要

查看英文原文摘要

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.