On Understanding Attention-Based In-Context Learning for Categorical Data

Aaron T. Wang, William Convertino, Xiang Cheng, Ricardo Henao, Lawrence Carin
5/27/2024
stat.MLcs.LG

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2024understanding,
  title  = {On Understanding Attention-Based In-Context Learning for Categorical Data},
  author = {Aaron T. Wang and William Convertino and Xiang Cheng and Ricardo Henao and Lawrence Carin},
  year   = {2024},
  eprint = {2405.17248},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.17248v2},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.17248.svg)](https://codeofpaper.com/paper/2405.17248)

Discussion