arXiv:2610.11843cs.CROct 2026

Manuscript Offprint

arXiv:2610.11843

Anytime-valid detection of LLM weight exfiltration

Ines Ortega-Fernandez, Mateusz Kowalczyk, Keri Warr

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

A compromised LLM inference server can leak model weights by encoding payload bits in otherwise plausible token choices. A replay of the same prompt in a trusted server can expose such deviations, but benign numerical nondeterminism also causes token mismatches. Patient attackers can therefore hide within normal variation unless evidence is combined across responses. We introduce a prompt-level e-process that calibrates whole-response mismatch events on trusted benign traffic and accumulates evidence sequentially while, under a calibration-transfer assumption, controlling the probability of any false alarm over an unbounded monitoring horizon. We evaluate it on four models against a seed-blind attack and a stronger seed-aware attack that hides payload bits only in near-ties to remain stealthy, analyzing the channel capacity vs detectability trade-off. Compared with a hard per-token alarm, the e-process combines weak evidence across responses while providing explicit anytime false-alarm control.

1 Introduction

An LLM inference server holds the model weights and runs the sampler that turns logits into tokens. If compromised, it can leak model weights, private prompts, or arbitrary data by using different plausible next tokens to represent payload bits in ordinary-looking responses [Kaptchuk et al., 2021, de Witt et al., 2023]. An inference server must return tokens to its clients, so the output-token channel can be monitored and rate-limited, but not completely closed [Rinberg et al., 2025]. However, the model weights owner has an advantage: it can replay the same prompt in a trusted server (the verifier) and check whether the served token matches the one prescribed by the committed sampling seed. The sampling seed determines one prescribed token Y∗Y^{*} at every position, so a different served token is a token mismatch. Under Gumbel–Max sampling [Gumbel, 1954], the fixed seed determines one Gumbel offset per logit, and the largest perturbed logit defines Y∗Y^{*} (Eq. 1). These offsets define the prescribed sampling outcome, but small numerical differences due to GPU non-associativity can reorder a near-tie under the same offsets and cause a benign token mismatch [Karvonen et al., 2025]. Seed access therefore determines whether an attacker can exploit this cover to remain stealthy. A seed-blind attacker sees the model logits but not the offsets, so it cannot know Y∗Y^{*} or the gap to the winner (the seeded margin). It must choose a token to carry the payload before knowing how the offsets reorder the candidates, so its mismatches need not fall in the near-ties where benign token mismatches concentrate. A seed-aware attacker can reconstruct both Y∗Y^{*} and the seeded margin. It can restrict payload-carrying tokens to seeded near-ties and return Y∗Y^{*} elsewhere, making deliberate mismatches look like benign ones. Appendix C.1 gives more details about the attack implementation, the threat model, and their decoding assumptions.

Existing detection rules classify individual tokens from their fixed-seed score and raw-logit rank [Rinberg et al., 2025], but leave response-level pooling and escalation to deployment. A patient attacker may leave too little evidence in any one token, yet repeatedly applying a hard token alarm 40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: E-Values: From Statistics to ML.

eventually flags benign traffic unless error is controlled over the whole monitoring path. We close this gap with an e-process [Ramdas et al., 2023] over whole-response (rather than token-level) mismatch events: under the prompt-level null and a calibration-transfer assumption, it runs indefinitely while keeping the probability of any false alarm below a predefined rate. On four models, it detects every resampled seed-blind stream and several seed-aware settings. By contrast, the hard-alarm instantiation of Rinberg et al. [2025] can't detect the seed-blind stream while alarming on nearly every benign stream.

Related work. Our monitor builds on two closely related works. Rinberg et al. [2025] formalize weight exfiltration through the sampler and bound its capacity under a fixed-seed verifier, with a per-token classifier (safe, suspicious, or dangerous) read from a per-token fixed-seed likelihood score and a raw-logit rank. Token-DiFR [Karvonen et al., 2025] takes up the complementary difficulty that replay is not bit-exact, characterizing when a mismatch between served and replayed tokens is still consistent with benign serving under numerical nondeterminism. Our monitor takes the fixed-seed score from the first and the benign-mismatch analysis from the second. Methodologically, Shin et al. [2024] construct e-detectors from restarted e-processes for general sequential change detection, while Su et al. [2026] use e-processes for online LLM watermark detection. Neither addresses inference-server weight exfiltration. A companion paper [Ortega-Fernandez et al., 2026] studies the complementary calibration question on the same threat model and corpus: it equalizes the realized per-token false-alarm rate across entropy strata and adds a fixed-horizon per-response test, which controls error for a single look rather than over the unbounded horizon considered here.