Implicit Regularization of Gradient Flow on One-Layer Softmax Attention

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Sheen, Heejune, Chen, Siyu, Wang, Tianhao, Zhou, Harrison H.
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866911796245299200
author Sheen, Heejune
Chen, Siyu
Wang, Tianhao
Zhou, Harrison H.
author_facet Sheen, Heejune
Chen, Siyu
Wang, Tianhao
Zhou, Harrison H.
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2403_08699
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Implicit Regularization of Gradient Flow on One-Layer Softmax Attention
Sheen, Heejune
Chen, Siyu
Wang, Tianhao
Zhou, Harrison H.
Machine Learning
Artificial Intelligence
Optimization and Control
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.
title Implicit Regularization of Gradient Flow on One-Layer Softmax Attention
topic Machine Learning
Artificial Intelligence
Optimization and Control
url https://arxiv.org/abs/2403.08699