Unknown

Dataset Information

Asymptotic theory of in-context learning by linear attention.


ABSTRACT: Transformers have a remarkable ability to learn and execute tasks based on examples provided within the input itself, without explicit prior training. It has been argued that this capability, known as in-context learning (ICL), is a cornerstone of Transformers' success, yet questions about the necessary sample complexity, pretraining task diversity, and context length for successful ICL remain unresolved. Here, we provide a precise answer to these questions in an exactly solvable model of ICL of a linear regression task by linear attention. We derive sharp asymptotics for the learning curve in a phenomenologically rich scaling regime where the token dimension is taken to infinity; the context length and pretraining task diversity scale proportionally with the token dimension; and the numbe

SUBMITTER: Lu YM 

PROVIDER: S-EPMC12280938 | biostudies-literature | 2025 Jul

REPOSITORIES: biostudies-literature