LLMs leak secrets through unrelated outputsLLMs Leak Secrets Through Unrelated Outputs
Translation in progress — untranslated text is omitted.
Researchers propose an inference-time statistical leakage attack called subliminal leakage: a secret in the LLM context changes its token probability distribution when answering unrelated tasks, and an open-weight attacker can rank candidate secrets using teacher-forced likelihood scoring. When a four-digit PIN was placed in the Qwen3-8B system prompt with an instruction to keep it secret and a list of random even numbers was requested, a single output reached 77.2% in a five-way detection of the four PINs plus a no-password control (random 20.0%), and remained above 73% after excluding exact matches, digit permutations, and near-copies at Hamming distance 1; aggregating about 20 strictly filtered outputs exactly recovered 24 of 50 held-out PINs from 10,000 candidates (48%). Detection on the same model exceeded the 14.3% baseline on Qwen3-8B (68.6%), Phi-3.5-Mini (59.1%), and OLMo-2-7B (44.3%), and still reached 44.0% when the prompt warned of leakage auditing.
- Existing secrecy prompts and lexical and semantic filtering mainly prevent outputs from restating or hinting at the secret. The authors study whether a secret in context still perturbs the token probabilities of unrelated random outputs, allowing an observer to recover the secret in an open-weight deployment.
- The attacker substitutes candidate PINs into the system prompt, scores the observed outputs by teacher-forced mean log-likelihood, and sums across outputs; full-space recovery uses candidate-pool search to reduce forward computation, then isolates statistical leakage with strict approximate-copy filtering.
- Qwen3-8B single-output five-way detection is 77.2%; about 20 strictly filtered outputs exactly recover 48.0% of 50 held-out PINs, with Top-5 at 72.0%. Under an audit warning, detection remains 44.0%, above the 20.0% random baseline.
- The authors list black-box approximations, alphanumeric credentials and free-text tasks, and comparisons with active prompt-extraction attacks as future directions. The recovery comparison for the noise defense uses different weight precisions, and the authors state that mitigation efficacy cannot be established on that basis.
The paper shows that neither strict filtering nor confidentiality instructions can prevent context secrets from leaking through unrelated outputs; teams deploying open-weight models can use this to assess whether output-layer guardrails are sufficient.
Related events and news
1 events · 0 news mentions
- This event's paper
研究称LLM无关输出可泄露上下文秘密
Research lineage
2 foundations · 0 follow-ups in libraryNo later in-library follow-ups recorded yet.
Hover or focus a connected paper to inspect the citation context.