arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.04683cs.CLcs.LG
收藏

简单而有效的序列到序列模型的基于一致性的调优

Simple and Effective Gradient-Based Tuning of Sequence-to-Sequence Models

Google Research(谷歌研究院)

Jared Lichtarge, Chris Alberti, Shankar Kumar

摘要:

最近训练越来越大的语言模型的趋势大大提高了机器学习在语言任务中的性能。然而,训练更大模型的巨大成本可能会使调整它们的成本过高,从而促使人们研究更有效的方法。基于递归的超参数优化提供了在训练期间调整超参数的能力,但以前没有在序列到序列设置中进行过研究。我们首次将一种简单而通用的基于梯度的超参数优化方法应用于序列到序列任务,证明了神经机器翻译和自然语言理解(NLU)任务(通过T5预训练)的效率和性能都优于强基线。对于翻译,我们表明该方法可以在语言对之间推广,比贝叶斯超参数优化更有效,并且某些超参数的学习时间表甚至可以优于最佳常值调优。对于T5,我们证明了在预训练期间学习超参数可以提高下游NLU任务的性能。当同时学习多个超参数时,我们证明了全局学习率可以遵循训练时间表,从而提高性能,并且无法用贪婪方法\citep{wu2018}的“短期偏差”来解释。我们发布的代码用于促进进一步的研究。

英文摘要:

Recent trends towards training ever-larger language models have substantially improved machine learning performance across linguistic tasks. However, the huge cost of training larger models can make tuning them prohibitively expensive, motivating the study of more efficient methods. Gradient-based hyper-parameter optimization offers the capacity to tune hyper-parameters during training, yet has not previously been studied in a sequence-to-sequence setting. We apply a simple and general gradient-based hyperparameter optimization method to sequence-to-sequence tasks for the first time, demonstrating both efficiency and performance gains over strong baselines for both Neural Machine Translation and Natural Language Understanding (NLU) tasks (via T5 pretraining). For translation, we show the method generalizes across language pairs, is more efficient than Bayesian hyper-parameter optimization, and that learned schedules for some hyper-parameters can out-perform even optimal constant-valued tuning. For T5, we show that learning hyper-parameters during pretraining can improve performance across downstream NLU tasks. When learning multiple hyper-parameters concurrently, we show that the global learning rate can follow a schedule over training that improves performance and is not explainable by the `short-horizon bias' of greedy methods \citep{wu2018}. We release the code used to facilitate further research.

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

↑