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

基于上下文语言模型的无监督注意语句级元嵌入

Unsupervised Attention-based Sentence-Level Meta-Embeddings from Contextualised Language Models

University of Liverpool(利物浦大学);Amazon(亚马逊)

Keigo Takahashi, Danushka Bollegala

摘要:

在NLP社区中已经提出了各种上下文化的语言模型,这些模型在不同的语料库上训练以产生许多神经语言模型(NLM)。然而,不同的NLM在用作文本表示时在下游NLP应用中报告了不同水平的性能。我们提出了一种元嵌入学习方法,该方法采用独立训练的上下文化词嵌入模型,并学习保留输入源NLM互补优势的句子嵌入。我们提出的方法是无监督的,并且不与特定的下游任务绑定,这使得学习的元嵌入原则上适用于需要句子表示的不同任务。具体来说,我们首先投影由各个NLM获得的令牌级嵌入,并学习指示源嵌入对其令牌级元嵌入的贡献的注意力权重。接下来,我们应用均值池和最大池来从令牌级元嵌入生成令牌级元嵌入。在语义文本相似度基准测试上的实验结果表明,我们提出的无监督文本级元嵌入方法优于先前提出的文本级元嵌入方法以及有监督的基线。

英文摘要:

A variety of contextualised language models have been proposed in the NLP community, which are trained on diverse corpora to produce numerous Neural Language Models (NLMs). However, different NLMs have reported different levels of performances in downstream NLP applications when used as text representations. We propose a sentence-level meta-embedding learning method that takes independently trained contextualised word embedding models and learns a sentence embedding that preserves the complementary strengths of the input source NLMs. Our proposed method is unsupervised and is not tied to a particular downstream task, which makes the learnt meta-embeddings in principle applicable to different tasks that require sentence representations. Specifically, we first project the token-level embeddings obtained by the individual NLMs and learn attention weights that indicate the contributions of source embeddings towards their token-level meta-embeddings. Next, we apply mean and max pooling to produce sentence-level meta-embeddings from token-level meta-embeddings. Experimental results on semantic textual similarity benchmarks show that our proposed unsupervised sentence-level meta-embedding method outperforms previously proposed sentence-level meta-embedding methods as well as a supervised baseline.

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

↑