Cite Pretrain Teaches AI to Remember Sources Without Searching the Web
A new training recipe called Active Indexing teaches LLMs to cite the documents they learned from, no retriever required at inference time.
Takeaways
- New paper Cite Pretrain teaches LLMs to cite sources without a retriever at inference time.
- Two stages: continual pretraining binds facts to document IDs, then instruction tuning elicits citations.
- Active Indexing augments training with paraphrased facts and bidirectional source-to-fact and fact-to-source objectives.
- Beats Passive Indexing baseline by up to 30.2% citation precision on Qwen-2.5-7B and 3B.
- Introduces CitePretrainBench, mixing Wikipedia, Common Crawl, arXiv, and novel documents for short and long-form tasks.
- Internal citations complement external retrieval, winning under noisy retrieval and improving hybrid pipelines.
Researchers have released Cite Pretrain, a training method that teaches language models to associate facts with persistent document identifiers. After training, a model can answer questions and cite documents from its training corpus without querying an external retriever during inference.
Yukun Huang, Sanxing Chen, Jian Pei, Manzil Zaheer, and Bhuwan Dhingra describe the method in their paper. Their approach moves part of the citation pipeline from inference into continual pretraining, reducing retrieval latency and dependence on a live search index. Its citations remain limited to sources indexed during training, and each generated identifier must resolve through a maintained document catalog.
Why citation systems use retrieval
Standalone language models can generate plausible but unsupported titles, URLs, and references because standard pretraining does not explicitly preserve a dependable link between a fact and its source. Production systems commonly address this problem with retrieval-augmented generation, or RAG, which searches an indexed corpus, inserts relevant passages into the prompt, and asks the model to answer from that evidence.
RAG adds an index, a retrieval request, and document-selection errors to every query. Poorly ranked passages can weaken both the answer and its citations, while maintaining embeddings and retrieval infrastructure adds operational cost. Cite Pretrain instead encodes fact-to-source associations in the model’s weights before deployment.
How Active Indexing binds facts to sources
The training recipe uses two stages:
- Continual pretraining associates factual content with persistent document identifiers.
- Instruction tuning teaches the model to return those identifiers when a prompt requests citations.
The paper’s Passive Indexing baseline appends an identifier to each source document during training. The model sees the label beside the text, but receives little direct practice retrieving that label from individual facts, paraphrases, or combinations of claims.
Active Indexing generates synthetic examples for each document with two complementary objectives:
- Paraphrase and composition: Facts are restated in varied forms and combined with related information, helping the model preserve source links across wording changes and multi-fact answers.
- Bidirectional training: Some examples ask the model to generate content from a document identifier, while others ask it to produce the identifier from the content.
Bidirectional examples give the identifier a consistent role as an address for document content. The model practices both retrieving information associated with that address and attributing generated information back to it.
A benchmark for learned citations
The researchers also introduce CitePretrainBench, which combines material from Wikipedia, Common Crawl, and arXiv with newly introduced documents. It evaluates short-form tasks involving individual facts and long-form tasks that require citations across multiple claims.
The novel-document split tests whether the method can index material added during continual pretraining, rather than relying on content encountered during a model’s original pretraining. This design gives researchers a cleaner measure of the new training procedure.
Experiments on Qwen2.5 models with 3 billion and 7 billion parameters show Active Indexing consistently outperforming Passive Indexing. The paper reports citation-precision gains of up to 30.2% across its evaluated tasks and models. Performance continues rising as augmented training data reaches 16 times the source token count, indicating that additional synthetic examples can improve attribution at the cost of more training compute.
Hybrid systems handle uneven retrieval
The hybrid-citation experiments compare identifiers stored in model weights with citations supplied through retrieval. Internal citations perform better when retrieved evidence is noisy, while external citations benefit from high-quality search results. Combining both sources produces the most consistent performance across different retrieval conditions.
Deployment trade-offs
| Condition | Practical effect |
|---|---|
| Stable, controlled corpus | Continual pretraining can encode internal documentation, legal archives, compliance material, or scientific collections. |
| Low-latency or on-device inference | Generating learned identifiers avoids a retrieval round trip and can reduce infrastructure requirements. |
| Frequently changing corpus | Adding or revising sources may require another training pass; a RAG index can usually ingest updates through embedding and indexing. |
| Previously unseen documents | The model cannot generate learned source bindings for documents excluded from continual pretraining. |
| Limited training budget | Synthetic augmentation increases token volume, and the reported scaling results extend to 16 times the original count. |
What developers can take from it
Cite Pretrain treats document identifiers as learnable addresses and trains the model to navigate between those addresses and their contents. For teams with stable corpora and sufficient training capacity, the method offers a way to reduce inference-time retrieval while preserving source attribution. Teams that need current, open-ended, or rapidly changing information will still require retrieval, potentially combined with the model’s internal citations.