NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SPECTER: Document-level Representation Learning using Citation-informed Transformers

Arman Cohan, Sergey Feldman, Iz Beltagy, Doug Downey, Daniel S. Weld

Abstract

Generating high-quality document-level embeddings for scientific papers is challenging due to the limitations of standard language modeling objectives in capturing inter-document relatedness. We present SPECTER (Scientific Paper Embeddings using Citation-informed Transformers), a method that leverages citation graphs as a natural supervision signal to pretrain a Transformer-based language model. By employing a triplet loss objective with hard negatives, SPECTER learns to map related papers closer in vector space. Unlike previous methods, SPECTER requires only the title and abstract at inference time, effectively addressing the "cold start" problem for new papers. Our model achieves state-of-the-art performance across diverse tasks in the SCIDOCS benchmark, demonstrating its robustness as a general-purpose representation for scientific literature.

Introduction

While Large Language Models (LLMs) like BERT have revolutionized NLP, they are primarily optimized for token- and sentence-level tasks. When it comes to representing an entire document—like a scientific paper—simply averaging word vectors or using the "off-the-shelf" output of a model like SciBERT often yields sub-optimal results.

The core challenge is that standard language modeling objectives (like predicting masked words) don't capture inter-document relatedness. A researcher needs to know if Paper A is conceptually related to Paper B, even if they use different terminology. Existing methods that do use document-level signals often fail to leverage the power of pretrained Transformers or require a complete citation graph to work, making them useless for newly published papers that haven't been cited yet (the "cold start" problem).

Methodology

The authors propose a "feature-based" approach rather than a "fine-tuning" approach to document representation.

Architecture and Input

The model is initialized with SciBERT, a BERT variant pretrained on scientific text. The final hidden state of the [CLS] token is used as the aggregate representation of the document. The input to the model is the concatenated Title and Abstract of a paper.

The Triplet Loss Objective

To teach the model about document relatedness, SPECTER uses a triplet margin loss. For a given "query" paper ($P^Q$), the model is trained to minimize the distance to a "positive" paper ($P^+$—one it actually cites) and maximize the distance to a "negative" paper ($P^-$—one it does not cite).

The SPECTER training architecture using triplet loss and SciBERT initialization.

Hard Negatives

A key innovation is the selection of "hard negatives." Instead of picking random papers, the authors choose papers that are cited by the positive paper but not by the query paper (citations-of-citations). This forces the model to learn finer distinctions between papers that are in the same general neighborhood but not directly related. Crucially, once trained, SPECTER only needs the title and abstract to generate an embedding, requiring no citation information at test time.

Evaluation and Results

The authors introduced SCIDOCS, a comprehensive evaluation suite for scientific document embeddings covering seven tasks: Classification (MeSH, MAG), Citation Prediction (Direct, Co-citation), User Activity (Co-view, Co-read), and Recommendation.

Benchmark Performance

SPECTER achieved an average score of 80.0 across all SCIDOCS tasks, significantly outperforming the next best baselines like SGC (76.9) and Citeomatic (76.0).

Main results on the SCIDOCS benchmark comparing SPECTER against various baselines.

Key Insights

  • Citations as "Free" Supervision: Citations are a naturally occurring, high-quality signal of document-level relatedness. SPECTER effectively "distills" the knowledge contained in the global citation graph into the weights of a local text encoder.
  • The Power of Hard Negatives: Ablation studies show that using "citations of citations" as negatives is critical. Without them, the model fails to learn the nuanced semantic boundaries required for high-performance embeddings.
  • Embeddings > Fine-tuning: Surprisingly, using SPECTER's fixed embeddings often outperformed fine-tuning SciBERT directly on specific tasks. This suggests the citation signal provides a more robust, general-purpose representation for scientific text than small, task-specific datasets.
  • Real-world Impact: In an online A/B test on a production recommendation system, SPECTER improved the clickthrough rate (CTR) by 46.5% compared to a baseline textual similarity measure.

Conclusion and Future Work

SPECTER demonstrates that citation-informed pretraining can produce powerful, general-purpose document embeddings for scientific literature. By solving the "cold start" problem, it enables high-quality representations for newly published work. Future research could explore incorporating full text to handle long-range dependencies or integrating additional metadata like authors and venues more effectively.

Summary updated

BibTeX
@inproceedings{cohan2020specter,
  author = {Arman Cohan and Sergey Feldman and Iz Beltagy and Doug Downey and Daniel S. Weld},
  title = {{SPECTER: Document-level Representation Learning using Citation-informed Transformers}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.207},
}
Figure