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

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

Introduction

For Large Language Models (LLMs) to be truly trustworthy, they must provide verifiable citations for their claims. Currently, the standard approach is Retrieval-Augmented Generation (RAG), where an external search engine retrieves relevant documents at inference time to feed into the LLM's context window. While effective, RAG introduces latency, increases compute costs, relies on external infrastructure, and is vulnerable to "retrieval noise" when search engines return irrelevant or conflicting information.

The alternative is internal citation: training the LLM to memorize its sources and cite them directly from its parametric memory in a closed-book setting. However, standalone LLMs are notoriously poor at this, often hallucinating citations up to 90% of the time. Previous attempts to teach LLMs to cite internally have only succeeded on simple, synthetic datasets. This paper introduces a novel framework to train LLMs to reliably attribute complex, real-world facts to their pretraining documents without relying on test-time retrieval.

Methodology: Active Indexing for Internal Citation

The authors propose a two-stage training framework designed to build robust, bidirectional mappings between facts and document titles:

  1. Continual Pretraining (Index Learning): The model absorbs factual knowledge and learns to map facts to specific document identifiers (in this case, natural language document titles).
  2. Instruction Tuning: The model is fine-tuned to output these citations alongside its answers in a standard QA format.

The core innovation lies in the first stage. A standard baseline approach, Passive Indexing, simply appends a document's title to the end of its text during training. However, this passive exposure is insufficient for complex reasoning and retrieval.

To address this, the authors introduce Active Indexing, which leverages LLM-generated synthetic data to actively teach the model the relationship between facts and sources in two complementary directions:

  • Forward Augmentation (Source $\to$ Fact): The model trains on synthetic QA pairs asking about specific entities within a document, conditioned on the document's title (e.g., "According to [Title], what did X do?"). This helps the model recall facts when given a source.
  • Backward Augmentation (Fact $\to$ Source): The model trains on synthetic instructions requiring it to synthesize information across multiple documents, forcing it to generate a factual claim and immediately predict the correct source title.
Overview of the Cite Pretrain methodology, contrasting Passive Indexing with Forward and Backward Active Indexing.

Datasets and Evaluation

To evaluate this approach, the authors introduce CitePretrainBench, a benchmark mixing real-world corpora (Wikipedia, Common Crawl, arXiv) with novel, unseen documents (RepliQA) to test both memorization and the acquisition of new knowledge. Downstream QA tasks include ASQA (long-form Wikipedia), ELI5 (long-form Common Crawl), SciQAG (short-form arXiv), and RepliQA (short-form novel docs).

Key Results

The results demonstrate that explicitly teaching fact-to-source bindings beats hoping for passive memorization. By training the model to map Source $\to$ Fact and Fact $\to$ Source simultaneously, Active Indexing yields significantly better results than passive baselines.

  • Massive Precision Gains: On Qwen-2.5-7B and 3B models, Active Indexing outperformed the Passive Indexing baseline by up to 30.2% in citation precision across all tasks.
  • Outperforming Proprietary Models: Even powerful proprietary models like GPT-4.1 struggle with internal citation without targeted training. On the ELI5 and SciQAG datasets, GPT-4.1 scored 0.0% on internal citation precision in a few-shot setting, whereas the Active Indexing 7B model achieved 29.3% and 32.6%, respectively.
Performance comparison across ASQA, Eli5, SciQAG, and RepliQA datasets, showing Active Indexing (ActIdx) outperforming baselines and GPT-4.1.
  • Scaling Laws: The performance of Active Indexing shows no signs of saturating. Citation precision continues to scale linearly as the amount of synthetic augmented data increases, showing a clear upward trend even at 16x the original token count. Furthermore, the ability to internally cite improves monotonically with model size.
  • Complementary to RAG: Internal citations shine when external retrieval is noisy or unavailable. A hybrid approach that uses internal memory as a fallback for poor retrieval achieves the best overall robustness.

Limitations and Future Work

While promising, the approach has limitations. Experiments were capped at 14B parameter models, leaving it an open question how these techniques scale to the 100B+ frontier. Additionally, relying on LLM-generated QA pairs for Active Indexing carries a risk of injecting subtle hallucinations into the training data. Finally, improving a model's ability to perfectly attribute its training data inherently increases the risk of surfacing sensitive or copyrighted text, highlighting the need for future work on privacy-preserving identifiers.

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