Specialized document embeddings for aspect-based similarity of research papers

Malte Ostendorff, Till Blume, Terry Ruas, Bela Gipp, Georg Rehm

Abstract

Traditional document embeddings represent research papers as single points in a high-dimensional space, often failing to capture the multifaceted nature of scientific similarity. This paper presents a method for creating specialized vector representations for distinct aspects of research papers, specifically Task, Method, and Dataset. By utilizing a Siamese-SciBERT architecture trained with Multiple Negative Ranking Loss, the authors generate aspect-specific embedding spaces that significantly outperform generic models. The approach achieves state-of-the-art similarity performance while maintaining linear scalability ($O(n)$), making it suitable for large-scale production recommender systems. Furthermore, the study reveals that generic embeddings exhibit significant inherent bias toward specific paper attributes, a limitation that specialized models effectively mitigate.

Introduction

In modern recommender systems, research papers are typically compressed into a single "generic" embedding. However, scientific similarity is inherently multifaceted. Two papers might be considered similar because they employ the same methodology (e.g., Transformers), even if they address entirely different tasks (e.g., machine translation vs. image captioning).

Existing attempts to capture these nuances generally fall into two categories, both with significant drawbacks:

  1. Segmentation: Dividing a paper into sections (abstract, introduction, etc.) to find aspect-specific similarities. This often disrupts document coherence and loses vital context.
  2. Pairwise Classification: Training models to compare every possible pair of papers. While accurate, this approach has a quadratic complexity ($O(n^2)$), rendering it impossible to scale to corpora containing millions of documents.

This research proposes a method that preserves document integrity, captures specific aspects, and scales linearly ($O(n)$) for real-world applications.

Methodology

The core of the proposal is to represent a single document through multiple specialized embeddings—one for each aspect of interest (Task, Method, and Dataset). The authors evaluated three primary approaches to generate these specialized vectors:

  • Retrofitting: A post-processing step that adjusts existing generic embeddings (such as FastText or SciBERT) so that papers sharing the same aspect labels are pulled closer together in the vector space.
  • Transformer Fine-tuning: Fine-tuning models like SPECTER or SciBERT on a binary classification task to determine if two papers are similar in a specific aspect.
  • Siamese Networks (Siamese-SciBERT): This architecture uses a Siamese framework with a Multiple Negative Ranking Loss, allowing the model to learn distinct embedding spaces for Task, Method, and Dataset independently.

Unlike pairwise classification, which requires comparing every pair at inference time, the Siamese-SciBERT method allows for a one-time encoding of each paper. Retrieval then becomes a simple, high-speed nearest-neighbor search within the relevant aspect-specific space.

Data and Experimental Setup

The study utilizes the Papers with Code (PwC) corpus, which provides manual annotations for Task (e.g., Object Detection), Method (e.g., GAN), and Dataset (e.g., ImageNet). The final processed dataset included 157,606 unique research papers. To ensure high-quality signals, labels assigned to more than 100 papers were discarded to prevent overly generic terms from dominating the results.

Key Results and Insights

Performance and the "Specialization Gap"

Siamese-SciBERT emerged as the top performer across all metrics. For the "Task" aspect, it achieved a Mean Average Precision (MAP) of 0.224, vastly outperforming the generic SciBERT score of 0.015.

A critical finding was the "Specialization Gap" in generic models. Generic SPECTER embeddings showed a 92% performance difference between "Dataset" similarity and "Method" similarity, indicating a strong implicit bias toward datasets. Siamese-SciBERT significantly reduced this gap, demonstrating its ability to learn the nuances of more challenging aspects like methodology.

Scalability and Explainability

The authors calculated that a pairwise classification approach on their dataset would require 1.3 billion comparisons, taking approximately 46 days on a high-end GPU. In contrast, the specialized embedding approach processed the same corpus with just 118,146 forward passes.

Furthermore, by separating the embeddings, the system becomes "explainable by design." Recommendations can be justified based on specific aspects (e.g., "This paper is recommended because it shares the same Method"), providing researchers with more transparent discovery tools.

Conclusion

While the use of proxy labels from Papers with Code and the dependency on labeled data for training present ongoing challenges, this research demonstrates that specialized embeddings offer a scalable and more accurate alternative to generic document representations. Future work will focus on extending these methods to unsupervised settings and optimizing user interfaces to handle multi-aspect recommendations effectively.

Summary updated

BibTeX
@inproceedings{ostendorff2022specialized,
  author = {Malte Ostendorff and Till Blume and Terry Ruas and Bela Gipp and Georg Rehm},
  title = {{Specialized document embeddings for aspect-based similarity of research papers}},
  booktitle = {JCDL},
  year = {2022},
  url = {https://openreview.net/forum?id=Dg3W2YgVQgl},
}
Figure