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

使用预训练的语言模型解开句子嵌入中的语义和语法

Disentangling Semantics and Syntax in Sentence Embeddings with Pre-trained Language Models

University of California, Los Angeles(加州大学洛杉矶分校)

James Y. Huang, Kuan-Hao Huang, Kai-Wei Chang

摘要:

预训练的语言模型在广泛的NLP任务中取得了巨大的成功。然而,来自预训练模型的上下文表示包含纠缠的语义和句法信息,因此不能直接用于为某些任务导出有用的语义句子嵌入。释义对提供了一种学习语义和句法之间区别的有效方法,因为它们自然地共享语义并且经常在句法上变化。在这项工作中,我们提出了ParaBART,一个语义句子嵌入模型,学习解开语义和语法在句子嵌入预训练的语言模型。ParaBART被训练为基于与目标释义共享语义的源句子和指定目标语法的解析树来执行语法引导的释义。通过这种方式,ParaBART使用单独的编码器从各自的输入中学习解纠缠的语义和语法表示。英语实验表明,ParaBART在无监督语义相似性任务上优于最先进的句子嵌入模型。此外,我们表明,我们的方法可以有效地删除语义句子嵌入的句法信息,从而更好地抵御下游语义任务的句法变化的鲁棒性。

英文摘要:

Pre-trained language models have achieved huge success on a wide range of NLP tasks. However, contextual representations from pre-trained models contain entangled semantic and syntactic information, and therefore cannot be directly used to derive useful semantic sentence embeddings for some tasks. Paraphrase pairs offer an effective way of learning the distinction between semantics and syntax, as they naturally share semantics and often vary in syntax. In this work, we present ParaBART, a semantic sentence embedding model that learns to disentangle semantics and syntax in sentence embeddings obtained by pre-trained language models. ParaBART is trained to perform syntax-guided paraphrasing, based on a source sentence that shares semantics with the target paraphrase, and a parse tree that specifies the target syntax. In this way, ParaBART learns disentangled semantic and syntactic representations from their respective inputs with separate encoders. Experiments in English show that ParaBART outperforms state-of-the-art sentence embedding models on unsupervised semantic similarity tasks. Additionally, we show that our approach can effectively remove syntactic information from semantic sentence embeddings, leading to better robustness against syntactic variation on downstream semantic tasks.

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

↑