We present Relational Sentence Embedding (RSE), a new paradigm to further discover the potential of sentence embeddings. Prior work mainly models the similarity between sentences based on their embedding distance. Because of the complex semantic meanings conveyed, sentence pairs can have various relation types, including but not limited to entailment, paraphrasing, and question-answer. It poses challenges to existing embedding methods to capture such relational information. We handle the problem by learning associated relational embeddings. Specifically, a relation-wise translation operation is applied to the source sentence to infer the corresponding target sentence with a pre-trained Siamese-based encoder. The fine-grained relational similarity scores can be computed from learned embeddings. We benchmark our method on 19 datasets covering a wide range of tasks, including semantic textual similarity, transfer, and domain-specific tasks. Experimental results show that our method is effective and flexible in modeling sentence relations and outperforms a series of state-of-the-art sentence embedding methods. https://github.com/BinWang28/RSE
翻译:我们提出了关系判决嵌入(RSE)这一新模式,以进一步发现判刑嵌入的可能性。先前的工作主要以嵌入距离为基础,模拟判决之间的相似性。由于传递的语义含义复杂,对等判刑可以有各种关系类型,包括但不限于包含、分解和问答。这对现有的嵌入方法捕捉这种关系信息提出了挑战。我们通过学习关联嵌入来处理这一问题。具体地说,在源句中应用了一种关系明智的翻译操作,用预先培训的Siamese的编码器来推断相应的目标句。精细的重力关系相似性分数可以从学习嵌入中计算。我们把我们的方法以19个数据集作为基准,涵盖广泛的任务,包括语义相似性、转移和特定领域的任务。实验结果显示,我们的方法在模拟判决关系时是有效和灵活的,超越了一系列州-州-州-州-州-州-州-州-州-州-州-州-州-州-州-州-州-州-州-级嵌入方法。https://gith.com/BinWang28/RS-州-州-州-州-州-州-州-州-州-州-州嵌入方法。