Skip to main content
QUICK REVIEW

[论文解读] Hide and Seek in Embedding Space: Geometry-based Steganography and Detection in Large Language Models

Charles Westphal, Keivan Navaie|arXiv (Cornell University)|Jan 30, 2026
Adversarial Robustness in Machine LearningComputer Science被引用 0
一句话总结

本文介绍使用嵌入空间几何的低可恢复隐写术,在大语言模型输出中隐蔽编码秘密,并提出通过线性探针进行机械性检测以发现此类隐蔽通道的内部签名。与基线相比,展示了更高的秘密可恢复性,并在输出层可恢复性下降时,仍在后层激活中发现检测信号。

ABSTRACT

Fine-tuned LLMs can covertly encode prompt secrets into outputs via steganographic channels. Prior work demonstrated this threat but relied on trivially recoverable encodings. We formalize payload recoverability via classifier accuracy and show previous schemes achieve 100\% recoverability. In response, we introduce low-recoverability steganography, replacing arbitrary mappings with embedding-space-derived ones. For Llama-8B (LoRA) and Ministral-8B (LoRA) trained on TrojanStego prompts, exact secret recovery rises from 17$ ightarrow$30\% (+78\%) and 24$ ightarrow$43\% (+80\%) respectively, while on Llama-70B (LoRA) trained on Wiki prompts, it climbs from 9$ ightarrow$19\% (+123\%), all while reducing payload recoverability. We then discuss detection. We argue that detecting fine-tuning-based steganographic attacks requires approaches beyond traditional steganalysis. Standard approaches measure distributional shift, which is an expected side-effect of fine-tuning. Instead, we propose a mechanistic interpretability approach: linear probes trained on later-layer activations detect the secret with up to 33\% higher accuracy in fine-tuned models compared to base models, even for low-recoverability schemes. This suggests that malicious fine-tuning leaves actionable internal signatures amenable to interpretability-based defenses.

研究动机与目标

  • Formalize payload recoverability for steganographic channels in fine-tuned LLMs.
  • Develop low-recoverability, geometry-based encoding and bucketing schemes in embedding space.
  • Evaluate recoverability and detection across multiple models and datasets.
  • Propose mechanistic interpretability methods to detect steganography beyond output-level analysis.

提出的方法

  • Define payload recoverability along two axes: bucket inference from tokens and secret recovery from buckets.
  • Introduce hyperplane-projection encoding and seed-dependent bucketing in embedding space to create multiple-bit codes per token.
  • Encode secrets by projecting letter embeddings onto multiple hyperplanes and thresholding to obtain bit patterns.
  • Partition the vocabulary into buckets using embedding-space hyperplanes to constrain generation to match target bits.
  • Evaluate exact-match recoverability on 8B and 70B models with various encodings (E+E, A+E, E+P, A+P) across Wiki and TrojanStego prompts.
  • Analyze detection via mechanistic interpretability using linear probes on later-layer activations to predict encoded bits or recover embedded secrets.
Figure 1 : Overview of the steganographic attack. Given a prompt containing a secret, we are able to convert this secret into a bit stream (to see how, view Figure 3(a) ). The fine-tuned model, unlike a standard model, then generates fluent text where each token’s bucket assignment matches the targe
Figure 1 : Overview of the steganographic attack. Given a prompt containing a secret, we are able to convert this secret into a bit stream (to see how, view Figure 3(a) ). The fine-tuned model, unlike a standard model, then generates fluent text where each token’s bucket assignment matches the targe

实验结果

研究问题

  • RQ1How recoverable is payload information when steganography leverages embedding-space geometry instead of arbitrary bucketing?
  • RQ2Can seed-dependent hyperplane bucketing reduce output-level recoverability while maintaining fluent generation?
  • RQ3Do mechanistic signatures in later layers reveal steganographic encoding even when output-level decoding is hard or impossible?
  • RQ4What bounds exist on distributional measures (KL, perplexity) for large payloads embedded via fine-tuning?
  • RQ5Do linear probes detect secrets in fine-tuned models more accurately than in base models, indicating internal traces of steganography?

主要发现

  • Embedding-space bucketing reduces both bucket recoverability and secret recoverability relative to ASCII+Parity baselines. In 8B models, Embedding+Embedding improves exact match by up to 58% relative on some setups; Embedding+Parity and ASCII+Embedding show substantial gains as well.
  • On Llama-8B (LoRA), Ministral-8B (LoRA), and Llama-70B (LoRA), secret recovery improves from 17% to 30%, 24% to 43%, and 9% to 19% respectively under the proposed schemes.
  • KL divergence and perplexity bounds show large payloads can be hidden within normal fine-tuning ranges, indicating standard output-based steganalysis may miss such attacks.
  • Mechanistic detection using linear probes trained on later-layer activations yields up to 33% higher detection accuracy for steganographic models compared to base models, even for unrecoverable or non-decodable setups.
  • Secret-conditioned XOR masking demonstrates that even when output-side decoding is prevented, internal signatures detectable by probes persist, supporting mechanistic defenses.
Figure 2 : Payload recoverability of steganographic schemes. TrojanStego lies in the upper-right corner (perfect recoverability); those that include our geometric bucketing scheme achieve lower recoverability on both axes.
Figure 2 : Payload recoverability of steganographic schemes. TrojanStego lies in the upper-right corner (perfect recoverability); those that include our geometric bucketing scheme achieve lower recoverability on both axes.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。