arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2105.04876cs.CLcs.LGstat.ML
收藏

对缩减的(不是那么大的)预训练语言模型进行基准测试

Benchmarking down-scaled (not so large) pre-trained language models

Ludwig-Maximilians-Universität(路德维希-马克西米利安大学)

M. Aßenmacher, P. Schulze, C. Heumann

摘要:

基于transformer的大型语言模型在不同大小的语料库上进行预训练,步骤数量不同,批量大小也不同。与此同时,更基本的组件,如预训练目标或架构超参数,被修改。因此,总体而言,很难将业绩变化归因于具体因素。由于在整个系统上搜索超参数空间的成本太高,因此我们在公共预训练语料库上预训练几种流行的基于Transformer的架构的缩小版本,并在GLUE任务的子集上对它们进行基准测试(Wang等人,2018年)。具体来说,我们系统地比较了不同形状参数和模型大小的三个预训练目标,同时还改变了预训练步骤的数量和批量大小。在我们的实验中,MLM + NSP(BERT风格)始终优于MLM(Roberta风格)以及标准LM目标。此外,我们发现额外的计算应该主要分配给增加的模型大小,而训练更多的步骤是低效的。基于这些观察结果,作为最后一步,我们尝试使用适合基于transformer的语言模型的复合缩放(Tan和Le,2019)来扩展几个系统。

英文摘要:

Large Transformer-based language models are pre-trained on corpora of varying sizes, for a different number of steps and with different batch sizes. At the same time, more fundamental components, such as the pre-training objective or architectural hyperparameters, are modified. In total, it is therefore difficult to ascribe changes in performance to specific factors. Since searching the hyperparameter space over the full systems is too costly, we pre-train down-scaled versions of several popular Transformer-based architectures on a common pre-training corpus and benchmark them on a subset of the GLUE tasks (Wang et al., 2018). Specifically, we systematically compare three pre-training objectives for different shape parameters and model sizes, while also varying the number of pre-training steps and the batch size. In our experiments MLM + NSP (BERT-style) consistently outperforms MLM (RoBERTa-style) as well as the standard LM objective. Furthermore, we find that additional compute should be mainly allocated to an increased model size, while training for more steps is inefficient. Based on these observations, as a final step we attempt to scale up several systems using compound scaling (Tan and Le, 2019) adapted to Transformer-based language models.

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

↑