arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.13552cs.LGcs.AI
收藏

softmax的幽灵:限制安全步长的复杂奇点

Ghosts of Softmax: Complex Singularities That Limit Safe Step Sizes in Cross-Entropy

Oak Ridge National Laboratory(奥克雷德国家实验室)

Piyush Sao

AI总结:

本文研究了交叉熵优化中softmax函数的复数零点对安全步长的影响,推导了闭合表达式并提出基于logit线性化的约束条件,揭示了步长安全性的几何约束机制。

摘要:

交叉熵训练的优化分析依赖于损失函数的局部泰勒模型来预测步长是否能降低目标。这些近似值仅在真实损失沿更新方向的泰勒收敛半径内可靠。该半径不仅由实数曲率决定,还受最近复数奇点的影响。对于交叉熵,softmax分区函数F=∑_j exp(z_j)具有复数零点——'softmax的幽灵',这些零点在损失中引起对数奇点并限制半径。为了使该几何结构可用,我们推导了沿所提议更新方向的logit线性化下的闭合表达式。在二分类情况下,精确半径为ρ*=√(δ²+π²)/Δ_a。在多类情况下,我们得到下界ρ_a=π/Δ_a,其中Δ_ a= max_k a_k - min_k a_k是方向logit导数a_k=∇z_k·v的范围。此下界成本一个雅可比-向量乘积,揭示了步长脆弱性的原因:接近决策翻转且对所提议方向高度敏感的样本会收紧半径。归一化步长r=τ/ρ_a区分安全与危险更新。在六个测试架构和多个步长方向上,r<1时无模型失败,但r≥1时出现崩溃。温度缩放验证了机制:通过ρ_a归一化将起始阈值范围从标准差0.992缩小到0.164。一个强制τ≤ρ_a的控制器在测试中能承受高达10,000倍的学习率冲击,即使梯度裁剪仍会崩溃。这些结果识别了交叉熵优化的几何约束,该约束通过泰勒收敛而非Hessian曲率发挥作用。

英文摘要:

Optimization analyses for cross-entropy training rely on local Taylor models of the loss to predict whether a proposed step will decrease the objective. These surrogates are reliable only inside the Taylor convergence radius of the true loss along the update direction. That radius is set not by real-line curvature alone but by the nearest complex singularity. For cross-entropy, the softmax partition function $F=\sum_j \exp(z_j)$ has complex zeros -- ``ghosts of softmax'' -- that induce logarithmic singularities in the loss and cap this radius. To make this geometry usable, we derive closed-form expressions under logit linearization along the proposed update direction. In the binary case, the exact radius is $ρ^*=\sqrt{δ^2+ π^2}/Δ_a$. In the multiclass case, we obtain the lower bound $ρ_a=π/Δ_a$, where $Δ_a=\max_k a_k-\min_k a_k$ is the spread of directional logit derivatives $a_k=\nabla z_k\cdot v$. This bound costs one Jacobian-vector product and reveals what makes a step fragile: samples that are both near a decision flip and highly sensitive to the proposed direction tighten the radius. The normalized step size $r=τ/ρ_a$ separates safe from dangerous updates. Across six tested architectures and multiple step directions, no model fails for $r<1$, yet collapse appears once $r\ge 1$. Temperature scaling confirms the mechanism: normalizing by $ρ_a$ shrinks the onset-threshold spread from standard deviation $0.992$ to $0.164$. A controller that enforces $τ\leρ_a$ survives learning-rate spikes up to $10{,} 000\times$ in our tests, where gradient clipping still collapses. Together, these results identify a geometric constraint on cross-entropy optimization that operates through Taylor convergence rather than Hessian curvature.

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

↑