Self-Supervised Document Similarity Ranking via Contextualized Language Models and Hierarchical Inference

Dvir Ginzburg, Itzik Malkiel, Oren Barkan, Avi Caciularu, Noam Koenigstein
6/2/2021
cs.CL
contrastive-ssl

Official code: microsoft/SDR (45 stars, Python, last commit 2022-11-28).

Abstract

We present a novel model for the problem of ranking a collection of documents according to their semantic similarity to a source (query) document. While the problem of document-to-document similarity ranking has been studied, most modern methods are limited to relatively short documents or rely on the existence of "ground-truth" similarity labels.

Show full abstract

Yet, in most common real-world cases, similarity ranking is an unsupervised problem as similarity labels are unavailable. Moreover, an ideal model should not be restricted by documents' length. Hence, we introduce SDR, a self-supervised method for document similarity that can be applied to documents of arbitrary length. Importantly, SDR can be effectively applied to extremely long documents, exceeding the 4,096 maximal token limits of Longformer. Extensive evaluations on large document datasets show that SDR significantly outperforms its alternatives across all metrics. To accelerate future research on unlabeled long document similarity ranking, and as an additional contribution to the community, we herein publish two human-annotated test sets of long documents similarity evaluation. The SDR code and datasets are publicly available.

View on arXivView PDF

Code Implementations(1)

microsoft/SDROfficial100%

Self-Supervised Document-to-Document Similarity Ranking via Contextualized Language Models and Hierarchical Inference

4513Python, ShellMay 6, 20214 years ago

Similar Papers

Cite this paper

@article{ginzburg2021selfsupervised,
  title  = {Self-Supervised Document Similarity Ranking via Contextualized Language Models and Hierarchical Inference},
  author = {Dvir Ginzburg and Itzik Malkiel and Oren Barkan and Avi Caciularu and Noam Koenigstein},
  year   = {2021},
  eprint = {2106.01186},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.01186}
}

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

Discussion