Adapting Pretrained Language Models for Citation Classification via Self-Supervised Contrastive Learning

Tong Li, Jiachuan Wang, Yongqi Zhang, Shuangyin Li, Lei Chen · DOI

TL;DR

The paper introduces Citss, a novel framework that adapts both encoder-based language models and decoder-based large language models (LLMs) for citation classification using self-supervised contrastive learning. By introducing sentence-level cropping and keyphrase perturbation, Citss effectively mitigates the challenges of data scarcity, contextual noise, and spurious keyword correlations, setting a new state-of-the-art across multiple benchmarks.

What Problem Does This Paper Address?

When writing a research paper, citations serve different purposes: sometimes you are building directly on top of a previous method, other times you are contrasting your results with a competitor, or simply providing background context. Automatically classifying these citation intentions is essential for scholarly analysis, paper recommendation engines, and automated literature summarization.

However, training machine learning models to do this is notoriously difficult due to three main challenges:

  1. Data Scarcity: Annotating scientific text requires deep domain expertise, meaning existing datasets are tiny (often just a few thousand samples).
  2. Contextual Noise: The true intent of a citation is often buried within a wider paragraph, but expanding the model's context window introduces irrelevant text that distracts the model.
  3. Spurious Keyphrase Correlations: Models easily overfit to specific scientific terms (e.g., memorizing that a specific dataset name always correlates with a "background" label) rather than learning the actual rhetorical logic of the sentence.

While previous approaches focused exclusively on smaller, encoder-based models (like BERT), this paper addresses how to effectively fine-tune both encoder models and modern, multi-billion-parameter decoder LLMs under severe data constraints.

Methods

The authors propose Citss (Citation self-supervised contrastive learning), a framework designed to inject extra supervision signals without requiring more human-labeled data.

Figure 1: Overview of Citss: (a) exhibits the architecture and workflow. (b) shows an example of sentence-level cropping. (c) shows an example of the keyphrase perturbation. The underlined text is the keyphrases and the shaded text is the word for synonym replacement.

The core architecture introduces a lightweight MLP adapter to map hidden states from a Pretrained Language Model (PLM) or LLM into a task-specific space. For decoder LLMs (like Llama3), they utilize an "Explicit-One-word-Limitation" (EOL) prompting trick to force the model to condense its contextual understanding into a single next-token hidden state, bypassing the need for slow text generation during training.

To train the model robustly, Citss generates contrastive pairs using two novel self-supervised data augmentation strategies:

  • Sentence-Level Cropping (SC): During training, the framework randomly alters the context window size around the target citation across different epochs. This forces the model to dynamically isolate and focus on the target citation regardless of surrounding background noise.
  • Keyphrase Perturbation (KP): The framework uses an LLM in a one-shot setting to extract Scientific Typed Keyphrases (STKs) such as tasks, techniques, or materials. It then perturbs these keyphrases by either swapping them with other keyphrases of the same type, or replacing them with abstract placeholders (e.g., "Technique-1"). This breaks spurious correlations, forcing the model to learn the structural logic of the text rather than relying on specific nouns.

The model is optimized using a joint loss function combining standard cross-entropy classification loss with InfoNCE contrastive losses from both strategies.

Datasets

The framework was evaluated on three distinct citation classification benchmarks:

  • ACL-ARC: A cleaned dataset based on computational linguistics papers containing 1,929 samples across 6 intent classes.
  • FOCAL: A dataset from the astrophysics domain consisting of 4,166 samples across 6 classes.
  • ACT2: A highly heterogeneous, multidisciplinary dataset spanning over 20 domains (medicine, psychology, computer science, etc.) with 3,000 samples across 6 classes.

Key Insights and Ideas

  • Fine-Tuning Beats Pure Prompting: Recent trends suggest using massive LLMs (like GPT-4) out-of-the-box via zero-shot prompting for text classification. However, this paper demonstrates that data-driven, parameter-efficient fine-tuning (via LoRA) on smaller open-source LLMs significantly outperforms generation-based prompting methods.
  • Rhetoric Over Vocabulary: By systematically replacing technical nouns while preserving sentence structure, the keyphrase perturbation strategy forces the network to act like a linguist—focusing on how an author frames a citation rather than what specific tool they are discussing.
  • The Context Window Paradox: While more context provides necessary clues for long-range dependencies, it naturally degrades standard model performance due to noise. Sentence-level cropping acts similarly to image cropping in computer vision, teaching the model to remain invariant to background clutter.

Key Results

Citss achieved state-of-the-art performance across all three datasets, demonstrating its versatility for both encoder and decoder architectures.

  • With SciBERT: Citss achieved a Macro-F1 of 0.665 on ACL-ARC and 0.679 on FOCAL, outperforming strong baselines like PET and IREL.
  • With Llama3-8B + LoRA: The framework achieved its highest performance on ACL-ARC with a Macro-F1 of 0.744 and an Accuracy of 0.819, showing a substantial margin over standard LoRA fine-tuning.
Figure 2: Ablation study of SC with different 𝑇𝑖. The x-axis is 𝑙, and 𝑙= 0 corresponds to the citance.

Ablation studies confirmed that both SC and KP strategies independently boost performance. As shown in the ablation experiments, expanding the context window without SC typically degrades performance on datasets like ACL-ARC, but applying SC successfully mitigates this in-context noise.

Limitations and Future Work

The authors note that the quality of the keyphrase perturbation strategy depends heavily on the initial extraction of scientific keyphrases. While the type-agnostic precision of their LLM extractor was high (76%), it occasionally categorized ambiguous terms under a broad "Concept" category.

Additionally, while Llama3-8B excelled on general domain knowledge (ACL-ARC), the performance gap between it and SciBERT narrowed on highly specialized datasets like FOCAL. This suggests that future work could benefit from combining large-scale general LLM capabilities with specialized scientific domain pretraining.

Summary updated

BibTeX
@inproceedings{li2025adapting,
  author = {Tong Li and Jiachuan Wang and Yongqi Zhang and Shuangyin Li and Lei Chen},
  title = {{Adapting Pretrained Language Models for Citation Classification via Self-Supervised Contrastive Learning}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2025},
}
Figure