arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.12756math.OCcs.AIstat.ML
收藏

通过分层剥离优化揭示大语言模型中的对称性传递

Uncovering Symmetry Transfer in Large Language Models via Layer-Peeled Optimization

The Wharton School, University of Pennsylvania(宾夕法尼亚大学沃顿商学院);University of Rochester(罗切斯特大学)

Zhehang Du, Hangfeng He, Weijie Su

AI总结:

本文研究了大语言模型通过分层剥离优化是否能诱导几何结构,证明了目标分布对称性在模型最优解中精确传递,并展示了开源LLM在无显式正则化下自然呈现理论预测的对称性。

摘要:

大型语言模型(LLMs)通过最小化交叉熵损失进行预训练,以预测下一个词。本文研究该优化策略是否能诱导学习模型权重和上下文嵌入的几何结构。我们通过分析一个受约束的分层剥离优化程序,将其作为LLMs的数学可处理替代物,将输出投影矩阵和最后一层上下文嵌入作为优化变量。我们的分析表明,目标下一个词分布中的对称性在分层剥离模型的全局最优解中精确传递。具体而言,当目标词表现出循环位移对称性(如一周七天或一年十二个月)时,最优logit矩阵恰好是循环矩阵,输出投影和上下文嵌入的Gram矩阵也形成循环几何结构。接着,对于在对称群下不变的交换性目标分布,以及更一般地在两传递群作用下不变的分布,我们证明全局最优输出投影矩阵形成一个简单等角紧框架,而最优logit矩阵和上下文嵌入继承输入数据中的置换对称性。关键的技术步骤是将受约束的非凸因子化问题转化为显式的logit层面凸特征化,以及基于对称性的下界,结合最优因子化的精确刻画。最后,我们实证显示,开源LLM在无显式正则化下自然呈现与理论预测一致的对称性。

英文摘要:

Large language models (LLMs) are pretrained by minimizing the cross-entropy loss for next-token prediction. In this paper, we study whether this optimization strategy can induce geometric structure in the learned model weights and context embeddings. We approach this problem by analyzing a constrained layer-peeled optimization program, which serves as a mathematically tractable surrogate for LLMs by treating the output projection matrix and last-layer context embeddings as optimization variables. Our analysis of this nonconvex optimization program demonstrates that symmetries in the target next-token distributions are transferred to the global minimizers of the layer-peeled model in a precise group-theoretic sense. Specifically, we prove that when the target tokens exhibit a cyclic-shift symmetry (such as the seven days of the week or the twelve months of the year), the optimal logit matrix is exactly circulant, and the Gram matrices of both the output projections and the context embeddings form circulant geometries as well. Next, for exchangeable target distributions invariant under the symmetric group and, more generally, under two-transitive group actions, we show that the global optimal output projection matrix forms a simplex equiangular tight frame, while the optimal logit matrix and context embeddings inherit the permutation symmetries present in the input data. A key technical step is to reduce the constrained nonconvex factorized problem to an explicit logit-level convex characterization for cyclic symmetry and to a symmetry-based lower bound for permutation symmetry, together with a sharp characterization of the optimal factorization. Finally, we empirically demonstrate that open-source LLMs naturally exhibit symmetries consistent with our theoretical predictions, despite being trained without any explicit regularization promoting such geometric structure.

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

↑