arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.17248stat.MLcs.LG
收藏

理解基于注意力的分类数据上下文学习

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

Duke University(杜克大学)

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

AI总结:

本文提出一种由自注意力和交叉注意力块组成的网络,可从函数梯度下降视角精确执行分类数据的多步上下文推断,并在合成数据、图像分类和语言生成上验证了其有效性。

摘要:

本文研究了基于注意力模型的上下文学习在具有分类结果的数据上的表现,并从函数梯度下降(GD)的视角审视此类模型中的推断。我们构建了一个由注意力块组成的网络,每个块采用一个自注意力层后接一个交叉注意力层,并带有相应的跳跃连接。该模型能够精确执行多步函数梯度下降推断,用于具有分类观测的上下文推断。我们对这一设置进行了理论分析,推广了该研究方向中的许多先前假设,包括适用该方法的注意力机制类别。我们在合成数据、图像分类和语言生成上通过实验验证了该框架。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑