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

单层Softmax注意力机制中梯度流的隐式正则化

Implicit Regularization of Gradient Flow on One-Layer Softmax Attention

Yale University(耶鲁大学)

Heejune Sheen, Siyu Chen, Tianhao Wang, Harrison H. Zhou

AI总结:

本文研究单层softmax注意力模型梯度流的隐式正则化,证明其最小化键查询乘积的核范数,对应SVM问题,与合并训练的Frobenius范数正则化形成对比。

摘要:

我们研究了单层softmax注意力模型在分类问题中关于指数损失的梯度流,其中键和查询权重矩阵分别训练。在数据的可分离性假设下,我们证明当梯度流达到最小损失值时,它进一步隐式最小化键和查询权重矩阵乘积的核范数。这种隐式正则化可以描述为关于注意力权重的支持向量机(SVM)问题。这一发现与先前的结果形成对比,先前结果表明当键和查询矩阵合并为单个权重矩阵进行训练时,梯度下降在乘积权重矩阵上诱导了Frobenius范数的隐式正则化。对于对角键和查询矩阵,我们的分析基于重参数化技术,并利用与分类数据相关的SVM的近似KKT条件。此外,在初始化时权重矩阵的奇异空间与数据特征适当对齐的情况下,结果扩展到一般权重配置。

英文摘要:

We study gradient flow on the exponential loss for a classification problem with a one-layer softmax attention model, where the key and query weight matrices are trained separately. Under a separability assumption on the data, we show that when gradient flow achieves the minimal loss value, it further implicitly minimizes the nuclear norm of the product of the key and query weight matrices. Such implicit regularization can be described by a Support Vector Machine (SVM) problem with respect to the attention weights. This finding contrasts with prior results showing that the gradient descent induces an implicit regularization on the Frobenius norm on the product weight matrix when the key and query matrices are combined into a single weight matrix for training. For diagonal key and query matrices, our analysis builds upon the reparameterization technique and exploits approximate KKT conditions of the SVM associated with the classification data. Moreover, the results are extended to general weights configurations given proper alignment of the weight matrices' singular spaces with the data features at initialization.

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

↑