paper-with-me

Papers

What learning algorithm is in-context learning? Investigations with linear models

2022-11-28 · Ekin Akyürek, Dale Schuurmans, Jacob Andreas, Tengyu Ma, Denny Zhou

Neural sequence models, especially transformers, exhibit a remarkable capacity for in-context learning. They can construct new predictors from sequences of labeled examples $(x, f(x))$ presented in the input without further parameter updates. We investigate the hypothesis that transformer-based in-context learners implement standard learning algorithms implicitly, by encoding smaller models in their activations, and updating these implicit models as new examples appear in the context. Using linear regression as a prototypical problem, we offer three sources of evidence for this hypothesis. First, we prove by construction that transformers can implement learning algorithms for linear models based on gradient descent and closed-form ridge regression. Second, we show that trained in-context learners closely match the predictors computed by gradient descent, ridge regression, and exact least-squares regression, transitioning between different predictors as transformer depth and dataset noise vary, and converging to Bayesian estimators for large widths and depths. Third, we present preliminary evidence that in-context learners share algorithmic features with these predictors: learners' late layers non-linearly encode weight vectors and moment matrices. These results suggest that in-context learning is understandable in algorithmic terms, and that (at least in the linear case) learners may rediscover standard estimation algorithms. Code and reference implementations are released at https://github.com/ekinakyurek/google-research/blob/master/incontext.

📄 PDF Abstract BibTeX arXiv:2211.15661

Code (0)

등록된 구현이 없습니다.

Tasks

In-Context Learningregression

Methods 이 논문이 사용한 방법론

Linear Regression Linear Regression is a method for modelling a relationship between a dependent variable and independent variables. These models can be fit with numerous approaches. The most…

Similar Papers 제목 키워드 기반

What Can Transformers Learn In-Context? A Case Study of Simple Function Classes

2022-08-01 · Shivam Garg, Dimitris Tsipras, Percy Liang, Gregory Valiant

In-context learning refers to the ability of a model to condition on a prompt sequence consisting of in-context examples (input-output pairs corresponding to some task) along with a new query input, and generate the corr…

In-Context Learning

Decontextualized learning for interpretable hierarchical representations of visual patterns

2020-08-31 · R. Ian Etheredge, Manfred Schartl, Alex Jordan

Apart from discriminative models for classification and object detection tasks, the application of deep convolutional neural networks to basic research utilizing natural imaging data has been somewhat limited; particular…

Image Generationobject-detectionRepresentation Learning

What makes us laugh? Investigations into Automatic Humor Classification

2018-06-01 · WS 2018 6 · Vikram Ahuja, Taradheesh Bali, Navjyoti Singh

Most scholarly works in the field of computational detection of humour derive their inspiration from the incongruity theory. Incongruity is an indispensable facet in drawing a line between humorous and non-humorous occur…

ClassificationGeneral ClassificationHumor Detection

A is for Absorption: Studying Feature Splitting and Absorption in Sparse Autoencoders

2024-09-22 · David Chanin, James Wilken-Smith, Tomáš Dulka, Hardik Bhatnagar 외

Sparse Autoencoders (SAEs) have emerged as a promising approach to decompose the activations of Large Language Models (LLMs) into human-interpretable latents. In this paper, we pose two questions. First, to what extent d…

Confronting LLMs with Traditional ML: Rethinking the Fairness of Large Language Models in Tabular Classifications

2023-10-23 · Yanchen Liu, Srishti Gautam, Jiaqi Ma, Himabindu Lakkaraju

Recent literature has suggested the potential of using large language models (LLMs) to make classifications for tabular tasks. However, LLMs have been shown to exhibit harmful social biases that reflect the stereotypes a…

FairnessIn-Context Learningtabular-classification