Source-Aware Training Enables Knowledge Attribution in Language Models

Muhammad Khalifa, David Wadden, Emma Strubell, Honglak Lee, Lu Wang +2 more
4/1/2024
cs.CLcs.AI

Official code: mukhal/intrinsic-source-citation (19 stars, last commit 2025-04-01).

Abstract

Large language models (LLMs) learn a vast amount of knowledge during pretraining, but they are often oblivious to the source(s) of such knowledge. We investigate the problem of intrinsic source citation, where LLMs are required to cite the pretraining source supporting a generated response. Intrinsic source citation can enhance LLM transparency, interpretability, and verifiability. To give LLMs such ability, we explore source-aware training -- a recipe that involves (i) training the LLM to associate unique source document identifiers with the knowledge in each document, followed by (ii) an instruction-tuning stage to teach the LLM to cite a supporting pretraining source when prompted. Source-aware training borrows from existing pretraining/fine-tuning frameworks and requires minimal changes to the model architecture or implementation. Through experiments on synthetic data, we demonstrate that our training recipe can enable faithful attribution to the pretraining data without a substantial impact on the model's perplexity compared to standard pretraining. Our findings also highlight the importance of pretraining data augmentation in achieving attribution. Code and data available here: \url{https://github.com/mukhal/intrinsic-source-citation}

View on arXivView PDF

Code Implementations(1)

[COLM '24] Source-Aware Training Enables Knowledge Attribution in Language Models

190C, C++Apr 3, 20241 years ago

Similar Papers

Cite this paper

@article{khalifa2024sourceaware,
  title  = {Source-Aware Training Enables Knowledge Attribution in Language Models},
  author = {Muhammad Khalifa and David Wadden and Emma Strubell and Honglak Lee and Lu Wang and Iz Beltagy and Hao Peng},
  year   = {2024},
  eprint = {2404.01019},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.01019v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.01019.svg)](https://codeofpaper.com/paper/2404.01019)

Discussion