Relational Sentence Embedding for Flexible Semantic Matching

Bin Wang, Haizhou Li
12/17/2022
cs.CL

Official code: BinWang28/RSE (12 stars, Python, MIT, last commit 2024-05-22).

Abstract

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.

Show full abstract

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

View on arXivView PDF

Code Implementations(1)

BinWang28/RSEOfficial100%
MIT

Paper: Relational Sentence Embedding for Flexible Semantic Matching

120Python, ShellDec 8, 20222 years agoMIT

Similar Papers

Cite this paper

@article{wang2022relational,
  title  = {Relational Sentence Embedding for Flexible Semantic Matching},
  author = {Bin Wang and Haizhou Li},
  year   = {2022},
  eprint = {2212.08802},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.08802}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.08802.svg)](https://codeofpaper.com/paper/2212.08802)

Discussion