atlas

Research map / Large language models / Language, safety and interpretability

Detecting Pretraining Data from Large Language Models

ICLR 2024 · Large language models › Language, safety and interpretability · approach: Data and hallucination detection · 13 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.

Introduces the WikiMIA benchmark and Min-k% Prob, a reference-free membership inference method that averages the lowest-probability tokens to detect pretraining data in LLMs.

Problem

Detecting whether a given text was in the pretraining data of a black-box LLM, where the pretraining distribution is unavailable and reference models are impractical.

Approach

Score a text by the average log-probability of its k% lowest-probability tokens, based on the hypothesis that unseen text contains outlier tokens with low probability, while seen text does not; no reference model or extra training is needed.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Min-k% Prob instead of the strongest baselinepretraining-data detection · WikiMIA (average across original and paraphrase settings)AUC: 0.67 -> 0.72; 7.4% improvementHelped
Use Min-k% Prob instead of PPLLLaMA 7B contaminant detection · BoolQAUC: 0.89 -> 0.91Helped
Use Min-k% Prob instead of PPLLLaMA 7B contaminant detection · Commonsense QAAUC: 0.78 -> 0.80Helped
Use Min-k% Prob instead of PPLLLaMA 7B contaminant detection · IMDBAUC: 0.97 -> 0.98Helped
Use Min-k% Prob instead of PPLLLaMA 7B contaminant detection · Truthful QAAUC: 0.71 -> 0.74Helped
Raise learning rate from 1 × 10^-5 to 1 × 10^-4 (ablation)LLaMA 7B contaminant detection · BoolQ, Commonsense QA, IMDB, LSAT QA, and Truthful QAAUC: BoolQ: 0.64 -> 0.91; Commonsense QA: 0.59 -> 0.80; IMDB: 0.76 -> 0.98; LSAT QA: 0.72 -> 0.82; Truthful QA: 0.56 -> 0.74Helped
Increase the pretraining dataset size (ablation)Min-k% Prob on outlier downstream contaminants · Downstream dataset contaminationAUCHelped
Increase the pretraining dataset size (ablation)Min-k% Prob on in-distribution news contaminants · News August 2023AUCHurt
Increase contaminant occurrence frequency (ablation)Min-k% Prob · Downstream dataset contaminationAUCHelped
Increase target model size (ablation)reference-free detection methods · WikiMIA, 128-length textsAUCHelped
Increase text length (ablation)detection methods · WikiMIA originalAUCHelped
Compare Min-k% Prob scores between the original and unlearned models to select suspicious questionsLLaMA2-7B-WhoIsHarryPotter · Harry Potter question answeringROUGE-L recall: 0.10 -> 0.23Helped

Surprising findings

Limitations

Experimental setup

Datasets: WikiMIA Books3 (The Pile) RedPajama BoolQ IMDB TruthfulQA CommonsenseQA LSAT QA Real Time Data News August 2023 Harry Potter books

Benchmarks: WikiMIA Books3 copyrighted book detection downstream dataset contamination (BoolQ, IMDB, TruthfulQA, CommonsenseQA) Harry Potter unlearning audit

Metrics: AUC TPR@5%FPR contamination rate SimCSE similarity GPT-4 similarity score ROUGE-L recall

Baselines: Neighbor PPL (LOSS attack) Zlib Lowercase Smaller Ref

Builds on: LOSS attack neighborhood attack (DetectGPT) zlib membership inference

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