Manuscript Offprint

arXiv:2610.19498

What You Sign Is Not What You Run: The Verifiability Gap in Quantized LLM Supply Chains

Wei-Liang Liu, Cheng-Yen Tsai

Wei-Liang Liu

National Yang Ming Chiao Tung University

rlooooong@gmail.com

Cheng-Yen Tsai

National Taiwan University of Science and Technology

nemo00407@gmail.com

Abstract—Model signing authenticates the full-precision weights W an LLM is released with, yet users run a quantized artifact Q whose producing transformation is not uniquely determined under current disclosure. We separate the non-environment inputs from the execution environment E and measure a quantity that, to our knowledge, has not been measured before: the Independent Verifiability Rate (IVR), the fraction of a popularity-sampled GGUF ecosystem that a third party can re-derive bit-for-bit. Across the 200 most-downloaded Hugging Face GGUF repositories (198 in scope), no artifact or model card records the build environment, so under a recorded-inputs protocol the IVR is 0/198. Yet the artifacts are not irreproducible. On four in-sample repositories that disclose their inputs, the card's information alone reproduces no Q4_K_M file, but two coordinates the card omits—the build's floating-point-contraction setting and, for hybrid models, the per-tensor quantization recipe—re-derive 7/8 target-quant files bit-for-bit on x86 (5/8 on arm64); the fp16 re-derives from the provider's checkpoint, but the calibration imatrix must be shipped and hash-bound, since recomputing it did not match. An older release additionally pins the instruction set and did not re-derive. Reproducing the divergence reported with llama.cpp PR #25353, we show that E is a necessary coordinate and that one compiler setting yields a unique output across the tested platforms at negligible quality cost (+0.06% perplexity). As a security characterization, benign floating-point non-determinism separates from uniformly placed nibble-flip tampering above a detection floor that grows with the environments a verifier must allow, but a targeted embedding edit evades the statistic, so the proposed protocol rests on exact re-derivation; adversarial-fp16 attacks lie outside it. We release the audit data and a re-runnable harness.

I. INTRODUCTION

Reproducible builds turned “trust the publisher” into “verify the artifact” [1]. A decade of engineering made over 96% of Debian’s packages (bookworm/amd64) reproducible in its continuous rebuild tests [2]: building a package twice under deliberately varied environments yields the same bytes, so an independent rebuild can be checked against the released artifact. Source authentication thereby becomes an end-to-end integrity check. ML supply chains are adopting the same primitives—model signing (Sigstore Model Signing [3], [4], NVIDIA NGC [5]) authenticates the hashes of the released files, and lifecycle-attestation efforts (the IETF ai-model-lifecycle-attestation draft [6], CycloneDX ML-BOM [7]) record provenance.

There is a gap these primitives do not close. Users of local-inference ecosystems typically do not run the signed full-precision weights W; they run a quantized artifact Q—e.g. a 4-bit GGUF widely distributed through llama.cpp [8]/ollama ecosystems. Q is produced by a transformation T whose inputs go far beyond W: the quantization recipe θ\theta, the calibration input C (an importance matrix, “imatrix”: per-weight calibration statistics computed by running the model over a corpus), the execution environment E (quantizer release and build, compiler, architecture, floating-point settings), and non-weight components M (tokenizer, chat template, metadata). Writing the non-environment inputs as Xˉ=(W,θ,C,M)\bar{X} = (W, \theta, C, M), we observe that under currently disclosed specifications Q is not uniquely determined: signing H(W)H(W) says nothing about which Q a user should accept, and re-running T on a different platform can produce different bytes.

We ask a question that, to our knowledge, the ML supply chain has not measured: of the GGUF repositories in our popularity-sampled ecosystem, what fraction expose an artifact that a third party can independently re-derive bit-for-bit? We call this the Independent Verifiability Rate,

IVR=#{bit−exactre−derivableartifacts}#{evaluatedartifacts}.\mathrm{IVR}=\frac{\#\left\{\mathrm{bit-exact re-derivable artifacts}\right\}}{\#\left\{\mathrm{evaluated artifacts}\right\}}.

We fix IVR to bit-exact re-derivability; attestation-based binding (e.g. by a Trusted Execution Environment, TEE: hardware that signs a statement of which binary ran on which inputs) is a separate mechanism ( §VII§VII), not part of this metric.

a) Our answer, under a recorded-inputs protocol, is 0/198: None of the 198 in-scope repositories among the 200 most-downloaded exposes enough to satisfy our re-derivation protocol. That means the disclosed inputs are insufficient for our verifier, not that the artifacts are mathematically unreproducible. Part of this is structural: GGUF has no field for the build environment, so the metadata half of our checklist cannot pass, and the census measures what the format and current disclosure practice allow; the model-card scan and a re-derivation attempt test whether disclosure elsewhere closes the gap. A verifier can also succeed by searching environments instead of reading a record; the trial of §IV shows this works for recent releases on the publisher's architecture and fails for an older one, so the search-based rate is not zero but is unmeasured beyond our trial. We then explain why, what it costs, and how to close it, as three measurements feeding a verification protocol (Figs. 1–3):

• M1 (§IV): the recorded-inputs IVR is 0/198; no artifact or model card records the build environment—compiler, architecture, floating-point settings (19/198 cards do state the llama.cpp release). On four in-sample repositories, re-deriving the deployed files from the card's disclosed inputs (release, publisher's own fp16, imatrix, stock preset) reproduces none of the Q4_K_M files. Supplying two coordinates the card omits—the build's FP-contraction setting and, for hybrid models, the per-tensor recipe—re-derives 7/8 target-quant files bit-for-bit on x86, and for a pilot repository the fp16 itself re-derives bit-for-bit from the provider's checkpoint.

• M2 (§V): reproducing the floating-point-contraction divergence reported with PR #25353, we find the execution environment E empirically necessary under the studied model; one compiler setting attains B=0 for the tested types across the tested architectures and compilers at negligible measured quality cost ( Δ\DeltaPPL +0.06%), yet is not the llama.cpp default, and the divergence lives in the weight representation, not inert metadata.

• M3 (§VI): a security characterization—our evaluated statistics separate benign floating-point non-determinism from uniformly placed nibble-flip tampering above a detection floor that grows with the range of build environments a verifier must allow (up to about 0.2% of weights under our five-pair calibration, and more as that range widens); a targeted embedding edit evades them, and adversarial-fp16 attacks lie outside re-derivation.

• Protocol (§VII): An ambiguity-free transformation (B=0) is the natural precondition for trustless re-derivation; uniform partial spot-checking against an m-unit tampering within N units needs Θ(N/m)\Theta(N/m) openings to hold a fixed detection probability.

b) Contributions: (i) To our knowledge, the first popularity-sampled measurement of GGUF independent verifiability, decomposed into what is obtainable (source-reconstructible, 148/198) versus what is recorded (the build environment: 0/198, a structural consequence of the format having no field for it). The constructive core of the paper is a trial re-derivation on named public artifacts (five repositories across three model families and three releases, b3772-b10603): it locates the failure in the quantization step and names the card-absent coordinates that close it. With those supplied, 7/8 target-quant files of the four Qwen repositories and both files of the Granite one re-derive bit-for-bit, and for a pilot repository the fp16 already re-derives from the provider's checkpoint. (ii) A compact vocabulary—Xˉ/E\bar{X}/E, the admissible set A\mathcal{A}, and a 0/1 ambiguity indicator BB—that makes precise what a complete re-derivation specification must fix; under it the necessity of recording the environment EE is immediate, and we witness it empirically (§V). We use this as scaffolding for the measurements, not as a result in itself. (iii) A security characterization of the B>0B>0 regime: how much one-step tampering hides in benign environment variation (up to about 0.2% of weights under our five-pair calibration, growing with the range of environments allowed), what a max statistic adds against sparse large edits, and a delineated threat boundary. In our sweeps, a uniform scale perturbation is caught before it is harmful and adaptive placement hides only a bounded low-magnitude reservoir, but a targeted embedding attack evades the statistic (§VI); this is why the protocol relies on exact re-derivation rather than detection. Along the way we independently reproduce the floating-point-contraction divergence of PR #25353, add a weight-space localization and a size trend, and confirm its perplexity report with a paired estimate. We also provide a re-runnable audit harness and our analysis tools (GGUF header-probe, byte-region diff, and detector), distinct from the external re-derivation engine we instrument.

c) Prior art we build on, not claim: Deterministic GGUF re-derivation is existing engineering (ggufpacker, which pins and packages quantization inputs, publishes cross-machine bit-exact derivation attestations for quants built with the fix, and reports that for quants built before it Q8_0 packs are exact while most k-quants need a correction delta and cannot be attested [9]; llama.cpp PR #25353 [10]), as is the observation that k-quant outputs diverge across platforms because of floating-point contraction. The adversarial-fp16 attack that bounds our threat model is also prior work (Mind the Gap [11]). Our contribution is to measure how far current disclosure falls short of what these tools presuppose, name what a manifest must bind for re-derivation to succeed, and delineate what re-derivation can and cannot cover. The trial re-derivation (§IV, Table III) also makes explicit a coordinate that a packager pins silently: on named public artifacts, the card's quant type (“Q4_K_M”) underdetermines the publisher's per-tensor recipe, a discrete input that the card does not disclose and that no stock preset regenerates; it must be supplied alongside the environment before re-derivation succeeds.

References (39)