Sub-Sentence Encoder: Contrastive Learning of Propositional Semantic Representations

Sihao Chen, Hongming Zhang, Tong Chen, Ben Zhou, Wenhao Yu +5 more
11/7/2023
cs.CLcs.AI

No official code found. Best implementation: schen149/sub-sentence-encoder (85 stars, last commit 2024-01-19).

Abstract

We introduce sub-sentence encoder, a contrastively-learned contextual embedding model for fine-grained semantic representation of text. In contrast to the standard practice with sentence embeddings, where the meaning of an entire sequence of text is encoded into a fixed-length vector, the sub-sentence encoder learns to produce distinct contextual embeddings corresponding to different atomic propositions, i.e. atomic units of meaning expressed within a text sequence. The sub-sentence embeddings are contrastively learned to recognize (inferred) semantic equivalence between propositions across different text sequences. Our experiments show the effectiveness of sub-sentence encoders in applications, such as retrieving supporting facts for fine-grained text attribution or recognizing the conditional semantic similarity between texts. In practice, we demonstrate that sub-sentence encoders keep the same level of inference cost and space complexity compared to sentence encoders.

View on arXivView PDF

Code Implementations(1)

The official code repo for "Sub-Sentence Encoder: Contrastive Learning of Propositional Semantic Representations".

851PythonNov 7, 20232 years ago

Similar Papers

Cite this paper

@article{chen2023subsentence,
  title  = {Sub-Sentence Encoder: Contrastive Learning of Propositional Semantic Representations},
  author = {Sihao Chen and Hongming Zhang and Tong Chen and Ben Zhou and Wenhao Yu and Dian Yu and Baolin Peng and Hongwei Wang and Dan Roth and Dong Yu},
  year   = {2023},
  eprint = {2311.04335},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.04335v1}
}

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

Discussion