Generic sentence embeddings provide a coarse-grained approximation of semantic textual similarity but ignore specific aspects that make texts similar. Conversely, aspect-based sentence embeddings provide similarities between texts based on certain predefined aspects. Thus, similarity predictions of texts are more targeted to specific requirements and more easily explainable. In this paper, we present AspectCSE, an approach for aspect-based contrastive learning of sentence embeddings. Results indicate that AspectCSE achieves an average improvement of 3.97% on information retrieval tasks across multiple aspects compared to the previous best results. We also propose using Wikidata knowledge graph properties to train models of multi-aspect sentence embeddings in which multiple specific aspects are simultaneously considered during similarity predictions. We demonstrate that multi-aspect embeddings outperform single-aspect embeddings on aspect-specific information retrieval tasks. Finally, we examine the aspect-based sentence embedding space and demonstrate that embeddings of semantically similar aspect labels are often close, even without explicit similarity training between different aspect labels.
翻译:通用句子嵌入提供了语义文本相似度的粗粒度近似,但忽略了使文本相似的具体方面。相反,方面级句子嵌入根据预定义的特定方面提供文本之间的相似度。因此,文本的相似度预测更具针对性,也更容易解释。本文提出了AspectCSE,一种用于句子嵌入的方面级对比学习方法。结果表明,与之前的最佳结果相比,AspectCSE在多个方面的信息检索任务上平均提升了3.97%。我们还提出利用Wikidata知识图谱属性来训练多方面的句子嵌入模型,在相似度预测中同时考虑多个特定方面。我们证明,在特定方面的信息检索任务上,多方面嵌入优于单方面嵌入。最后,我们研究了方面级句子嵌入空间,并表明语义相似的方面标签的嵌入通常彼此接近,即使在不同方面标签之间没有明确的相似度训练的情况下也是如此。