Dynamics of Transient Structure in In-Context Linear Regression Transformers

Liam Carroll, Jesse Hoogland, Matthew Farrugia-Roberts, Daniel Murfet
1/29/2025
cs.LG

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Modern deep neural networks display striking examples of rich internal computational structure. Uncovering principles governing the development of such structure is a priority for the science of deep learning. In this paper, we explore the transient ridge phenomenon: when transformers are trained on in-context linear regression tasks with intermediate task diversity, they initially behave like ridge regression before specializing to the tasks in their training distribution. This transition from a general solution to a specialized solution is revealed by joint trajectory principal component analysis. Further, we draw on the theory of Bayesian internal model selection to suggest a general explanation for the phenomena of transient structure in transformers, based on an evolving tradeoff between loss and complexity. We empirically validate this explanation by measuring the model complexity of our transformers as defined by the local learning coefficient.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{carroll2025dynamics,
  title  = {Dynamics of Transient Structure in In-Context Linear Regression Transformers},
  author = {Liam Carroll and Jesse Hoogland and Matthew Farrugia-Roberts and Daniel Murfet},
  year   = {2025},
  eprint = {2501.17745},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.17745v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.17745.svg)](https://codeofpaper.com/paper/2501.17745)

Discussion