Towards Tracing Factual Knowledge in Language Models Back to the Training Data

Ekin Akyürek, Tolga Bolukbasi, Frederick Liu, Binbin Xiong, Ian Tenney +2 more
5/23/2022
25 citations
cs.CLcs.IR

Official code: ekinakyurek/influence (40 stars, Jupyter Notebook, MIT, last commit 2022-12-27).

Abstract

Language models (LMs) have been shown to memorize a great deal of factual knowledge contained in their training data. But when an LM generates an assertion, it is often difficult to determine where it learned this information and whether it is true.

Show full abstract

In this paper, we propose the problem of fact tracing: identifying which training examples taught an LM to generate a particular factual assertion. Prior work on training data attribution (TDA) may offer effective tools for identifying such examples, known as "proponents". We present the first quantitative benchmark to evaluate this. We compare two popular families of TDA methods -- gradient-based and embedding-based -- and find that much headroom remains. For example, both methods have lower proponent-retrieval precision than an information retrieval baseline (BM25) that does not have access to the LM at all. We identify key challenges that may be necessary for further improvement such as overcoming the problem of gradient saturation, and also show how several nuanced implementation details of existing neural TDA methods can significantly improve overall fact tracing performance.

View on arXivView PDF

Code Implementations(1)

MIT

Code for "Tracing Knowledge in Language Models Back to the Training Data"

401Jupyter Notebook, PythonNov 11, 20213 years agoMIT

Similar Papers

Cite this paper

@article{akyrek2022towards,
  title  = {Towards Tracing Factual Knowledge in Language Models Back to the Training Data},
  author = {Ekin Akyürek and Tolga Bolukbasi and Frederick Liu and Binbin Xiong and Ian Tenney and Jacob Andreas and Kelvin Guu},
  year   = {2022},
  eprint = {2205.11482},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.11482}
}

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

Discussion