基于主动学习微调 BERT 以应对低资源自然语言理解任务
Fine-tuning BERT for Low-Resource Natural Language Understanding via Active Learning
Fine-tuning BERT for Low-Resource Natural Language Understanding via Active Learning
@misc{griehaber2020finetuning,
title = {Fine-tuning BERT for Low-Resource Natural Language Understanding via Active Learning},
author = {Daniel Grießhaber and Johannes Maucher and Ngoc Thang Vu},
year = {2020},
eprint = {2012.02462},
archivePrefix = {arXiv},
primaryClass = {cs.CL},
url = {https://arxiv.org/abs/2012.02462}
}
Grießhaber, D., Maucher, J., & Vu, N. T. (2020). Fine-tuning BERT for Low-Resource Natural Language Understanding via Active Learning [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2012.02462
GRIESSHABER D, MAUCHER J, VU NT. Fine-tuning BERT for Low-Resource Natural Language Understanding via Active Learning[EB/OL]. (2020-12-04)[2026-11-29]. https://arxiv.org/abs/2012.02462.
摘要
最近,利用预训练的基于 Transformer 的语言模型对下游任务特定模型进行微调,已在自然语言理解任务中推动了最先进的结果。然而,仅有少量研究探讨了该方法在训练数据少于 1,000 个样本的低资源设置中的适用性。在本工作中,我们利用基于池的主动学习来加速 BERT(一种预训练的基于 Transformer 的语言模型)的微调,同时保持标注新数据的成本恒定。我们在 GLUE 数据集上的实验结果表明,通过从未标注数据的池中查询以最大化模型的近似知识增益,可以提升模型性能。最后,我们展示了并分析了在微调过程中冻结语言模型层以减少可训练参数数量的益处,使其更适用于低资源设置。
Recently, leveraging pre-trained Transformer based language models in down stream, task specific models has advanced state of the art results in natural language understanding tasks. However, only a little research has explored the suitability of this approach in low resource settings with less than 1,000 training data points. In this work, we explore fine-tuning methods of BERT - a pre-trained Transformer based language model - by utilizing pool-based active learning to speed up training while keeping the cost of labeling new data constant. Our experimental results on the GLUE data set show an advantage in model performance by maximizing the approximate knowledge gain of the model when querying from the pool of unlabeled data. Finally, we demonstrate and analyze the benefits of freezing layers of the language model during fine-tuning to reduce the number of trainable parameters, making it more suitable for low-resource settings.