Pricing the Risk of Runtime Compression: Anytime-Valid Admission and a Served-Output Law for Compressed Serving State
Organizations: Metask Lab
Abstract
Runtime compression of serving state trades quality for capacity with no priced guarantee: systems adapt precision on load signals with no soundness statement, and certified approaches budget request-level risk by a union bound over a pre-declared event count. We show the union budget exhausts on every long request in a production serving stack (100% of requests), and replace it with an anytime-valid, physically accounted ledger whose bound holds at every one of 352,333 admission calls on live traffic and which, in a pre-registered held-out confirmatory round, halves the exact-fallback rate at matched risk (0.30 -> 0.14) -- coverage is bought at a price the account states. We then price the remaining distance from the certified witness to what a user experiences: a machine-checked design law (TV <= tanh(a_q w_thr)) turns the served-TV target into a threshold knob, and a three-layer audit of its instantiation -- an operator-norm query envelope measured 1.5x from tight, a measured-ellipsoid replacement for the Cauchy-Schwarz ball that buys nothing (0.89x, held-out sound), and the gate's operating point (~700x) -- localizes the entire 1064x gap to the operating point, a price the law now states rather than an unknown. A priced bound is worth nothing on a request one has not seen, so the third link is the quantifier: exchangeable extrapolation across 80 serving histories replaces binary conformal prediction's vacuous certificates with order-statistic bounds that discriminate (0.41 against 0.51 calibration risk). All probabilistic kernels are Lean 4-checked (228 exported theorems, no sorry); which object deserves this machinery at all is settled empirically in a companion paper that adjudicates -- and rejects -- the natural alternative of certifying routing. What ships is an account: risk you can spend, a gap you can read off a law, and a bound that survives the request you have not seen.
Figures & tables
| Model | Routing | Experts / top- | Layers | Where it carries the paper |
|---|---|---|---|---|
| DeepSeek-V4-Flash-FP8 | sqrtsoftplus, bias-corrected | / | served-output bridge; anytime ledger; physical gate; | |
| -history conformal extrapolation | ||||
| GLM-5.2 (FP8, W4A-FP8) | sigmoid, bias-corrected | / | capacity–cost evaluation in the production stack | |
| DeepSeek-V2-Lite | softmax, greedy | / | router-margin certificate; flip damage arms | |
| Qwen1.5-MoE-A2.7B | softmax, greedy | / | cross-model replication of the flip arms | |
| Qwen2.5-7B | dense | — | activation-geometry precondition (dense control) |
| union | cumloss, by budget | |||
|---|---|---|---|---|
| budget exhaustion | — | — | — | |
| fallback-to-exact rate (median) | ||||
| admission calls (armed) | — | |||
| judgment cost (s/request) | — | |||
| violations | ||||
| Route to the step budget | What it prices | Value |
| Global Lipschitz envelope (weights) | worst case over | |
| Local operator norm, as a supremum | worst direction, rank | |
| Per-layer, per-token empirical MGF | assumes layer-local additivity | (model-dep.) |
| Empirical Bernstein on it | worst-case range | (vacuous) |
| Joint scalar, betting CS | the functional itself | |
| on deployed rounding | no surrogate |
| Proved | Measured | Open, declared |
| per-step moment request tail, ( 5 )–( 7 ); Doob form with no layer-local hypothesis; Bernoulli domination ( 8 ); conformal extrapolation ( 12 ) | on deployed rounding; held-out histories certify; cross-history spread; judgment cost | propagation constants (probe falsifies the first-order surrogate); and from one gated run; population our pool, not runtime traffic |
| Arm | acc | clean | risk ledger | fallback |
|---|---|---|---|---|
| FP8 safe (endpoint) | ✓ | none (no compression) | — | |
| aggressive, no gate (endpoint) | ✓ | none | — | |
| gated, union budget | ✓ | exhausts ( burned) | ||
| gated, cumulative (phys) | ✓ | bounded ( peak) | ||
| gated + shadow audit | ✓ | as union + reconciliation |
| Per- | Sound | Adaptive- | In serving | |
| Line of work | request | (not avg.) | valid | stack |
| PTQ / second-order weighting | ✗ | ✓ | — | ✗ |
| GPTQ, AWQ, QERA, YAQA, WaterSIC | ||||
| MoE quantization (expert/router-aware) | ✗ | ✗ | — | ✗ |
| MoEQuant, GEMQ | ||||
| Dynamic-precision serving | ✓ | ✗ | ✗ | ✓ |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| GLM-5.2, identical hardware | FP8 | W4AFP8 | ratio |
|---|---|---|---|
| Aggregate throughput, (tok/s) | |||
| Aggregate throughput, (tok/s) | |||
| KV-cache capacity (resident tokens) | |||
| Errors, full sweep | — |
| no prefix reuse | session reuse | |
|---|---|---|
| k-token requests, GLM-5.2, W4AFP8 vs FP8 | (worst case) | (agent-shaped) |
| Configured KV capacity | ||
| concurrent requests | ||
| warm-prefix hits | — (none) | |
| throughput | – | – |
| TTFT (p50) | — | – ( at ) |
| Model | Stream | Held-out | Verdict | |
|---|---|---|---|---|
| Qwen2.5-7B | attn-in | concentrated | ||
| Qwen2.5-7B | o-proj-in | concentrated | ||
| Qwen2.5-7B | mlp-in | gray | ||
| DeepSeek-V2-Lite | attn-in | concentrated | ||
| DeepSeek-V2-Lite | o-proj-in | concentrated | ||
| DeepSeek-V2-Lite | moe-in | concentrated |
| Arm | Hypothesis under test | Verdict | Key number |
| Gate quantization | router survives INT4 | killed | flips |
| Upstream margins | exact gate suffices | killed | binding |
| Flip damage | flips predict damage | dissociated | RR – |
| Natural text | damage is average-case | killed | NLL |
| Value-transport | condemned reads rescuable | killed | / |
| Served-output tail | the object that survives | adopted | TV /bd. |