atlas

Research map / Large language models / Retrieval and knowledge

Physics of Language Models: Part 3.1, Knowledge Storage and Extraction

ICML 2024 · Large language models › Retrieval and knowledge · approach: Knowledge-augmented question answering · 7 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Uses controlled synthetic biography datasets to show that LLMs only extract knowledge after fine-tuning when pretraining data is knowledge-augmented (rewritten, permuted, multiplied), and that linear probing reveals why.

Problem

Whether language models answer factual questions by genuinely extracting knowledge from training text versus by memorizing similar questions seen during training, and what conditions in pretraining enable knowledge extraction after fine-tuning.

Approach

Study knowledge storage and extraction in a fully controlled setting: pretrain small GPT2/Llama models from scratch on synthetic (bioS) and LLaMA-rewritten (bioR) biographies, then test out-of-distribution QA after fine-tuning on other individuals; show that knowledge augmentation (multiple rewrites, sentence permutation, full names) during pretraining is what enables extraction, and explain it wi

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Mix BIO data with QA training data before fine-tuningGPT2 · bioS single, OOD QAaccuracyHelped
Mix BIO data with QA training data before fine-tuningGPT2 · bioR single, OOD QAaccuracyHelped
Add knowledge augmentation during BIO pretrainingGPT2 BIO pretraining + QA fine-tuning · bioS, OOD QAaccuracy: 9.7% to 96.6%Helped
Add five biography entries per person without permutation (ablation)GPT2 BIO pretraining + QA fine-tuning · bioS, OOD QAaccuracy: 9.7% to 41%Helped
Permute the six sentences five times instead of once (ablation)GPT2 BIO pretraining + QA fine-tuning · bioS, OOD QAaccuracy: 4.4% to 70%Helped
Add one sentence permutation to single-entry biographies without multiplicity (ablation)GPT2 BIO pretraining + QA fine-tuning · bioS, OOD QAaccuracyHurt
Replace pronouns or partial names with the person's full name throughout biographies (ablation)GPT2 BIO pretraining + QA fine-tuning · bioS and bioR, OOD QAaccuracyHelped
Increase multiplicity or the number of permutations (ablation)GPT2 BIO pretraining + QA fine-tuning · bioS, OOD QAaccuracyHelped
Increase the QA-data ratio during mixed training (ablation)GPT2 mixed training · OOD QAaccuracyHelped
Use an encoder-only BERT-like model instead of an autoregressive decoderKnowledge extraction after pretraining and fine-tuning · BIO biography QAaccuracyHurt

Surprising findings

Limitations

Experimental setup

Datasets: bioS (synthetic biographies) bioR (LLaMA-generated biographies)

Benchmarks: bioS QA (out-of-distribution individuals) bioR QA (out-of-distribution individuals)

Metrics: exact-match QA accuracy first-token accuracy P-probing accuracy

Baselines: BERT GBERT

Builds on: LoRA GPT-2 Llama

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy