Abstract
We propose a novel framework for steganographic text generation that hides binary messages within semantically coherent natural language using latent-space conditioning of large language models (LLMs). Secret messages are first encoded into continuous vectors via a learned binary-to-latent mapping, which is used to guide text generation through prefix tuning. Unlike prior token-level or syntactic steganography, our method avoids explicit word manipulation and instead operates entirely within the latent semantic space, enabling more fluent and less detectable outputs. On the receiver side, the latent representation is recovered from the generated text and decoded back into the original message. As a key theoretical contribution, we provide a robustness guarantee: if the recovered latent vector lies within a bounded distance of the original, exact message reconstruction is ensured, with the bound determined by the decoder’s Lipschitz continuity and the minimum logit margin. This formal result offers a principled view of the reliability–capacity trade-off in latent steganographic systems. Empirical evaluation on both synthetic data and real-world domains such as Amazon reviews shows that our method achieves high message recovery accuracy (above 91%), strong text fluency and competitive capacity up to 6 bits per sentence element while maintaining resilience against neural steganalysis. These findings demonstrate that latent conditioned generation offers a secure and practical pathway for embedding information in modern LLMs.
Introduction
Traditional text steganography—the practice of concealing information within digital text—has historically relied on surface-level manipulations. Early methods frequently employed synonym substitution or syntactic variations to encode binary data. However, these techniques often introduce "statistical artifacts"—subtle linguistic patterns or unnatural phrasing that modern neural steganalysis tools can readily identify.
To address these vulnerabilities, we propose a shift from token-level manipulation to semantic-level encoding. By embedding information within the underlying conceptual structure of generated language, we aim to produce steganographic text that is indistinguishable from standard AI-generated or human-written content.
Methodology
Our framework operates within the latent semantic space of a Large Language Model (LLM), specifically utilizing GPT-Neo-125M. The process is divided into three main stages: encoding, generation, and decoding.
- Encoding: A secret binary message $m \in \{0, 1\}^k$ is mapped to a continuous latent vector $z_m$ using a learned neural network encoder.
- Generation via Prefix Tuning: Rather than explicitly selecting tokens, the latent vector $z_m$ serves as a "soft prompt" through prefix tuning. This conditions the LLM to generate a semantically coherent sentence $S$ that naturally embodies the hidden vector.
- Decoding: The receiver extracts key semantic features from the generated text using Natural Language Processing (NLP) techniques such as Named Entity Recognition (NER) and Semantic Role Labeling. These features are used to reconstruct a conceptual path $p'$, which is then mapped back to the latent space and decoded into the recovered message $\hat{m}$.
A significant theoretical contribution of this work is a robustness guarantee based on Lipschitz continuity. We prove that exact message reconstruction is guaranteed provided the recovered latent vector remains within a specific distance of the original, a bound defined by the decoder's properties and the logit margin.
Experimental Evaluation
The model was evaluated on two distinct datasets: a Synthetic Dataset of 50,000 message-text pairs used to establish performance baselines, and a collection of Amazon Reviews used to assess the system's performance in a constrained, practical domain.
Key Results
Our method demonstrates significant improvements over traditional baselines such as Fixed Vocabulary Mapping (FVM) and Markov Chain Generators (MCG):
- Recovery Accuracy: The system achieved a message recovery accuracy of 91.2% on synthetic data and 89.5% on Amazon reviews.
- Information Capacity: The framework reached a bit rate of 3.4 to 3.9 bits per token, nearly doubling the capacity of the FVM baseline (~1.8 - 2.0 bits per token).
- Text Fluency: The generated text exhibited superior quality, with a Perplexity score of 17.3, significantly lower (better) than the 35.8 to 48.9 range observed in baseline methods.
Discussion and Conclusion
The shift from token-level to semantic-level steganography allows for more fluid and secure communication. By controlling the "concept" rather than individual words, the system achieves higher reliability and capacity while minimizing detectable artifacts. Furthermore, because the method relies on semantic output rather than internal model logits during decoding, it is more robust in "black-box" scenarios where the receiver may have limited access to the original model's state.
Future work will focus on expanding this approach to open-domain steganography, scaling to larger LLMs, and exploring adversarial training to further enhance security against evolving steganalysis techniques.
Summary updated