Source-Aware Training Enables Knowledge Attribution in Language Models

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Khalifa, Muhammad, Wadden, David, Strubell, Emma, Lee, Honglak, Wang, Lu, Beltagy, Iz, Peng, Hao
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866911985391632384
author Khalifa, Muhammad
Wadden, David
Strubell, Emma
Lee, Honglak
Wang, Lu
Beltagy, Iz
Peng, Hao
author_facet Khalifa, Muhammad
Wadden, David
Strubell, Emma
Lee, Honglak
Wang, Lu
Beltagy, Iz
Peng, Hao
contents 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}
format Preprint
id arxiv_https___arxiv_org_abs_2404_01019
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Source-Aware Training Enables Knowledge Attribution in Language Models
Khalifa, Muhammad
Wadden, David
Strubell, Emma
Lee, Honglak
Wang, Lu
Beltagy, Iz
Peng, Hao
Computation and Language
Artificial Intelligence
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}
title Source-Aware Training Enables Knowledge Attribution in Language Models
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2404.01019