Cite Pretrain: Retrieval-Free Knowledge Attribution for Large Language Models

Yukun Huang, Sanxing Chen, Jian Pei, Manzil Zaheer, Bhuwan Dhingra

TL;DR

This paper introduces Active Indexing, a training strategy that enables Large Language Models (LLMs) to reliably cite their training documents from memory without relying on test-time web search or databases. By using bidirectional data augmentation during continual pretraining, the method binds facts to unique document titles, achieving up to a 30.2% boost in citation precision over standard baselines.

What Problem Does This Paper Address?

To make LLMs trustworthy, they need to provide verifiable citations for their answers. Currently, the dominant solution is Retrieval-Augmented Generation (RAG), which queries an external database or search engine at inference time to find supporting documents.

However, RAG comes with heavy costs: it increases latency, introduces infrastructure dependencies, and can degrade model reasoning if the retrieved context is noisy or conflicts with the model's internal knowledge. Conversely, when standalone LLMs try to generate citations purely from memory ("internal citations"), they hallucinate wildly, with error rates often exceeding 85%.

This paper addresses a fundamental question: Can we modify the pretraining process so that LLMs can reliably cite the documents they have already seen, eliminating the need for external retrieval at test time?

Methods

The authors propose a two-stage framework: continual pretraining to index factual knowledge, followed by instruction tuning to elicit proper citation behavior.

Their core innovation is Active Indexing, which replaces "Passive Indexing" (simply appending a document ID to raw text). Active Indexing uses an auxiliary LLM to generate targeted, synthetic data that creates robust, bidirectional links between facts and document titles:

  1. Forward Augmentation (Source $\rightarrow$ Fact): The model is trained to answer diverse questions about a document when explicitly conditioned on its title. This forces the model to internalize and retrieve detailed facts from its memory.
  2. Backward Augmentation (Fact $\rightarrow$ Source): The model is trained to predict the correct document title for a given factual statement, reinforcing source grounding and cross-document reasoning.

The overall framework is illustrated below:

Figure 1: CitePretrain Framework. We construct a diverse corpus (Wikipedia, ArXiv, Common Crawl, and novel documents) for LLMs to index. Each document is indexed via passive indexing (appending a document ID) and active indexing, which includes: (1) Forward augmentation: generating entity- based QA pairs to map IDs to facts; and (2) Backward augmentation: retrieving related documents to synthesize multi-source QA pairs with citations, mapping facts to IDs. The model is continually pre-trained and instruction-tuned, then evaluated on long- and short-form citation QA tasks.

Datasets

To rigorously test this approach, the authors constructed CitePretrainBench, a benchmark mixing real-world and synthetic corpora across short-form and long-form QA tasks:

  • Wikipedia: Evaluated via ASQA for long-form factoid QA requiring multi-document reasoning.
  • Common Crawl: Evaluated via ELI5 for open-ended, long-form QA.
  • arXiv: Evaluated via SciQAG for short-form scientific question answering.
  • RepliQA: A dataset of entirely fictional, synthetic documents used to isolate and test the model's ability to learn completely new knowledge and attributions post-initial training.

Key Insights and Ideas

  • Teaching Beats Hoping: Simply appending document IDs to text chunks (Passive Indexing) fails because complex facts in evaluation tasks rarely match verbatim training text. Models must be explicitly supervised to use identifiers in a QA context.
  • Bidirectional Training is Essential: Mapping titles to facts (Forward) and facts to titles (Backward) are highly complementary. Combining them yields the highest citation precision.
  • Scale Unlocks Precision: As models scale (tested from 3B to 14B parameters), citation precision improves monotonically. Interestingly, citation quality benefits more from model scaling than basic answer correctness does.
  • Synergy with RAG: Internal citations don't have to entirely replace RAG; they can complement it. Internal citations excel when external retrieval is poor or noisy, acting as a reliable fallback mechanism.

Key Results

  • Consistent Precision Gains: Active Indexing consistently outperformed passive baselines across all datasets and models (Qwen-2.5 and Llama-3 variants).
Table 1: Main results on four QA datasets. Acc=answer correctness, C-Pr=citation precision, C- Re=citation recall. Best results within the same model are bolded. We find that: (1) Active Indexing outperforms Passive Indexing; (2) Forward and Backward are complementary; (3) Larger models help, but without Active Index, even proprietary LLMs still struggle with internal citation.
  • Data Scaling Potential: Unlike simple token repetition (which leads to overfitting), Active Indexing performance scales cleanly with more augmented data. The authors observed a steady upward trend in citation precision even when scaling the data to 16$\times$ the original token count.
Figure 2: Scaling Comparison Between Active Indexing and Passive Indexing on RepliQA.

Limitations and Future Work

  • Scalability to Production Scale: The experiments were conducted on a relatively small corpus (millions of tokens) compared to production-grade pretraining (trillions of tokens). It remains to be seen if these gains hold or saturate at frontier scale (e.g., 100B+ parameter models).
  • Synthetic Data Quality: Because the data augmentation relies on auxiliary LLMs, any hallucinations present in the synthetic training data could subtly degrade the final model's behavior.
  • Evaluation Noise: Long-form citation quality was evaluated using Natural Language Inference (NLI) models as a scalable proxy, which introduces some measurement noise compared to human evaluation.
  • Future Directions: The authors suggest extending Active Indexing to multilingual settings, high-stakes domains (like law or medicine), and exploring privacy-preserving attribution methods (e.g., hashed IDs) to prevent the accidental leaking of sensitive training text.

Summary updated

BibTeX
@inproceedings{huang2026cite,
  author = {Yukun Huang and Sanxing Chen and Jian Pei and Manzil Zaheer and Bhuwan Dhingra},
  title = {{Cite Pretrain: Retrieval-Free Knowledge Attribution for Large Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=D9bLUj7wUW},
}
Figure