arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.06609cs.LGstat.ML
收藏

Transformer 通过归一化梯度下降高效执行上下文逻辑回归

Transformers Efficiently Perform In-Context Logistic Regression via Normalized Gradient Descent

School of Computing & Data Science, The University of Hong Kong(香港大学计算机与数据科学学院)

Chenyang Zhang, Yuan Cao

AI总结:

本文研究了softmax注意力机制的Transformer在线性分类数据上的上下文学习能力,通过构建多层Transformer实现上下文逻辑回归,证明其可通过训练单层自注意力层并循环应用获得,提供了训练收敛性和分布外泛化性的理论保障。

摘要:

Transformer通过归一化梯度下降高效执行上下文逻辑回归。本文研究了softmax注意力机制的Transformer在线性分类数据上的上下文学习能力,通过构建多层Transformer实现上下文逻辑回归,证明其可通过训练单层自注意力层并循环应用获得,提供了训练收敛性和分布外泛化性的理论保障。

英文摘要:

Transformers have demonstrated remarkable in-context learning (ICL) capabilities. The strong ICL performance of transformers is commonly believed to arise from their ability to implicitly execute certain algorithms on the context, thereby enhancing prediction and generation. In this work, we investigate how transformers with softmax attention perform in-context learning on linear classification data. We first construct a class of multi-layer transformers that can perform in-context logistic regression, with each layer exactly performing one step of normalized gradient descent on an in-context loss. Then, we show that our constructed transformer can be obtained through (i) training a single self-attention layer supervised by one-step gradient descent, and (ii) recurrently applying the trained layer to obtain a looped model. Training convergence guarantees of the self-attention layer and out-of-distribution generalization guarantees of the looped model are provided. Our results advance the theoretical understanding of ICL mechanism by showcasing how softmax transformers can effectively act as in-context learners.

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

↑