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%。我们还提出利用维基数据知识图谱属性训练多方面句子嵌入模型,使相似度预测能同时考虑多个具体方面。实验证明,在特定方面的信息检索任务中,多方面嵌入优于单方面嵌入。最后,我们分析了方面级句子嵌入空间,发现语义相似的方面标签的嵌入通常彼此接近,即便未对不同方面标签进行显式的相似性训练。