OD-Stega: LLM-Based Relatively Secure Steganography via Optimized Distributions
Yu-Shin Huang, Peter Just, Hanyun Yin, Krishna Narayanan, Ruihong Huang, Chao Tian
TL;DR
OD-Stega presents a principled framework for relatively secure, coverless steganography using LLMs by maximizing the entropy of the next-token distribution $H(Q^{i})$ under a divergence constraint $D(Q^{i} || P^{i}) \le \delta$, with closed-form solutions for $D_{KL}$ and $D_{TV}$ and a demonstrated equivalence between KL-based optimization and temperature scaling on logits. The method includes practical enhancements for tokenization mismatch, vocabulary truncation with additive KL properties, and compatibility with non-AC approaches like Discop, yielding flexible, high-capacity steganography while controlling detectability through a tunable budget $\delta$ and adaptive $\delta_i = C\,H(P^{i})$. Experimental results using LLAMA2-7B and GPT2-XL show meaningful embedding gains (e.g., ~20%–55% increases in bits embedded per 25 tokens) and provide a multi-faceted evaluation of imperceptibility via steganalysis and GPT-4 human-like judgments, with longer sequences generally more detectable. OD-Stega thus offers a scalable, tunable framework for relatively secure covert communication in natural language, adaptable to existing protocols (e.g., OD-Discop) and practical deployment constraints.
Abstract
We consider coverless steganography where a Large Language Model (LLM) is used to generate stego-texts in combination with arithmetic coding. An efficient method should embed secret bits in as few language tokens as possible while keeping the stego-text as natural as possible. We show that this problem is equivalent to maximizing the entropy of a replacement probability distribution of the next token generation, subject to a constraint on the divergence between the new distribution and the original one produced by the LLM. A closed-form solution is provided under either the KL divergence or the total variation constraint. Several important practical issues are also tackled: 1) An often-overlooked tokenization mismatch issue is resolved with a simple prompt selection approach, 2) The combination of the optimized distribution and the vocabulary truncation technique is considered, and 3) The incorporation of the proposed approach with existing (potentially non arithmetic coding based) techniques, e.g., the Discop technique.
