# STEALTH: Steganographic Text Encoding Agnostic to Low-Level Tensor Hardware

STEALTH hides messages in language model text that survive decoder mismatches

William Fleshman · arXiv · 2026-11-12

- **Problem** Provably secure steganography needs the receiver to recompute the sender's token probabilities bit for bit. Any hardware or precision difference derails decoding, since one wrong token corrupts every later step.
- **Method** STEALTH picks each token with a keyed exponential race, so a probability mismatch flips a token only when the race is close. A rateless spinal code, decoded by beam search, absorbs those flips.
- **Results** STEALTH decoded every message for every receiver in the sender's model family, at every precision and quantization level. Arithmetic coding decoded 0 messages on a different GPU.

![Table 7: PAYLOAD BITS PER POSTED TOKEN. ROBUST:DECODES DESPITE SENDER–RECEIVER MISMATCH. EXACT:STEGOTEXT FOLLOWS THE SENDER’S MODEL DISTRIBUTION. –:IMPRACTICAL…](https://refivu.com/papers/ef9a2b6e-544f-4504-8701-7328a175bfce/figures/figure-20cd0c8f315285da4577b616d395b7c6.png?thumb=512)

**TABLE 7** . PAYLOAD BITS PER POSTED TOKEN. ROBUST:DECODES DESPITE SENDER–RECEIVER MISMATCH. EXACT:STEGOTEXT FOLLOWS THE SENDER’S MODEL DISTRIBUTION. –:IMPRACTICAL AT256BITS.

[Original paper](https://arxiv.org/abs/2611.16928v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · William Fleshman · STEALTH: Steganographic Text Encoding Agnostic to Low-Level Tensor Hardware · Original paper figure · Extracted the figure area from page 12 of the original PDF.

## Why bit-exact schemes break

Bit-exact linguistic steganography breaks because the receiver must rebuild the sender's token distribution exactly. Several such schemes are provably secure, but only when the receiver reproduces the sender's distribution bit for bit.

Meteor, iMEC, and Discop reach provable security, yet all four schemes need the receiver to reconstruct the sender's p(x) bit for bit. Generation with a key-value cache and teacher-forced scoring compute the same function along different paths, and they can disagree even on identical hardware.

![Table 1: BIT-EXACT SCHEMES FAIL UNDER MISMATCH. PERCENT OF MESSAGES DECODED. ∗:RESULTS ACROSS BF16,FP16AND FP32](https://refivu.com/papers/ef9a2b6e-544f-4504-8701-7328a175bfce/figures/figure-9fce4dbc9841d1345b7327958fd9b336.png?thumb=512)

**TABLE 1** . BIT-EXACT SCHEMES FAIL UNDER MISMATCH. PERCENT OF MESSAGES DECODED. ∗:RESULTS ACROSS BF16,FP16AND FP32.

[Original paper](https://arxiv.org/abs/2611.16928v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

Decoding replays the sender's computation one step at a time, so a single token whose probability is off in the last bits can push every later step onto the wrong path. The authors test this with arithmetic coding and Discop on the same hardware, varying only the processing mode, precision, quantization, or model size. The three senders run in bf16 (Gemma-2-9B-it, Llama-3.1-8B-Instruct, Qwen2.5-7B-Instruct), and the receivers drop to the smaller sibling in each family.

With arithmetic coding, replaying the sender's own generation path decodes 100 of 100 messages for Gemma, Llama and Qwen. Replay on a different GPU decodes 0 messages for each family, and teacher forcing the same cover text also decodes 0. Discop also decodes all messages by replay on the same model, but teacher forcing decodes only about 0.5 to 1.5 percent of messages.

Replay on a different GPU decodes none of the Discop messages for any family.

This token-level gap is on par with the gap between step-by-step generation and teacher-forced scoring on the same GPU. The Discop failure has a structural cause: it builds a Huffman tree over the whole vocabulary at every step.

## An exponential race and a spinal code

STEALTH replaces the usual sampler with an exponential race, in which the sender picks the token that minimizes E\_i/p\_i over the vocabulary. Here E\_i is keyed pseudorandom exponential noise, and with truly random noise the choice samples exactly from p. Because each race runs on its own noise, a mismatch between sender and receiver distributions changes at most the token whose race it touches.

The noise at each position depends only on the message key, the byte offset of the token, and the spine value its word carries, never on the probabilities. So a flip at one position leaves every other position's race untouched, and the bit-exact schemes lack this property because their decoders carry state from step to step.

The message is split into 4-bit chunks, and a hash chain turns them into spine values. Each spine value keys the noise for the words assigned to it, and a fixed s\_0 starts the chain. Because every spine value depends on all earlier chunks, a wrong chunk guess changes every later spine value, which lets the receiver test guesses in order. The receiver keeps only the best B partial guesses, with B set to 16 in the experiments.

The code is rateless, so the sender keeps writing until the receiver's check passes. The sender never needs to shorten or pad the payload to fit a fixed cover text length. Figure 3 walks through the sender's spinal code and the receiver's beam search on the running example.

Algorithm 1 shows the sender side, which hashes the payload with a CRC, draws noise per token, and picks the minimizing token. Decoding tests a guess for each chunk by teacher forcing the posted text under the receiver's own model. The receiver scores the observed token by its race margin, so a narrowly lost race counts as a probable flip rather than a contradiction.

The experiments report two decoder operating points, τ = 0.1 and τ = 1.0, plus a cascade that falls back to τ = 1.0.

## Encoding and beam-search decoding in STEALTH

The sender starts from a message key derived from the shared key and a fresh nonce. It appends a 16-bit CRC to the payload and splits the result into chunks of 4 bits each. A spine chain then hashes these chunks together, so each spine value depends on every chunk up to its position. At each token the sender draws noise for every vocabulary index, keyed by the message key, the byte offset and the current spine value.

It then appends the race winner under its own distribution and advances the byte offset and word count.

The receiver teacher forces each posted text once under its own model, which yields log-probabilities at every position. For each guessed chunk, it replays the race at every position that carries that spine value. At such a position, the observed token wins the race by a margin, which is the gap to the best of the rest. A correct guess should see the posted token win nearly every race, with only narrow misses.

A wrong guess changes the noise, so it loses most races and its descendants score badly.

The receiver keeps the best partial guesses under a beam of width 16 in the experiments. It returns the first full payload that passes the CRC. A token the receiver cannot match cleanly costs evidence rather than adding false evidence. A missing position adds nothing, because the rateless code's redundancy absorbs it.

## Keying the noise by token bytes

The noise normally depends on the vocabulary index, and that index means something only inside one tokenizer. A model from another family assigns its own, unrelated index to the same string, so the receiver can't match indices. The byte-keyed variant replaces that index with a fixed hash of the token's byte string, written κ(i).

Position t is the token's byte offset in the posted text, so the receiver reads it straight off the string. Word count is defined on the posted text too, so neither value ties the receiver to the sender's tokenizer. Gemma's byte-fallback tokens duplicate ordinary single-byte tokens, so the ordinary token keeps its byte key. Each of the other duplicates is hashed from its index under a separate domain tag, and END gets its own reserved key.

When the receiver's tokenizer splits the text the same way, κ(i) lines its token up with the sender's token. Where the two tokenizers split the text differently, the mismatch is handled as a re-tokenization with erasures. The merged token takes the first part's offset and is scored as an ordinary flip. The second part's offset is never visited, so it contributes no evidence rather than wrong evidence.

The rateless code's redundancy absorbs these flips and erasures like any other mismatch.

The security argument still holds for the byte-keyed variant, because κ is injective on the sender's vocabulary. Distinct tokens still read distinct inputs, so the noise stays independent across positions. A bit-exact decoder would instead carry state, so one wrong step corrupts every later bit.

## What the security argument covers

Security is defined as the warden's inability to tell the stego oracle apart from an honest conversation, with the advantage written as Adv(A) equal to the absolute difference between the two oracle probabilities. The stego oracle returns the sender's posted texts for a payload, a nonce, and a starting context, while the honest oracle returns a conversation under the same stopping rule.

The warden never reuses a nonce, and it chooses each query knowing the outcome of every earlier one.

For the experiments, the authors instantiate the keyed hash with HMAC-SHA256 and the keyed pseudorandom function with the ChaCha20 block function. They assume both are PRFs with advantage epsilon HMAC(q) against q queries and epsilon ChaCha(r) against r block evaluations. The exponential race is the exact-sampling step: the race winner equals i with probability p\_i, and the winning score is itself Exp(1).

The paper's other half of the race claim, the bound on how often a mismatched receiver disagrees, comes from Daliri et al. Lemma 1 needs independent noise at each position, but the noise inputs depend on the sender's earlier tokens.

Lemma 2 replaces the keyed function with a truly random function, so the noise at each position becomes fresh given everything before it. The argument survives the byte-keyed variant, since the byte hash is injective on the sender's vocabulary. Corollary 1 says that, ignoring its own stopping rule, the sender's ideal-world texts have the same law as an honest conversation.

Theorem 1 bounds the warden's advantage by epsilon HMAC(q) plus q times epsilon ChaCha(r) plus T times delta, for q queries and T tokens in total.

Arithmetic coding, Meteor, and Discop stop when the message bits run out, so their endings don't match an honest sample. Under a fixed count of two texts per message, none of the 600 evaluated messages would have failed. A sender that stops at the decodability check posts a key-dependent count N, and a warden gains at most Pr\[N not equal k\].

## Robustness across receivers

Receivers decode STEALTH messages across every precision and quantization level tested, as long as they get enough text. The authors used 200 messages per condition, and each configuration's failure rate stayed below 1.9% under a 95% Wilson interval. The token cost tracks flip rate more than precision, so int8 receivers need little more text than a same-configuration receiver.

Flips for NF4 and the smaller models run from 8% to 37%, and each flip costs evidence that the beam search must recover. The worst case was Gemma 2B, where no message needed more than 384 tokens.

The sender cannot see its receiver's flips, so it can only check its own model's ability to decode. A receiver matching the sender's configuration decodes every message, because it repeats the sender's own check. At the sender's stopping point, NF4 receivers decode 93.5–99.5% of messages, while the smaller same-family receivers decode only 42–87.5%.

A sender facing a distant receiver can post extra passes or run that receiver's model for its check.

![Table 4: PERCENT OF MESSAGES DECODED AT THE SENDER’S STOPPING POINT(ITS OWN CHECK PLUS12TOKENS),WITH FLIP RATE](https://refivu.com/papers/ef9a2b6e-544f-4504-8701-7328a175bfce/figures/figure-8d984006ffc7e54924623b2e1a047599.png?thumb=512)

**TABLE 4** . PERCENT OF MESSAGES DECODED AT THE SENDER’S STOPPING POINT(ITS OWN CHECK PLUS12TOKENS),WITH FLIP RATE.

[Original paper](https://arxiv.org/abs/2611.16928v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

The authors moved receivers between an H100 and an A6000 to isolate hardware mismatch from precision and model size. Every configuration still reached 100% of messages decoded when the texts were written on the H100 and read on the A6000. Moving the receiver between GPUs changed no configuration's token counts by more than two 12-token steps.

The new GPU changed about 1% of race winners at bf16 and 4–6% at int8, yet flip rates stayed within 0.3 points of Table 4. Speculative decoding also left receivers unaffected, because each posted token is still the winner of the sender's race.

## Cross-family decoding: how much text a receiver from another family needs

A receiver from another model family can decode STEALTH messages once the noise is keyed by token bytes instead of vocabulary index. The lowest alignment occurs whenever Gemma's tokenizer sits on either side of the pair. Of the aligned tokens, 34 to 38% flip, a rate comparable to the smaller same-family receivers at 24 to 37%.

Ninety percent of messages decode within 168 to 252 tokens for Llama and Qwen senders, and within 336 to 396 tokens for Gemma senders. The sender's same-model stopping check, however, is not calibrated for these receivers. At the sender's stopping point, these receivers decode only 12.5 to 90.5% of messages, almost entirely through τ = 1.0, since τ = 0.1 decodes at most 27.5%.

A sender that knows its receiver's model can run that model for its stopping check instead. They compared this against the same-model check, and against two honest samplers, race and mult, used as controls for the steganalysis tests that follow.

## Float64 hardening and its limits

Float64 hardening removes the mismatch it targets, but only on the hardware the authors tested. The authors patched several Hugging Face casts to float32 before float64 worked, since those operations ignored the requested dtype. Until those casts were patched, decoding still failed after 20 to 24 bits. After patching, float64 senders decoded all messages by teacher forcing.

The authors note that nothing guarantees this holds on configurations they did not test.

A receiver at fp32 decoded at most 0.5% of the messages tested. Lower precision or quantization always failed. A 7 to 9B model needs 61 to 74 GB in float64, more than a 48 GB GPU holds. So the authors evaluated this baseline on smaller 1.5 to 3B models instead.

On that hardware, float64 generation runs 2.5 to 5.5 times slower per token than STEALTH. Decoding one message takes 5.8 to 16.5 s with float64, against 55 to 71 ms for STEALTH on the same 1.5 to 3B models. It does this by comparing how likely each comment's tokens are under the two models. It accumulates that evidence across many comments, as the authors' Figure 2 shows with detector AUC.

STEALTH instead assumes that sender and receiver will disagree.

## Steganalyzer and missing-tail detection results

The authors re-implemented three word-level linguistic steganalyzers, FCN, R-BiLSTM-C and a densely connected LSTM with feature pyramid.

On every stego-versus-race, stego-versus-mult and race-versus-mult pair, RoBERTa's AUC stays within 0.007 of chance. The other three steganalyzers stay within 0.015 of chance, and none of these results is significant, with \|z\| at most 1.3. On the ac12 positive control, RoBERTa detects arithmetic coding on Llama and Qwen with z of 2.93 and 2.43, but not on Gemma.

The densely connected LSTM detects ac12 on Llama alone, at z of 2.40. FCN and R-BiLSTM-C never detect it. With only 200 texts per class, these text-only classifiers have little power on distribution-preserving schemes.

The stronger test uses the sender's own model, which the warden knows, to score every token. For each token, it computes the log-probability, rank, entropy and a randomized probability integral transform. Each comment becomes a feature vector of histograms, moments, tail counts, PIT autocorrelation at lags 1 to 12, and length. Logistic regression, gradient boosting and an MLP train on these features under the same grouped cross-validation.

Across the three families and classifiers, stego-versus-mult and stego-versus-race AUCs fall between 0.48 and 0.52. That range sits inside the 0.48 to 0.54 spread of the honest race-versus-mult pair.

Cao et al.'s missing-tail test counts tail tokens below a threshold and compares the count with honest sampling's prediction. The authors trace that deficit to torch.multinomial, which draws through a float32 cumulative sum. Arithmetic coding at 12 bits is caught at every threshold, down to z of −385.

## Limitations: what the paper leaves untested or unguaranteed

The security result is a reduction, and it covers only the warden classes the authors address. The paper states that no finite set of tests rules out every warden, so the proof is the real guarantee. Finite-precision error adds at most T δ to a warden's advantage, with δ bounded in Section 6.3. The paper's own bound on δ depends on the kernel's rounding error of about 3×10 −14.

The float64 hardening was checked only on the hardware and configurations the authors tested. The authors note that nothing guarantees the float64 mitigation holds on configurations they did not test. Even within that tested set, a float64 copy of the model stays detectable, since a warden can separate float64 comments from bf16 ones. Float64 also costs far more: a 7–9B model needs 61–74 GB, more than a 48 GB GPU holds.

The payload rate is 0.19–0.26 payload bits per posted token on 32-bit messages. That rate is reported only for 32-bit messages, so the paper gives no figure for other payload lengths. The authors compare this rate against the receiver-free scheme of Zamir, which they describe as an order of magnitude lower.

The detector results show only that the tested classifiers found nothing, which is not proof of undetectability. Cao et al.'s test has a threshold-dependent power, and at a threshold of 2 −24 honest sampling expects about 74 tail tokens. At a threshold of 2 −32, a fully missing tail would score only z = 1.3, so that test can't resolve STEALTH's residual mass.

## Paper info

- **Authors**: William Fleshman
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-12
- **Added**: 2026-11-14
- **Updated**: 2026-11-12
- **Version**: v1
- **arXiv**: 2611.16928
- **Category**: cs.CR · cs.AI · cs.LG
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.16928v1) · [PDF ↗](https://arxiv.org/pdf/2611.16928v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## 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.

## Quote from the paper

William Fleshman (2026). STEALTH: Steganographic Text Encoding Agnostic to Low-Level Tensor Hardware. arXiv:2611.16928v1. https://arxiv.org/abs/2611.16928v1

**BibTeX**

```
@misc{fleshman2026stealth,
  title = {{STEALTH: Steganographic Text Encoding Agnostic to Low-Level Tensor Hardware}},
  author = {William Fleshman},
  year = {2026},
  eprint = {2611.16928},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.16928v1}
}
```

## Other paper commentary

- [Speed-to-Power Dominates Energy Costs for AI Data Centers: Technoeconomic Analysis of Powering AI in the Continental United States](https://refivu.com/en/papers/59c862ce-9112-44ef-844c-60828dd3cb56-speed-to-power-dominates-energy-costs-for-ai.md)
- [Bellman Contraction under MMD: A Unified Framework](https://refivu.com/en/papers/bc47e65f-4140-46f1-829a-ce2a7aea1312-bellman-contraction-under-mmd-a-unified-framework.md)
- [Tokenization: Hardness and Bicriteria Approximation Algorithms](https://refivu.com/en/papers/1f62be8b-f2d0-4aa2-b1ed-52835980285d-tokenization-hardness-and-bicriteria-approximation.md)
- [When Does Learned Constraint Selection Pay in Security-Constrained Optimisation? A Boundary Map from SCOPF to Unit Commitment](https://refivu.com/en/papers/bffeb870-d297-4786-a31b-cd7ba9c9f25e-when-does-learned-constraint-selection-pay-in-security.md)
- [Posterior contraction rates for banded approximations of Gaussian processes](https://refivu.com/en/papers/39b2feed-2c3a-4f79-b50f-498773f8d0d9-posterior-contraction-rates-for-banded-approximations-of.md)
- [When and How SignSGD Outperforms SGD: A Functional Scaling Law Perspective](https://refivu.com/en/papers/717fcb11-77f4-44a2-bdd6-2f8dee82543d-when-and-how-signsgd-outperforms-sgd-a-functional.md)
- [Inner Product Regularization for Imitation Learning](https://refivu.com/en/papers/d4178b07-efbe-42e1-815e-1bd2789bd9c5-inner-product-regularization-for-imitation-learning.md)
- [eDMD: Endpoint Distribution Matching for Few-Step Diffusion Distillation](https://refivu.com/en/papers/039e2f7f-dc99-4e6c-b431-a68221cbbfc2-edmd-endpoint-distribution-matching-for-few-step-diffusion.md)
- [Near-Optimal Regret for Oracle-Efficient Adversarial Contextual Bandits](https://refivu.com/en/papers/59c9377d-a911-4ec5-acfc-c9189a7a8655-near-optimal-regret-for-oracle-efficient-adversarial.md)
- [AgentSSL: Can MLE Agents Leverage Unlabeled Data?](https://refivu.com/en/papers/7ba356fa-3652-4ea1-a299-cdcb8ac47ade-agentssl-can-mle-agents-leverage-unlabeled-data.md)
- [AeroZoo: A Benchmark of Well-Posed Flow Problems for Foundation Models of Aerodynamics](https://refivu.com/en/papers/ccdded95-ff8e-42fb-9bf0-b94e2c70922f-aerozoo-a-benchmark-of-well-posed-flow-problems.md)
- [ISLA: A Coordinate-Free, Measure-Weighted Transformer for Boundary-Driven PDEs](https://refivu.com/en/papers/cad1a674-b436-4a8f-938b-2889df82d40e-isla-a-coordinate-free-measure-weighted-transformer-for.md)

## Terms in this paper

- [beam search](https://refivu.com/en/terms/3e449f8f713b-beam-search)
- [RoBERTa](https://refivu.com/en/terms/f42b278690e5-roberta)
- [METEOR](https://refivu.com/en/terms/71303f52a19d-meteor)
- [speculative decoding](https://refivu.com/en/terms/2496d9bbec40-speculative-decoding)
- [language model](https://refivu.com/en/terms/ebf13a974a16-language-model)
- [total variation distance](https://refivu.com/en/terms/81bc44ccc7c1-total-variation-distance)
- [token](https://refivu.com/en/terms/130ef85207eb-token)
- [Gumbel-max trick](https://refivu.com/en/terms/05472cd65e0a-gumbel-max-trick)
- [teacher forcing](https://refivu.com/en/terms/5af8c5103329-teacher-forcing)
- [arithmetic coding](https://refivu.com/en/terms/ef018985fcfb-arithmetic-coding)
- [CNN/DailyMail](https://refivu.com/en/terms/2782b075326c-cnn-dailymail)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/ef9a2b6e-544f-4504-8701-7328a175bfce-stealth-steganographic-text-encoding-agnostic-to-low-level)
