交叉熵训练下Transformer层的一阶平均场控制分析
A First-Order Mean Field Control Analysis of Transformer Layers under Cross-Entropy Training
AI总结:
通过连续深度平均场控制视角,将Transformer残差层视为受控隐态流的显式欧拉格式,证明了有限深度轨迹的O(ε)路径逼近,并推导了庞特里亚金条件。
摘要:
我们从连续深度平均场控制视角研究交叉熵训练下的Transformer型残差层。将深度视为时间,层参数视为控制,残差Transformer递归视为受控隐态流的显式欧拉格式。对于固定控制,我们证明了有限深度轨迹由连续流逼近的$O(\varepsilon)$路径逼近,并结合经验交叉熵风险的高概率采样界。我们将极限总体问题表述为隐态律的一阶输运控制问题,并推导出庞特里亚金条件,其终端伴随包含softmax残差。我们还给出了有限类和度量熵一致估计,比较了最优值,并讨论了连续极小元的存在性、稳定性、连续到离散恢复、初始化以及范围估计。
英文摘要:
We study Transformer-type residual layers under cross-entropy training through a continuous-depth mean field control viewpoint. Depth is treated as time, layer parameters as controls, and the residual Transformer recursion as an explicit Euler scheme for a controlled hidden-state flow. For fixed controls, we prove an $O(\varepsilon)$ pathwise approximation of finite-depth trajectories by the continuous flow and combine this with high-probability sampling bounds for the empirical cross-entropy risk. We formulate the limiting population problem as a first-order transport control problem for the law of hidden states and derive a Pontryagin condition whose terminal adjoint contains the softmax residual. We also give finite-class and metric-entropy uniform estimates, compare optimal values, and discuss existence, stability, continuous-to-discrete recovery, initialization, and range estimates for continuous minimizers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。