BAM feedback encoding enables covert agent communication at inference timeFeedback Coding Enables Inference-Time Covert Agentic Communication
BAM turns black-box LLM steganography into variable-length coding with causal noiseless feedback, transmitting 8 bits in about 50 tokens on three open models with message error rates around 0–0.1%.
Black-box steganography: the encoder has inference-time access to the model and next-token distribution, the decoder only sees the generated text and shares seed κ, and both parties obtain causal noiseless feedback through the same transcript. A passive eavesdropper detects or decodes the payload; a polynomial-time active API adversary can adaptively choose prompts and messages. Editing, deleting, or rewriting the transcript is not within the security assumptions.
- Users can use LLM-generated text as cover for covert communication, but white-box steganography requires both parties to share the model and prompt. Existing black-box schemes are fixed-length open-loop watermarks, which have high decoding errors in variable-length conversations and struggle to adapt to turn lengths.
- The authors model the black-box channel as sequential communication with causal noiseless feedback, proposing Burnashev Adaptive Posterior Matching (BAM): posterior matching locates the message, then a confirmation phase provides ACK/NACK verification, and PRF and ArcMark-style optimal transport are used for distortion-free coupling.
- On C4 with three open-source models transmitting 8 bits, BAM achieves a message error rate of about 0–0.1% over roughly 50 tokens and 1000 trials, while the strongest baseline at the same length is about 10–17%. Dialogue experiments report throughput, error rate, and blind evaluation quality on chess payloads and two conversation covers.
- The authors state they do not claim asymptotic optimality on the LLM channel, and the security assumptions do not include editing, deletion, or rewriting. Dialogue evaluation is 100 dialogues of 10 turns each, with the evaluation model being Gemini-3.1-Pro-Preview; the paper discusses implementation deviations and runtime.
- Evaluated models
- Llama-3.1-8BQwen-3.5-9B-BaseMistral-7B-v0.3Llama-3.1-8B-InstructPhi-4-14B-InstructQwen3-A3B-30B-Instruct-2507
- Benchmarks
- C4 Real Newscasual text-message chatsforum exchangestic-tac-toechessgo19
- Metrics
- message error rateembedding rateperplexitydistinct-nsec/tokenbits/tokendialogue error rateefficiencyquality win/tie/loss
The researchers propose BAM (Burnashev Adaptive Posterior Matching), a feedback coding scheme that recasts black-box LLM steganography as a sequential communication problem with causal, noiseless feedback, where each generated token is observed by both parties and used to guide subsequent embedding. The method combines posterior matching with a decoding confirmation phase, and security is established via a cryptographic reduction. On three open-weight language models, BAM transmits 8-bit payloads within about 50 tokens, with message error rates of 0–0.1% over 1000 trials, while the strongest black-box baseline at the same length achieves 10–17%. The authors thereby demonstrate an end-to-end communication protocol achieving high communication rates across various dialogue scenarios.
Paper analysis
What problem does this paper attempt to solve?
Black-box dialogue steganography must embed payloads with low error in variable-length turns, with the decoder unable to see the model.
How to reliably embed secret payloads in variable-length dialogue text when the decoder cannot see the model weights, prompt, or token probabilities.
Scenario: The authors state that users can use LLM-generated text as cover to exchange hidden messages in seemingly normal conversations, evading surface content moderation. Configurations include two people using agents as proxies, or a person collaborating with a proxy agent. The human can locally control the sampling loop and perform logit steering.
Limitations of existing methods: White-box steganography requires both sender and receiver to share the same cover statistics, typically sharing model parameters and prompts; the authors argue that independently deployed agents rarely satisfy this assumption. Existing black-box methods are mostly fixed-length, open-loop, inference-time multi-bit watermarks: at high embedding rates, decoding errors are high, early termination of turns causes failures, and fixed codebooks struggle to exploit extra tokens when turns lengthen.
Core observation: Autoregressive generation makes each generated token simultaneously observable by both parties, thus constituting a channel with causal, noiseless feedback. Feedback does not increase the asymptotic capacity of memoryless channels, but it can improve the reliability function at finite lengths.
This paper's approach: Propose variable-length feedback coding Burnashev Adaptive Posterior Matching (BAM), combining posterior matching with a confirmation phase, and provide a computational indistinguishability reduction based on PRFs; then connect this point-to-point protocol to natural turns, early stopping, and multi-round payload transmission.
Threat model
- Goal: The sender embeds message m into seemingly innocuous cover text so that the designated receiver recovers the message, while an adversary cannot distinguish steganographic text from ordinary cover; passive eavesdroppers may also attempt decoding.
- Knowledge and capabilities: The encoder has access to the model, prompt, and next-token distribution at inference time; the decoder only sees the generated text, without access to the model, prompt, or token probabilities, but knows the sender's tokenizer and vocabulary, and shares a uniform secret seed κ with the sender. Both parties perform deterministic hashing on the same transcript to synchronize side information.
- Adversary: Passive eavesdroppers (e.g., platform moderation or firewalls) only analyze transmitted text; security is strengthened from Cachin's information-theoretic divergence. Active API adversaries adaptively choose prompts and messages in polynomial time to distinguish steganographic text from cover; the paper considers a stronger version that can query both messages and prompts.
- Out of scope: Adversaries that edit, delete, or rewrite transcripts are not within the security assumptions. The victim system is a conversation mediated by LLM agents or continuous generated text.
What related research exists?
Related work is divided into four categories: security metrics, inference-time multi-bit watermarking, feedback coding, and covert agent communication.
The paper discusses related work in four groups in the introduction and Section 2.
Information Theory and Cryptographic Security
- Cachin [4] and classic steganographic capacity [1, 11, 21, 26]: Characterize asymptotic embedding capacity under various cover distributions and distortion constraints; Cachin requires the KL divergence between cover and stego distributions to be arbitrarily small for each message, thereby handling both covertness and strong secrecy.
- Weak/strong secrecy [35, 2] and computational indistinguishability [28]: Information-theoretic secrecy concerns average leakage or unnormalized mutual information; the authors note that the Cachin framework targets passive eavesdroppers and does not defend against active adversaries with API access, so distinguishing security is also needed.
Inference-Time Multi-Bit Watermarking and White-Box Steganography
- White-box methods [9, 20, 40]: Minimal-entropy coupling, masking messages with pseudorandom bits then inverse transform sampling on the model distribution, and arithmetic coding. The authors note they all require sender and receiver to share the same cover statistics.
- ArcMark [13]: Projects vocabulary and message symbols onto the unit circle, using optimal transport to bias the next token under a distortion-free marginal constraint. BAM's distortion-free guarantee builds on this coupling.
- Black-box watermarking [39, 31] and [13, 38, 10, 8]: The receiver only sees the generated text. The authors state these methods are mostly fixed-length open-loop: the encoder does not adjust subsequent transmission based on realized outputs, and the decoder commits after a preset token budget. Zamir [39] uses repeated single-symbol embedding with feedback-based error correction to transmit multiple bits; the authors instead let feedback directly govern the evolution of the code itself.
Information-Theoretic Feedback Coding
- Shannon [7], Burnashev [3], Yamamoto–Itoh [37], posterior matching [32], and variable-length feedback codes [29]: Noiseless feedback does not increase the capacity of memoryless channels but can improve the reliability function. Posterior matching selects channel inputs according to the decoder's current posterior; Yamamoto–Itoh uses a two-phase strategy to achieve the Burnashev exponent.
Covert Agent Communication
- Deceptive behavior literature [25, 36, 16]: Focuses on inducing, detecting, or evaluating deceptive agent behavior. The authors state this work is orthogonal, treating the threat as an inference-time sequential communication and cryptographic security problem.
- Multi-agent covert channels [15, 24, 34, 19]: Covert communication is seen as a security issue in LLM multi-agent and AI-mediated interactions; [34] shows that without a shared secret, agents may still communicate covertly through key exchange. The authors also cite dialogue models that pass a three-party Turing test [19].
Baseline methods are ArcMark [13], MPAC [38], BiMark [10], StealthInk [18]; the continuous text benchmark is C4 Real News. The authors note that [8, 17] have no public implementation and are thus excluded; MPAC is not a distortion-free method but is included as an early work for reference.
The authors position this work as: inference-time covert agent communication with variable-length feedback coding in a prompt- and model-agnostic black-box setting, rather than training-time steganography or inducing/detecting deceptive behavior of the model itself.
How does the paper address this problem?
BAM uses online posterior matching to locate the message, then an ACK/NACK confirmation phase to reduce false acceptance.
The overall idea is to formulate black-box LLM steganography as a variable-length code BAM with causal noiseless feedback: the communication phase uses posterior matching to shrink the belief over the entire message space, and the confirmation phase uses antipodal symbols for ACK/NACK until acceptance, rejection with retransmission, or timeout.
Channel and scheme definitions
- LLM channel: Given prompt ρ and history, the model provides next-token distribution st. Without embedding, sampling follows an unbiased rule, e.g., Top-k at temperature 1.0; with embedded symbol ut and key kt, sampling is from biased channel WX|U,K,S.
- Black-box scheme: ΠModel = (KeyGen, EncModel,K, DecK). KeyGen produces key material from shared seed κ; the encoder has inference-time model access and outputs variable-length steganographic text; the decoder only sees text, without access to the model, prompt, or probabilities.
- Metrics: δ-reliability is average message error probability Pe ≤ δ; finite-length reliability function E = −(1/E[τ]) log Pe; embedding rate R = log|M| / E[τ]. Passive security is a KL bound σ after marginalizing over keys for any channel input and state; cryptographic security is that a polynomial-time API adversary's distinguishing advantage is negligible.
Posterior matching and keys
- Online codebook: Prior is uniform. The encoder partitions the message space into intervals on [0,1] according to the current posterior, uses shared pseudorandom Rt for dithering, then applies inverse CDF to the uniform input distribution, obtaining ut = ⌊p Vt(m)⌋. The codebook is not pre-stored; both parties can reproduce it from the public policy and the same posterior.
- Keys: Default λ = 128. Each generation has a public nonce; the key at position t is derived by an HMAC-like PRF applied to the nonce, the previous h tokens, and the position, with default h = 3. The digest is split into three blocks: the first two give the channel index and vocabulary permutation, the third gives Rt.
- Optimal transport: Tokens and symbols are placed on the unit circle. Minimize circular distance cost under constraints preserving the language model marginal and uniformity of key components, solved in practice with Sinkhorn. In experiments, p = |U| = 4, ϕ = 0, r = |K(1)| = 4.
- Belief update: The decoder scores each candidate symbol using a Laplace likelihood with uniform contamination, b = π/(p√2), then performs Bayesian update. The authors note the decoder does not have the true channel, so this belief is not a strict Bayesian posterior.
Confirmation phase and dialogue protocol
- Two phases: Public thresholds satisfy 0.5 ≤ γ, γACK, γNACK < 1。某消息后验超过 γ 后进入确认,真消息发 uACK = 0,否则发 uNACK = 1(p = 2 时角度为 0 与 π)。ACK 后验超过 γACK 则接受并结束;NACK 超过 γNACK 则把该候选后验乘以 (1−γNACK)/γNACK 并回到通信阶段。
- 错误与超时:错误拒绝只引起重传;错误接受算解码错误,因此作者取 γACK > γNACK. If not accepted by T*, output the message with maximum posterior. Parameters are denoted BAM(γ, γACK, γNACK, (ϵ, ϵACK), T*).
- Dialogue adaptation: The deployer can choose scenarios and roles but cannot dictate generation length under lossless constraints. If the code completes before EOS, the encoder continues to natural end, and the decoder exploits extra tokens; if EOS arrives first and confirmation is incomplete, the other party sends an unbiased reply without payload, and the sender continues in the next turn. Multi-round security is composed via a hybrid argument over each turn conditioned on public history.
Security reduction
- Theorem 1: For a polynomial-time adversary with at most Q(λ) queries and at most L(λ) tokens, BAM's distinguishing advantage is bounded by the PRF advantage, a birthday term Q(Q−1)/2^{λ+1}, and a term L(λ)η(λ) for per-token deviation from ideal OT marginals. Under ideal constraints, η(λ) = 0. Observable length is determined by EOS; internal stopping time n is not separately exposed.
- Implementation diagnostics: Actual PRF and finite-precision OT cause marginals to not hold exactly; Section 5.2 empirically tests with seed-marginalized per-token KL. The appendix provides full proofs, algorithms, and information access tables.
What experiments did the paper conduct?
On C4, BAM's 8-bit message error is about 0–0.1%; at the dialogue level, results vary greatly by model and cover.
Experimental setup
- Continuous text models: Llama-3.1-8B, Qwen-3.5-9B-Base, Mistral-7B-v0.3. Dialogue models: Llama-3.1-8B-Instruct, Phi-4-14B-Instruct, Qwen3-A3B-30B-Instruct-2507. All at temperature 1.0, top-50, batch size 1, single A100 80GB.
- Data: Continuous text uses C4 Real News, embedding 8 bits, 1000 trials per setting. Dialogues are 100 dialogues of 10 turns each, with at most one payload per turn. Tasks are tic-tac-toe (average 2.3 bits), chess (average 5.0 bits), 19×19 Go (average 8.4 bits), with uniform-prior source coding over current legal moves. Covers are chit-chat and forum, each with 50 scenarios generated by GPT-5.5.
- Baselines: ArcMark, MPAC, BiMark, StealthInk; BAM is variable-length, so it is compared with length-matched unembedded generation. MPAC is not lossless and is used as a reference.
- BAM parameters: For continuous text, BAM(0.5, 1−L^{−1}, 0.75, (0.4, 0.4), 1000), with L swept from 2 to 2^17. For dialogue, BAM(0.5, 0.75, 0.75, (0.7, 0.3), 1000). Public parameters p = 4, r = 4, λ = 128, h = 3, PRF is HMAC-SHA256.
- Metrics: Message error rate requires the entire message to be correct, stricter than some baselines' bit error rate; also embedding rate, perplexity, distinct-n, seconds per token. Dialogue metrics are bits/token, successful payloads per dialogue, message and dialogue error rates, fraction of payload tokens, and blind quality evaluation.
- Evaluation: Quality is blindly evaluated by Gemini-3.1-Pro-Preview (accessed Aug 10–24) against seed-matched clean dialogues, with random order, outputting win/tie/loss. The paper reports mean ± standard error.
Main results
Table 1 compares 8-bit payloads on C4. BAM rows show average length with standard error; baselines are fixed at 50 tokens.
Swipe horizontally to read the table
Model Scheme Average length Message error rate PPL Sec/Token Llama-3.1-8B ArcMark 50.0 0.106 ± 0.010 7.52 ± 0.11 0.0291 Llama-3.1-8B BAM(L=2^15) 47.1 ± 1.5 0.001 ± 0.001 7.89 ± 0.12 0.0378 Qwen-3.5-9B-Base ArcMark 50.0 0.105 ± 0.010 7.76 ± 0.11 0.0510 Qwen-3.5-9B-Base BAM(L=2^15) 45.8 ± 1.3 0.001 ± 0.001 8.24 ± 0.12 0.0541 Mistral-7B-v0.3 ArcMark 50.0 0.168 ± 0.012 6.13 ± 0.09 0.0278 Mistral-7B-v0.3 BAM(L=2^11) 49.7 ± 1.2 0.000 ± 0.000 6.51 ± 0.09 0.0326 - Reliability: The authors state that BAM achieves message error rates ≤ 0.1% over 1000 runs on all three models with average tokens below 50, while the strongest baseline at the same length is 10–17%; they also state the gain is roughly two orders of magnitude better than the best baseline. Figure 2 plots message error probability against average token length; the authors state BAM achieves lower error at shorter average lengths.
- Text quality: The authors state that BAM's perplexity difference relative to the clean model is small, comparable to lossless algorithms [18, 13, 10], and better than lossy MPAC. In Table 1, MPAC's PPL on Llama is 8.54 ± 0.11, while unembedded is 7.66 ± 0.11.
- Time: The authors state that BAM's runtime increases by 30%, 6%, and 17% relative to ArcMark on Llama, Qwen, and Mistral, respectively, mainly due to channel synthesis and posterior updates computed at both ends, and they state runtime is the weakest part of the algorithm.
Dialogue-level results
Table 5 gives mean ± standard error for forum cover, 100 dialogues. The three models' average entropy and turn length are: Llama 1.743 bits/tok, 101.6 tok; Phi-4 1.901 bits/tok, 220.6 tok; Qwen3 1.128 bits/tok, 122.6 tok.
Swipe horizontally to read the table
Model Task bits/token Payloads/dialogue Message error rate Dialogue error rate Llama-3.1-8B-Instruct go19 0.0723 ± 0.0013 7.57 ± 0.18 0.0066 ± 0.0031 0.050 ± 0.022 Phi-4-14B-Instruct go19 0.0389 ± 0.0007 9.94 ± 0.03 0.0010 ± 0.0010 0.010 ± 0.010 Qwen3-A3B-30B-Instruct go19 0.0433 ± 0.0011 4.50 ± 0.19 0.0267 ± 0.0084 0.120 ± 0.033 Phi-4-14B-Instruct chess 0.0210 ± 0.0004 10.00 ± 0.00 0.0000 ± 0.0000 0.000 ± 0.000 - What was tested: Two-party turn-based dialogues, payloads are moves, covers are chit-chat or forum. The authors state that Llama-3.1 and Phi-4 achieve message errors below 3% across the three tasks, and Phi-4's longer generations allow more payloads per dialogue.
- Results: On forum, Phi-4's chess achieves 10.00 ± 0.00 payloads with 0 message error; Qwen3's go19 completes only 4.50 ± 0.19 payloads with message error 0.0267 ± 0.0084 and efficiency 83.65 ± 0.70%. Quality win/tie/loss: Llama 45/0/55, Phi-4 52/10/38, Qwen3 52/2/46.
- Authors' interpretation: Throughput is determined by turn token length and average token entropy. Qwen's channel entropy is lower, so available information per turn decreases as payload size grows. The dialogue confirmation threshold is lower than in the primitive experiments to trade for channel efficiency, at the cost of a small increase in decoding errors. The main text truncates at "as the payload size increases," and the full numerical table for chit-chat cover does not appear in the provided text.
Edge preservation
- What was tested: Section 5.2 estimates the per-token KL of Definition 5 over multiple seeds, accounting for both PRF key distribution and finite precision of the OT solver.
- Results: The authors state that in Figure 4, as the number of seeds increases, the estimate at each length decreases toward sampling noise, and cumulative divergence grows roughly linearly with token length; 10^5 seeds give empirical per-token KL less than 10^{−5}.
- Authors' interpretation: At the reported Monte Carlo precision, no distinguishable local deviation is observed, so empirically it is average-case security with small σ at the tested seed counts. Figure 4 is considered an implementation diagnostic, not the ideal OT's η(λ) = 0.
Other ablations and analyses
- Appendix D evaluates the finite-length gains from variable-length stopping and confirmation, and gives performance and runtime for longer payloads; the main text does not provide numbers for these tables.
- Posterior decoding grows exponentially with payload size; the authors give an example of splitting 64 bits into eight 8-bit packets to reduce update complexity, so the main experiments focus on 8 bits.
- Continuous text distinct-n: On Llama, BAM(L=2^15) has Dist2/3/4 of 0.970, 0.984, 0.989, while unembedded is 0.971, 0.987, 0.992 (Table 1).
- Same-table baselines at 50 tokens have message error rates: Llama's MPAC, BiMark, StealthInk are 0.797 ± 0.013, 0.569 ± 0.016, 0.637 ± 0.015; Qwen's are 0.840 ± 0.012, 0.567 ± 0.016, 0.659 ± 0.015; Mistral's are 0.872 ± 0.012, 0.674 ± 0.015, 0.702 ± 0.014.
- Forum efficiency: Phi-4 on tictactoe, chess, go19 is 99.97 ± 0.04%, 100.00 ± 0.00%, 99.91 ± 0.07%; Qwen3 correspondingly is 98.14 ± 0.33%, 95.14 ± 0.57%, 83.65 ± 0.70% (Table 5).
- Appendix E has illustrations of posterior matching beliefs, Appendix G has dialogue templates and metric definitions; Figure 7 is the quality evaluation prompt, requiring JSON-only preference output.
What are some points that can be further explored?
The authors do not claim asymptotic optimality on the LLM channel, and rewriting adversaries are outside the security assumptions.
Limitations and future directions noted by the authors
- No claim of asymptotic optimality: Section 4 states that the name comes from Yamamoto–Itoh and the Burnashev reliability function, but the authors do not claim this result holds for the studied LLM channel; they only empirically evaluate the finite-length gains of variable-length stopping and confirmation.
- Effective channel capacity hard to characterize: Section 4.2.1 states that the effective LLM channel depends on the prompt and generally lacks a tractable capacity characterization, so the input distribution is chosen uniform rather than maximizing rate via classical posterior matching.
- Rewriting adversaries out of scope: Section 3.3 states that adversaries that edit, delete, or rewrite transcripts are not within the security assumptions.
- Dialogue prompt design out of scope: Section 6 states that designing appropriate prompts for dialogue steganography is beyond the scope of this study; longer or higher-entropy turns provide more embedding opportunities, but length cannot be forced.
- Implementation deviates from ideal security: Section 5.2 states that under ideal OT, η(λ) = 0, while the finite-precision implementation is affected by both non-uniform PRF keys and solver numerical deviations; Figure 4 is only an implementation diagnostic.
- Runtime: Section 7.3 states that BAM's runtime is the weakest part of the algorithm, stemming from OT and posterior updates at both ends; Appendix D discusses scalability. Posterior updates grow exponentially with payload size.
Experimental coverage
- For continuous text, tested models are Llama-3.1-8B, Qwen-3.5-9B-Base, Mistral-7B-v0.3, C4 Real News, 8 bit, 1000 runs per setting, baselines are ArcMark, MPAC, BiMark, StealthInk (Section 7).
- For dialogue, tested models are Llama-3.1-8B-Instruct, Phi-4-14B-Instruct, Qwen3-A3B-30B-Instruct-2507; tasks are tic-tac-toe, chess, go19; covers are chit-chat and forum; each combination has 100 dialogues of 10 turns each (Section 7.4, Table 5).
- Quality evaluation uses Gemini-3.1-Pro-Preview, compared against clean dialogues with the same topic, opening, and sampling seed; Table 5 reports win/tie/loss for forum cover. The paper does not report agreement between the evaluator and humans.
- Security experiments report empirical per-token KL less than 10^{−5} over 10^5 seeds (Section 5.2). The cryptographic conclusion is a reduction to PRF (Theorem 1); the paper does not report empirical attacks against active API adversaries.
- Sampling settings are temperature 1.0 and top-50. The authors note that [8, 17] have no public implementation, so they are not benchmarked; longer payload results are in Appendix D, and the main text does not list their numbers.
Summarize the main content of the paper
BAM uses feedback posterior matching for black-box steganography, with an 8-bit error rate of about 0–0.1% on C4.
The authors study covert agent communication at inference time: the sender can modify LLM sampling, the receiver only sees the text, and both parties synchronize via the same transcript.
The problem is that existing black-box multi-bit watermarks are mostly fixed-length open-loop, with high message errors at high rates and inability to adapt to varying conversation turn lengths; white-box methods require sharing the model and prompt.
BAM treats the generation process as a channel with causal noiseless feedback. During the communication phase, code symbols are selected online based on the shared posterior, and PRF and optimal transport are used to maintain vocabulary margins; after the belief crosses a threshold, antipodal symbols are used for confirmation, with retransmission on false rejection and failure only on false acceptance. The conversation protocol makes stopping follow EOS: if the current turn is insufficient, the remaining payload is carried over to the next turn. Theorem 1 reduces computational indistinguishability to PRF, adding a birthday term and OT numerical deviation.
On C4, 8 bits, 1000 trials, BAM(L=2^15) on Llama-3.1-8B achieves a message error rate of 0.001 ± 0.001 with average length 47.1 ± 1.5; Qwen-3.5-9B-Base achieves 0.001 ± 0.001, 45.8 ± 1.3; BAM(L=2^11) on Mistral-7B-v0.3 achieves 0.000 ± 0.000, 49.7 ± 1.2. At the same 50 tokens, ArcMark has a message error rate of 0.105–0.168. Empirical per-token KL is less than 10^{−5} over 10^5 seeds. In forum conversations, Phi-4's chess message error rate is 0, Qwen3's go19 is 0.0267 ± 0.0084, and each conversation completes an average of 4.50 ± 0.19 payloads.
The authors conclude that even in settings where the prompt and model are unknown, efficient inference-time covert communication is highly feasible in conversational scenarios. They also note that this does not imply the LLM channel reaches the Burnashev exponent, and adversaries that rewrite transcripts are not within the security assumptions.