Skip to main content
QUICK REVIEW

[Paper Review] Neighborhood Contrastive Learning for Scientific Document Representations with Citation Embeddings

Malte Ostendorff, Nils Rethmeier|arXiv (Cornell University)|Feb 14, 2022
Topic ModelingComputer Science10 citations
TL;DR

This paper proposes SciNCL, a neighborhood contrastive learning method for scientific document representations that uses citation graph embeddings to generate continuous, non-colliding positive and negative samples. By sampling from k-nearest neighbors in the citation embedding space, SciNCL achieves state-of-the-art performance on the SciDocs benchmark (81.8 vs. SPECTER's 80.0), even with only 1% of training triplets, and outperforms in-domain pretrained models when combined with general-domain LLMs.

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. 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.

Motivation & Objective

  • To address the limitations of discrete citation-based contrastive learning in scientific document representation, where direct citations create hard cutoffs and potential collisions between positive and negative samples.
  • To improve sample efficiency and representation quality by leveraging continuous similarity signals from citation graph embeddings.
  • To demonstrate that controlling sampling difficulty and avoiding positive-negative collisions is more effective than in-domain pretraining for scientific NLP tasks.
  • To enable effective fine-tuning of general-domain language models using minimal data and compute, even with only bias parameters updated.

Proposed method

  • SciNCL uses citation graph embeddings as a continuous, undirected similarity signal to generate contrastive samples, replacing discrete citation relations.
  • Positive and negative samples are selected from the k-nearest neighbors in the citation embedding space, with configurable margins to avoid collisions.
  • The method employs a contrastive learning objective that pulls similar papers (positives) closer and pushes dissimilar ones (negatives) apart in the embedding space.
  • Hard negatives are sampled from a margin around the positive cluster to ensure they are challenging but not colliding.
  • The approach is compatible with any pre-trained language model, including general-domain models like BERT-Base and BERT-Large.
  • Sample efficiency is achieved by training on only 1% of triplets or using BitFit (training only bias terms), reducing compute cost significantly.

Experimental results

Research questions

  • RQ1Can continuous similarity signals from citation graph embeddings improve scientific document representation learning compared to discrete citation relations?
  • RQ2Does controlling the sampling margin between positive and negative pairs lead to better performance and avoid gradient collapse?
  • RQ3Can SciNCL achieve state-of-the-art results using only 1% of training triplets or with minimal parameter updates (e.g., BitFit)?
  • RQ4Is fine-tuning a general-domain language model with SciNCL more effective than in-domain pretraining with models like SciBERT?

Key findings

  • SciNCL achieves a new state-of-the-art score of 81.8 on the SciDocs benchmark, outperforming SPECTER’s 80.0.
  • With only 1% of training triplets, SciNCL achieves 80.8, which is 0.8 points higher than SPECTER’s baseline and 1.0 point higher than oracle triplets in some settings.
  • Using BitFit (training only 0.1% of parameters) yields a score of 81.2, demonstrating high parameter efficiency.
  • Fine-tuning general-domain BERT models with SciNCL outperforms in-domain pretraining, including SPECTER, indicating that sample quality outweighs domain-specific pretraining.
  • The method remains robust when excluding test and validation papers from training, showing no data leakage issues.
  • The performance gain from SciNCL is primarily due to better sampling strategy rather than model architecture or pretraining data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.