STEALTH: Steganographic Text Encoding Agnostic to Low-Level Tensor Hardware
Organizations: Army Cyber Institute United States Military Academy West Point, New York 10996
Abstract
Provably secure linguistic steganography hides a message inside text sampled from a language model, so that without the key, a stegotext is computationally indistinguishable from an honest model sample. Nearly every such scheme assumes the receiver can recompute the sender's token probabilities exactly bit for bit. We show this assumption is fragile: across three model families, bit-exact schemes decode almost none of our messages once the receiver's floating-point precision, quantization, or GPU architecture differs from the sender's, or even when the receiver merely scores a text in parallel versus one token at a time, with the same model, precision, and hardware held fixed. We present STEALTH, a scheme built for exactly this setting. The sender draws each token with an exponential race driven by keyed pseudorandom noise, so a receiver's probability mismatch flips a token only when the race is close; a rateless spinal code, decoded by beam search, absorbs the resulting flips without the sender and receiver ever agreeing on a single distribution. We prove stegotexts remain indistinguishable from honest samples under this construction. Empirically, STEALTH decodes every message we sent for every receiver in the sender's model family, at every precision and quantization level, on smaller models, and on a different GPU architecture. STEALTH is even robust across different model families with separate vocabularies and tokenizers, decoding every message we tested. Our approach carries far more payload per token than prior robust schemes, and trained steganalyzers and a targeted statistical test both fail to distinguish its stegotexts from honest model output.
Figures & tables
| Receiver | Gemma | Llama | Qwen |
|---|---|---|---|
| Arithmetic coding, 7–9B models | |||
| Same model, replay | 100 | 100 | 100 |
| Different GPU, replay | 0 | 0 | 0 |
| Same model, teacher forced ∗ | 0 | 0 | 0 |
| int8, NF4, smaller model | 0 | 0 | 0 |
| Discop, 7–9B models | |||
| Receiver | Same GPU (replay vs. TF) | Diff GPU (replay) |
|---|---|---|
| Gemma 9B | 0.86% | 0.84% |
| Gemma 2B | 1.11% | 1.11% |
| Llama 8B | 0.95% | 0.94% |
| Llama 3B | 0.94% | 0.91% |
| Qwen 7B | 1.24% | 1.23% |
| Qwen 1.5B | 1.42% | 1.38% |
| Receiver | 90% | 99% | 100% |
|---|---|---|---|
| Gemma 9B bf16 | 96 | 132 | 132 |
| Gemma 9B int8 | 108 | 132 | 144 |
| Gemma 9B NF4 | 120 | 156 | 192 |
| Gemma 2B | 228 | 372 | 384 |
| Llama 8B bf16 | 84 | 108 | 132 |
| Llama 8B int8 | 84 | 120 | 132 |
| Family | Receiver | Flips (%) | Cascade | ||
|---|---|---|---|---|---|
| Gemma | 9B bf16 | 0.9 | 100 | 97.5 | 100 |
| 9B int8 | 3.8 | 98 | 96 | 98 | |
| 9B NF4 | 8.4 | 87.5 | 91 | 93.5 | |
| 2B bf16 | 31.5 | 8.5 | 42 | 42 | |
| Llama | 8B bf16 | 1.0 | 100 | 99.5 | 100 |
| 8B int8 | 4.9 | 100 | 99.5 | 100 |
| Receiver | 90% | 99% | 100% |
|---|---|---|---|
| Gemma 9B bf16 | 96 | 120 | 180 |
| Gemma 9B int8 | 96 | 144 | 180 |
| Gemma 9B NF4 | 120 | 156 | 180 |
| Gemma 2B | 228 | 300 | 324 |
| Llama 8B bf16 | 84 | 96 | 132 |
| Llama 8B int8 | 84 | 108 | 132 |
| At stopping point | Whole stream, | ||||
|---|---|---|---|---|---|
| Sender | Receiver | Aligned (%) | Flips (%) | / / cascade (%) | Tokens to 90% / 99% / 100% |
| Gemma 9B | Gemma 9B bf16 | 99.9 | 1.0 | 99.5 / 95.5 / 100 | 108 / 156 / 204 |
| Gemma 9B NF4 | 99.9 | 8.4 | 88.5 / 91.5 / 94 | 120 / 168 / 240 | |
| Llama 8B bf16 | 88.2 | 35.5 | 1 / 19 / 19 | 336 / 528 / 636 | |
| Llama 8B NF4 | 88.2 | 36.7 | 0.5 / 15.5 / 15.5 | 348 / 516 / 648 | |
| Qwen 7B bf16 | 88.5 | 37.4 | 0 / 14 / 14 | 396 / 612 / 756 |
| Method | Robust | Exact | 32 bits | 256 bits |
|---|---|---|---|---|
| Arithmetic coding [ 44 ] | No | Yes | 0.19–0.28 | 0.95–0.99 |
| Discop [ 14 ] | No | Yes | 0.19–0.29 | 0.81–0.92 |
| Zamir [ 43 ] | Yes | Yes | 0.002–0.024 | – |
| Bai et al. [ 3 ] † | Yes | Yes | 0.002–0.044 | – |
| Stealth (ours) | Yes | Yes | 0.19–0.26 | 0.37–0.43 |
| Pair | Gemma | Llama | Qwen |
|---|---|---|---|
| stego vs. mult | 0.503 | 0.498 | 0.507 |
| stego vs. race | 0.501 | 0.500 | 0.499 |
| race vs. mult (control) | 0.499 | 0.500 | 0.496 |
| ac12 vs. mult (positive control) | 0.515 | 0.585 ∗ | 0.570 ∗ |
| Kind | |||
|---|---|---|---|
| stego | 0.3 | 1.6 | -0.2 |
| race (control) | -1.1 | 1.1 | -1.6 |
| mult (control) | 3.7 | 6.4 | 1.3 |
| ac, 32-bit | -1.9 | -2.1 | 0.4 |
| ac, 16-bit | -1.0 | -1.7 | -18.5 |
| ac, 12-bit | -8.3 | -56.4 | -385.2 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| H100 | A6000 | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Plain | Spec. | Plain | Spec. | ||||||
| Family | Receiver | Flips | Dec. | Flips | Dec. | Flips | Dec. | Flips | Dec. |
| Gemma | 9B bf16 | 0.9 | 200 | 1.0 | 199 | 0.9 | 200 | 0.9 | 199 |
| 9B fp16 | 1.3 | 199 | 1.4 | 200 | 1.3 | 200 | 1.3 | 199 | |
| 9B fp32 | 1.3 | 199 | 1.4 | 200 | 1.3 | 200 | 1.3 | 199 | |
| 9B int8 | 3.8 | 196 | 4.0 | 199 | 4.2 | 199 | 3.9 | 198 | |