arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2109.03160cs.CL
收藏

语言模型需要多少预训练数据来学习语法?

How much pretraining data do language models need to learn syntax?

Amazon AI(亚马逊AI);Pompeu Fabra University(庞培法布拉大学);Catalan Institute for Research and Advanced Studies (ICREA)(加泰罗尼亚高等研究院(ICREA))

Laura Pérez-Mayos, Miguel Ballesteros, Leo Wanner

摘要:

基于transformers的预训练语言模型在许多著名的NLU基准测试中取得了出色的结果。然而,虽然预训练方法非常方便,但它们在时间和资源方面是昂贵的。这就需要研究预训练数据大小对模型知识的影响。我们探索这种影响的句法能力的RoberTa,使用模型训练的原始文本数据的增量大小。首先,我们使用语法结构探测器来确定在更多数据上预训练的模型是否编码了更大量的语法信息。其次,我们进行了有针对性的句法评估,以分析预训练数据大小对模型句法泛化性能的影响。第三,我们比较了不同模型在三个下游应用上的性能:词性标注、依存句法分析和释义识别。我们补充我们的研究与培训这些模型的成本效益权衡分析。我们的实验表明,虽然在更多数据上预训练的模型编码了更多的语法知识,并且在下游应用程序中表现得更好,但它们并不总是在不同的语法现象中提供更好的性能,并且具有更高的财务和环境成本。

英文摘要:

Transformers-based pretrained language models achieve outstanding results in many well-known NLU benchmarks. However, while pretraining methods are very convenient, they are expensive in terms of time and resources. This calls for a study of the impact of pretraining data size on the knowledge of the models. We explore this impact on the syntactic capabilities of RoBERTa, using models trained on incremental sizes of raw text data. First, we use syntactic structural probes to determine whether models pretrained on more data encode a higher amount of syntactic information. Second, we perform a targeted syntactic evaluation to analyze the impact of pretraining data size on the syntactic generalization performance of the models. Third, we compare the performance of the different models on three downstream applications: part-of-speech tagging, dependency parsing and paraphrase identification. We complement our study with an analysis of the cost-benefit trade-off of training such models. Our experiments show that while models pretrained on more data encode more syntactic knowledge and perform better on downstream applications, they do not always offer a better performance across the different syntactic phenomena and come at a higher financial and environmental cost.

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

↑