On Understanding Attention-Based In-Context Learning for Categorical Data
Not on the map. Why?
Abstract (arXiv)
In-context learning based on attention models is examined for data with categorical outcomes, with inference in such models viewed from the perspective of functional gradient descent (GD). We develop a network composed of attention blocks, with each block employing a self-attention layer followed by a cross-attention layer, with associated skip connections. This model can exactly perform multi-step functional GD inference for in-context inference with categorical observations. We perform a theoretical analysis of this setup, generalizing many prior assumptions in this line of work, including the class of attention mechanisms for which it is appropriate. We demonstrate the framework empirically on synthetic data, image classification and language generation.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 18 of its 32 references that are in the map. First posted on arXiv 27 May 2024.
Builds on
18 of 32 references.
References · 18
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,861
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
- 2020On Layer Normalization in the Transformer Architecturecited by 906
- 2022Transformers learn in-context by gradient descentcited by 714
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
6 more
- 2023TinyStories: How Small Can Language Models Be and Still Speak Coherent English?cited by 425
- 2021Transformers Can Do Bayesian Inferencecited by 338
- 2023Trained Transformers Learn Linear Models In-Contextcited by 331
- 2023One Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attentioncited by 168
- 2023Linear attention is (maybe) all you need (to understand transformer optimization)cited by 97
- 2023Transformers Implement Functional Gradient Descent to Learn Non-Linear Functions In Contextcited by 63
Built on by
Citing papers per year: 2025: 3.
3 papers.