atlas

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

Language Models May Verbatim Complete Text They Were Not Explicitly Trained On

ICML 2025 · Large language models › Language, safety and interpretability · approach: Multilingual LLM data and culture

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.

Shows that LLMs can verbatim complete sequences that are n-gram non-members of their training data, both naturally (retraining without n-gram-overlapping sequences) and via adversarially constructed fine-tuning sets (chunking, token dropouts, case flips).

Problem

Completion tests are often used to judge training data membership, but membership is commonly defined by n-gram overlap; the paper asks whether this definition can be gamed, so that a sequence is completed verbatim without being an n-gram member of the training data.

Approach

Retrain GPT-2-style models from scratch after removing n-gram-matching extracted sequences to find "lingering" completions, then construct fine-tuning datasets (stitched chunks, token dropouts, casing flips) that share no n-grams with a target text yet let the model verbatim complete it after few gradient steps.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Remove exact sequence matches with an n=50 filter, then retrain from scratchGPT-2 trained on FineWeb-Edu · FineWeb-Edu, k=50lingering sequence fraction: 40%Mixed
Strengthen filtering from exact matches to n=5 matches, then retrain from scratchGPT-2 trained on FineWeb-Edu · FineWeb-Edu, k=50lingering sequence fraction: 40% to ≈ 1%Hurt
Fine-tune on token-dropped versions of the target with drop interval 2Qwen-2.5 0.5B · Unseen target textverbatim completion successHelped
Fine-tune on chunked, randomly padded versions of the target with small chunk size c=25Gemma-2 and Qwen-2.5 models · Unseen target textcompletion successHurt
Increase chunk size to c=100Gemma-2 and Qwen-2.5 models · Unseen target textcompletion successMixed
Vary the chunk overlapStitching chunks · Unseen target textcompletion successNo clear effect
Fine-tune on casing-flipped versions of the targetGemma-2 and Qwen-2.5 models · Unseen target textcompletion successHelped
Combine token dropouts with casing flipsGemma-2 and Qwen-2.5 models · Unseen target textcompletion successMixed
Increase model size under the same fine-tuning configurationGemma-2 and Qwen-2.5 · Unseen target textscompletion successHelped

Surprising findings

Limitations

Experimental setup

Datasets: FineWeb-Edu

Metrics: exact completion rate edit similarity lingering sequence fraction

Baselines: GPT-2-XL

Builds on: GPT-2 goldfish loss LLM.c

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