paper-with-me

홈 › Papers

Linear Transformers are Versatile In-Context Learners

2024-02-21 · Max Vladymyrov, Johannes von Oswald, Mark Sandler, Rong Ge

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.

📄 PDF Abstract BibTeX arXiv:2402.14180

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Linear Regression Linear Regression is a method for modelling a relationship between a dependent variable and independent variables. These models can be fit with numerous approaches. The most…

Similar Papers 제목 키워드 기반

What learning algorithm is in-context learning? Investigations with linear models

2022-11-28 · Ekin Akyürek, Dale Schuurmans, Jacob Andreas, Tengyu Ma 외

Neural sequence models, especially transformers, exhibit a remarkable capacity for in-context learning. They can construct new predictors from sequences of labeled examples $(x, f(x))$ presented in the input without furt…

In-Context Learningregression

Hierarchical Transformers are Efficient Meta-Reinforcement Learners

2024-02-09 · Gresa Shala, André Biedenkapp, Josif Grabocka

We introduce Hierarchical Transformers for Meta-Reinforcement Learning (HTrMRL), a powerful online meta-reinforcement learning approach. HTrMRL aims to address the challenge of enabling reinforcement learning agents to p…

Meta Reinforcement Learningreinforcement-learningReinforcement Learning

Transformers are Minimax Optimal Nonparametric In-Context Learners

2024-08-22 · Juno Kim, Tai Nakamaki, Taiji Suzuki

In-context learning (ICL) of large language models has proven to be a surprisingly effective method of learning a new task from only a few demonstrative examples. In this paper, we study the efficacy of ICL from the view…

DiversityIn-Context LearningLearning TheoryRepresentation Learning

Transformers are almost optimal metalearners for linear classification

2025-10-22 · Roey Magen, Gal Vardi arxiv

Transformers have demonstrated impressive in-context learning (ICL) capabilities, raising the question of whether they can serve as metalearners that adapt to new tasks using only a small number of in-context examples, w…

Transformers Efficiently Perform In-Context Logistic Regression via Normalized Gradient Descent

2026-05-07 · Chenyang Zhang, Yuan Cao arxiv

Transformers have demonstrated remarkable in-context learning (ICL) capabilities. The strong ICL performance of transformers is commonly believed to arise from their ability to implicitly execute certain algorithms on th…