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

通过Transformer模型实现上下文深度学习

In-Context Deep Learning via Transformer Models

Northwestern University(西北大学);UC Berkeley(加州大学伯克利分校);Simons Institute for the Theory of Computing(西蒙斯理论计算研究所)

Weimin Wu, Maojiang Su, Jerry Yao-Chieh Hu, Zhao Song, Han Liu

AI总结:

该研究探索Transformer通过上下文学习(ICL)模拟深度模型训练过程的能力,构建了可模拟N层ReLU网络L步梯度下降的(2N+4)L层Transformer,提供理论保证并验证其性能与直接训练相当。

摘要:

我们研究了Transformer通过上下文学习(ICL)模拟深度模型训练过程的能力,即上下文深度学习。我们的核心贡献是提供一个积极案例:使用Transformer通过ICL以隐式方式模拟基于梯度下降的深度神经网络训练。具体而言,我们明确构建了一个(2N+4)L层Transformer,能够通过ICL模拟N层ReLU网络的L步梯度下降。我们还给出了在任意给定误差内的近似理论保证,以及ICL梯度下降的收敛性保证。此外,我们将分析扩展到使用基于Softmax的Transformer的更实际场景。我们在3层、4层和6层神经网络的合成数据集上验证了研究结果,结果显示ICL性能与直接训练相当。

英文摘要:

We investigate the transformer's capability to simulate the training process of deep models via in-context learning (ICL), i.e., in-context deep learning. Our key contribution is providing a positive example of using a transformer to train a deep neural network by gradient descent in an implicit fashion via ICL. Specifically, we provide an explicit construction of a $(2N+4)L$-layer transformer capable of simulating $L$ gradient descent steps of an $N$-layer ReLU network through ICL. We also give the theoretical guarantees for the approximation within any given error and the convergence of the ICL gradient descent. Additionally, we extend our analysis to the more practical setting using Softmax-based transformers. We validate our findings on synthetic datasets for 3-layer, 4-layer, and 6-layer neural networks. The results show that ICL performance matches that of direct training.

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

↑