arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.11388cs.LGcs.CL
收藏

稀疏语义维度作为大语言模型的泛化证书

Sparse Semantic Dimension as a Generalization Certificate for LLMs

Indian Institute of Technology Patna(印度理工学院巴特那分校)

Dibyanayan Bandyopadhyay, Asif Ekbal

AI总结:

通过稀疏语义维度理论,揭示大语言模型泛化能力源于内部表示的稀疏结构而非参数数量。

摘要:

标准的统计学习理论预测大型语言模型(LLMs)应出现过拟合,因为其参数数量远超训练词的数量。然而,在实践中,它们却能稳健地泛化。我们提出,模型内部表示的几何结构控制着泛化的有效性:尽管参数空间是高维的,激活状态却位于一个低维、稀疏的流形上。为此,我们引入了稀疏语义维度(SSD),这是一种从稀疏自编码器(SAE)训练过程中所学的活跃特征词汇中衍生出的复杂度度量。将LLM和SAE视为冻结的预言机,我们利用这一框架将模型的泛化能力归因于字典的稀疏性而非总参数数量。实证上,我们在GPT-2 Small和Gemma-2B上验证了这一框架,证明我们的界限在现实样本规模下提供了非空的证书。关键的是,我们揭示了一个反直觉的

英文摘要:

Standard statistical learning theory predicts that Large Language Models (LLMs) should overfit because their parameter counts vastly exceed the number of training tokens. Yet, in practice, they generalize robustly. We propose that the effective capacity controlling generalization lies in the geometry of the model's internal representations: while the parameter space is high-dimensional, the activation states lie on a low-dimensional, sparse manifold. To formalize this, we introduce the Sparse Semantic Dimension (SSD), a complexity measure derived from the active feature vocabulary of a Sparse Autoencoder (SAE) trained on the model's layers. Treating the LLM and SAE as frozen oracles, we utilize this framework to attribute the model's generalization capabilities to the sparsity of the dictionary rather than the total parameter count. Empirically, we validate this framework on GPT-2 Small and Gemma-2B, demonstrating that our bound provides non-vacuous certificates at realistic sample sizes. Crucially, we uncover a counter-intuitive "feature sharpness" scaling law: despite being an order of magnitude larger, Gemma-2B requires significantly fewer calibration samples to identify its active manifold compared to GPT-2, suggesting that larger models learn more compressible, distinct semantic structures. Finally, we show that this framework functions as a reliable safety monitor: out-of-distribution inputs trigger a measurable "feature explosion" (a sharp spike in active features), effectively signaling epistemic uncertainty through learned feature violation. Code is available at: https://github.com/newcodevelop/sparse-semantic-dimension.

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

↑