[Paper Review] Hide and Seek in Embedding Space: Geometry-based Steganography and Detection in Large Language Models
The paper introduces low-recoverability steganography using embedding-space geometry to covertly encode secrets in LLM outputs and proposes mechanistic detection with linear probes that detect internal signatures of such covert channels. It shows improved secret recoverability rates over baselines and demonstrates detection signals in later-layer activations even when output-level recoverability is reduced.
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.
Motivation & Objective
- 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.
Proposed method
- 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.

Experimental results
Research questions
- 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?
Key findings
- 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.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.