paper-with-me

홈 › Papers

In-Context Learning of Linear Systems: Generalization Theory and Applications to Operator Learning

2024-09-18 · Frank Cole, Yulong Lu, Wuzhe Xu, Tianhao Zhang

We study theoretical guarantees for solving linear systems in-context using a linear transformer architecture. For in-domain generalization, we provide neural scaling laws that bound the generalization error in terms of the number of tasks and sizes of samples used in training and inference. For out-of-domain generalization, we find that the behavior of trained transformers under task distribution shifts depends crucially on the distribution of the tasks seen during training. We introduce a novel notion of task diversity and show that it defines a necessary and sufficient condition for pre-trained transformers generalize under task distribution shifts. We also explore applications of learning linear systems in-context, such as to in-context operator learning for PDEs. Finally, we provide some numerical experiments to validate the established theory.

📄 PDF Abstract BibTeX arXiv:2409.12293

Code (2)

lugroupumn/icl-ellipticpdes 공식 구현 pytorch
lugroupumn/icl_linear_systems 공식 구현

Tasks

DiversityDomain GeneralizationIn-Context LearningOperator learning

Similar Papers 제목 키워드 기반

Provable Length Generalization in Sequence Prediction via Spectral Filtering

2024-11-01 · Annie Marsden, Evan Dogariu, Naman Agarwal, Xinyi Chen 외

We consider the problem of length generalization in sequence prediction. We define a new metric of performance in this setting -- the Asymmetric-Regret -- which measures regret against a benchmark predictor with longer c…

Prediction

Lecture Notes on Linear Neural Networks: A Tale of Optimization and Generalization in Deep Learning

2024-08-25 · Nadav Cohen, Noam Razin

These notes are based on a lecture delivered by NC on March 2021, as part of an advanced course in Princeton University on the mathematical understanding of deep learning. They present a theory (developed by NC, NR and c…

Deep LearningLearning Theory

A Theory of Diversity for Random Matrices with Applications to In-Context Learning of Schrödinger Equations

2026-01-18 · Frank Cole, Yulong Lu, Shaurya Sehgal arxiv

We address the following question: given a collection $\{\mathbf{A}^{(1)}, \dots, \mathbf{A}^{(N)}\}$ of independent $d \times d$ random matrices drawn from a common distribution $\mathbb{P}$, what is the probability tha…

Understanding In-Context Learning for Nonlinear Regression with Transformers: Attention as Featurizer

2026-05-06 · Alexander Hsu, Zhaiming Shen, Wenjing Liao, Rongjie Lai arxiv

Pre-trained transformers are able to learn from examples provided as part of the prompt without any weight updates, a remarkable ability known as in-context learning (ICL). Despite its demonstrated efficacy across variou…

An Asymptotic Theory of Chain-of-Thought in In-Context Learning

2026-06-02 · Kaito Takanami, Cengiz Pehlevan arxiv

Chain-of-thought (CoT) reasoning has become a widely used mechanism for eliciting multi-step reasoning in large language models by generating intermediate reasoning steps at inference time. Yet the scaling behavior of ge…