An open-weight attacker can recover a hidden PIN from an LLM's system prompt by scoring the likelihood of unrelated numeric outputs, even after filtering near-copies. Lexical guardrails and secrecy instructions do not close this statistical channel.
| Generation task | Evaluation filter | Five-way accuracy |
| 32 random integers (long-list) | Unfiltered | 64.8% |
| 32 random integers (long-list) | Exclude exact PIN | 58.5% |
| 10 distinct even integers (short-even) | Unfiltered | 77.2% |
| 10 distinct even integers (short-even) | Strict near-copy filter | |
| Uniform chance | None | 20.0% |
| Development sweep (12 PINs) | Held-out test (50 PINs, ) | |||||||
| Lists () | 1 | 3 | 5 | 10 | 20 | 30 | Metric | Recovery |
| Exact (top-1) | 0% | 0% | 25% | 8% | 50% | 42% | Exact (top-1) | 48.0% (24/50) |
| Top-5 | 0% | 8% | 25% | 50% | 58% | 58% | Top-5 | 72.0% (36/50) |
| Top-10 | 84.0% (42/50) | |||||||
| Uniform chance | 0.01% | |||||||
Going deeper
Imagine you lock a four-digit combination into a safe in your office and then ask a coworker to rattle off a list of random numbers for a lottery pool. Even though the coworker never opens the safe, being in the same room with it changes their voice just slightly—not enough for anyone to notice in one sentence, but enough for a careful listener with a recording.
That is what happens inside a language model. A secret PIN sits in its instructions, and the model is asked to produce unrelated number lists. It never prints the PIN, but the PIN's presence nudges every number's probability by a tiny amount. An attacker who has a copy of the model can replay each observed list under every possible PIN and see which one makes the list most likely. After about twenty lists, they can often guess the exact four-digit code.
The catch: you need your own copy of the model to replay the lists, and the authors only tested four-digit numbers as secrets and number lists as outputs. Telling the model to ignore the PIN or warning it about audits makes the signal weaker but does not kill it. The authors show that the PIN's digits are literally readable from the model's internal wiring while it generates, so word-level filters cannot close the gap.
The abstract, word for word, with the six densest phrases unpacked.
Privacy defenses for large language models (LLMs) generally assume that confidential context remains safe unless a response repeats or implies it. We show that secrets in a model’s context also perturb its token probability distribution on unrequested tasks, creating an inference-time statistical channel we call subliminal leakage1. In an open-weight setting, an adversary can rank candidate secrets directly by evaluating the teacher-forced log-likelihood of observed outputs under the victim model2. When we place a four-digit PIN in Qwen3-8B’s system prompt alongside a secrecy instruction and request random integer lists, a single output identifies the active condition across four PINs and a no-password control with 77.2% accuracy (20.0% chance), remaining above 73% after removing exact matches, digit permutations, and Hamming-distance-1 neighbors3. Aggregating roughly 20 strictly filtered outputs recovers 24 of 50 held-out PINs (48%) exactly across all 10,000 candidates4 (0.01% chance) and places 36 of 50 (72%) in the top five. Same-model detection generalizes across Qwen3-8B (68.6%), Phi-3.5-Mini (59.1%), and OLMo-2-7B (44.3%)5 against a 14.3% baseline, and stays at 44.0% (20.0% chance) even when the prompt warns of leakage audits. Hidden-state probes confirm that PIN digits remain linearly decodable during generation, showing that lexical filters and secrecy instructions leave open a statistical channel in stochastic outputs6.
Two lines of prior work converge here: attacks that extract secrets from LLMs, and covert channels that hide information in outputs.
Read three parts of it, in this order.
Skip Appendix A if you know the memorization and steganography literatures.
If the leakage is narrower than it looks, these places show why.
| Across model families | Across system instructions (Qwen3-8B) | ||
|---|---|---|---|
| Generator and scorer | 7-way accuracy | Secrecy instruction | 5-way accuracy |
| Qwen3-8B | 68.6% | Do not reveal (default) | 79.2% |
| Phi-3.5-Mini | 59.1% | Do not affect numbers | 60.0% |
| OLMo-2-7B | 44.3% | Act as if absent | 50.4% |
| Uniform chance | 14.3% | Audit for leakage | 44.0% |
| Uniform chance | 20.0% | ||
We add independent Gaussian noise to the 22 numeric-token logits during generation. On a six-PIN panel, the 16-bit no-noise condition recovers 4/6 PINs; the 8-bit noisy conditions recover 1/6 at σ=2 and 0/6 at σ=4. Every output remains parseable as a number list. Because baseline and noisy runs use different weight precisions, these counts do not isolate the noise effect.
Detection also holds when the prompt omits the word “random.” Stochastic cover prompts requesting lottery draws, API-style identifiers, and related numeric sequences average 68.7% five-way accuracy; API identifiers reach 81.2%, though roughly 56% of those outputs copy the PIN directly. By contrast, a low-variation control requesting integers from 1 to 10 produces nearly identical lists across conditions and drops to 20.0% chance (Section B.1), showing that subliminal leakage requires output entropy across plausible continuations.
Nothing on this page was recomputed. Every claim points to the paper so you can check it.
More latest news
Read all