Abstract
Many useful tasks on scientific documents, such as topic classification and citation prediction, involve corpora that span multiple scientific domains. Typically, such tasks are accomplished by representing the text with a vector embedding obtained from a Transformer's single CLS token. In this paper, we argue that using multiple CLS tokens could make a Transformer better specialize to multiple scientific domains. We present Multi2SPE: it encourages each of multiple CLS tokens to learn diverse ways of aggregating token embeddings, then sums them up together to create a single vector representation. We also propose our new multi-domain benchmark, Multi-SciDocs, to test scientific paper vector encoders under multi-domain settings. We show that Multi2SPE reduces error by up to 25 percent in multi-domain citation prediction, while requiring only a negligible amount of computation in addition to one BERT forward pass.
The Bottleneck of Single-Token Representations
In Natural Language Processing (NLP), document-level representations for Transformer models like BERT typically rely on a single [CLS] token. While effective for single-domain tasks, this approach creates a bottleneck for scientific literature, which is inherently interdisciplinary. A paper might bridge Biology and Computer Science, yet a single token can only aggregate information in one specific way, often favoring the dominant domain in the training set.
Furthermore, existing benchmarks like SciDocs are heavily biased toward Computer Science. This bias masks the performance limitations of current models when applied to truly interdisciplinary or multi-domain data. To address this, we introduce Multi-SciDocs, a benchmark specifically designed to evaluate encoders across diverse scientific fields.
Multi2SPE: Diversifying Document Embeddings
We propose Multi2SPE (Multi-domain Multi-CLS Scientific Paper Encoder), which moves beyond the single-token paradigm by prepending multiple [CLS] tokens (e.g., 3 or 5) to the input text.
As shown in the architecture above, Multi2SPE inserts additional linear layers at specific intervals (after BERT layers 4, 8, and 12). Each [CLS] token is assigned its own set of weights. To ensure these tokens don't converge on identical representations, we employ a re-parameterization trick that subtracts the average weight of all tokens from each individual token's weight during training. This forces the model to capture different "facets" of a paper—such as methodology versus application domain.
For efficiency, while the tokens are trained to be diverse, they are simply summed into a single final vector during inference. This ensures that downstream tasks like similarity searches remain as fast as standard single-token models.
Empirical Results and Key Insights
Our evaluation on the Multi-SciDocs benchmark and the Microsoft Academic Graph (MAG) dataset demonstrates that Multi2SPE consistently outperforms strong baselines like SPECTER and SciNCL.
Key findings include:
- Significant Error Reduction: Multi2SPE reduced error by up to 25% in multi-domain citation prediction compared to SPECTER.
- Improved Classification: On the MAG dataset, which covers 19 diverse subject areas, the model showed marked improvements, indicating a better "understanding" of cross-domain relationships.
- Minimal Overhead: The core of the model remains a single BERT forward pass. The additional linear layers increase parameters only slightly (from 109M to 114.8M), making the performance boost computationally efficient.
Conclusion
Multi2SPE demonstrates that ensembling multiple [CLS] tokens is a powerful, low-cost strategy for encoding the complexity of multi-domain scientific literature. By breaking the single-token bottleneck and introducing the Multi-SciDocs benchmark, we provide both a more robust modeling architecture and a more realistic evaluation framework for the next generation of scientific paper encoders.
Summary updated