mlsanityData to 26 Nov 2026

In-context learning of solution to simple linear regression task using transformer with masked linear self-attention

arXiv 2611.02817 ↗Submitted 2 Nov 2026cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

In-context learning is a remarkable property of transformers and has recently received a lot of interest. In many studies of in-context learning, it has been shown that transformers are capable of implementing solvers for linear and non-linear regression problems, in which the most of them implement gradient descent algorithm. However, it is still unclear whether those implementations have actually been acquired through training. In this paper, we constructed a transformer with masked linear self-attention, which in-context learns the least squares estimate in a simple regression task. The point here is that the closed form (analytical) solution is obtained by using layer normalization rather than an approximate solution based on the gradient descent algorithm. Then, we showed an experimental example, in which, by taking the non-uniqueness of the transformer representation into account, our implementation for a closed form solution is used in the transformer trained with the l1 regularization when the target output is the least squares estimate.

Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 11 of its 14 references that are in the map. Submitted 2 Nov 2026.

Builds on

11 of 14 references.

References · 11

  1. 2017Attention Is All You Needcited by 62,125
  2. 2015Deep Residual Learning for Image Recognitioncited by 53,116
  3. 2014Adam: A Method for Stochastic Optimizationcited by 38,598
  4. 2020Language Models are Few-Shot Learnerscited by 33,113
  5. 2022Transformers learn in-context by gradient descentcited by 763
  6. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 754
  7. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 729
  8. 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 313
  9. 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 288
  10. 2023One Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attentioncited by 185
  11. 2026In-context learning of closed form solution to simple linear regression task using transformer with linear self-attentioncited by 1

Built on by

Not cited yet.