mlsanityData to 14 Oct 2026

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

arXiv 2605.06609 ↗First posted 7 May 2026cs.LG stat.MLcited by 1

Not on the map. Why?

Abstract (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 the context, thereby enhancing prediction and generation. In this work, we investigate how transformers with softmax attention perform in-context learning on linear classification data. We first construct a class of multi-layer transformers that can perform in-context logistic regression, with each layer exactly performing one step of normalized gradient descent on an in-context loss. Then, we show that our constructed transformer can be obtained through (i) training a single self-attention layer supervised by one-step gradient descent, and (ii) recurrently applying the trained layer to obtain a looped model. Training convergence guarantees of the self-attention layer and out-of-distribution generalization guarantees of the looped model are provided. Our results advance the theoretical understanding of ICL mechanism by showcasing how softmax transformers can effectively act as in-context learners.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 18 of its 70 references that are in the map. First posted on arXiv 7 May 2026.

Builds on

18 of 70 references.

References · 18

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  4. 2022A Generalist Agentcited by 808
  5. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
  6. 2025Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approachcited by 415
  7. 2023How Do Transformers Learn In-Context Beyond Simple Functions? A Case Study on Learning with Representationscited by 75
  8. 2024Can Looped Transformers Learn to Implement Multi-step Gradient Descent for In-context Learning?cited by 65
  9. 2023Toward Understanding Why Adam Converges Faster Than SGD for Transformerscited by 53
  10. 2025Learning Compositional Functions with Transformers from Easy-to-Hard Datacited by 36
  11. 2024In-Context Learning of a Linear Transformer Block: Benefits of the MLP Component and One-Step GD Initializationcited by 33
  12. 2024On the Optimization and Generalization of Two-layer Transformers with Sign Gradient Descentcited by 12
6 more
  1. 2024Understanding In-Context Learning of Linear Models in Transformers Through an Adversarial Lenscited by 8
  2. 2025Transformers Simulate MLE for Sequence Generation in Bayesian Networkscited by 8
  3. 2025Learning Spectral Methods by Transformerscited by 6
  4. 2025Transformers versus the EM Algorithm in Multi-class Clusteringcited by 5
  5. 2025Towards Theoretical Understanding of Transformer Test-Time Computing: Investigation on In-Context Linear Regressioncited by 3
  6. 2025Towards Understanding Transformers in Learning Random Walkscited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.