The Anatomy of Token-Level Steganography
Why Deterministic Replay Fails on Real Silicon
(a + b) + c does not strictly equal a + (b + c) in IEEE 754 arithmetic—the exact sequence of floating-point operations varies depending on thread scheduling, dynamic batch dimensions, and GPU clock throttling.
If the logit at index 4,112 is 14.800001 in batch run A and 14.800003 in batch run B due to thread scheduling differences, greedy argmax can flip between two nearly identical tokens. In a 1,000-token sequence, these microscopic floating-point deviations trigger cascade divergence: once one token flips, the subsequent autoregressive context diverges completely. You cannot detect steganographic manipulation with a simple string diff or bitwise parity check.
Statistical Likelihood Scoring at the Edge
PYTHON
# Pseudo-verification step running in isolated verification worker
with torch.inference_mode():
ref_logits = trusted_model(prompt_tokens + generated_tokens[:-1]).logits
target_log_probs = log_softmax(ref_logits, dim=-1)
token_likelihoods = target_log_probs.gather(dim=-1, index=generated_tokens.unsqueeze(-1))
# Flag if cumulative log-likelihood drops into the anomalous adversarial tail
anomaly_score = -token_likelihoods.sum().item() / len(generated_tokens)10^-2), an attacker is forced to dilute their hidden bitstream so severely across token selections that the exfiltration rate drops to less than 0.5% of the raw output bandwidth. Stealing tens of gigabytes of quantized weights suddenly shifts from a weekend project to a multi-year effort that cannot escape operational telemetry.
Operationalizing Verification Without Killing Latency
sock_addr hooks). The inference pods should only communicate over a single Unix domain socket or mutual-TLS tunnel directly to an ingress/egress proxy. The worker must have zero ability to open raw sockets, resolve DNS, or query internal cloud metadata endpoints (169.254.169.254).
Second, implement tiered verification. Run an in-line lightweight statistical test on the API gateway that tracks token rank percentiles. Because calculating full forward passes is expensive, the inference runtime can be required to return its top-5 logit metadata alongside the tokens over an authenticated internal transport. The gateway calculates a running Kolmogorov-Smirnov test on token rank distributions across streaming sessions. If a worker pod's output distribution shifts into anomalous territory, the gateway immediately terminates the worker's session, isolates the container, and diverts incoming client traffic to healthy replicas.
Third, leverage an asynchronous shadow queue. A small pool of trusted GPU workers (occupying roughly 5% to 10% of total cluster compute) drains an audit queue, re-evaluating randomly sampled request-response pairs against the ground-truth weights using full GM-LS scoring. Because model weight exfiltration requires sustained, long-term output streaming across millions of tokens, probabilistic sampling provides overwhelming statistical power. An attacker cannot selectively leak weights on unsampled requests without knowing which requests are queued for auditing.
Securing AI infrastructure requires moving past the naive boundary model where text outputs are considered inherently safe. When GPUs execute billions of parameters across dynamic pipelines, the token stream is a side-channel. Implementing rigorous, distribution-aware statistical verification at the egress proxy turns the mathematics of language models against the attackers, closing the exfiltration hole without crippling cluster economics.