STEALTH: steganographic text encoding independent of the underlying tensor hardwareSTEALTH: Steganographic Text Encoding Agnostic to Low-Level Tensor Hardware
The authors propose a language model steganography scheme, STEALTH, claiming it can still decode when precision, quantization, GPU, and even model family are mismatched, and that the ciphertext is indistinguishable from normal sampling.
- Provably secure linguistic steganography requires the receiver to recompute the sender's token probabilities bit by bit, but differences in precision, quantization, GPU architecture, and even teacher forcing versus token-by-token generation all break this, and a survey lists it as an open challenge.
- STEALTH samples each token with a keyed exponential race, so a mismatch flips only a single token without cascading; it then uses a rateless spinal code to spread the message across multiple tokens, and the receiver decodes with beam search; noise is keyed by token bytes rather than vocabulary index, enabling decoding across model families.
- The authors report: arithmetic coding and Discop decode almost 0% under any mismatch; STEALTH decodes all 200 messages under all receiver configurations across the three model families (including quantization, small models, another GPU, and other families); trained steganalyzers and the missing-tail test cannot distinguish its ciphertext from normal sampling.
- The authors note: the sender's same-model stopping check is reliable only for receivers with close configurations; the security theorem requires the number of texts per message to be fixed or independent of the key; float64 hardening is effective only on the tested hardware. The experiments use only 7–9B senders, the CNN/DailyMail review scenario, 32-bit payloads, and two NVIDIA GPUs.
- Threat model
- The sender and receiver share a key K and a public prompt strategy; the sender uses model M to generate public text and hide the message in it; the receiver uses M′≈M (precision, quantization, GPU, same-family scale, or model family may all differ) to decode only from the public string. A passive warden knows everything except the key (model, configuration, prompt strategy) and can adaptively choose contexts and hidden messages, with the goal of determining whether the conversation hides a message.
- Evaluated models
- Gemma-2-9B-itLlama-3.1-8B-InstructQwen2.5-7B-InstructGemma-2-2b-itLlama-3.2-3B-InstructQwen2.5-1.5B-Instruct
- Benchmarks
- CNN/DailyMail
- Metrics
- messages decoded (%)flip ratetotal variation (TV)tokens to 90%/99%/100%payload bits per posted tokenAUC
STEALTH is an LLM steganography scheme that can still be decoded even when the sender and receiver differ in floating-point precision, quantization or GPU architecture. The scheme uses key-driven pseudorandom noise to drive exponential competition for token extraction, a rateless spinal code to absorb probability mismatch, and proves that the steganographic text is indistinguishable from honest samples. In experiments, all messages were successfully decoded across precisions and quantizations of same-family models, smaller models, different GPU architectures and even across model families, and steganalyzers could not distinguish them.
Paper analysis
What problem does this paper attempt to solve?
Provably secure steganography requires the receiver to recompute the sender's probabilities bit by bit; the authors state that this assumption does not hold in practice and propose the mismatch-tolerant STEALTH.
Core problem: provably secure language steganography schemes generally assume that the receiver can recompute the sender's token probability distribution bit by bit, and the authors state that this assumption almost always fails in real deployments.
- Scenario and motivation: censors flag or block traffic that appears encrypted, and steganography hides messages in text that appears benign. Provable security requires the ciphertext to be indistinguishable from normal model sampling to the warden, and existing secure schemes all encode the message in the exact position of the sampled token within the distribution.
- Fragility of existing schemes: floating-point summation is not associative, and different GPU architectures, kernels, precisions, quantization, or even per-token generation versus teacher-forced scoring on the same hardware give different results; decoding replays the sender's computation step by step, so a last-digit difference in one token's probability throws off all subsequent decoding. The authors cite a survey stating that this computational nondeterminism is listed as an open challenge.
- Core observation: when sampling with an exponential race, a receiver distribution mismatch flips the current token only with a probability bounded by the total variation distance, and does not cascade; combined with a rateless error-correcting code to amortize the message, this tolerates mismatch.
- Paper contributions: propose the STEALTH scheme; prove that its ciphertext is indistinguishable from normal sampling; evaluate it across three model families and multiple precision/quantization/GPU/cross-family settings, and compare it with bit-by-bit schemes and robust baselines.
- Threat model (Section 3):
- Goal: the sender hides a secret message in public text (e.g., a news comment section), and the receiver recovers the message from the public string.
- Conditions on both sides: a random key K and a public prompting strategy are shared in advance; the sender uses model M and the receiver uses M′≈M, which may differ in precision, quantization, GPU/software stack, same-family model size, or model family, each with its own tokenizer.
- warden: passive, reads all public text, and knows everything except the key (the model and its exact configuration, the prompting strategy, how to sample from M), and can adaptively choose context articles and hidden messages.
- Target properties: security (the ciphertext is computationally indistinguishable from normal sampling from M) and robustness (when M′≠M, recover the correct payload with as little text as possible, and almost never output a wrong payload).
What related research exists?
Related work is divided into six categories: steganography and covert channels, provably secure linguistic steganography, sources of probability mismatch, robust steganography, samplers and error-correcting codes, and steganalysis.
Steganography and covert channels
- Hopper et al. (2002) proposed a definition of provably secure steganography: a warden who chooses the hidden message cannot distinguish the ciphertext from a sample of the cover channel; this paper follows their instantiated definition.
- Image steganography (such as LSB replacement) distorts natural statistics and can be detected by statistical steganalysis; the authors use this to illustrate that "seemingly benign" does not equal statistically indistinguishable.
Provably secure linguistic steganography
- Arithmetic coding (Ziegler et al., 2019) embeds the message into the cumulative interval of tokens, but reuses randomness across tokens and does not satisfy provable security.
- Meteor (2021), iMEC (2023), and Discop (2023) achieve provable security, but all four require the receiver to reconstruct the sender's distribution bit by bit in order to decode.
Why probabilities are inconsistent
- The authors cite multiple works to explain: the floating-point summation order of matrix multiplication and softmax depends on GPU architecture, kernel, and batch size; KV cache token-by-token generation and teacher forcing single-pass scoring compute the same function along different paths and may be inconsistent even on the same hardware with the same weights.
Robust steganography
- One class of schemes (Zamir 2024; Bai et al. 2025; Guo et al. 2026) does not have the receiver run the model, instead embedding the message in side information that can be decoded without p(x); they are robust by construction but have a much lower payload rate.
- Bauer et al. (2024) run both sender and receiver in float64 to eliminate numerical mismatch; the authors note that its computational overhead is large and that it does not address precision, quantization, model changes, or detectability.
Samplers and error-correcting code tools
- The exponential race sampler (another form of Gumbel-max) has been used in Aaronson's LM watermark and subsequent work, but those works use a fixed key and carry no payload.
- Spinal code (Perry et al.) divides the message into k-bit blocks, chains them with a hash chain, and the receiver decodes with beam search, with no fixed upper limit on the rate.
Steganalysis
- Linguistic steganalyzers (word-level neural networks, fine-tuned transformers) distinguish ciphertext from normal text by statistics; Cao et al.'s missing-tail test targets the artifact of systematically undersampling low-probability tokens in fixed-precision interval decoding schemes.
Baselines and benchmarks: the comparison baselines are arithmetic coding, Discop, float64 hardening (Bauer et al.), and Zamir's receiver-free scheme; the text channel is based on 200 news articles from CNN/DailyMail.
The authors position this paper as: not abandoning provable security, nor requiring the sender and receiver distributions to match, but directly assuming the two will be inconsistent and recovering the message under that premise.
How does the paper address this problem?
STEALTH uses keyed exponential race sampling so that a mismatch affects only a single token, then amortizes the message with a rateless spinal code and decodes with beam search.
Overall approach: the sender uses STEALTH to sample token by token via an exponential race driven by keyed pseudorandom noise, so that a receiver distribution mismatch flips an individual token only with bounded probability; the message is spread across the entire text via a spinal code, and the receiver absorbs these flips with soft-scoring beam search, so the two sides need not agree on the same distribution.
Exponential Race Sampling (Section 5.1)
- Each message has an independent key Km, derived from the shared key K and a new nonce ν via a keyed hash; ν need not be secret and is used only to identify texts belonging to the same message.
- At each token position, for each i in the vocabulary, draw noise Ei∼Exp(1), with the noise keyed by Km, the token's byte-offset position t, and the spine value at that position; output y = argmini Ei / pi(h), i.e., sample exactly from p(h) via an exponential race.
- When the receiver distribution p′ differs from p, the probability that the same noise selects a different token is at most 2D/(1+D) (D is the total variation distance; this bound is proved by Daliri et al.); position t is a byte offset, and the noise does not depend on already-selected tokens, so flips do not cascade.
Spinal Code (Section 5.2)
- The n-bit payload is first appended with a 16-bit CRC, then split into L blocks of k=4 bits; the spine value is chained by sj = H(sj−1, cj), so that sj depends on all of the first j blocks.
- Positions are assigned to spine values by word (whitespace-separated): the w-th word carries s1+(w mod L), and counting by word gives each block roughly the same number of positions and is independent of the tokenizer.
- The code is rateless: after one round of L blocks, the next round continues, so the longer the text, the more evidence; the sender need not truncate the message to a fixed length, and the text can end where the model naturally ends.
Decoding (Section 5.3)
- The receiver performs one teacher forcing pass over each text to obtain the log-probabilities at each position, recomputes the noise, and computes the margin µt by which the observed token wins the race.
- The margin is converted to a soft score λ(µt)=max(ln sigmoid(µt/τ), ln ϵ): the temperature τ determines the degree of discount for near-misses, and the floor ϵ limits the maximum cost of a single position; the two parameters need not be fixed in advance, and if the CRC fails entirely, decoding can be retried with different parameters.
- Beam search extends guesses block by block, keeping the B highest-scoring partial guesses; an incorrect block pollutes all subsequent scores through the hash chain and is overtaken by the correct sequence; the final output is the highest-scoring guess that passes the CRC, otherwise a failure is reported.
Ending and Re-tokenization (Section 5.4)
- The END token participates in the race, and the text ends where the model naturally ends; the sender checks decodability on its own model using the receiver's algorithm while writing, and after it passes, writes 12 more tokens as margin.
- When one text is insufficient, the message continues into the next text, with t and w accumulated across texts; when the receiver's re-tokenization is inconsistent, merged tokens are treated as ordinary flips and swallowed offsets as erasures, absorbed by the code's redundancy.
Cross-Model Families (Section 5.5)
- Across families, the noise is keyed by a fixed hash κ(i) of the token bytes rather than the vocabulary index i, so that both sides have consistent noise for the shared string; κ is required to be injective on the sender's vocabulary (e.g., Gemma's byte-fallback tokens are handled with a separate domain label).
Security Analysis (Section 6)
- A chosen-hiddentext security definition is adopted: the warden adaptively queries the payload, nonce, and context, and its advantage Adv(A) in distinguishing the stego oracle from the honest oracle must be small.
- The experiments use HMAC-SHA256 as the keyed hash and ChaCha20 as the keyed PRF; Theorem 1 gives Adv(A) ≤ ϵHMAC(q) + q·ϵChaCha(r) + Tδ, where δ is the per-token probability that the implemented race differs from the ideal race.
- Lemma 3 bounds the finite-precision error: with |V|≤2^18 and a=30, δ≤5.2×10^-12/token; the authors state that the exponential race builds no CDF, tokens with probability 10^-30 still retain full-precision log-probabilities, and there is no missing-tail artifact (unreachable mass 1.4×10^-17/token on Qwen2.5, versus 1.7×10^-6 for 32-bit arithmetic coding).
What experiments did the paper conduct?
Bit-by-bit schemes almost entirely fail under any mismatch; STEALTH decodes all messages under all receiver configurations, and detectors cannot distinguish its ciphertext.
Experimental Setup
- Sender models: Gemma-2-9B-it, Llama-3.1-8B-Instruct, Qwen2.5-7B-Instruct, all bf16, temperature 1; also tested speculative decoding senders (draft models Gemma 2B, Llama 3.2 1B, Qwen 0.5B).
- Receiver configurations: the sender's own weights in bf16/fp16/fp32/int8/4-bit NF4, same-family small models (Gemma-2-2b-it, Llama-3.2-3B-Instruct, Qwen2.5-1.5B-Instruct), and large models from the other two families (cross-family experiments); the table reports only bf16 (the authors state that results for the three floating-point precisions are nearly identical).
- Channel: writing reviews for 200 articles from CNN/DailyMail, continuing if insufficient; 200 messages per condition.
- Encoding parameters: 32-bit payload, 16-bit CRC, block width k=4 (L=12 blocks), beam width B=16, score floor ϵ=10^-3; reports τ=0.1, τ=1.0, and a cascaded decoder (falls back to τ=1.0 when τ=0.1 passes the CRC without guessing).
- Hardware: NVIDIA RTX A6000 (Ampere) and H100 (Hopper).
- Metrics: decoding success rate (whether the payload matches), flip rate (the proportion of tokens for which the race winner differs under the receiver's distribution), TV, and the number of tokens needed to decode 90%/99%/100% of messages.
Main Results
Decoding rates (%) of bit-by-bit schemes under mismatch (from Table 1, 7–9B models):
Swipe horizontally to read the table
Scheme Condition Gemma Llama Qwen Arithmetic coding Same-model replay 100 100 100 Arithmetic coding Different-GPU replay 0 0 0 Arithmetic coding Same-model teacher forced 0 0 0 Arithmetic coding int8/NF4/small model 0 0 0 Discop Same-model replay 100 100 100 Discop Different-GPU replay 0 0 0 Discop Same-model teacher forced 0.5–1.5 1.5 0.5–1 Discop int8/NF4/small model 0 0 0 - The authors state that under mismatch, decoding derails after 5–7 correct bits (1–4 for other configurations); Table 2 shows that on the same GPU, the per-token TV between replay and teacher forcing is 0.86%–1.42%, and between different GPUs is 0.84%–1.38%, and that no position is bit-for-bit identical across architectures.
- STEALTH main results: every receiver configuration decodes 200/200 messages (95% Wilson interval failure rate below 1.9%); even the worst configuration, the Gemma 2B receiver, needs only 384 tokens to decode all messages (Table 3).
- Authors' interpretation: token overhead follows the flip rate rather than precision itself—the int8 receiver has a flip below 5%, with overhead close to the same configuration; NF4 and same-family small models have flips of 8%–37%, requiring more text (Table 3, Table 4).
Sender Stopping Point and Cross-GPU
- What was tested: the sender stops after writing 12 more tokens once its own same-model check passes, and the decoding rate of each receiver at that point is measured (Table 4).
- Results: with the cascaded decoder, same-configuration receivers reach 100%; int8 is 98%–100%; NF4 is 93.5%–99.5%; same-family small models only 42%–87.5% (flip 23.5%–36.9%).
- Authors' interpretation: the sender's same-model stopping check is reliable only for receivers with close configurations; τ=0.1 decodes only 8.5%–54% on small-model receivers, τ=1.0 is 42%–87.5%, and the cascade is no worse than the better of the two in every row.
- Cross-GPU: text written on H100 and decoded on A6000 still reaches 100% for all configurations, with token counts varying by no more than two 12-token steps (Table 5); the authors state that changing GPU changes about 1% of race winners under bf16 and 4–6% under int8, but changes the sender's flip rate by within 0.3 percentage points.
Cross-Family Decoding and Speculative Decoding
- Cross-family (Table 6): after keying noise by token bytes, the alignment rate between receiver tokens and sender byte spans is 88%–99.5%, and the flip rate of aligned tokens is 34.2%–37.7%; given the entire text stream, all cross-family receivers decode all messages, with 90% of messages from Llama/Qwen senders within 168–252 tokens and from Gemma senders within 336–396 tokens; at the sender's stopping point, cross-family receivers decode only 12.5%–90.5%.
- Wrong payloads: out of about 450,000 cross-family scan decodings, a wrong payload was output 35 times, which the authors state is within the 16·2^-16 CRC bound (about 110 times).
- Speculative decoding (Appendix B, Table 10): 4 draft tokens per round, acceptance rate 26%–42%; each receiver's flip rate differs from that of the normal sender by within 0.5 percentage points, and same-size receivers differ by no more than 3 decoded messages; same-family small-model receivers differ by 3–17 messages, with inconsistent direction.
Comparison with Other Methods and Detection Tests
- Rate (Table 7): with a 32-bit payload, STEALTH is 0.19–0.26 bits/token, arithmetic coding 0.19–0.28, Discop 0.19–0.29 (the latter two hold only under replay); the Zamir scheme is 0.002–0.024, and on Llama decodes 99.5% from sender tokens but drops to 78.5% from the public string; with a 256-bit payload, STEALTH is 0.37–0.43.
- Runtime: race sampling adds overhead within 3–4% of normal sampling (25–52 ms/token for 7–9B models); the receiver takes 70–95 ms per message; arithmetic coding takes 3.7–5.5 s per message for a bf16 receiver (the authors state 50–60×); the float64-hardened sender is 2.5–5.5× slower per token and the receiver takes 5.8–16.5 s per message (1.5–3B models, versus 55–71 ms for STEALTH).
- Trained steganalyzers (Table 8): four classifiers including RoBERTa differ from random by within 0.007/0.015 in AUC for stego-vs-race and stego-vs-mult (|z|≤1.3); the positive control ac12 is detected by RoBERTa on Llama and Qwen (AUC 0.585, 0.570, p<0.05).
- Model-aware detectors and missing-tail (Table 9): a feature classifier that knows the sender model has an AUC of 0.48–0.52 for stego, while the same detector reaches 0.67 for ac12 (z=6.0); in the missing-tail test, stego and race have |z|<1.7 at all thresholds, whereas 12-bit arithmetic coding is as low as z=-385.2; the authors also note that the normal mult sampler itself shows gaps of z=3.7 and 6.4 at the 2^-16 and 2^-24 thresholds, attributed to float32 accumulation in torch.multinomial.
Other Ablations and Analyses
- float64 hardening (lower half of Table 1): after patching the silent float32 conversion, fp64 replay/teacher forcing/cross-GPU all decode 100%, but fp32 receivers reach at most 0.5%, and bf16/int8/NF4 are all 0.
- float64 detectability (Figure 2): when the warden holds both bf16 and fp64 copies, it can distinguish the two as the number of reviews increases (the figure gives the curve of AUC rising with the number of reviews and the median rejection line).
- Rate versus payload size (Figure 5): the rate rises 20–90% from 32 to 64 bits, then enters the 0.35–0.45 range after 128 bits and flattens.
- Fixed text count: of 600 evaluation messages, 33 Gemma, 3 Llama, and 1 Qwen require a second review, and none require a third (Section 6.2).
What are some points that can be further explored?
The authors note limitations such as stopping-check calibration and the theorem's stopping rule; the experiments cover three families, two GPUs, and mainly 32-bit payloads.
Limitations and future directions noted by the authors
- The stopping check is reliable only for near-configuration receivers (Section 7.2): the sender's same-model stopping check is "only a signal that is reliable for a receiver whose configuration is close to its own"; for more distant receivers, more rounds of redundancy are needed or the receiver model should be used for the check.
- Limitation of the stopping rule in the security theorem (Section 6.2): Theorem 1 covers only senders whose number of texts per message is fixed in advance or does not depend on the key; when stopping is based on a decodability check, the number of texts N depends on the key, and the authors give a coupling bound that the warden's advantage increases by at most Pr[N≠k] (6% when k=1).
- Applicability of the float64 hardening (Section 4): the authors state that float64 eliminated the mismatch it targets only on the hardware tested, and "there is no guarantee that it holds for untested configurations" (and note that this was mentioned by Bauer et al. themselves).
- Boundary of the power of the detection tests (Section 7.5): the authors state that "no finite test set can rule out all wardens"; the detection experiments only show that these detectors, which can detect small artifacts of other samplers, find nothing on STEALTH.
- Cross-family stopping points are uncalibrated (Section 7.3): the sender's same-model stopping check is uncalibrated for cross-family receivers (only 12.5%–90.5% decoded at the stopping point); the authors' remedy is for the sender to use the receiver model for the check if it knows it.
Scope of the experiments
- The senders tested are three 7–9B instruction models (Gemma-2-9B-it, Llama-3.1-8B-Instruct, Qwen2.5-7B-Instruct); receivers include same-family small models (2B/3B/1.5B) and large models from two other families (Section 7.1).
- The channel is the comment scenario over 200 CNN/DailyMail articles, with 200 messages per condition; the payload is 32 bits (rate swept to 256 bits, Figure 5).
- The hardware is two NVIDIA architectures (RTX A6000, H100); precision covers bf16/fp16/fp32/int8/4-bit NF4.
- The detection evaluation includes four trained steganalyzers, a feature classifier that knows the sender model, and Cao et al.'s missing-tail test, with 2,000 first comments per family per class (Section 7.5).
- The paper does not report agreement with human review (the evaluation is programmatic decoding matching and statistical tests); Bai et al.'s scheme was not reproduced, and Table 7 only cites their self-reported rate.
Summarize the main content of the paper
STEALTH abandons the bit-by-bit recomputation assumption, using an exponential race plus a spinal code to achieve provably secure steganography that tolerates mismatch.
A systems and security paper on language model steganography: addressing the assumption of provably secure steganography that the receiver recomputes the sender's token probabilities bit by bit, the authors argue that it does not hold in real deployments and present STEALTH, an alternative that tolerates mismatch.
- Problem: floating-point summation order, precision, quantization, GPU architecture, and even teacher forcing versus token-by-token generation all change token probabilities; the authors measured that arithmetic coding and Discop decode 100% under same-model replay, but almost all 0% under a GPU change, teacher forcing, int8/NF4/small models (Table 1), and the per-token TV between the two processing paths on the same GPU already reaches 0.86%–1.42% (Table 2).
- Method: the sender samples with a keyed exponential race, so a mismatch flips a single token only with a probability bounded by the total variation; a 32-bit payload plus a 16-bit CRC is spread over the whole text via a rateless spinal code, and the receiver decodes with soft-scoring beam search; noise is keyed by token bytes, which supports decoding across model families.
- Security: the authors prove that under the chosen-hiddentext definition the warden's advantage is bounded by ϵHMAC(q)+q·ϵChaCha(r)+Tδ, with the finite-precision term δ≤5.2×10^-12/token; the authors state that the scheme has no missing-tail artifact.
- Robustness results: all receiver configurations across the three model families (quantization, same-family small models, another GPU, other families) decode 200/200 messages, with the worst configuration (Gemma 2B receiver) requiring 384 tokens; across families, a token-aligned flip rate of 34.2%–37.7% still allows full decoding.
- Efficiency and detection: the 32-bit payload rate is 0.19–0.26 bits/token, comparable to bit-by-bit schemes under replay and higher than Zamir's receiver-free scheme (0.002–0.024); trained steganalyzers and the missing-tail test are close to random on STEALTH's output, while the same detectors can detect the control scheme ac12.
- Authors' conclusion: sender and receiver no longer need matching deployments to communicate covertly, and text exchanged across different hardware, precisions, and even model families can still be proven indistinguishable from normal model output; the authors also note that the scheme is dual-use, and that defenses relying on sender-receiver deployment mismatch to break steganography do not hold against STEALTH.