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

论现代语言模型的损失

On Losses for Modern Language Models

University of Toronto(多伦多大学);Vector Institute for Artificial Intelligence(向量人工智能研究院);Li Ka Shing Knowledge Institute, St Michael’s Hospital(李嘉诚知识研究院(圣迈克尔医院))

Stephane Aroca-Ouellette, Frank Rudzicz

摘要:

BERT通过对两个任务进行预训练,在各种NLU基准上设置了许多最先进的结果:掩蔽语言建模(MLM)和下一句预测(NSP),后者受到了高度批评。在本文中,我们1)澄清NSP的BERT预训练的效果,2)探讨14个可能的辅助预训练任务,其中7个是新的现代语言模型,和3)调查不同的方法,包括多个任务的预训练。我们表明,NSP是有害的训练,由于其上下文分裂和浅语义信号。我们还确定了六个辅助预训练任务--句子排序、相邻句子预测、TF预测、TF-IDF预测、FastSent变体和Quick Thoughts变体--其表现优于纯粹的MLM基线。最后,我们证明了在多任务预训练框架中使用多个任务比使用任何单个辅助任务提供了更好的结果。使用这些方法,我们使用不到四分之一的训练令牌在GLUE基准测试中优于BERT Base。

英文摘要:

BERT set many state-of-the-art results over varied NLU benchmarks by pre-training over two tasks: masked language modelling (MLM) and next sentence prediction (NSP), the latter of which has been highly criticized. In this paper, we 1) clarify NSP's effect on BERT pre-training, 2) explore fourteen possible auxiliary pre-training tasks, of which seven are novel to modern language models, and 3) investigate different ways to include multiple tasks into pre-training. We show that NSP is detrimental to training due to its context splitting and shallow semantic signal. We also identify six auxiliary pre-training tasks -- sentence ordering, adjacent sentence prediction, TF prediction, TF-IDF prediction, a FastSent variant, and a Quick Thoughts variant -- that outperform a pure MLM baseline. Finally, we demonstrate that using multiple tasks in a multi-task pre-training framework provides better results than using any single auxiliary task. Using these methods, we outperform BERT Base on the GLUE benchmark using fewer than a quarter of the training tokens.

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

↑