← 返回论文检索
ICML 2025PosterAccept (poster)

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

Aaron Wang, William Convertino, Xiang Cheng, Ricardo Henao, Lawrence Carin

Duke University · UC Berkeley · Duke

PDF 由论文原始站点提供,PaperCompass 不保存论文文件。

摘要

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.