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

Few-Shot场景下后训练的双粒度对比学习

Bi-Granularity Contrastive Learning for Post-Training in Few-Shot Scene

Sun Yat-sen University(中山大学)

Ruikun Luo, Guanhuan Huang, Xiaojun Quan

摘要:

将预训练的语言模型应用于下游任务的主要范例是在标记的任务数据上对其进行微调,当标记的示例很少时,这些任务数据通常会不稳定且性能低下。缓解这个问题的一种方法是在微调之前对未标记的任务数据应用后训练,通过考虑令牌级或序列级相似性的对比学习使预训练模型适应目标域。受序列掩蔽成功的启发,我们认为标记级和序列级的相似性都可以用一对掩蔽序列来捕获。因此,我们提出了互补随机掩蔽(CRM)从输入序列中生成一对掩蔽序列用于序列级对比学习,然后开发对比掩蔽语言建模(CMLM)用于后训练,以整合标记级和序列级对比学习。实验结果表明,CMLM超越了最近的几个后训练方法在Few-Shot设置,而不需要数据增强。

英文摘要:

The major paradigm of applying a pre-trained language model to downstream tasks is to fine-tune it on labeled task data, which often suffers instability and low performance when the labeled examples are scarce.~One way to alleviate this problem is to apply post-training on unlabeled task data before fine-tuning, adapting the pre-trained model to target domains by contrastive learning that considers either token-level or sequence-level similarity. Inspired by the success of sequence masking, we argue that both token-level and sequence-level similarities can be captured with a pair of masked sequences.~Therefore, we propose complementary random masking (CRM) to generate a pair of masked sequences from an input sequence for sequence-level contrastive learning and then develop contrastive masked language modeling (CMLM) for post-training to integrate both token-level and sequence-level contrastive learnings.~Empirical results show that CMLM surpasses several recent post-training methods in few-shot settings without the need for data augmentation.

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

↑