Papers

研究揭示 LLM 上下文中的机密可通过无关输出泄露

LLMs Leak Secrets Through Unrelated Outputs

Why we picked it

做隐私防御或部署 LLM 处理敏感上下文的团队都该看看这篇。它证明了保密指令和输出过滤不够用,连随机数字生成这种无关任务都能把系统提示里的 PIN 泄出去,检测准确率远超随机基线。

arXiv 论文提出"subliminal leakage"攻击:LLM 上下文中的机密即使不被复述,也会改变模型在无关任务上的 token 概率分布,形成推理时的统计侧信道。实验将四位 PIN 放入 Qwen3-8B 的系统提示并要求保密,仅请求生成随机整数列表,单条输出即可在 4 个 PIN 加 1 个无密码对照组之间识别激活状态,准确率 77.2%(随机水平 20.0%),剔除精确匹配、数字排列和汉明距离 1 的邻居后仍高于 73%。

Body

聚合约 20 条严格过滤的输出后,攻击者在全部 10,000 个候选中精确恢复 24/50(48%)的保留 PIN(随机概率 0.01%),并将 36/50(72%)排进前五。同模型检测在 Qwen3-8B、Phi-3.5-Mini 和 OLMo-2-7B 上分别达到 68.6%、59.1% 和 44.3%,基线 14.3%;即便提示中明确警告有泄露审计,准确率仍保持 44.0%。隐藏态探针证实 PIN 数字在生成过程中保持线性可解码,说明词面过滤和保密指令无法封住这条统计通道。

Original · arXiv cs.AI

LLMs Leak Secrets Through Unrelated Outputs

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 leakage. 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 model. 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 neighbors. Aggregating roughly 20 strictly filtered outputs recovers 24 of 50 held-out PINs (48%) exactly across all 10,000 candidates (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%) 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 outputs.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk, focusing on China's AI industry and domestic foundation model ecosystem. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Qwen3-8B, AI safety, side-channel attacks, Phi-3.5-Mini.

Source attribution: curated from arXiv cs.AI (@Kayshav Bhardwaj, Yigitcan Kaya, Christopher Kruegel, Giovanni Vigna).