Toward Interpretable Semantic Textual Similarity via Optimal Transport-based Contrastive Sentence Learning

Seonghyeon Lee, Dongha Lee, Seongbo Jang, Hwanjo Yu
2/26/2022
cs.AI

Official code: sh0416/clrcmd (42 stars, Jupyter Notebook, last commit 2023-02-21).

Abstract

Recently, finetuning a pretrained language model to capture the similarity between sentence embeddings has shown the state-of-the-art performance on the semantic textual similarity (STS) task. However, the absence of an interpretation method for the sentence similarity makes it difficult to explain the model output.

Show full abstract

In this work, we explicitly describe the sentence distance as the weighted sum of contextualized token distances on the basis of a transportation problem, and then present the optimal transport-based distance measure, named RCMD; it identifies and leverages semantically-aligned token pairs. In the end, we propose CLRCMD, a contrastive learning framework that optimizes RCMD of sentence pairs, which enhances the quality of sentence similarity and their interpretation. Extensive experiments demonstrate that our learning framework outperforms other baselines on both STS and interpretable-STS benchmarks, indicating that it computes effective sentence similarity and also provides interpretation consistent with human judgement. The code and checkpoint are publicly available at https://github.com/sh0416/clrcmd.

View on arXivView PDF

Code Implementations(1)

sh0416/clrcmdOfficial100%

Official Repository for CLRCMD (Appear in ACL2022)

425Jupyter Notebook, PythonAug 17, 20213 years agoNOASSERTION
interpretabilitysentence-similarity

Similar Papers

Cite this paper

@article{lee2022toward,
  title  = {Toward Interpretable Semantic Textual Similarity via Optimal Transport-based Contrastive Sentence Learning},
  author = {Seonghyeon Lee and Dongha Lee and Seongbo Jang and Hwanjo Yu},
  year   = {2022},
  eprint = {2202.13196},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.13196}
}

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/2202.13196.svg)](https://codeofpaper.com/paper/2202.13196)

Discussion