arXiv AI

You Don't Need Feature Learning to Do In-Context Learning

The paper investigates memorization versus generalization in in-context learning (ICL) by analyzing how rotation‑invariant kernel machines solve a linear regression ICL task. By decomposing the task in the kernel eigenbasis, it shows that as more samples are added, the model first captures low‑degree components that generalize, then progressively learns higher‑degree components that lead to memorization. The study concludes that feature learning is not essential for ICL and that transformers exhibit memorization patterns predicted by the kernel theory.

arXiv Machine Learning
5d ago

Distinct mechanisms underlying in-context learning in transformers

The paper investigates how transformers perform in-context learning by training them on a finite set of discrete Markov chains. It identifies four distinct algorithmic phases—based on memorization versus generalization and on using 1-point versus 2-point statistics—each implemented by specific multi-layer subcircuits. The study shows that transitions between these phases are governed by data diversity thresholds and a representational bottleneck, and it provides a symmetry-constrained theory explaining the sharp shift from 1-point to 2-point generalization.

By Cole Gibson, Wenping Cui, Gautam Reddy
arXiv Machine Learning
Sep 25

Transformers as Cross-Task Learners: Shared Structure Drives Sample Efficiency in In-Context Learning

Transformers can learn broad families of tasks during pretraining and adapt to unseen tasks from a short prompt, but a rigorous understanding of this capability is limited. This paper studies how shared cross‑task structure influences the sample complexity of in‑context learning (ICL) by characterizing task‑space complexity through covering numbers, yielding a set of anchor functions that localize unseen tasks and predict responses. The authors construct a Transformer with Softmax attention to approximate this procedure and derive an error bound that separates the effects of pretraining tasks and prompt length, showing that once enough tasks are available the dependence on prompt length becomes dimension‑free.

By Zhongjie Shi, Rongjie Lai, Alexander Cloninger, Wenjing Liao