Neighborhood Contrastive Learning for Scientific Document Representations with Citation Embeddings

Malte Ostendorff, Nils Rethmeier, Isabelle Augenstein, Bela Gipp, Georg Rehm
2/14/2022
cs.CL
contrastive-ssl

Official code: malteos/scincl (81 stars, Python, MIT, last commit 2025-12-29).

Abstract

Learning scientific document representations can be substantially improved through contrastive learning objectives, where the challenge lies in creating positive and negative training samples that encode the desired similarity semantics. Prior work relies on discrete citation relations to generate contrast samples.

Show full abstract

However, discrete citations enforce a hard cut-off to similarity. This is counter-intuitive to similarity-based learning, and ignores that scientific papers can be very similar despite lacking a direct citation - a core problem of finding related research. Instead, we use controlled nearest neighbor sampling over citation graph embeddings for contrastive learning. This control allows us to learn continuous similarity, to sample hard-to-learn negatives and positives, and also to avoid collisions between negative and positive samples by controlling the sampling margin between them. The resulting method SciNCL outperforms the state-of-the-art on the SciDocs benchmark. Furthermore, we demonstrate that it can train (or tune) models sample-efficiently, and that it can be combined with recent training-efficient methods. Perhaps surprisingly, even training a general-domain language model this way outperforms baselines pretrained in-domain.

View on arXivView PDF

Code Implementations(1)

malteos/scinclOfficial100%
MIT

Neighborhood Contrastive Learning for Scientific Document Representations with Citation Embeddings (EMNLP 2022 paper)

812Python, DockerfileFeb 7, 202211 months agoMIT
emnlp2022scidocsscincl

Similar Papers

Cite this paper

@article{ostendorff2022neighborhood,
  title  = {Neighborhood Contrastive Learning for Scientific Document Representations with Citation Embeddings},
  author = {Malte Ostendorff and Nils Rethmeier and Isabelle Augenstein and Bela Gipp and Georg Rehm},
  year   = {2022},
  eprint = {2202.06671},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.06671}
}

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

Discussion