Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Vladymyrov, Max, von Oswald, Johannes, Sandler, Mark, Ge, Rong
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2402.14180
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866914997349646336
author Vladymyrov, Max
von Oswald, Johannes
Sandler, Mark
Ge, Rong
author_facet Vladymyrov, Max
von Oswald, Johannes
Sandler, Mark
Ge, Rong
contents Recent research has demonstrated that transformers, particularly linear attention models, implicitly execute gradient-descent-like algorithms on data provided in-context during their forward inference step. However, their capability in handling more complex problems remains unexplored. In this paper, we prove that each layer of a linear transformer maintains a weight vector for an implicit linear regression problem and can be interpreted as performing a variant of preconditioned gradient descent. We also investigate the use of linear transformers in a challenging scenario where the training data is corrupted with different levels of noise. Remarkably, we demonstrate that for this problem linear transformers discover an intricate and highly effective optimization algorithm, surpassing or matching in performance many reasonable baselines. We analyze this algorithm and show that it is a novel approach incorporating momentum and adaptive rescaling based on noise levels. Our findings show that even linear transformers possess the surprising ability to discover sophisticated optimization strategies.
format Preprint
id arxiv_https___arxiv_org_abs_2402_14180
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Linear Transformers are Versatile In-Context Learners
Vladymyrov, Max
von Oswald, Johannes
Sandler, Mark
Ge, Rong
Machine Learning
Recent research has demonstrated that transformers, particularly linear attention models, implicitly execute gradient-descent-like algorithms on data provided in-context during their forward inference step. However, their capability in handling more complex problems remains unexplored. In this paper, we prove that each layer of a linear transformer maintains a weight vector for an implicit linear regression problem and can be interpreted as performing a variant of preconditioned gradient descent. We also investigate the use of linear transformers in a challenging scenario where the training data is corrupted with different levels of noise. Remarkably, we demonstrate that for this problem linear transformers discover an intricate and highly effective optimization algorithm, surpassing or matching in performance many reasonable baselines. We analyze this algorithm and show that it is a novel approach incorporating momentum and adaptive rescaling based on noise levels. Our findings show that even linear transformers possess the surprising ability to discover sophisticated optimization strategies.
title Linear Transformers are Versatile In-Context Learners
topic Machine Learning
url https://arxiv.org/abs/2402.14180