NEURON VISION← All reviews

About this review

Prompting with just the chat-template prefix makes open-weight models replay post-training data. Matching by meaning shows the leak is at least ten times larger than string matching suggests.

Source: arXiv 2510.18554

Transcript

Welcome. Today we review a paper on extracting alignment data from open models. Open-weight models can be coaxed into replaying their own post-training data. And when you match by meaning instead of by text, the leak turns out to be at least ten times bigger than string matching suggested.

First, the key. A base model never saw chat tokens. An aligned model was trained with a chat template. So you prompt it with just the template prefix, the user token, and nothing else. Out come training-like samples, from supervised fine-tuning or reinforcement learning data. Chat template tokens appear only in post-training, so they are the model's tell.

Now the pipeline, with two sides and one shared embedding space. On the attacker side, you collect thousands of samples from the chat template prefix. On the victim side, you embed the whole true alignment dataset and store it in a vector database. Then you find nearest neighbours by dot product. That gives a semantic match, even with names or numbers swapped. The paper uses Gemini embedding.

Why does meaning matter? Old metrics miss paraphrased leaks. Take a word problem about a girl named Emily who was fifty four inches tall, and a copy with a new name. String matching gives a low score, and a false sense of safety. Semantic matching sees the same step-by-step structure and catches it. The valuable part of the data is its pattern. The paper says string matching undercounts by at least an order of magnitude.

Here is the surprise. Reinforcement learning leaks too. With supervised fine-tuning, memorising is natural, since it maximises likelihood. With R L using P P O, memorising is not an obvious fit. Still, R L training prompts come back, along with correct reasoning traces. Their log-likelihood rises sharply versus the base model. This suggests R L burns in the very prompts it trained on.

Full circle. The attacker takes the extracted dataset, which is large and synthetic, and fine-tunes a new base model on it. The result recovers meaningful performance. This is the ultimate proof that the extract is a useful copy, not just a statistical echo of the original data.

Why does it matter? First, competitive value: reasoning templates and safety formats are costly to build. Second, the attack is cheap, since only the chat template prefix is needed to start. Third, the defence is open. The paper frames this as a new class of leakage to study. The reviewer calls it sharp, novel, and slightly terrifying.

To wrap up, three steps. Prompt with the template prefix. Match by finding nearest neighbours by meaning. Reuse by training a copy on the leak. The takeaway: a model released with open weights can reveal the semantic content of its alignment data, and a meaning-based metric shows how much more leaks than text matching reports.

Related reviews

Security · Privacy · Open weights

All reviews

Paper review · arXiv 2510.18554

Extracting alignment data from open models

Open-weight models can be coaxed into replaying their own post-training data. Matching by meaning instead of by text shows the leak is at least ten times bigger than string matching suggested.

AttackerVictim datasetMatch by meaningImpact
01 · The key

A prefix that unlocks the alignment mode

Base modelnever saw chat tokensAligned modeltrained with chat templatePrompt with just the prefix<|user|> and nothing elseOut come training-like samplesSFT or RL dataChat template tokens appear only in post-training: they are the model’s “tell”.
02 · The pipeline

Two sides, one embedding space

Attacker sidethousands of samples from the chat-template prefixVictim sideembed the whole true alignment dataset, store in a vector databaseNearest neighbourdot product of embeddingsSemantic matcheven with names or numbers swapped

The embedding model in the paper is gemini-embedding-001.

03 · Why meaning matters

Old metrics miss paraphrased leaks

String matching“Emily was 54 inches tall” vs a copy with a new name: low score, false safetySemantic matchingsame step-by-step word problem structure: caughtThe valuable part of SFT data is its pattern, not its literal text.
Previous string-matching methods undercount this kind of leakage by at least an order of magnitude, according to the paper.
04 · The surprise

Reinforcement learning leaks too

SFTmaximise likelihood: memorisation is naturalRL (PPO)not an obvious fit for memorisingStill leaksRL training prompts come back, plus correct reasoning tracesThe log-likelihood of RL training prompts rises sharply versus the base model.

Suggests RL “burns in” the very prompts it was trained on while optimising reward.

05 · Full circle

Distil the leak into a new model

Target modelExtracted datasetlarge and syntheticFine-tunea new base modelRecoversmeaningful performanceThe ultimate proof: the extract is a useful copy, not a statistical echo.
06 · Why it matters

Secret sauce can leak from open weights

Competitive value

Reasoning templates and safety formats are costly to build.

Cheap attack

Only the chat-template prefix is needed to start.

Defence is open

The paper frames it as a new class of leakage to study.

The reviewer calls it sharp, novel and slightly terrifying.