Learning Semantic Textual Similarity via Topic-informed Discrete Latent Variables

Erxin Yu, Lan Du, Yuan Jin, Zhepei Wei, Yi Chang
11/7/2022
cs.CLcs.AI
transformer-attention

Official code: ErxinYu/DisBert (8 stars, Python, last commit 2023-01-08).

Abstract

Recently, discrete latent variable models have received a surge of interest in both Natural Language Processing (NLP) and Computer Vision (CV), attributed to their comparable performance to the continuous counterparts in representation learning, while being more interpretable in their predictions. In this paper, we develop a topic-informed discrete latent variable model for semantic textual similarity, which learns a shared latent space for sentence-pair representation via vector quantization.

Show full abstract

Compared with previous models limited to local semantic contexts, our model can explore richer semantic information via topic modeling. We further boost the performance of semantic similarity by injecting the quantized representation into a transformer-based language model with a well-designed semantic-driven attention mechanism. We demonstrate, through extensive experiments across various English language datasets, that our model is able to surpass several strong neural baselines in semantic textual similarity tasks.

View on arXivView PDF

Code Implementations(1)

ErxinYu/DisBertOfficial100%
80Python, ShellNov 7, 20223 years ago

Similar Papers

Cite this paper

@article{yu2022learning,
  title  = {Learning Semantic Textual Similarity via Topic-informed Discrete Latent Variables},
  author = {Erxin Yu and Lan Du and Yuan Jin and Zhepei Wei and Yi Chang},
  year   = {2022},
  eprint = {2211.03616},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.03616}
}

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

Discussion