arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.18506cs.LGcs.AI
收藏

使用线搜索方法加速Transformer微调的收敛

Faster Convergence for Transformer Fine-tuning with Line Search Methods

University Bielefeld(比勒费尔德大学);RWTH Aachen University(亚琛工业大学)

Philip Kenneweg, Leonardo Galli, Tristan Kenneweg, Barbara Hammer

AI总结:

本研究将Armijo线搜索与Adam优化器结合并应用于Transformer微调,通过在网络局部单元分别执行线搜索,在小型数据集或小预算下显著优于传统Adam,并提供了一个无需超参数的PyTorch优化器。

摘要:

最近的研究表明,线搜索方法能大幅提升传统随机梯度下降方法在多种数据集和架构上的性能[1], [2]。在本研究中,我们成功将线搜索方法扩展到自然语言处理中新颖且广受欢迎的Transformer架构及数据集领域。具体而言,我们将Armijo线搜索与Adam优化器结合,并通过将网络架构细分为合理的单元,在这些局部单元上分别执行线搜索来进行扩展。我们的优化方法优于传统的Adam优化器,在小型数据集或小训练预算下取得显著性能提升,同时在其他测试用例中表现持平或更优。本研究以Python包形式公开,提供了一个无需超参数的PyTorch优化器,兼容任意网络架构。

英文摘要:

Recent works have shown that line search methods greatly increase performance of traditional stochastic gradient descent methods on a variety of datasets and architectures [1], [2]. In this work we succeed in extending line search methods to the novel and highly popular Transformer architecture and dataset domains in natural language processing. More specifically, we combine the Armijo line search with the Adam optimizer and extend it by subdividing the networks architecture into sensible units and perform the line search separately on these local units. Our optimization method outperforms the traditional Adam optimizer and achieves significant performance improvements for small data sets or small training budgets, while performing equal or better for other tested cases. Our work is publicly available as a python package, which provides a hyperparameter-free pytorch optimizer that is compatible with arbitrary network architectures.

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

↑