atlas

Research map / Large language models / Instruction and fine-tuning

Fine-tuning can Help Detect Pretraining Data from Large Language Models

ICLR 2025 · Large language models › Instruction and fine-tuning · approach: Fine-tuning generalization and delta compression · 0 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.

Proposes Fine-tuned Score Deviation (FSD), which fine-tunes an LLM on a few unseen same-domain non-member texts and uses the drop in existing membership scores (Perplexity, Min-k%, Zlib, Lowercase) as a pretraining-data detector.

Problem

Detecting whether a text was in an LLM's pretraining data is hard because likelihood-based scoring functions overlap heavily between members and non-members, giving suboptimal AUC and TPR@5%FPR.

Approach

Fine-tune the target LLM with LoRA on a few post-release (unseen) same-domain non-member texts; non-member scores drop much more than member scores, so the difference between pre-fine-tuning and post-fine-tuning scores (FSD) enlarges the member/non-member gap. Works as a wrapper around existing scoring functions.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply FSD to likelihood-based scoring functionsLLaMA-7B detection methods · WikiMIAAUC: 0.64 -> 0.92Helped
Apply FSD to scoring functionsLLaMA-7B detection methods · ArXivTectionAUC: 0.68 -> 0.92Helped
Use FSD for Zlib book detectionLLaMA-7B · BookMIAaccuracy: 57.4 -> 98.6Helped
Use non-members rather than members for fine-tuning (ablation)FSD with LLaMA-7B · WikiMIAAUC: 0.78 -> 0.92Helped
Fine-tune on a mixed member and non-member dataset instead of non-members (ablation)FSD with LLaMA-7B and Perplexity · WikiMIAAUC: 0.92 -> 0.68Hurt
Use AdaLoRA instead of LoRA for fine-tuning (ablation)FSD with LLaMA-7B and Perplexity · WikiMIAAUC: 0.92 -> 0.82Hurt
Use IA3 instead of LoRA for fine-tuning (ablation)FSD with LLaMA-7B and Perplexity · WikiMIAAUC: 0.92 -> 0.91No clear effect
Fine-tune using non-members from an unrelated domain (ablation)FSD with LLaMA-7B and Perplexity · ArXivTectionAUC: 0.68 -> 0.52Hurt
Fine-tune using non-members from a mix of domains (ablation)FSD with LLaMA-7B and Perplexity · ArXivTectionAUC: 0.68 -> 0.93Helped
Apply FSD after removing timestamps (ablation)LLaMA-7B Perplexity detection · WikiMIA DeletionAUC: 0.62 -> 0.76Helped
Apply FSD after replacing timestamp years with 2023 (ablation)LLaMA-7B Perplexity detection · WikiMIA ReplacementAUC: 0.54 -> 0.71Helped
Use FSD with 100 non-member fine-tuning examples (ablation)Perplexity-based detection · WikiMIAAUC: 0.63 -> 0.91Helped

Surprising findings

Limitations

Experimental setup

Datasets: WikiMIA ArXivTection BookMIA BookTection Pile

Benchmarks: WikiMIA ArXivTection BookMIA BookTection Pile

Metrics: AUC TPR@5%FPR accuracy

Baselines: Perplexity Zlib Lowercase Min-k%

Builds on: Min-k% LoRA Perplexity-based membership inference Zlib ratio Lowercase ratio

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