Softmax 是 $1/2$-Lipschitz 的:在所有 $\u2113_p$ 范数下的紧界
Softmax is $1/2$-Lipschitz: A tight bound across all $\ell_p$ norms
AI总结:
本文证明 softmax 函数在所有 $\u2113_p$ 范数下具有统一的 $1/2$ Lipschitz 常数,并验证其紧性,从而改进鲁棒性和收敛性理论结果。
摘要:
softmax 函数是机器学习和优化中的一个基本算子,用于分类、注意力机制、强化学习、博弈论以及涉及 log-sum-exp 项的问题。现有的学习模型鲁棒性保证和优化算法收敛性分析通常认为 softmax 算子关于 $\u2113_2$ 范数的 Lipschitz 常数为 $1$。在这项工作中,我们证明了 softmax 函数是压缩的,其 Lipschitz 常数在所有 $p \u2265 1$ 的 $\u2113_p$ 范数下统一为 $1/2$。我们还表明,对于 $p = 1$ 和 $p = \u221e$,softmax 的局部 Lipschitz 常数达到 $1/2$,而对于 $p \u2208 (1,\u221e)$,该常数严格低于 $1/2$,且上确界 $1/2$ 仅在极限情况下达到。据我们所知,这是对 softmax Lipschitz 连续性的首次全面范数统一分析。我们展示了这个更精确的常数如何直接改进一系列关于鲁棒性和收敛性的现有理论结果。我们进一步通过基于注意力的架构(ViT、GPT-2、Qwen3-8B)以及强化学习中的随机策略上的实证研究,验证了 softmax 算子 $1/2$ Lipschitz 常数的紧性。
英文摘要:
The softmax function is a basic operator in machine learning and optimization, used in classification, attention mechanisms, reinforcement learning, game theory, and problems involving log-sum-exp terms. Existing robustness guarantees of learning models and convergence analysis of optimization algorithms typically consider the softmax operator to have a Lipschitz constant of $1$ with respect to the $\ell_2$ norm. In this work, we prove that the softmax function is contractive with the Lipschitz constant $1/2$, uniformly across all $\ell_p$ norms with $p \ge 1$. We also show that the local Lipschitz constant of softmax attains $1/2$ for $p = 1$ and $p = \infty$, and for $p \in (1,\infty)$, the constant remains strictly below $1/2$ and the supremum $1/2$ is achieved only in the limit. To our knowledge, this is the first comprehensive norm-uniform analysis of softmax Lipschitz continuity. We demonstrate how the sharper constant directly improves a range of existing theoretical results on robustness and convergence. We further validate the sharpness of the $1/2$ Lipschitz constant of the softmax operator through empirical studies on attention-based architectures (ViT, GPT-2, Qwen3-8B) and on stochastic policies in reinforcement learning.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。