Implicit Regularization of Gradient Flow on One-Layer Softmax Attention

Heejune Sheen, Siyu Chen, Tianhao Wang, Harrison H. Zhou
3/13/2024
cs.LGcs.AImath.OC

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sheen2024implicit,
  title  = {Implicit Regularization of Gradient Flow on One-Layer Softmax Attention},
  author = {Heejune Sheen and Siyu Chen and Tianhao Wang and Harrison H. Zhou},
  year   = {2024},
  eprint = {2403.08699},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.08699v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.08699.svg)](https://codeofpaper.com/paper/2403.08699)

Discussion