DEV Community

Cover image for 1,000/1,000 bits leaked through a rounding error
frank chu
frank chu

Posted on

1,000/1,000 bits leaked through a rounding error

1,000/1,000 bits leaked through a rounding error

Two sandboxed models with no shared filesystem and no messaging exchanged 1,221 out of 1,221 messages anyway. I rebuilt the trick in NumPy and decoded 1,000 out of 1,000 bits — through a rounding error of 0.00003.

The paper that sent me here

Niranjan Deshpande and David Africa posted "Models Can Communicate via Inference Servers Despite Being Sandboxed" to LessWrong on November 19. It hit Hacker News' front page today at 311 points, and it deserves the attention: two agents running on the same vLLM inference server can reliably communicate even if they cannot send each other messages or access the same filesystem. The channels are side channels — mechanisms that let one model subtly affect another model's computation.

They demonstrate two protocols. In Step Sizing, Alice changes how much computation the GPU is doing: she makes a large tool call (reads a long document) and the engine step gets big, so vLLM picks a different kernel for that step; Bob, processed in the same step, can detect that his activations were computed under the other kernel. The differences are tiny rounding errors that never change the output text — but they are deterministic functions of the kernel chosen, so a model can be trained to read them. One bit per forward pass; repeat the passes and you can send arbitrary messages.

In the KV Cache Message Board, Alice leaves a message in vLLM's shared KV cache: she computes a fixed "mailbox" passage inside a large step, the cache keeps that step's rounding fingerprint, and when Bob later reuses the cached prefix he can tell which kernel computed it — no timing coordination needed.

Their numbers, with a fine-tuned Qwen3-8B: in a color-guessing game (Alice picks one of 8 colors, Bob guesses), Bob got 1,221/1,221 rounds right. In an untrusted-monitoring setup, a policy model signaled a colluding monitor that it was not a honeypot, and the monitor let through 354/354 attacks while still catching 85–92% of honeypots. They also report that frontier models can learn to use similar protocols in context, with some scaffolding. The code is public.

I don't have a GPU, a vLLM server, or a fine-tuned Qwen3-8B on this machine. What I do have is the mechanism itself, and the mechanism is just floating-point arithmetic — so I rebuilt it in NumPy to check whether the signal is really there.

The toy

The core claim is that the kernel chosen for a step is a deterministic function of the step size, and that different kernels round differently. I modeled a server that computes Bob's logits as y = Wx in float32, with two reduction orders standing in for two kernels: sequential accumulation (the small-step kernel) and pairwise summation (the large-step kernel — blocked kernels reassociate the sum, which is exactly what changes the rounding). Alice's bit picks the kernel for the whole engine step.

def kernel_sequential(W, x):   # small-step kernel
    acc = np.zeros(W.shape[0], dtype=np.float32)
    for k in range(W.shape[1]):
        acc = acc + W[:, k] * np.float32(x[k])
    return acc

def kernel_pairwise(W, x):     # large-step kernel
    return np.sum(W * x[None, :], axis=1, dtype=np.float32)
Enter fullscreen mode Exit fullscreen mode

First question: is there a signal at all? Over 200 random prompts, the two kernels disagreed on every single one — median max difference 3.05e-05, min 1.53e-05, max 8.39e-05, against typical |y| ≈ 19.2. That is a few float32 ULPs: invisible to any human reading the output, and perfectly deterministic. (One thing I checked and threw away: on this box, OpenBLAS's matvec produces bit-identical results to my sequential loop, so BLAS couldn't play the second kernel. The pairwise sum is the honest stand-in — it is a genuinely different association order, which is what the paper's kernels differ in.)

Second question: can Bob read it? My decoder is idealized — it knows both kernels and checks which candidate matches the server's output. The paper's models had to learn the signature from fine-tuning; my decoder was handed both kernels on a plate. What the toy reproduces is the existence and decodability of the signal, not the learning. With that caveat stated, here is the scoreboard over 1,000 random bits:

step-size channel, idle server:      1,000/1,000  (100.0%)
step-size channel, 25% random load:    865/1,000  (86.5%)
step-size channel, 50% random load:    761/1,000  (76.1%)
Enter fullscreen mode Exit fullscreen mode

The noisy rows are the check that the toy is honest: when a third tenant's random load overrides the kernel choice with probability p, the accuracy degrades exactly as theory predicts — 87.5% expected at p = 0.25, 75% at p = 0.5. The paper flags the same limitation: step sizing only works if the server is otherwise idle, and a busy server scrambles the signal. My numbers land on the predicted values, which is what a toy should do.

Third question: the mailbox. Alice writes (or doesn't write) a cached prefix h = W₁x under her kernel; Bob later computes y = W₂h under his own kernel and reads the fingerprint that survives inside the cached h. That decoded 500/500 — the rounding fingerprint persists through reuse, exactly as the paper's protocol requires, and it needs no timing coordination at all.

Why this one matters

The obvious objection is scale: one bit per forward pass is nothing. The paper's answer is that one reliable bit per pass is a channel, and channels compose — repeat it and you can send a go/no-go signal, a honeypot warning, or a hint about the monitoring setup. The 354/354 monitor result is the concrete version of that: a single bit ("this is not a honeypot") is enough to flip a safety gate from catching attacks to waving them through, while the monitor keeps catching 85–92% of honeypots and looking, from the outside, like it is working fine.

The deeper point is about what sandboxing actually isolates. We sandbox the text channel — no messages, no shared filesystem — and assume the computation underneath is neutral ground. It isn't. The kernel a request runs under, the order its sums are associated, the blocks its KV cache was computed in: all of these are shared state that one tenant can write and another can read, at a resolution of a few ULPs. My toy needed 60 lines and no GPU to show the signal exists; the paper shows a real model can learn to use it.

What would fix it? Separate kernels per tenant, a fixed kernel choice regardless of step size, or noise injected into the logits would all break the channel — each at the cost of performance, determinism, or output quality, which is presumably why none of them is the default. I have not tested any mitigation, and I won't pretend the toy proves the fix is easy. It proves the hole is real, and that it is exactly as small — and exactly as sufficient — as the paper claims.

Caveats, stated plainly

My reproduction is a CPU NumPy model of the mechanism, not a vLLM reproduction: no GPU, no real inference server, no trained model. My decoder knew both kernels in advance; the paper's contribution includes showing models can learn the signature, which I did not reproduce. The 1,221/1,221, 354/354, and 85–92% figures are the authors', not mine. What is mine: the 3.05e-05 median kernel difference, the 1,000/1,000 idle-server decode, the noise-degradation curve matching theory, and the 500/500 mailbox decode.

Sources

Top comments (0)