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

多语言编码器与Seq2Seq模型的顺序预训练方案

Recipes for Sequential Pre-training of Multilingual Encoder and Seq2Seq Models

Alexa AI, Amazon(亚马逊Alexa人工智能部门);Univ. of Massachusetts Lowell(马萨诸塞大学洛厄尔分校)

Saleh Soltan, Andy Rosenbaum, Tobias Falke, Qin Lu, Anna Rumshisky, Wael Hamza

AI总结:

针对多语言编码器与Seq2Seq模型从头训练计算成本高的问题,研究探索顺序预训练方案,发现用编码器热启动Seq2Seq并中途解冻的两阶段方法,可在保持性能的同时降低27%总计算成本。

摘要:

仅编码器预训练模型与序列到序列(seq2seq)预训练模型各有优势,但从头训练两类模型的计算成本高昂。我们探索通过用一类模型初始化另一类模型来提升预训练效率的方案。(1)从seq2seq模型中提取编码器,我们发现其性能弱于掩码语言建模(MLM)编码器,尤其在序列标注任务上表现更差。在seq2seq训练中调整掩码策略、缩小解码器规模,以及后续补充少量MLM训练,都无法缩小这一性能差距。(2)反之,用编码器来热启动seq2seq训练,我们发现在训练中途解冻编码器,就能达到从头训练的seq2seq模型的任务性能。总体而言,这种两阶段方法是同时获取多语言编码器和seq2seq模型的高效方案,既能达到与分别从头训练两类模型相当的性能,还能将总计算成本降低27%。

英文摘要:

Pre-trained encoder-only and sequence-to-sequence (seq2seq) models each have advantages, however training both model types from scratch is computationally expensive. We explore recipes to improve pre-training efficiency by initializing one model from the other. (1) Extracting the encoder from a seq2seq model, we show it under-performs a Masked Language Modeling (MLM) encoder, particularly on sequence labeling tasks. Variations of masking during seq2seq training, reducing the decoder size, and continuing with a small amount of MLM training do not close the gap. (2) Conversely, using an encoder to warm-start seq2seq training, we show that by unfreezing the encoder partway through training, we can match task performance of a from-scratch seq2seq model. Overall, this two-stage approach is an efficient recipe to obtain both a multilingual encoder and a seq2seq model, matching the performance of training each model from scratch while reducing the total compute cost by 27%.

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

↑