Multi-CLS BERT:传统集成的一种高效替代方案
Multi-CLS BERT: An Efficient Alternative to Traditional Ensembling
AI总结:
提出Multi-CLS BERT,通过多CLS token实现高效集成,在保持近单模型效率的同时显著提升准确率与置信度估计。
摘要:
集成BERT模型通常能显著提高准确率,但代价是计算量和内存占用大幅增加。在本研究中,我们提出了Multi-CLS BERT,这是一种用于基于CLS预测任务的新型集成方法,其效率几乎与单个BERT模型相当。Multi-CLS BERT使用多个CLS token,并通过特定的参数化和目标函数来促进它们的多样性。因此,我们无需微调集成中的每个BERT模型(并在测试时运行所有模型),只需微调单个Multi-CLS BERT模型(并在测试时运行该模型,仅对多个最终的CLS嵌入进行集成)。为测试其有效性,我们在BERT的一种最先进预训练方法(Aroca-Ouellette和Rudzicz,2020)的基础上构建了Multi-CLS BERT。在GLUE和SuperGLUE上的实验表明,我们的Multi-CLS BERT能可靠地提升整体准确率和置信度估计。在GLUE中仅有100个训练样本可用时,Multi-CLS BERT_Base模型甚至能超越相应的BERT_Large模型。我们分析了Multi-CLS BERT的行为,表明它具有与典型的BERT 5路集成相似的特性和行为,但计算量和内存占用减少了近4倍。
英文摘要:
Ensembling BERT models often significantly improves accuracy, but at the cost of significantly more computation and memory footprint. In this work, we propose Multi-CLS BERT, a novel ensembling method for CLS-based prediction tasks that is almost as efficient as a single BERT model. Multi-CLS BERT uses multiple CLS tokens with a parameterization and objective that encourages their diversity. Thus instead of fine-tuning each BERT model in an ensemble (and running them all at test time), we need only fine-tune our single Multi-CLS BERT model (and run the one model at test time, ensembling just the multiple final CLS embeddings). To test its effectiveness, we build Multi-CLS BERT on top of a state-of-the-art pretraining method for BERT (Aroca-Ouellette and Rudzicz, 2020). In experiments on GLUE and SuperGLUE we show that our Multi-CLS BERT reliably improves both overall accuracy and confidence estimation. When only 100 training samples are available in GLUE, the Multi-CLS BERT_Base model can even outperform the corresponding BERT_Large model. We analyze the behavior of our Multi-CLS BERT, showing that it has many of the same characteristics and behavior as a typical BERT 5-way ensemble, but with nearly 4-times less computation and memory.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。