Identifying the Source of Generation for Large Language Models

Bumjin Park, Jaesik Choi
7/5/2024
cs.CLcs.LG

No official code found. Best implementation: leo-bjpark/DocSourceLLM (3 stars, MIT, last commit 2024-04-25).

Abstract

Large language models (LLMs) memorize text from several sources of documents. In pretraining, LLM trains to maximize the likelihood of text but neither receives the source of the text nor memorizes the source. Accordingly, LLM can not provide document information on the generated content, and users do not obtain any hint of reliability, which is crucial for factuality or privacy infringement. This work introduces token-level source identification in the decoding step, which maps the token representation to the reference document. We propose a bi-gram source identifier, a multi-layer perceptron with two successive token representations as input for better generalization. We conduct extensive experiments on Wikipedia and PG19 datasets with several LLMs, layer locations, and identifier sizes. The overall results show a possibility of token-level source identifiers for tracing the document, a crucial problem for the safe use of LLMs.

View on arXivView PDF

Code Implementations(1)

MIT

Official Repo for ICPRAI 2024 - Identifying the Source of Generation for Large Language Models

30Shell, PythonApr 6, 20242 years agoMIT

Similar Papers

Cite this paper

@article{park2024identifying,
  title  = {Identifying the Source of Generation for Large Language Models},
  author = {Bumjin Park and Jaesik Choi},
  year   = {2024},
  eprint = {2407.12846},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.12846v1}
}

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/2407.12846.svg)](https://codeofpaper.com/paper/2407.12846)

Discussion