Standard language models are trained to predict the next word or a masked token within a narrow window of text. While this "local" supervision is excellent for learning grammar and immediate semantics, it often fails to capture the "global" relationship between documents. In the world of scientific research and structured knowledge, the most meaningful connections aren't always found in shared keywords, but in the explicit links—citations and hyperlinks—created by human experts.
By treating these links as a natural supervision signal, researchers have developed a way to distill the global structure of a knowledge graph into the local vector representations of a transformer.
The Limits of Local Context
When a model like BERT is trained only on individual documents, its understanding of "relatedness" is bound by linguistic similarity. If two papers discuss the same breakthrough using different terminology—for instance, one focusing on "deep neural networks" and another on "connectionist architectures"—a text-only model might place them far apart in vector space.
As Arman Cohan, Sergey Feldman, and their colleagues argue in SPECTER, masked language modeling (MLM) fails to identify document-level relatedness because it lacks a signal for how documents interact in the real world. To a researcher, these two papers are clearly related because they cite the same foundational work. Citation-informed pre-training aims to bake this "academic neighborhood" directly into the model's weights.
Citations as Natural Supervision
The core intuition behind models like SPECTER and its successor SPECTER2 is to use the citation graph as a massive, human-curated dataset of positive and negative samples.
Instead of just predicting words, the model is trained using a triplet margin loss. For any given "query" paper, the model is shown:
- A positive example: A paper that the query paper actually cites.
- A negative example: A paper that is not cited by the query paper (often a "hard negative" from the same field).
The objective forces the transformer to map the query and the cited paper closer together in the embedding space than the query and the uncited paper. This process transforms the raw text into a vector space where proximity reflects scientific relevance and research lineage rather than just linguistic overlap. As noted in the survey When Large Language Models Meet Citation by Yang Zhang and others, this contrastive learning objective allows models to recognize conceptual links even when terminology differs.
Bridging Knowledge Across Documents
While SPECTER uses citations to refine the final embeddings, LinkBERT, developed by Michihiro Yasunaga, Jure Leskovec, and Percy Liang, brings this structural information into the pre-training phase itself.
Standard BERT models see a single contiguous block of text. LinkBERT instead constructs "document-relation" context windows. If Paper A cites Paper B, the model might see a segment from Paper A followed immediately by a segment from Paper B in the same training input. This forces the self-attention mechanism to learn dependencies across document boundaries. This approach is particularly effective for "multi-hop" reasoning, where the answer to a question requires connecting a fact in one document to a consequence in another.
Beyond Science: Structured Knowledge as a Proxy
This idea extends beyond academic citations to any human-curated link structure. Wikiformer, proposed by Qingyao Ai and Weihang Su, applies similar logic to Wikipedia. By leveraging "See Also" links and hierarchical headings, the model learns to align the semantic content of entire articles.
Similarly, Hyperlink-induced Pre-training (HLP) by Jiawei Zhou and colleagues uses the way Wikipedia pages link to each other to generate millions of "pseudo" question-passage pairs. This bridges the "relevance gap" in information retrieval: the model learns that a passage about "Photosynthesis" is relevant to a query about "Chlorophyll" not because they share words, but because humans have explicitly linked them.
Why It Works: Distilling Global Context
The success of these methods across diverse tasks—from biomedical study design classification to mapping the evolution of Computational Social Science—stems from a single intuition: links are a high-bandwidth signal for intent.
When a researcher cites a paper, they are performing a complex cognitive task: identifying a functional, methodological, or conceptual dependency. By training on these links, we are not just teaching models to read; we are teaching them to navigate the web of relationships that define human knowledge. As Amanpreet Singh and the AI2 team demonstrated with SciRepEval, this "relational context" is often more valuable for high-level tasks than the literal text itself.