Generating Steganographic Text with LSTMs

Tina Fang, Martin Jaggi, Katerina J. Argyraki

Abstract Linguistic steganography hides secret information within natural language text to evade detection by surveillance systems. This paper introduces a generative method using Long Short-Term Memory (LSTM) networks to produce high-capacity stegotext. By employing a vocabulary binning technique, the system embeds secret bits directly into the word selection process. Experimental results on Twitter and Enron datasets demonstrate a capacity of up to 32 bits per tweet, a significant improvement over existing methods, while maintaining linguistic naturalness through a common-token strategy.

Introduction

In environments with pervasive digital monitoring, the use of encryption can itself be a signal of suspicious activity. Linguistic steganography addresses this by concealing the presence of a message within a "cover" text. Previous techniques often relied on synonym substitution, which frequently results in semantically inconsistent or "uncanny" text. This research shifts the paradigm toward generative steganography, leveraging the contextual awareness of LSTMs to synthesize natural-looking messages from scratch.

Methods

The core of the proposed system is a word-level LSTM trained on large corpora. The embedding process relies on a shared key between the sender and receiver to partition the model's vocabulary into $2^{|B|}$ disjoint bins, where $|B|$ represents the number of bits encoded per word.

The steganographic communication pipeline, showing the embedding of secret data into text and its subsequent decoding.

During generation, for every block of $|B|$ bits, the LSTM is restricted to choosing the most probable word from the corresponding bin. To enhance grammatical fluidity, the authors introduced a "Common-Token" variant, where high-frequency words are included in every bin. While these tokens carry no information, they serve as linguistic "glue" to prevent the model from entering low-probability states.

Results

The system was evaluated using the Enron Email dataset and a collection of 600,000 tweets. The primary metrics were bits per word (bpw) and perplexity (ppl), a measure of how well the model predicts the text.

Performance comparison across different bin sizes, illustrating the trade-off between information density (bpw) and text naturalness (ppl).

As shown in the results, increasing the number of bins significantly boosts capacity but also increases perplexity. However, the 4-bin model (2 bits per word) achieved a capacity of approximately 32 bits per tweet, dwarfing the 2.8 bits per tweet managed by previous state-of-the-art systems like CoverTweet. The use of common tokens effectively lowered perplexity, making the high-capacity text more natural.

Conclusion

This LSTM-based approach represents a major step forward in linguistic steganography, offering a massive increase in data capacity without a proportional loss in text quality. Future research will focus on using Generative Adversarial Networks (GANs) to further harden the system against automated steganalysis and personalizing the generation to mimic individual writing styles.

Summary updated

BibTeX
@inproceedings{fang2017generating,
  author = {Tina Fang and Martin Jaggi and Katerina J. Argyraki},
  title = {{Generating Steganographic Text with LSTMs}},
  booktitle = {Student Research Workshop @ ACL},
  year = {2017},
  doi = {10.18653/v1/p17-3017},
}
Figure