Abstract
Extracting granular technical details from academic literature is a critical step in constructing comprehensive science graphs. However, general-purpose Large Language Models (LLMs) often struggle with technical precision and consistency. This paper explores a novel "SLM-as-a-judge" framework using Small Language Models (SLMs) enhanced by Continuous Pre-training (CP) and Attention Steering (SA). Our results demonstrate that specialized SLMs can significantly outperform general-purpose models like GPT-4 in precision and ranking accuracy for domain-specific information extraction.
Introduction
The construction of "science graphs"—massive knowledge graphs mapping research trends, methods, and subjects—requires the extraction of specific technical entities from millions of academic papers. General-purpose LLMs, while proficient at summarization, face three primary hurdles in this context: omission of niche technical terms, hallucinations, and high sensitivity to prompt variations. To mitigate these issues, we propose a specialized pipeline where an SLM acts as a domain-specific judge.
Methodology
The core of our approach involves specializing a Llama-3-8B-Instruct model. We employed two main strategies: Continuous Pre-training (CP) on a domain-specific corpus and a novel Attention Steering (SA) technique. SA applies a mathematical bias (log-ratio bias) during the model's forward pass to "steer" its attention toward technical entities identified by Named Entity Recognition (NER) tools.
As illustrated in the workflow above, the SLM serves as a fact-checker for technical elements extracted by a general-purpose LLM, identifying information gaps and misinformation to refine the final science graph.
Evaluation and Results
We evaluated our models on the subfield of Fake News Detection (FND). The training set comprised 48 survey papers, while the evaluation set consisted of 10 papers with ground-truth technical elements manually extracted by experts.
The results, summarized in the table above, highlight the effectiveness of the steered attention approach. The Llama+CP+SA model achieved the highest precision (0.92), surpassing GPT-4.1 (0.88). Furthermore, the SA model demonstrated exceptional ranking accuracy with an NDCG@5 of 0.96 in prompt-based extraction. Notably, the SA model also provided greater stability (lower standard deviation) compared to the CP-only variant, which was prone to hallucinations.
Key Insights and Discussion
Our findings suggest a trade-off between precision and linguistic fluency. While specialized SLMs are superior at identifying technical terms, they often produce less polished prose than general-purpose LLMs. Consequently, we advocate for a hybrid "judge" model where SLMs ensure technical accuracy while LLMs provide readable synthesis.
Future work will focus on scaling this approach to larger, more diverse datasets beyond the FND domain and refining the mathematical thresholds of attention steering to maintain fluency without sacrificing precision.
Summary updated