使用LOVE输入词汇表外嵌入使语言模型以较小的成本变得健壮
Imputing Out-of-Vocabulary Embeddings with LOVE Makes Language Models Robust with Little Cost
摘要:
最先进的NLP系统用词嵌入表示输入,但当面对词汇表外(OOV)词时,这些词是脆弱的。为了解决这个问题,我们遵循模仿类模型的原理,通过仅使用单词的表面形式来学习预训练嵌入的行为,为未见过的单词生成向量。我们提出了一个简单的对比学习框架LOVE,它扩展了现有预训练语言模型(如BERT)的单词表示,并使其对OOV具有很强的鲁棒性。广泛的评估表明,我们的轻量级模型在原始数据集和损坏的变体上都实现了与之前竞争对手相似甚至更好的性能。此外,它可以以即插即用的方式与FastText和BERT一起使用,从而显著提高了它们的鲁棒性。
英文摘要:
State-of-the-art NLP systems represent inputs with word embeddings, but these are brittle when faced with Out-of-Vocabulary (OOV) words. To address this issue, we follow the principle of mimick-like models to generate vectors for unseen words, by learning the behavior of pre-trained embeddings using only the surface form of words. We present a simple contrastive learning framework, LOVE, which extends the word representation of an existing pre-trained language model (such as BERT), and makes it robust to OOV with few additional parameters. Extensive evaluations demonstrate that our lightweight model achieves similar or even better performances than prior competitors, both on original datasets and on corrupted variants. Moreover, it can be used in a plug-and-play fashion with FastText and BERT, where it significantly improves their robustness.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。