无需人工标注,用自注意力蒸馏上下文词义表示,提升多语言语义理解能力
Distilling Monolingual and Crosslingual Word-in-Context Representations
- 通过自注意力融合预训练模型多层输出,构建上下文词义表示
- 在单语任务中表现优于前人方法,跨语言任务显著提升多语言表示质量
- 仅需自动生成语料,不修改原模型参数,适合实际部署场景
本文提出一种在单语和跨语言设置下,从预训练掩码语言模型中蒸馏上下文词义表示的方法。词向量表示是上下文感知词汇语义和无监督语义文本相似性(STS)估计的基础。与现有方法不同,该方法无需人工标注语料,也不更新预训练模型的参数。这一特性在多个应用场景共享现成预训练模型时尤为实用。具体而言,本方法利用自注意力机制组合预训练模型不同隐藏层的输出,并采用基于自编码器的训练方式,仅需自动构建的语料库即可完成训练。通过大量基准任务实验评估性能,单语任务结果表明,所提表示在上下文词汇语义任务中达到竞争性表现,且在STS估计上优于先前方法;跨语言任务结果表明,该方法显著提升了多语言预训练模型的跨语言词表示能力。
原文摘要 · Abstract (English)
In this study, we propose a method that distils representations of word meaning in context from a pre-trained masked language model in both monolingual and crosslingual settings. Word representations are the basis for context-aware lexical semantics and unsupervised semantic textual similarity (STS) estimation. Different from existing approaches, our method does not require human-annotated corpora nor updates of the parameters of the pre-trained model. The latter feature is appealing for practical scenarios where the off-the-shelf pre-trained model is a common asset among different applications. Specifically, our method learns to combine the outputs of different hidden layers of the pre-trained model using self-attention. Our auto-encoder based training only requires an automatically generated corpus. To evaluate the performance of the proposed approach, we performed extensive experiments using various benchmark tasks. The results on the monolingual tasks confirmed that our representations exhibited a competitive performance compared to that of the previous study for the context-aware lexical semantic tasks and outperformed it for STS estimation. The results of the crosslingual tasks revealed that the proposed method largely improved crosslingual word representations of multilingual pre-trained models.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。