Optimal Single-History Tokenization Disambiguation for Provably Secure Linguistic SteganographyOptimal Single-History Tokenization Disambiguation for Provably Secure Linguistic Steganography
The authors prove that provably secure steganography for a single-history receiver must forgo stop entropy, and propose coin projection, which achieves 2.16–6.85 times the utilization of SyncPool over the full vocabulary.
Provably secure linguistic steganography: sender and receiver share a key and context, the steganographic text follows the model's own distribution, and a keyless warden cannot distinguish it from ordinary output; the channel transmits only text, and the receiver's re-tokenization may yield a different token sequence. The scheme requires exactness (distribution unchanged), zero error (bit-by-bit recovery), the receiver keeping only a single token history, and one model call per token.
- Provably secure linguistic steganography assumes the receiver recovers the sender's tokens, but the text channel carries only text, and re-tokenization ambiguity loses messages; existing fixes either change the distribution, or lose capacity as the vocabulary grows, or require multiple token histories.
- The authors prove that a single-history receiver can only use a prefix-free candidate set at each step, with capacity upper bound Hstr − Hstop, and propose coin projection: use shared randomness to fix stop decisions on the prefix forest in advance, leaving root and branch choices to the distribution encoder.
- On the three C4 continuation benchmarks of English, Chinese, and Japanese, coin projection maintains an ordinary sampling distribution (KLsec is 0), recovers all completed messages, and achieves full-vocabulary utilization of 88.1%/93.6%/89.5%, which is 2.16–6.85 times that of SyncPool.
- The authors note: the upper bound only covers online single-history schemes that are exact for all full-support models; Hstop must still be paid; the receiver needs the model; finite-precision rounding affects the encoder; the experimental scale is 3–4B parameters, three languages, and two tokenizer families.
- Evaluated models
- Llama-3.2-3BQwen3-4B-Basellm-jp-3-3.7b
- Benchmarks
- C4 continuations(English/Chinese/Japanese splits)
- Metrics
- extraction failure rateBPTutilizationKLsecstep time
The paper proves that in provably secure linguistic steganography, a single-history receiver must give up stopping entropy if it is to extract exactly and without error, and proposes a closed-form scheme, coin projection, that reaches this bound. Each token requires only one model call, and 91-93% of the string entropy is preserved for the encoder across vocabulary sizes. At full vocabulary, the entropy converted into message bits reaches 2.16-6.85 times that of SyncPool, and each complete message is recovered.
Paper analysis
What problem does this paper attempt to solve?
How much capacity must provably secure steganography with a single-history receiver pay for tokenization ambiguity? The answer is the stop entropy.
Core question: when the channel carries only text and the receiver keeps only a single token history, how much capacity must exact and zero-error provably secure linguistic steganography give up per step?
- Problem setting: provably secure linguistic steganography hides messages in text sampled from a language model; the steganographic text follows the model's own distribution, and a keyless warden cannot distinguish it; but the channel carries only text, the same text has multiple tokenizations, and after re-tokenizing the receiver may obtain a different sequence, losing 5–10% of 128-bit messages with a 7B model (Yan and Murawaki, 2025, introduction).
- Shortcomings of existing methods: filters (Basic, MWIS, Stepwise) delete candidates to make the text uniquely parseable, but change the distribution that security relies on; SyncPool keeps the distribution exact, but when short tokens are prefixes of many candidates the pools merge, and capacity decreases as the vocabulary grows (on the Llama-3.2 full vocabulary its encoder sees only 14% of the entropy); multi-history schemes use nearly all the entropy but require multiple model calls per step.
- Core observation: ambiguous text itself is rare (at most 11 non-canonical tokenizations per 1,000 tokens), but the stop decision "does the token end here" exists in the candidate pool at every step, and its entropy Hstop accounts for 7.2–9.0% of Hstr (Figure 2).
- The paper proposes: a tight bound (Theorem 1, 2: a single-history scheme embeds at most Hstr − Hstop bits per step) and a closed-form scheme coin projection that achieves it, compatible with any distribution encoder, one model call per token, preserving the ordinary sampling distribution.
Threat model (as stated in the paper):
- Goal: embed a message in model-sampled text so that a keyless warden cannot distinguish the steganographic text from cover text (the framework of Hopper et al., 2002).
- Knowledge and capabilities: sender and receiver share a key K, the context, and a public top-k truncation rule; the receiver sees only Unicode text and must re-tokenize it itself.
- Victim system/channel: a text channel, transmitting text rather than tokens; the receiver re-tokenizes the text before decoding.
- Scheme requirements: exact (the token sequence follows ordinary sampling), online, single-history receiver, zero error (always recovers the token sequence), and holds for all full-support language models (Definition 3).
What related research exists?
Related work falls into three categories: filters, SyncPool, and multi-history schemes, plus theoretical tools for tokenization-to-byte conversion and graph entropy.
Provably secure steganography and distribution encoders
- Hopper et al. (2002), Cachin (1998)—provably secure steganography frameworks: steganographic text follows the model distribution, and a keyless warden cannot distinguish it.
- Arithmetic coding of Ziegler et al. (2019), Meteor (Kaptchuk et al., 2021), iMEC (de Witt et al., 2023), Discop (Ding et al., 2023), Shimmer (Bai et al., 2025), SparSamp (Wang et al., 2025), range coding (Yan and Murawaki, 2026)—distribution encoders, embedding at most H(P) bits per step; the paper notes they all assume the receiver knows each token.
Three types of fixes for tokenization ambiguity (Table 1)
- Filters: Basic (Nozaki and Murawaki, 2022) deletes all prefix candidates, MWIS (Yan et al., 2023) keeps the maximum-weight prefix-free subset, Stepwise verification (Yan and Murawaki, 2025) keeps candidates whose addition still yields a canonical tokenization of the history; the paper notes that deleting any positive-probability candidate changes the distribution.
- SyncPool (Qi et al., 2025)—pools prefix-related candidates, encodes the pool mass, and uses shared randomness to pick a member; the distribution is exact, but when short tokens are prefixes of many candidates the pools merge, and capacity decreases as the vocabulary grows (Yan et al., 2026a).
- Multi-history schemes (LAS of Feng et al., 2025)—evaluate the model on multiple tokenizations of the text, can be exact and use nearly all of Hstr, but require more than one model call per step.
Other ambiguity handling and theoretical tools
- Yan et al. (2024) perform history verification on candidates; Yan and Murawaki (2025) measure the inconsistency rate and note the lack of theory; Yan et al. (2026a) list "high capacity under provable security" as an open problem.
- ReTokSync (Wang et al., 2026) resets the encoder at ambiguous steps and corrects residual errors via a side channel; TI-StegoAlign (Zhou et al., 2026) post-trains the model, which changes the base distribution; Alkaid (Cao et al., 2026b) treats ambiguity as an editing error, at about 0.2 bits/token with nonzero failure risk.
- Prefix mass M(v) and stop probability qv also appear in converting token models to byte/character distributions (Loula et al., 2025; Vieira et al., 2025a; Phan et al., 2025; Hayase et al., 2026) and in tokenization marginalization (Cao and Rimell, 2021); the paper notes these methods query multiple tokenizations, whereas coin projection uses shared randomness on a single history and achieves a perfect graph entropy decomposition (Körner, 1973; Csiszár et al., 1990).
Baselines and benchmarks: experiments compare Native, Basic, MWIS, Stepwise, SyncPool, hub-drop (run SyncPool after deleting nodes with qv < 0.05), all using the arithmetic coder of Yan and Murawaki (2025); benchmarks are C4 English, Chinese, and Japanese continuations (entropy measurement over 50 contexts × 64 tokens; extraction experiments use 100 paired 128-bit messages per cell).
The authors position the paper as: giving a tight capacity upper bound for single-history schemes and achieving it—in Table 1 only coin projection simultaneously satisfies exact, zero error, single history, one call per token, and a budget Hstr − Hstop higher than SyncPool's Hroot.
How does the paper address this problem?
Decompose string entropy into root, stop, and branch parts, use shared randomness to fix stop decisions in advance, and have the encoder encode only root and branch.
Overall idea: organize the string distribution of one step into a prefix forest, prove that a single-history receiver can only encode on a prefix-free (antichain) candidate set, with capacity upper bound Hstr − Hstop; coin projection uses shared randomness to fix each node's stop/continue decision in advance, so that surviving strings naturally form a prefix-free set, thereby achieving the upper bound.
Prefix forest and entropy decomposition
- Strings are compared by byte prefix relations, forming a prefix forest (Definition 1): roots are strings with no proper prefix, nodes are strings with at least one child; M(v) is the total mass with v as prefix, stop probability qv = p(v)/M(v).
- Lemma 1 (Grouping): H(p) = Hroot + Hstop + Hbranch, i.e., the entropy of choosing the tree, the entropy of the stop/continue decision, and the entropy of choosing the child; also Htok = Hstr + Hhom.
- This yields the ladder Hroot ≤ Hstr − Hstop ≤ Hstr ≤ Htok: SyncPool only encodes Hroot, coin projection encodes Hstr − Hstop.
Coin projection construction (Section 4.1)
- Each node v draws a stop coin cv ∈ {0,1}, Pr[cv = 1] = qv; string v survives iff all its ancestor nodes are judged "continue", and v is a leaf or cv = 1.
- The survival distribution is
P̃_c(v) = M(v)\prod_{a\prec v} \frac{M(a)}{M(a)-p(a)}(when v survives), i.e., the walk distribution after stop decisions are fixed by coins. - Proposition 1: survivors form a prefix-free set; the total probability of survivors within each tree is M(r); over independent coins, Ec P̃c = p (exact); Ec H(P̃c) = H(p) − Hstop (only the stop entropy is lost).
- Analysis: the receiver finds in the unread text the unique survivor that is its prefix, without lookahead, calling the model only once on the true token history; Corollary 1: for every coin vector, SyncPool's encoder input is a coarsening of P̃c, so coin projection refines SyncPool for every key.
Capacity upper bound for single-history schemes (Section 4.2)
- Definition 3 defines the scheme class: exact, online, single-history receiver, zero error, holding for all full-support language models; the receiver may arbitrarily defer decisions, and the sender may arbitrarily constrain subsequent steps.
- Theorem 1: in this class of schemes, for each key, each step, and each positive-probability history, the encoder support set has at most one token per string, and the strings form a prefix-free set—even if the receiver can read the entire future text.
- Theorem 2: for any mixture of prefix-free distributions with expectation p, Eκ H(Pκ) ≤ H(p) − Hstop; equality holds iff the root distribution and node child distributions do not depend on κ, in which case each Pκ is a survival distribution (i.e., coin projection, up to the coupling of stop decisions at incomparable nodes).
- Corollary 2: T tokens carry at most ∑t≤ T E[Hstr(pt) − Hstop(pt)] bits of message information; exceeding the bound requires calling the model outside the true history, or giving up exact/zero error.
Implementation (Section 4.3)
- Static prefix table: each tokenizer precomputes all byte proper-prefix pairs (458k/519k/246k pairs after merging homomorphic words, Table 5); each step masks the top-k subset and computes mass, O(|S| + active prefix pairs) time; all coins for one step come from one stream expansion (HMAC-SHA256 derived seed, SHAKE-256 expansion, Appendix E).
- Determinism: projection runs on CPU in float64 with a fixed reduction order, bit-identical on both ends; it only changes the distribution handed to the encoder, and the distribution encoders of Section 2 can accept P̃ without modification.
What experiments did the paper conduct?
On three C4 continuation benchmarks, coin projection maintains 88.1–93.6% utilization with zero divergence and zero errors, while SyncPool drops to 12.9–43.3% on the full vocabulary.
Experimental setup
- Models tested: Llama-3.2-3B (English, 128k byte-BPE), Qwen3-4B-Base (Chinese, 152k byte-BPE), llm-jp-3-3.7b (Japanese, 100k byte-fallback SentencePiece), all base models (Section 5.1).
- Data: continuations of C4 English, Chinese, and Japanese splits; contexts take the first 10 words for English and the first 10 characters for Chinese and Japanese, excluding prompts containing U+FFFD.
- Protocol: sample at temperature 1 up to 512 tokens, k ∈ {16, 64, 256, 1024, 4096, Full}, 128-bit uniform messages; 100 paired messages per cell (filters only up to 4096); all methods use the arithmetic coder of Yan and Murawaki (2025) and a method-matched receiver.
- Baselines: Native, Basic, MWIS, Stepwise, SyncPool, hub-drop (run SyncPool after deleting nodes with qv < 0.05).
- Metrics: extraction failure rate (messages not recovered bit-for-bit), BPT, utilization (message bits divided by the sum of full-model entropy along the text, totaled per cell), KLsec (per-step KL of the key-averaged encoding distribution relative to top-k sampling, nats), step time.
- Entropy measurement: 50 contexts × 64 tokens in ordinary sampling states (Figure 2 averages 3,200 states).
Main results
According to Table 2 (n = 100 per cell; Basic/MWIS/Stepwise did not run the full vocabulary, and the corresponding cells are not reported in the paper):
Swipe horizontally to read the table
Model Method k=16 Util k=256 Util k=4096 Util Full Util Full KLsec Llama-3.2-3B (EN) SyncPool .476 .243 .125 .129 0 Llama-3.2-3B (EN) Coin (ours) .567 .773 .877 .881 0 Qwen3-4B-Base (ZH) SyncPool .535 .707 .718 .433 0 Qwen3-4B-Base (ZH) Coin (ours) .552 .757 .896 .936 0 llm-jp-3-3.7b (JA) SyncPool .475 .599 .499 .333 0 llm-jp-3-3.7b (JA) Coin (ours) .501 .737 .880 .895 0 - The authors state: SyncPool and coin projection both match ordinary sampling and recover every completed message, but on the full vocabulary SyncPool utilization drops to 12.9% (EN), 43.3% (ZH), 33.3% (JA), while coin projection maintains 88.1%, 93.6%, 89.5%.
- On the full vocabulary, coin projection's utilization is 2.16–6.85 times that of SyncPool (Table 4 Total column: EN 6.85, ZH 2.16, JA 2.69).
- Exception: for Chinese at k ≤ 1024 the two are close (e.g., at k=256, SyncPool .707 vs coin .757), because common Chinese characters are mutually prefix-free three-byte strings (Section 3).
Mechanism of stop entropy and hub tokens (Section 3, Figure 2)
- What was measured: decompose each step's Hstr into Hroot + Hbranch + Hstop, averaged over 3,200 ordinary sampling states, with Hhom < 10⁻⁴ bits.
- Results: ambiguous text is rare (at most 11 non-canonical tokenizations per 1,000 tokens, Appendix F: EN 2.7, ZH 4.1, JA 8.0), but Hstop accounts for 7.2–9.0% of Hstr in every setting; Hbranch rises from 4–11% at k=16 to 51–77% on the full vocabulary.
- The authors' interpretation: SyncPool's capacity drop comes from a few hub tokens—the English space token's tree averages 62–88% of probability and produces 62–89% of Hbranch but only 9% of Hstop; Chinese and Japanese at large k have single-byte UTF-8 lead bytes (e.g., 0xE5, 0xE3) merging entire subtrees, and in Japanese on the full vocabulary a single 0xE3 token produces 31% of Hbranch.
Security (KLsec) and the cost of filters
- SyncPool, coin projection, and Native have KLsec = 0 in all cells; Basic pushes mass toward leaves, so utilization can exceed 1 (e.g., English k=4096 is 1.172), but KLsec reaches 1.34 nats/step.
- MWIS and Stepwise are not exact: for English at k=4096, KLsec is .102 and .0035 nats/step respectively; hub-drop English full vocabulary is .0059. The authors note that summing per-step KL over T steps equals the sequence divergence, giving an upper bound on the text divergence visible to the warden.
- Native failures: out of 600 messages per language, 19 (EN), 21 (ZH), 48 (JA) were lost (Table 2 footnote); Table 9 shows that of 88 failures, 48 (55%) are silent wrong bits—decoding terminates normally but the bits do not match, and the receiver cannot detect this without an integrity tag.
Can the decomposition predict the gain (Section 5.3, Figure 4, Table 4)
- What was measured: compare the predicted gain (Hstr − Hstop)/Hroot computed from ordinary sampling forward passes with the end-to-end utilization ratio.
- Results: the 18 cells' points lie along the diagonal, with predicted gain rising from 1.14 to 6.46 for English, 1.07 to 2.60 for Japanese, only 1.15 for Chinese at k=4096, jumping to 2.27 on the full vocabulary; points off the diagonal are all above it, and the authors state the prediction is conservative.
- The message-averaged relative deviation |Msg/Pred − 1| averages 3.9% and is at most 9% (Appendix C).
Other ablations and analyses
- Computational cost (Table 8): English per-step projection is 12.4 ms (k=4096) and 28.0 ms (full vocabulary), versus 17.8 ms for the forward pass; the MWIS solver takes 39.1 ms and Stepwise 112.8 ms (k=4096).
- Longer messages (Table 10): full vocabulary, 512/1,024-bit messages, 15 contexts per language; coin projection recovers every completed message (Util .888–.935), SyncPool is ≤ .415 in every setting, and Native fails exactly on the affected text (e.g., Chinese 1,024 bits, 6/15 errors).
- hub-drop ablation (Section 3): on the full vocabulary it retains 82.0%/84.3%/83.3% of Hstr, below coin projection's budget for every model, k, and threshold τ ∈ {0.01, 0.05, 0.1, 0.2}, and the distribution is no longer exact.
- Sender regeneration (Appendix G): estimated from the affected-text proportion, the regeneration probability r is 3.2%/3.5%/8.0% (128 bits), with distribution shift at most −log(1−r) nats/message; at 1,024 bits r reaches 13–40%.
- Numerical verification (Appendix B, Table 3): Proposition 1 and Theorem 2 are verified pointwise on 300 random prefix forests, with maximum residual 2.22×10⁻¹⁶; along generated text, the ratio of encoder input entropy to budget is 0.997–1.003 (all 18 cells).
What are some points that can be further explored?
The authors list four types of limitations: the scope of the bound, the cost of Hstop, computation and precision, and experimental scale.
Limitations and future directions noted by the authors
- Scope of the bound (Limitations): the upper bound only covers online, single-history schemes that never fail and are exact for all full-support models; schemes that only need to be exact for models with few non-canonical continuations can pay less; relaxing token-level exactness to text-level exactness does not increase the single-history budget, and exceeding Hstr − Hstop requires the sender to query other tokenizations of the text.
- Capacity (Limitations): coin projection still pays Hstop, i.e., 7.2–9.0% of the entropy in the measurements; exceeding it requires multiple histories or nonzero divergence.
- Computation (Limitations): like all provably secure schemes, the receiver needs the model; on the full vocabulary, CPU projection takes 28.0 ms per step (English), versus 17.8 ms for a 3B model forward pass; bit-identical agreement depends on a fixed computation order.
- Finite precision (Limitations): exactness is a property of the distribution handed to the encoder; the arithmetic coder still rounds probabilities; Cao et al. (2026a) can detect arithmetic-coding and Meteor steganographic text from low-probability tokens eliminated by rounding—the authors state this applies equally to all compared methods, and coin projection can be paired with any encoder that closes this gap; divergence is a per-step quantity, and the paper does not analyze information leaked by text length.
- Experimental scale (Limitations): models are 3–4B parameters, covering three languages and two tokenizer families; the authors state that larger models in the same family share the tokenizer, so the prefix forest and hub tokens are unchanged and only the next-token distribution changes; the pure forward-pass prediction of Section 5.3 can estimate the gain from their forward passes, but the authors did not measure extraction end-to-end above 4B.
- Code release (Ethics Statement): the authors plan to release code for research use.
Experimental coverage
- Models tested are Llama-3.2-3B, Qwen3-4B-Base, llm-jp-3-3.7b, 3 in total, all base models, corresponding to English, Chinese, and Japanese (Section 5.1).
- Extraction experiments use 100 paired 128-bit messages per cell, with 6 levels of k; filters (Basic, MWIS, Stepwise) only run up to k=4096, and the full-vocabulary cells are not reported in the paper (Table 2).
- Longer-message experiments use the full vocabulary, 512 and 1,024 bits, 15 contexts per language (Table 10).
- All methods share the arithmetic coder of Yan and Murawaki (2025); the paper does not run end-to-end experiments with other distribution encoders (Section 5.1 states the interface is compatible, and Appendix D gives pseudocode).
- Multi-history schemes (such as LAS) are not compared head-to-head with coin projection in this paper's experiments; Appendix H only restates the results of Feng et al. (2025) and compares call counts.
Summarize the main content of the paper
The capacity upper bound for single-history provably secure steganography is Hstr − Hstop; coin projection attains this bound and preserves the distribution.
A theory and methods paper on provably secure linguistic steganography, by Feng Jiang of Hangzhou Dianzi University.
- Problem: Steganographic encoders assume the receiver recovers the sender's tokens, but the text channel transmits only text, and re-tokenization ambiguity can lose the message; existing schemes either change the distribution (filters), have capacity that decreases as the vocabulary grows (SyncPool), or call the model multiple times per step (multi-history schemes).
- Method: Organize the string distribution of one step into a prefix forest, decomposing Hstr into Hroot + Hstop + Hbranch (Lemma 1); prove that any exact, zero-error single-history scheme for all full-support models can only encode on prefix-independent candidate sets at each step, embedding at most Hstr − Hstop bits (Theorems 1, 2); coin projection uses shared random numbers to fix each node's stop decision in advance, leaving root and branch selection to an arbitrary distribution encoder, attaining this bound with one model call per token.
- Result 1: On English, Chinese, and Japanese C4 continuation benchmarks, ambiguous text is at most 11 per 1,000 tokens, but Hstop accounts for 7.2–9.0% of Hstr at each step (Figure 2).
- Result 2: Over the full vocabulary, SyncPool utilization drops to 12.9% (EN), 43.3% (ZH), and 33.3% (JA), while coin projection maintains 88.1%, 93.6%, and 89.5%, 2.16–6.85 times the former, with KLsec = 0 and every completed message recovered (Tables 2, 4).
- Result 3: Native loses 19/21/48 of 600 messages per language, of which 55% are silent bit errors (Table 9); filters and hub-drop have nonzero KLsec and are no longer exact.
- Result 4: The purely forward decomposition quantity (Hstr − Hstop)/Hroot predicts end-to-end gains, with an average deviation of 3.9% across 18 cells (Figure 4, Appendix C).
- Authors' conclusion: A single-history receiver must pay for the stop entropy of word and morpheme prefixes in the candidate pool, even when ambiguous text is rare; coin projection does not overpay, and leaves space and UTF-8 hub subtrees to the encoder. The authors also note: the upper bound holds only for exact schemes universal to full-support models, Hstop itself cannot be avoided, and the experimental scale is 3–4B parameters across three languages.