Manuscript Offprint
arXiv:2610.26937Do We Need the Largest LLMs for Every Clinical Decision?
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Large clinical language models often require multi-GPU infrastructure, limiting local deployment. We introduce CERTA, a decision-level statistical certificate that determines when a quantized model may substitute for its native BF16 reference and escalates uncertifiable decisions to it. Across eleven instruction-tuned models, both general-purpose and domain-adapted, from three families (7–72B), we evaluated 2,500 clinical-verification decisions from real de-identified patient contexts (2,484 patients), with patient-disjoint calibration and testing. Eight-bit round-to-nearest quantization, evaluated at BF16 storage, certified 99.8–100% of decisions for every model in the higher-power operational analysis. In the same analysis, the class-conditional four-bit frontier reduced the amortized, BF16-equivalent deployment cost to 25.8% and 27.3% of the BF16 reference for Qwen2.5-72B and HuatuoGPT-o1-72B respectively, with measured peak memory of 43.0 and 42.7 GB, below the 48 GB capacity of a single accelerator (a measured allocation below the device's nominal capacity, not an end-to-end deployment on it); under the exact split-sample certificate, which additionally accounts for configuration selection, these flagship costs were 26.7% and 27.9%. On external disease named-entity benchmarks against human annotations, the frontier-selected NF4 configurations had a mean absolute F1 change of 0.045 on both datasets, with substantial model-specific variation. CERTA converts compression from a fixed precision choice into a risk-controlled deployment policy for this verification task.
Keywords: clinical decision support; large language models; model quantization and compression; conformal risk control; selective prediction (certify-or-escalate); class-conditional (Mondrian) certification; on-premises / single-GPU inference.
Large language models are increasingly capable on clinical text [1, 2], yet the most capable open-weight models are also among the largest, and running a 70-billion-parameter model in BF16 (bfloat16), its native precision, requires accelerator memory that can exceed the capacity available in many healthcare and research settings. A single such model in its native precision occupies well over one hundred gigabytes and spans two high-end datacenter GPUs. This puts a practical barrier between the models that perform best on clinical language and the settings where clinical data is most sensibly kept, at the point of care, inside an institution's firewall, on a modest local server.
Quantization is the usual route to a smaller model. Lowering the numerical precision of the weights shrinks the memory footprint, sometimes several-fold, and various literature reports that aggregate accuracy stays close to the original after quantization [3–6]. Aggregate accuracy, however, is the wrong currency for a clinical decision. Two models can match on a benchmark score while disagreeing on individual cases, and in a verification or triage step, it is the individual decision—accept this finding or reject it—that carries the consequence. A method that preserves an average can still flip the specific calls that matter, and standard benchmarks offer no per-decision guarantee that the smaller model may stand in for the larger one.
Our question is therefore narrower and more operational than whether the compressed model is still accurate: for the decision in front of us, can the compressed model be used in place of the BF16 reference model without changing the decision, and can that substitution be controlled at a stated error rate? Posed this way, the choice of precision stops being a fixed global setting and becomes a per-decision, per-model question with a testable answer.
We answer it with CERTA, a procedure that certifies or escalates each decision (Fig. 1). Using a calibration set in which quantized decisions are labelled by their agreement with the BF16 reference, CERTA learns a finite-sample threshold [7–9] on the quantized model's decision margin that bounds, at a chosen risk level, the rate at which a served decision disagrees with the reference. At inference the router uses only the quantized model's decision, margin and this calibrated threshold: decisions that clear it are served by the compressed model, and the rest are escalated to the reference, which is invoked only on escalation. Repeating this across bit-widths and quantizers gives, for each model, the least costly configuration the certificate will accept at a given risk, which we call its certified compression frontier. Because a clinical accept/reject decision has two sides with different consequences, the deployable policy controls the reject decision separately from the accept decision. The decisions we study are a deliberately narrow but clinically relevant primitive, the binary verification of candidate entities and answers extracted from clinical narratives, rather than diagnosis, treatment selection, triage or prognosis; the framework is general, but the evidence reported here concerns this verification step.
Across eleven models from three families, spanning 7 to 72 billion parameters and including both general-purpose and clinically adapted checkpoints, evaluated on 2,500 verifier decisions constructed from real de-identified patient contexts drawn from 2,484 patients, eight-bit round-to-nearest quantization at BF16 storage was certified for every model, and a four-bit scheme reduced the amortized, BF16-equivalent deployment cost to about a quarter of the BF16 size for the strongest models, bringing a 72-billion-parameter model's measured footprint from two large accelerators within the capacity of one. The question in our title, whether the largest model is needed for every clinical decision, has a concrete answer: for most decisions, a compressed model suffices and can be certified to do so, and the certificate identifies the minority that must be referred to the full model.
Results
We evaluated CERTA on the accept/reject decision of an in-house clinical verifier, using 2,500 decisions drawn from 2,484 patients in the PMC-Patients corpus and split patient-disjointly into 1,250 for calibration and 1,250 for held-out test, across eleven models, two quantizers and risk levels from 1% to 10%.
Round-to-nearest quantization at 4-bit, by contrast, was strongly model-dependent. Certified coverage ranged from 0% for MMed-Llama-3-8B to 91–94% for HuatuoGPT-o1-72B and Qwen2.5-72B, with the medical fine-tunes of the shared Llama-3 backbone falling across the whole interval. This split, an 8-bit result that holds for every model against a 4-bit result that holds for only some, is the problem the rest of the study addresses: a fixed precision is either too conservative for the robust models or fails the prespecified decision-risk criterion for the fragile ones.
The certified compression frontier is model and quantizer specific
A genuinely memory-reducing 4-bit quantizer changed the picture. NF4 raised raw 4-bit decision preservation for all eleven models relative to round-to-nearest, and its certified coverage at 4-bit ranged from 82.2% to 100%. Qwen2.5-72B and HuatuoGPT-o1-72B certified at 100%, and the domain fine-tunes that round-to-nearest had failed now certified at high coverage under NF4, OpenBioLLM-70B at 98.1%, Med42-70B at 97.5%, MMed-Llama-3.1-70B at 96.9% and BioMistral-7B at 95.8% (Fig. 4).
Taking the lower envelope over the deployable quantizers at a 5% target risk (denoted ), the certified compression frontier selected NF4 for all eleven models and settled between 25.0% and 38.4% of the BF16 size. Qwen2.5-72B and HuatuoGPT-o1-72B reached the 4-bit floor at 25.0%, a fourfold reduction, with no escalation. Llama-3.3-70B sat highest, at 38.4%, because its NF4 certified coverage (82.2%) is lower, so more of its decisions escalate to the reference. NF4 was preferred over 8-bit LLM.int8() wherever it certified, following a break-even structure in which moving from to bits reduces amortized size only once certified coverage exceeds ; this accounts for the pattern of bit-width selection and for why the deployable frontier rests at 4-bit. Round-to-nearest, which retains BF16 storage, served as the numerical-precision baseline rather than a deployment option, so the two quantizer families were complementary in role, and the certificate, not a prior preference for one scheme, set the deployed configuration.
A risk level sets the minimum deployable footprint
Sweeping the risk level turned the frontier into a per-model risk–resource curve. At a stringent 1% target risk, every one of the eleven models still had a certified operating point, between 31.2% and 62.8% of BF16 size. At 5% the range was 25.0% to 38.4%, and at 10% it tightened to 25.0% to 30.2%, with eight of the eleven models at the 4-bit floor. The curves were monotonic and stable across the evaluated risk levels, so an operator can read the deployable footprint directly against whatever disagreement risk a setting permits (Fig. 3a; the frontiers for all eleven models appear in Supplementary Fig. 1, and are robust to the confidence level, calibration size, threshold-grid resolution and the choice of calibration/test split, Supplementary Figs 5 and 6 and Supplementary Tables 9, 10, 11, and 12).
The certificate was well calibrated in aggregate. At each model's deployed operating point, the disagreement observed on the held-out test set stayed at or below the target risk for every model and quantizer across from 1% to 10% (at most 0.6% at and 3.9% at ); the closest approach to a target was Med42-70B under round-to-nearest 4-bit, at 9.9% against the 10% target (Fig. 3b).
Class-conditional certification protects the reject decision
Aggregate calibration, however, does not imply calibration within a decision class, and the distinction matters clinically because a reject decision suppresses an unsupported output. Partitioning by the quantized model's own decision, the marginal certificate violated the per-class 5% target risk for six model-classes at NF4 4-bit, four of them on the reject side. Among predicted REJECT decisions the observed disagreement reached 17.4% for OpenBioLLM-70B, 10.0% for MMed-Llama-3-8B, 6.1% for MMed-Llama-3.1-70B and 6.1% for Mistral-7B; the accept-side violations were Llama-3-70B at 6.9% and Qwen2.5-72B at 5.2%. These failures were not specific to NF4: at round-to-nearest 8-bit the reject class of MMed-Llama-3.1-70B still exceeded the target risk. A high aggregate coverage concealed these.
Class-conditional (Mondrian) certification removed them (Fig. 3c). Under this operational class-conditional analysis, with a separate threshold per predicted class, each decision class either had an admissible upper bound at or below the target risk or was escalated in full (the formal finite-sample guarantee is provided by the exact split-sample procedure): OpenBioLLM-70B, MMed-Llama-3.1-70B and BioMistral-7B escalated their entire reject class rather than certify it unsafely, for two distinct reasons: the reject classes of OpenBioLLM-70B and BioMistral-7B are too small to certify at the target risk, whereas MMed-Llama-3.1-70B has adequate calibration resolution but too many reject-side disagreements for any threshold to clear the target (Supplementary Table 6 and Supplementary Fig. 4). The remaining reject classes were certified at reduced coverage under a stricter per-class threshold (MMed-Llama-3-8B, for instance, at 35.1% reject-class coverage), while the accept class continued to certify at high coverage (MMed-Llama-3.1-70B at 96.5%). In the higher-power operational analysis of this clinically appropriate policy, the class-conditional frontier at spanned 25.8% to 40.2% of BF16-equivalent nominal-bit cost (Table 1); because its threshold grid is built on the same calibration data used for the bounds, these are operating-point estimates rather than the formal certificate. The formal finite-sample guarantee at confidence ( ) is supplied by the exact split-sample procedure, which independently constructs the threshold grid, uses one decision per patient in certification, and corrects for selection across both decision classes and the two deployable configurations; under it the frontier spans 26.7% to 48.4%, with all eleven models still selecting NF4 (Supplementary Table 7). The stricter class-conditional policy selected NF4 for all eleven models, and at the compressed model served most decisions, escalating only 1.1% (Qwen2.5-72B) to 20.2% (MMed-Llama-3-8B) of them to the reference. The flagship survived the stricter guarantee: Qwen2.5-72B and HuatuoGPT-o1-72B deployed at 25.8% and 27.3% at , and reached the exact fourfold point (25.0%) at a modest risk level, for Qwen and for HuatuoGPT. Across models the class-conditional guarantee changed amortized size by -0.8 to +7.9 percentage points relative to the marginal certificate (median +2.3), the largest increases falling on the models that escalate their entire reject class, in exchange for controlling risk on both sides of the decision. The selected per-class thresholds and Clopper–Pearson [10] bounds for every frontier point are in Supplementary Table 5, and the decision-risk audit in Supplementary Table 4; the class-conditional frontier is itself stable across the confidence and risk levels (Supplementary Tables 9 and 13).
Certified compression changes the hardware footprint of 70–72B models
The frontier translated into a measured change in the accelerators a model requires (Fig. 2c). Peak memory for the 70B and 72B models fell from 141.7 to 146.3 GB at
BF16, which spans two 80 GB devices, to a measured 41.0 to 43.0 GB under NF4, below the nominal capacity of a single 48 GB device; 8-bit LLM.int8() sat between them at 73.4 to 77.6 GB. These measurements indicate that the compressed models fit within that capacity, but deployment on a specific 48 GB device was not directly tested. The 4-bit floor of 25% is a weight-memory ratio; the measured peak-VRAM ratio is higher (for example 43.0/146.3 ≈ 29% for Qwen2.5-72B) because of quantization metadata and runtime allocations. At operating points with zero observed escalation, no BF16 fallback was invoked on the evaluated decisions, and the measured peak allocation is below the nominal 48 GB capacity of a single device. This does not establish that the reference can be removed from a general-purpose deployment: zero observed escalations in a finite sample do not imply that no future input will escalate, so the reference must remain reachable whenever the routing policy permits escalation. The memory reduction carried a throughput cost in the kernel used: the 70B round-to-nearest configurations ran at 8.6 to 9.1 prompts per second against roughly 5.0 for NF4, so we report the two together and make no joint claim of smaller and faster. Separately, the memory-reducing 8-bit route, LLM.int8(), produced degenerate outputs on two BF16-native 70B checkpoints, Llama-3-70B and Med42-70B (its float16 activation casting fails on these models); running the certification pipeline on the recorded outputs assigned them 0% deployable coverage. This is an engineering failure of that 8-bit implementation, not a statistical certification failure on a well-formed quantized model, and it illustrates that a nominal 8-bit route is not automatically a deployable one. Because round-to-nearest retains BF16 storage, there is no universally deployable 8-bit point, and the certified memory reduction is realised at 4-bit through NF4.
Decision preservation and external task accuracy are complementary
Finally, we asked whether the certified configurations preserve task accuracy against human labels, a question the substitution certificate does not answer. On the two disease named-entity benchmarks (Fig. 5), 8- and 6-bit round-to-nearest quantization changed the F1 score negligibly, with mean absolute changes of 0.005 and 0.019 on BC5CDR-Disease and 0.011 and 0.018 on NCBI-Disease; 4-bit round-to-nearest quantization degraded it further (mean absolute change 0.057 and 0.044). Critically, we benchmarked the exact NF4 4-bit configurations that the frontier deploys, and their effect on the F1 score was comparable to round-to-nearest quantization's, and smaller for several models: a mean absolute change of 0.045 on BC5CDR-Disease and 0.045 on NCBI-Disease, with Qwen2.5-72B essentially unchanged (-0.008 and 0.000). The clearest illustration is MMed-Llama-3.1-70B, the worst round-to-nearest 4-bit casualty (-0.163 and -0.198), which improved under the deployed NF4 configuration (+0.078 and +0.091); the apparent collapse of domain fine-tunes at 4-bit was largely an artifact of round-to-nearest rather than a property of the configuration CERTA actually selects. Model-specific drops remained (OpenBioLLM-70B -0.132 on BC5CDR, Med42-70B -0.111 on NCBI, HuatuoGPT-o1-72B -0.107 on BC5CDR), so task performance was largely, not perfectly, preserved (precision, recall and F1 in Supplementary Table 16; a paired per-document human-gold correctness analysis in Supplementary Tables 17 and 18; the two verifier tasks certified consistently, Supplementary Table 15).
Reference agreement and task accuracy were related but not interchangeable. Across models the per-model association between certified coverage and F1 retention was weak, and the eleven configurations occupied distinct positions in this plane, which is expected because the certificate concerns agreement with the BF16 reference on the verifier task, whereas the benchmark concerns correctness against human annotations on a different task. The two therefore provide complementary evidence: the certificate controls what compression changes relative to the reference, and the benchmark shows that the frontier-selected configurations also hold up against human labels.
Discussion
CERTA reframes compression as a controlled substitution problem rather than a fixed precision choice. Instead of quantizing a clinical model to a chosen bit-width and trusting a benchmark average, we certify, for each decision, that the compressed model agrees with its BF16 reference at a stated risk, and we escalate the decisions that cannot be certified. This makes the deployable precision a property of the model and the risk level rather than a global default, and the certificate does real work: certified coverage was systematically lower than raw agreement, because the procedure rejects the low-margin cases that raw accuracy would wave through. Sweeping bit-widths and two quantizers turns the certificate into a per-model frontier that selects, at each risk level, the least costly configuration that meets the guarantee, and the frontier chose a real 4-bit quantizer (NF4) for all eleven models rather than any single scheme fixed in advance. Two comparisons make the practical value concrete. Uniform 8-bit rounding is numerically certified across all eleven models, but that arm retains BF16 storage and is not a half-memory deployment; the memory-reducing 8-bit route, LLM.int8(), certified most models yet failed on two 70B checkpoints. CERTA instead reaches about a quarter of BF16-equivalent nominal-bit cost for the strongest models by certifying the harder 4-bit regime only where the guarantee holds; the measured peak VRAM reduction is smaller in percentage terms (for example, Qwen2.5-72B falls from 146.3 to 43.0 GB, a measured 29.4%), because physical memory also includes quantization metadata and runtime allocations. A threshold based only on uncalibrated confidence would not carry the same finite-sample risk guarantee. Certified coverage ran systematically below raw decision preservation, by about fifteen percentage points on average, which illustrates that many decisions that happen to agree with the reference remain uncertified under the chosen risk constraint; raw agreement with the reference is also not observable at deployment without running the reference itself.
The resulting change in hardware is concrete. Peak memory for the 70- and 72-billion-parameter models fell from roughly 142 to 146 gigabytes, which spans two 80-gigabyte accelerators, to a measured 41 to 43 gigabytes, below the nominal capacity of a single 48-gigabyte device (deployment on that specific hardware was not directly tested); where a model certified with no observed escalation, no reference call was triggered on the evaluated decisions, though the reference must stay reachable for any deployment that permits escalation. Reducing the measured inference footprint of these models to the capacity of a single 48-gigabyte accelerator could lower the infrastructure barrier to running them locally, where clinical data can remain inside an institution, subject to that institution’s security, governance and data-protection controls. This benefit is specifically in memory: the low-precision kernel we used carried a throughput cost, so we report memory and speed together and do not claim a joint improvement. Whether specialized low-precision kernels narrow this throughput gap is an engineering question outside the scope of the certificate.
CERTA bounds disagreement with the BF16 reference; it does not bound the clinical correctness of that reference, and a preserved decision that was wrong in BF16 remains wrong. We therefore treated correctness as a separate question and evaluated it against human annotations on independent disease named-entity benchmarks, where the deployed 4-bit configurations preserved task performance; tellingly, a domain model that appeared to collapse under one 4-bit quantizer recovered under the one CERTA actually deploys. The association between certified agreement and this external accuracy was weak, which is expected because they answer different questions, and we present them as complementary evidence rather than as one validating the other. The same discipline drove the class-conditional result. A single threshold controls disagreement only on average, and for models whose decisions skew toward acceptance it can leave the rarer reject decision, whose error consequences may differ by workflow, poorly controlled; certifying each decision class separately restores control on both sides at a small additional cost, and we take this class-conditional policy, not the marginal one, as the appropriate default for a clinical accept/reject decision.
Several boundaries define the scope of these findings. The guarantee is a finite-sample, high-probability control under patient-level iid sampling (and hence exchangeability between calibration and deployment), not a deterministic proof for any single patient, and it is specific to the task on which the certificate was calibrated, so a deployment would certify on its own decision distribution rather than extrapolate from ours. The memory reduction depends on the quantization scheme and its kernel, and escalation requires the reference model to be reachable. At operating points with zero observed escalation, the BF16 reference was not invoked for any evaluated decision; this does not establish that future inputs will never be escalated, so a deployment that permits escalation must keep the reference reachable. Our evaluation balanced accept and reject cases as a deliberate stress test; a prevalence-shift stress test (Supplementary Fig. 2 and Supplementary Table 14) showed that the marginal certificate can exceed the target risk when the deployment accept/reject mix departs from calibration, whereas the class-conditional policy stays controlled across the range, with 95% bootstrap confidence intervals reported for the coverage and F1 estimates in the corresponding Supplementary analyses. The decisions themselves, however, were certified against the BF16 reference model, not adjudicated by clinicians. The most valuable next step is precisely that adjudication: a study in which clinicians grade the severity of the cases where the compressed and BF16 reference models disagree would connect compression to clinical consequence, and would move the evidence from same decision as the full model to clinically inconsequential when it differs. CERTA identifies the low-margin decisions that are enriched for compression-induced disagreement, namely the ones it escalates, and can therefore prioritise them for clinician adjudication; comparing the recorded quantized and BF16 outputs then isolates the subset on which the models actually disagree. The routing margin alone does not identify exactly which inputs will disagree: some escalated inputs agree with the reference and some certified inputs can still differ, but the escalated set has systematically lower margin and higher disagreement (Supplementary Fig. 3), which makes such a study directly actionable. The certificate also admits any prespecified routing statistic: it uses a scalar decision margin as the service score, but the same certify-or-escalate guarantee holds for any score, including a learned substitution-risk score, provided the score and threshold grid are fixed independently of the certification sample (for example, learned on a separate selection subset). Such a score could widen the certifiable region without changing the statistical framework.
Methods
Study design and estimand
CERTA was designed around a single deployment question: can a quantized clinical language model be substituted for the BF16 reference model it is intended to replace while controlling compression-induced changes to individual decisions at a prespecified rate? The primary estimand is the probability that the quantized and BF16 reference models return different decisions among the inputs on which the quantized model is permitted to act without escalation. The clinical correctness of the reference model is a separate estimand; it is neither estimated nor bounded by the certificate, and it is studied only through the independent human-annotated benchmarks described below. Keeping these two estimands apart is a deliberate design choice, because a certificate that preserved the reference decision would still inherit any error the reference itself makes.
The study has three stages. The first establishes a decision-level statistical certificate that decides, from the quantized model's output alone, whether substitution is defensible at risk . The second turns the certificate into a certify-or-escalate deployment policy and, by sweeping bit-widths, quantizers and risk levels, into a model-specific compression frontier. The third evaluates the certified configurations on external tasks with human labels, which measure correctness rather than agreement. All certification analyses used real clinical-verifier decisions sampled from a de-identified patient corpus, with calibration and test partitions separated at the level of the patient.
Models
We evaluated eleven autoregressive, instruction-tuned language-model checkpoints, general-purpose and domain-adapted, spanning three architecture families (Llama, Qwen, Mistral), parameter scales from 7B to 72B, and both general-purpose and clinically adapted checkpoints: Llama-3-8B, Llama-3-70B and Llama-3.3-70B [11], Qwen2.5-72B [12] and Mistral-7B [13]; and Med42-70B [14], OpenBioLLM-70B [15], MMed-Llama-3-8B and MMed-Llama-3.1-70B [16], BioMistral-7B [17] and the reasoning-oriented HuatuoGPT-o1-72B [18] (Supplementary Table 19 lists the eleven checkpoints with their families, adaptation type and parameter counts). The set was chosen to separate three properties that are usually confounded in compression studies, parameter count, architecture family and clinical adaptation, rather than to identify a single best-performing clinical model; the general-purpose and domain-adapted checkpoints within the Llama family share closely related Llama-3 backbones so that the effect of the adaptation recipe can be read against a largely fixed baseline. All checkpoints were loaded locally with the Hugging Face Transformers library [19] and PyTorch [20], with no network access during evaluation, and the native BF16 realization of each checkpoint served as the reference. Because these checkpoints are released in this 16-bit format, BF16 is their native precision, and all compression results are reported relative to this BF16 reference.
Clinical decision task and prompt construction
The certified decision was the accept/reject step of an in-house clinical verification pipeline that we have not yet published. In this pipeline, a generator model proposes candidate clinical entities and answers extracted from de-identified patient narratives, and a verifier model judges each candidate, accepting supported outputs and rejecting unsupported ones; this binary verification step is the single decision CERTA certifies, and no other component of the pipeline is used or evaluated here. The decision space was binary: ACCEPT and REJECT. We evaluated two candidate types. In named-entity verification the model judged whether a candidate entity, presented with a proposed category, was a valid and specific clinical entity of that category. In answer verification the model judged whether a proposed answer was supported by a supplied context and question. Both used the pipeline's verbatim prompt templates and constrained the model to a single-token accept/reject answer. Prompts were rendered with each model's native chat template; for checkpoints whose template does not accept a system role, the system instruction was merged into the user turn.
Candidates were sampled in equal numbers from the two task types and balanced across accept and reject. Reject cases were constructed by replacing an answer with a mismatched answer drawn from the candidate pool, or by replacing a named-entity category with a different clinical category, so that the evaluation contains constructed reject cases rather than an accept-only distribution; these substitutions were not individually verified as unsupported, so an occasional constructed reject may remain plausible in context. Patient assignment to the calibration or test partition (below) was fixed before candidate corruption and sampling, so no information from a patient crosses the calibration/test boundary. The balanced design is a deliberate stress test of decision-level certification; the reference and quantized decision distributions per model and task are given in Supplementary Table 2, and a prevalence-shift analysis in Supplementary Fig. 2.
Patient corpus and evaluation set
Candidates were drawn from PMC-Patients [21], a publicly available dataset of 167,034 de-identified patient summaries curated from open-access case reports in PubMed Central. Because the summaries are already de-identified and publicly released, no direct identifiers were accessible during the study. The evaluation set contained 2,500 decisions, 1,250 from named-entity verification and 1,250 from answer verification, originating from 2,484 distinct patient summaries; sixteen patients contributed a second decision. Each candidate retained its source patient identifier from PMC-Patients, which was used to enforce the patient-disjoint split.
BF16 reference and compression-induced disagreement
For input x, the BF16 reference produced answer-token logits and , and the k-bit quantized model produced and . The decision of a model is the higher-scoring answer token,
and the quantized decision margin is
The certificate reads the quantized model's margin , which is available at inference, and never the reference margin. The compression-induced disagreement event is
CERTA controls the rate of ; it does not estimate the reference error against any clinical label .
For every model and every quantization configuration, the reference and quantized models were run once over all 2,500 inputs, and we stored, per input, the reference decision , the quantized decision and the quantized margin . These recorded quantities are the only inputs to the certification, routing, frontier and class-conditional procedures below; no further model execution is required to compute any reported certificate.
Decision-level statistical certification
A certificate is a rule of the form (Supplementary Table 1 defines the notation used throughout). Writing for the certified region, the certified-set disagreement risk is the conditional probability
Given a target risk and confidence parameter , CERTA selects so that holds with confidence at least under patient-level iid sampling, by the Learn-then-Test procedure [7] on a calibration set that is disjoint from the test set.
Let be a grid of candidate thresholds, taken as the empirical quantiles of the calibration margins. For each let be the number of calibration inputs with and the number of those that disagree with the reference. The reported certificate uses the full calibration set for both the grid and the bounds, a higher-power estimate; an exact finite-sample guarantee, in which the grid is built on an independent threshold-selection subset and the bounds evaluated on a disjoint certification subset, is given by the split-sample variant (Supplementary Information, Algorithm S1 and Proposition S1). Let be the one-sided Clopper–Pearson [10, 22] upper confidence limit for a binomial proportion with successes in trials at confidence level , computed through the regularized incomplete beta inverse,
where the boundary convention assigns the vacuous upper bound when no decisions are served or all served decisions disagree , matching the certification algorithm (Algorithm S1). The beta-inverse form is exact and numerically stable at the calibration sizes used here, whereas a direct binomial-coefficient evaluation overflows double precision for beyond roughly one thousand. A threshold is admissible if , and CERTA selects the smallest admissible threshold,
which maximizes certified coverage subject to the risk bound. If no candidate threshold is admissible, CERTA sets and escalates every input to the BF16 reference, so the configuration serves no compressed decisions (the case reported as zero certified coverage); the risk statement is then vacuous because no input is served by the compressed model. The factor is a Bonferroni [23] correction that makes the bound hold simultaneously across the grid; the exact finite-sample guarantee for the split-sample variant, whose grid is independent of the certification sample, is stated in the proposition below (Proposition 1; proved as Supplementary Proposition S1).
Proposition 1 (Finite-sample certified risk control). Fix a model, quantizer and bit-width k, and let the calibration and deployment decisions be independent and identically distributed at the patient level (exchangeable across the calibration and test partitions) [24]. For the split-sample certificate, whose candidate grid T is fixed independently of the certification sample and whose threshold is selected by the rule above on that sample,
over the calibration draw; that is, whenever a finite threshold is selected, a future exchangeable input with disagrees with the reference with conditional probability at most . If no candidate threshold is admissible, : the entire class is escalated, no input is served by the quantized model, and the conditional risk is undefined on the empty served set. Complete escalation is therefore not a certified zero-risk quantized policy; it serves no compressed decisions.
This is a population-level conditional-risk statement over future exchangeable inputs that satisfy the certification rule. It is not a deterministic guarantee for any individual patient, and we do not claim per-input certainty. The split-sample certificate to which it applies handles every source of data-dependent selection: its candidate grid is built on the 250-decision selection subset, an outer Bonferroni over the deployable configurations covers the choice of quantizer and bit-width, and its Clopper–Pearson bounds are evaluated on the 1,000-decision certification subset reduced to one decision per patient (996 decisions); selection, certification and the 1,250-decision test set are mutually patient-disjoint, so the count is exactly binomial at the patient level (Supplementary Information, Algorithm S1 and Proposition S1). The frontier reported in the main text is a higher-power operational analysis that instead uses the full calibration set for both the grid and the bounds; because its grid is therefore data-dependent, the formal finite-sample guarantee is the split-sample certificate above, and the two correspond closely (median difference 1.0, maximum 8.2 percentage points of BF16 size across the eleven models, with every model still selecting NF4 4-bit; Supplementary Table 7). All configuration and bit-width choices are made on the calibration data alone; the held-out test set is used only once, for final evaluation of the already-selected operating point, and never to select a model, quantizer, threshold or risk level. Throughout we used G = 50 quantile thresholds, , and we report the target risk on a grid from 1% to 10% in one-percent steps. Each is a prespecified deployment policy that yields its own finite-sample guarantee; the frontier over is a sensitivity analysis, not a licence to select after observing test outcomes.
Certify-or-escalate deployment policy
The certificate defines an operational router that serves certified inputs with the compressed model and escalates the rest to the reference,
Certified coverage is the proportion served by the compressed model, , and the escalation rate is . The amortized precision, the coverage-weighted cost in bits that prices the fallback, simplifies to
where k is the nominal bit-width of the compressed configuration and C its certified coverage. Amortized size is a BF16-equivalent nominal-bit-width cost, not a measurement of physical memory: it excludes quantization metadata, activations and implementation overhead, and measured peak VRAM is reported separately (Fig. 2c and Supplementary Table 19). For example, Qwen2.5-72B's NF4 configuration has a measured peak of 43.0 GB against 146.3 GB at BF16 (29.4%), somewhat larger than its nominal amortized size. We report certified coverage and the empirical certified-set agreement measured on held-out data, each with 95% bootstrap confidence intervals. We treat as an out-of-sample diagnostic; the formal guarantee on is the one supplied by Learn-then-Test, and it is not established by the observed test-set agreement.
For inputs the router certifies, the reference model need not be resident. For inputs it escalates, the reference is reached through whatever fallback the deployment configures, a second accelerator, host offload or a remote endpoint. An operating point with zero observed escalation is one in which the reference was not invoked on the evaluated decisions; because a finite sample cannot establish that no future input will escalate, a deployment that permits escalation must keep the reference reachable, so its cost is amortized rather than eliminated.
Certified compression frontier
For each model and risk level , we evaluated the certified operating points of the deployable, memory-reducing configurations (NF4 4-bit and 8-bit LLM.int8()) and selected the one of minimum amortized size; round-to-nearest, which retains BF16 storage, is a numerical-precision baseline and is not eligible for the deployment frontier. The certified compression frontier is the lower envelope over these deployable configurations. The true risk is the population-level objective, but it is not observed; the procedure selects configurations using the certificate's Clopper–Pearson upper bound ,
where for the class-conditional frontier the admissibility condition must hold separately for each served class and a class with no admissible threshold is escalated in full, so that the certificate, rather than a prior choice of scheme, selects the deployed configuration. Configuration selection uses calibration-side information only: a configuration is deployable at only if its threshold is admissible on the calibration data, and among deployable configurations we take the one of minimum amortized size computed from calibration-side coverage. In practice this selects NF4 4-bit for every model: its calibration-side certified coverage exceeds the break-even level at which its amortized nominal-bit cost falls below that of 8-bit LLM.int8(), namely (which holds for all eleven models, and holds trivially for the two models where LLM.int8() does not certify), so the choice does not depend on the test set. The held-out test set is then used only to estimate the coverage and amortized cost of the selected operating point, so the reported frontier sizes are out-of-sample estimates for configurations chosen independently of the test outcomes. This configuration selection is itself data-dependent, so the exact finite-sample certificate (Proposition 1; Supplementary Remark S1) applies an outer Bonferroni correction across the H deployable configurations. For a fixed configuration, the marginal certificate allocates across its threshold grid, while the class-conditional certificate allocates
across the two classes and their grids. For the exact frontier, which additionally selects among deployable configurations, these become and respectively; with , and , the exact class-conditional allocation is . The higher-power operational frontier reported here is a higher-power operating-point estimate rather than the formal certificate, for two reasons: it builds the threshold grid and evaluates the Clopper–Pearson bounds on the same calibration decisions, and it uses all calibration decisions rather than one per patient (sixteen patients contribute two). It omits the outer configuration-selection factor and reproduces the exactly corrected frontier within a median of 1.0 percentage point (Supplementary Table 7). The finite-sample guarantee is stated for each model and risk level, for the threshold-, class- and configuration-selection problem described; it is not a single family-wise guarantee across all eleven models and all risk levels simultaneously. Sweeping from 1% to 10% yields a model-specific risk–resource curve.
The bit-width along the frontier obeys a break-even condition. For a fully certified 8-bit configuration and an NF4 4-bit configuration serving a fraction c of inputs while escalating the rest at 16 bits, the 4-bit configuration has the lower amortized nominal-bit cost when . More generally, a -bit configuration with certified coverage c is cheaper than a fully certified k-bit configuration exactly when
This cost identity motivates the NF4-versus-LLM.int8() comparison that drives the frontier; actual selection is restricted to the memory-reducing configurations evaluated here (NF4 4-bit and 8-bit LLM.int8()), which is why the frontier settles at NF4 4-bit wherever it certifies.
Class-conditional (Mondrian) certification
A single threshold controls marginally, averaged over the whole input population, and does not in general control the disagreement rate within a decision class. For a model whose decisions are skewed toward one answer this is consequential: when the model rarely returns REJECT, the marginal certificate is dominated by the majority ACCEPT decisions and can certify the rare REJECT decisions even when the quantized model preserves them poorly. Because REJECT is the reject decision, this is the direction in which a silent failure is least acceptable clinically. We therefore treat CERTA as a framework that controls risk at the granularity the deployment requires, and adopt class-conditional (Mondrian) certification [25] as the default policy for the clinical accept/reject decision.
Classes are defined by the quantized model's own predicted decision (we write for the predicted class to avoid clashing with the grid size ), which is observable at inference and therefore usable for routing before the reference decision is known. For each class we calibrate a class-specific threshold by the same Learn-then-Test procedure applied to the calibration inputs with .
The class-conditional disagreement risk is the population quantity
which the certificate does not observe directly; the procedure selects using the Clopper–Pearson upper bound and controls with high probability, as stated below. Because two class-conditional certificates are calibrated jointly, each class receives a Bonferroni allocation of across its threshold grid, rather than , so that both decision classes are controlled simultaneously,
over the calibration draw. Thus every class served by the compressed model satisfies the target risk bound, while a fully escalated class ( ) serves no compressed decisions and contributes no compression-induced disagreement to the routed deployment decision. This formal statement applies to the exact split-sample procedure with the corresponding confidence allocation (Supplementary Proposition S1); the full-calibration results are higher-power operating-point estimates. The deployed policy is
so that for each predicted decision class CERTA either applies a class-specific threshold whose finite-sample disagreement bound is at most , or routes that class's uncertifiable inputs to the reference. The marginal certificate is retained as the simpler baseline. No additional model inference is required, because the predicted class and the quantized margin are already available from the quantized forward pass.
Quantization methods
Two independent quantization routes were evaluated so that the frontier reflects a property of the certificate rather than of any single implementation. Round-to-nearest quantization used symmetric per-group scales over groups of 128 output-channel elements, with the per-group scale selected by a mean-squared-error search over clipping ratios , applied in place to each two-dimensional weight matrix. Round-to-nearest was evaluated at arbitrary bit-width and retained BF16 storage, providing a controlled precision sweep and an implementation-independent 8-bit comparison. The second route used the bitsandbytes library: 4-bit NF4 with double quantization and BF16 compute, and 8-bit LLM.int8() . The NF4 and LLM.int8() configurations reduce resident memory and were used for the deployment measurements.
Both routes were evaluated on equal footing, and the frontier selects among the configurations that satisfy the certificate. The LLM.int8() path casts activations to float16 and, for two BF16-native 70B checkpoints (Llama-3-70B and Med42-70B), produces degenerate outputs; this is an implementation (engineering) failure of that 8-bit route on these models. Running the certification pipeline on the recorded degenerate outputs assigns them zero deployable coverage, which the pipeline handles gracefully, but these are infeasible configurations rather than well-formed quantized models that the certificate rejected; a nominal 8-bit route is therefore not automatically a deployable one.
Patient-disjoint calibration and test design
For each model and configuration, the 2,500 decisions were partitioned into 1,250 for calibration and 1,250 for held-out test. Patient identifiers were grouped before splitting, and whole patients were allocated to calibration until the target size was reached, with the remainder allocated to test, so that all decisions from a patient lie on one side of the partition. We verified for every reported split that no patient identifier occurred in both the calibration and test sets. All marginal, frontier and class-conditional results use this patient-disjoint partition. Because sixteen of the 2,484 patients contribute a second decision, we additionally re-ran the entire certificate with one decision per patient, which reproduces every frontier to within 1.8 percentage points of BF16 size and leaves the flagship operating points essentially unchanged (Supplementary Information).
Statistical analysis
Risk levels were evaluated at with and a threshold grid of size . The certificate itself is supplied by the Learn-then-Test procedure with the Clopper–Pearson bound and the Bonferroni correction, stated in full as Supplementary Algorithm S1, with its finite-sample guarantee in Supplementary Proposition S1; the bootstrap [26] is used only to place 95% confidence intervals around observed operating-point statistics (certified coverage, empirical certified-set agreement, and external benchmark metrics), from 1,000 resamples. For the clinical-verifier test set we resample patients as clusters, not individual decisions, respecting the sixteen patients that contribute two decisions each; for the external named-entity benchmarks, whose evaluation units are documents, we resample documents. These intervals quantify empirical-estimate uncertainty; the formal disagreement-risk control is provided by the Clopper–Pearson certificate, not by the bootstrap. In the higher-power marginal operational analysis, the smallest risk that can be certified with zero observed disagreements is bounded below by , which at is approximately 0.5%; this is why a 1% target is statistically reachable at this calibration size. This is not the resolution floor for the exact class-conditional frontier, which uses the class-specific certification count and the more conservative allocation . As an empirical calibration diagnostic, at each model's deployed operating point and each we compared the target risk with the disagreement observed on the held-out test set and report the maximum exceedance; this diagnostic checks consistency with the guarantee and does not replace it. Confidence-level ( ), calibration-size, threshold-grid and split-resampling sensitivity analyses are reported in Supplementary Tables 9, 10,
11 and 12 and Supplementary Figs 5 and 6. All certificate and bootstrap computations were implemented in Python with NumPy [27] and SciPy [28], the one-sided Clopper–Pearson bound evaluated as the regularized incomplete beta inverse.
Independent external task validation
To measure task performance independently of reference-model agreement, we evaluated all models at BF16 and under the quantized configurations, including the NF4 4-bit configurations that define the deployment frontier, on two human-annotated disease named-entity benchmarks, BC5CDR-Disease [29] and NCBI-Disease [30], using 200 held-out BC5CDR-Disease documents and the full 100-document NCBI-Disease test split. Models generated disease-entity lists under a disease-focused instruction; the first well-formed list was parsed and scored against the gold spans at the entity level by overlap match, after whitespace and case normalization. We report precision, recall and F1, and the change in F1 relative to the BF16 reference, per model, dataset and precision. This benchmark addresses correctness against human labels, a different question from decision substitution, and the two are treated as complementary rather than interchangeable.
Deterministic bound
We evaluated whether a worst-case deterministic propagation of the quantization-induced logit perturbation could yield a useful bound on the change in decision margin. An illustrative worst-case amplification calculation shows that generic layerwise propagation through a deep transformer can produce an uninformative bound. Because we did not establish model-specific bounds on the initial perturbation or on each layer's operator norm, this calculation is not a numerical bound on the final logit perturbation for the evaluated models; it documents why this generic deterministic approach did not provide a useful certificate at the evaluated scale, which is why the certificate is built on the finite-sample, distribution-level argument above. The calculation is given in the Supplementary Information.
Compute and memory measurement
All inference measurements were made on NVIDIA H200 accelerators under the SLURM scheduler [31]. A 70B or 72B BF16 reference occupies both accelerators of a two-GPU allocation, and the NF4 4-bit configurations of these models have a measured peak allocation below the 48 GB capacity of a single device (we did not execute on that specific hardware). Peak VRAM was recorded as the maximum memory allocated during the forward pass over the evaluation set, summed over the devices required by each configuration, and includes model weights together with runtime allocations, measured with an identical procedure across configurations. Throughput was measured at batch size one as prompts processed per second. Memory and throughput are reported together, because the memory-reduced routes carry a dequantization overhead in the kernel used and we make no joint improvement claim.
Code availability
The CERTA reference implementation is openly available at https://github.com/Ali-Lazem/CERTA. It provides the complete finite-sample certification procedure, comprising Learn-then-Test calibration with one-sided Clopper–Pearson upper bounds and a Bonferroni correction across the threshold grid, the class-conditional (Mondrian) extension with joint risk control across decision classes, the threshold-calibration routine, and the certify-or-escalate serving policy. It also includes the full analysis and figure-generation pipeline, which regenerates every CERTA certificate, table and figure in the main text and the Supplementary Information directly from the recorded per-decision data, with no model inference required; the external named-entity benchmarks additionally draw on the released benchmark outputs and scoring code together with the public gold corpora, as detailed under Data availability. The analysis dependencies are specified in an environment.yml and a requirements.txt, and the released version is tagged at the commit used to produce the reported results. An archived snapshot of the code and the per-decision records is deposited at Zenodo (DOI: 10.5281/zenodo.23435475).
The calibrated CERTA artifacts are released as a curated Hugging Face collection at https://huggingface.co/collections/lazem/certa-certified-compression-for-clinical-decisions-6ad373efa6e143550bc15848. The collection comprises 53 repositories: 33 round-to-nearest variants (8-, 6- and 4-bit for each of the eleven models) as numerical-precision evaluation variants, 11 NF4 4-bit variants, and 9 LLM.int8() 8-bit variants for deployment. The two LLM.int8() configurations that failed to produce usable inference outputs (Llama-3-70B and Med42-70B; the LLM.int8() path casts activations to float16 and yields degenerate outputs for these BF16-native checkpoints) are not released as checkpoints. Their zero certified coverage is recorded in the certificate metadata and in the audit tables, marking them as engineering infeasibility (a failed inference configuration) rather than a statistical certification failure on a successful quantized run. Each repository contains the CERTA certification layer for its model, that is, the calibrated marginal and class-conditional decision thresholds at every evaluated risk level, the machine-readable certificate with its finite-sample guarantee, and a self-contained serving handler that applies the certify-or-escalate policy and loads the corresponding checkpoint. The collection includes the round-to-nearest evaluation variants, which retain BF16 storage and are numerical-precision baselines rather than memory-reducing deployment variants, alongside the memory-reducing NF4 and LLM.int8() variants; serving configurations intended for memory-reduced deployment use the corresponding deployable quantized checkpoints. The two quantization routes evaluated in the study, round-to-nearest and the bitsandbytes NF4 and LLM.int8() implementations [4, 5], are included. To respect upstream licensing, CERTA does not re-host the original base-model weights. Each quantized checkpoint is released only where the applicable upstream licence permits redistribution of modified weights, under the terms of that upstream licence; where a licence restricts redistribution or gates access, the checkpoint is not released and only the CERTA layer and instructions to reproduce the quantization are provided. Each released repository ships the applicable base-model licence or licences, an Apache-2.0 licence for the CERTA-authored components, and an explicit record of the base model and its provenance. The precise redistribution terms are those of each upstream licence rather than a single uniform classification.
Data availability
The clinical accept/reject decisions analysed in this study were derived from de-identified patient summaries in the publicly available PMC-Patients corpus [21]. External task validation used the publicly available BC5CDR-Disease [29] and NCBI-Disease [30] disease named-entity recognition benchmarks. The complete per-decision records underlying every reported certification result, comprising the reference-model decision, the quantized-model decision and the decision margin for each input and configuration, are released with the code above and regenerate every CERTA certificate, table and figure in the main text and Supplementary Information without further model inference. The external named-entity F1 results (Fig. 5 and Supplementary Table 16) are reproduced from the recorded benchmark outputs (per-model, per-dataset precision, recall and F1) released with the code, scored by the included overlap scorer against the public BC5CDR-Disease and NCBI-Disease gold corpora; the per-entity paired analysis (Supplementary Tables 17 and 18), and regeneration of the benchmark outputs themselves, require re-running the released inference and scoring code on those public benchmark documents with the model weights, as documented in the code. The base-model checkpoints are publicly available from their original repositories and are listed, with their exact identifiers, in Supplementary Table 19. The in-house clinical verification pipeline that produced the accept/reject decisions is the subject of a separate forthcoming study and is not released here; the released per-decision records are nonetheless sufficient to reproduce every CERTA certification result reported in this work.
Author contributions
A.H.L. conceived the study, performed the analysis, and wrote the manuscript. W.T. supervised the work and revised the manuscript.
Acknowledgements
We acknowledge the services of Supercomputing Wales and the Bangor eResearch Team, including the support provided by Dr. Ade Fewings.
Funding
This work was supported by the Ministry of Higher Education and Scientific Research in Iraq. No grant number was assigned.
Competing interests
The authors declare no competing interests.
Table 1 Class-conditional certified deployment frontier at (higher-power operational analysis). For each model, the configuration is selected using calibration-side information; class-conditional coverage, overall coverage and amortized size are then estimated on the held-out, patient-disjoint test set, so the costs shown are out-of-sample estimates for a test-independent selection. The table reports the lowest-amortized-cost configuration satisfying the class-conditional (Mondrian) CERTA risk constraint within each predicted decision class, with uncertifiable inputs routed to the BF16 reference. In the evaluated candidate set, all eleven frontier points select NF4 at 4 bits. and denote certified coverage within the predicted ACCEPT and REJECT classes on the held-out, patient-disjoint test set. An italicized zero means that the corresponding predicted class is fully escalated because it cannot be certified at the target risk. Overall coverage and escalation are the test-set fractions served by the quantized model and routed to the reference, respectively. Amortized size is the coverage-weighted deployment cost relative to the 16-bit BF16 reference. BF16 and NF4 are measured peak VRAM. For the seven 70–72B models, the NF4 compressed model has a measured peak below the nominal capacity of a single 48-GB accelerator (not directly tested on that hardware). The reference must remain reachable wherever the operating point permits escalation; zero observed escalation on the evaluated decisions does not remove this requirement for unseen inputs. Qwen2.5-72B and HuatuoGPT-o1-72B reach the 4-bit floor of BF16-equivalent size under the marginal frontier at and , and under the stricter class-conditional frontier at and , respectively; their class-conditional frontiers at are and .
| Model | Fam. | Adapt. | Params. (B) | NF4 | (%) | (%) | Overall coverage (%) | Escalation (%) | Amortized size (% BF16) | BF16 VRAM (GB) | NF4 VRAM (GB) |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 70-72B models | |||||||||||
| Qwen2.5-72B | Q | G | 72 | ✓ | 97.4 | 100.0 | 98.9 | 1.1 | 25.8 | 146.3 | 43.0 |
| HuatuoGPT-o1-72B | Q | D | 72 | ✓ | 92.7 | 100.0 | 96.9 | 3.1 | 27.3 | 146.1 | 42.7 |
| Med42-70B | L | D | 70 | ✓ | 97.7 | 88.2 | 94.2 | 5.8 | 29.4 | 141.9 | 41.2 |
| OpenBioLLM-70B | L | D | 70 | ✓ | 98.7 | 0.0 | 92.6 | 7.4 | 30.6 | 141.7 | 41.0 |
| Llama-3-70B | L | G | 70 | ✓ | 85.9 | 92.3 | 88.1 | 11.9 | 33.9 | 141.9 | 41.2 |
| MMed-Llama-3.1-70B | L | D | 70 | ✓ | 96.5 | 0.0 | 86.4 | 13.6 | 35.2 | 141.9 | 41.2 |
| Llama-3.3-70B | L | G | 70 | ✓ | 72.3 | 100.0 | 81.2 | 18.8 | 39.1 | 141.9 | 41.2 |
| 7-8B models | |||||||||||
| BioMistral-7B | M | D | 7 | ✓ | 96.3 | 0.0 | 95.7 | 4.3 | 28.2 | 14.8 | 4.6 |
| Llama-3-8B | L | G | 8 | ✓ | 89.6 | 94.8 | 91.0 | 9.0 | 31.7 | 16.7 | 6.4 |
| Mistral-7B | M | G | 7 | ✓ | 89.4 | 80.6 | 84.9 | 15.1 | 36.3 | 14.9 | 4.7 |
| MMed-Llama-3-8B | L | D | 8 | ✓ | 100.0 | 35.1 | 79.8 | 20.2 | 40.2 | 16.7 | 8.7 |
Notes. Family: architecture family (Q, Qwen; L, Llama; M, Mistral). Adaptation: General, general-purpose checkpoint; Domain, domain-adapted checkpoint (G, general; D, domain). NF4: Frontier configuration NF4-4 denotes 4-bit NF4, which is the lowest-amortized-cost configuration in the evaluated candidate set for all eleven models at under the class-conditional policy. : certified coverage within the predicted ACCEPT and REJECT decision classes. 0.0 denotes complete escalation of that predicted class, not missing data or failed inference. Overall coverage: fraction of held-out decisions served by the quantized model using the observed test-set class composition. Escalation: fraction routed to the BF16 reference (Overall coverage + Escalation = 100%). Amortized size: coverage-weighted deployment cost as a percentage of the 16-bit BF16 reference. VRAM: measured peak GPU allocation during inference. For configurations with non-zero escalation, fitting the NF4 compressed model within 48 GB does not by itself imply a one-GPU end-to-end deployment, because the BF16 reference must remain reachable for escalated decisions. The zero-escalation rows are the configurations for which the compressed model alone can serve the evaluated decision stream.
Ethics
This study is a retrospective, computational analysis of PMC-Patients [21], a publicly available dataset of de-identified patient summaries curated from open-access case reports in PubMed Central. It involved no patient contact, no change to patient care, and no access to direct identifiers at any stage. Under the applicable institutional policy, secondary analysis of this kind, using only publicly available, de-identified records, did not require human-subjects or ethics approval or informed consent.

Fig. 1 CERTA turns compression into a per-decision certify-or-escalate policy. For each clinical input x, the quantized candidate (at 4, 6 or 8 bits) proposes a decision, and CERTA compares its decision margin against a threshold calibrated to a risk level . Decisions that clear the certificate are served by on the low-memory path; the rest are escalated to the BF16 reference F. The 70–72B reference occupies 142–146 GB and spans two 80 GB accelerators, whereas the certified NF4 path has a measured peak of 41–43 GB, below the nominal capacity of a single 48 GB accelerator (deployment on that specific hardware was not directly tested). The reference must remain reachable whenever the policy permits escalation. For a clinical accept/reject decision, the threshold is calibrated separately per decision class (class-conditional, Mondrian).
References
[1] Singhal, K., Azizi, S., Tu, T., Mahdavi, S.S., Wei, J., Chung, H.W., Scales, N., Tanwani, A., Cole-Lewis, H., Pfohl, S., et al.: Large language models encode clinical knowledge. Nature 620(7972), 172–180 (2023) https://doi.org/10.1038/s41586-023-06291-2
[2] Thirunavukarasu, A.J., Ting, D.S.J., Elangovan, K., Gutierrez, L., Tan, T.F., Ting, D.S.W.: Large language models in medicine. Nature Medicine 29(8), 1930–1940 (2023) https://doi.org/10.1038/s41591-023-02448-8
[3] Frantar, E., Ashkboos, S., Hoefler, T., Alistarh, D.: GPTQ: Accurate post-training quantization for generative pre-trained transformers. In: International Conference on Learning Representations (ICLR) (2023). arXiv:2210.17323
[4] Dettmers, T., Lewis, M., Belkada, Y., Zettlemoyer, L.: LLM.int8(): 8-bit matrix multiplication for transformers at scale. In: Advances in Neural Information Processing Systems (NeurIPS), vol. 35 (2022). arXiv:2208.07339
[5] Dettmers, T., Pagnoni, A., Holtzman, A., Zettlemoyer, L.: QLoRA: Efficient finetuning of quantized LLMs. In: Advances in Neural Information Processing Systems (NeurIPS), vol. 36 (2023). arXiv:2305.14314
[6] Lin, J., Tang, J., Tang, H., Yang, S., Chen, W.-M., Wang, W.-C., Xiao, G., Dang, X., Gan, C., Han, S.: AWQ: Activation-aware weight quantization for LLM compression and acceleration. In: Proceedings of Machine Learning and Systems (MLSys) (2024). arXiv:2306.00978
[7] Angelopoulos, A.N., Bates, S., Candès, E.J., Jordan, M.I., Lei, L.: Learn then test: Calibrating predictive algorithms to achieve risk control. The Annals of Applied Statistics 19(2), 1641–1662 (2025)
[8] Angelopoulos, A.N., Bates, S.: A gentle introduction to conformal prediction and distribution-free uncertainty quantification. Foundations and Trends in Machine Learning 16(4), 494–591 (2023) https://doi.org/10.1561/2200000101
[9] Angelopoulos, A.N., Bates, S., Fisch, A., Lei, L., Schuster, T.: Conformal risk control. In: International Conference on Learning Representations (ICLR) (2024). arXiv:2208.02814
[10] Clopper, C.J., Pearson, E.S.: The use of confidence or fiducial limits illustrated in the case of the binomial. Biometrika 26(4), 404–413 (1934) https://doi.org/10.1093/biomet/26.4.404
[11] Grattafori, A., Dubey, A., Jauhri, A., Pandey, A., Kadian, A., et al.: The llama 3 herd of models. arXiv preprint arXiv:2407.21783 (2024)
[12] Qwen Team: Qwen2.5 technical report. arXiv preprint arXiv:2412.15115 (2024)
[13] Jiang, A.Q., Sablayrolles, A., Mensch, A., Bamford, C., Chaplot, D.S., Casas, D., Bressand, F., Lengyel, G., Lample, G., Saulnier, L., et al.: Mistral 7b. arXiv preprint arXiv:2310.06825 (2023)
[14] Christophe, C., Kanithi, P.K., Raha, T., Khan, S., Pimentel, M.A.F.: Med42-v2:
A suite of clinical LLMs. arXiv preprint arXiv:2408.06142 (2024)
[15] Pal, A., Sankarasubbu, M.: OpenBioLLM: Advancing Open-Source Large Language Models in the Medical and Healthcare Domain. Saama AI Labs. Hugging Face model aaditya/Llama3-OpenBioLLM-70B. https://huggingface.co/aaditya/Llama3-OpenBioLLM-70B (2024)
[16] Qiu, P., Wu, C., Zhang, X., Lin, W., Wang, H., Zhang, Y., Wang, Y., Xie, W.: Towards building multilingual language model for medicine. Nature Communications 15, 8384 (2024) https://doi.org/10.1038/s41467-024-52417-z
[17] Labrak, Y., Bazoge, A., Morin, E., Gourraud, P.-A., Rouvier, M., Dufour, R.: BioMistral: A collection of open-source pretrained large language models for medical domains. In: Findings of the Association for Computational Linguistics: ACL 2024, pp. 5848–5864 (2024). https://doi.org/10.18653/v1/2024.findings-acl.348
[18] Chen, J., Cai, Z., Ji, K., Wang, X., Liu, W., Wang, R., Hou, J., Wang, B.: HuatuoGPT-o1, towards medical complex reasoning with LLMs. arXiv preprint arXiv:2412.18925 (2024)
[19] Wolf, T., Debut, L., Sanh, V., Chaumond, J., Delangue, C., Moi, A., Cistac, P., Rault, T., Louf, R., Funtowicz, M., et al.: Transformers: State-of-the-art natural language processing. In: Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pp. 38–45 (2020). https://doi.org/10.18653/v1/2020.emnlp-demos.6
[20] Paszke, A., Gross, S., Massa, F., Lerer, A., Bradbury, J., Chanan, G., Killeen, T., Lin, Z., Gimelshein, N., Antiga, L., et al.: PyTorch: An imperative style, high-performance deep learning library. In: Advances in Neural Information Processing Systems (NeurIPS), vol. 32, pp. 8024–8035 (2019)
[21] Zhao, Z., Jin, Q., Chen, F., Peng, T., Yu, S.: A large-scale dataset of patient summaries for retrieval-based clinical decision support systems. Scientific Data 10(1), 909 (2023)
[22] Brown, L.D., Cai, T.T., DasGupta, A.: Interval estimation for a binomial proportion. Statistical Science 16(2), 101–133 (2001)
[23] Dunn, O.J.: Multiple comparisons among means. Journal of the American Statistical Association 56(293), 52–64 (1961) https://doi.org/10.1080/01621459.1961.10482090
[24] Vovk, V., Gammerman, A., Shafer, G.: Algorithmic Learning in a Random World. Springer, New York, NY (2005). https://doi.org/10.1007/b106715
[25] Vovk, V., Lindsay, D., Nouretdinov, I., Gammerman, A.: Mondrian confidence machine. Technical report, Royal Holloway, University of London (2003)
[26] Efron, B.: Bootstrap methods: Another look at the jackknife. The Annals of Statistics 7(1), 1–26 (1979) https://doi.org/10.1214/aos/1176344552
[27] Harris, C.R., Millman, K.J., Walt, S.J., Gommers, R., Virtanen, P., Cournapeau, D., Wieser, E., Taylor, J., Berg, S., Smith, N.J., et al.: Array programming with NumPy. Nature 585(7825), 357–362 (2020) https://doi.org/10.1038/s41586-020-2649-2
[28] Virtanen, P., Gommers, R., Oliphant, T.E., Haberland, M., Reddy, T., Cournapeau, D., Burovski, E., Peterson, P., Weckesser, W., Bright, J., et al.: SciPy 1.0: fundamental algorithms for scientific computing in Python. Nature Methods 17(3), 261–272 (2020) https://doi.org/10.1038/s41592-019-0686-2
[29] Li, J., Sun, Y., Johnson, R.J., Sciaky, D., Wei, C.-H., Leaman, R., Davis, A.P., Mattingly, C.J., Wiegers, T.C., Lu, Z.: BioCreative V CDR task corpus: a resource for chemical disease relation extraction. Database (Oxford) 2016, 068 (2016) https://doi.org/10.1093/database/baw068
[30] Doğan, R.I., Leaman, R., Lu, Z.: NCBI disease corpus: A resource for disease name recognition and concept normalization. Journal of Biomedical Informatics 47, 1–10 (2014) https://doi.org/10.1016/j.jbi.2013.12.006
[31] Yoo, A.B., Jette, M.A., Grondona, M.: Slurm: Simple linux utility for resource management. In: Feitelson, D., Rudolph, L., Schwiegelshohn, U. (eds.) Job Scheduling Strategies for Parallel Processing, pp. 44–60. Springer, Berlin, Heidelberg (2003)
Marginal certified coverage across configurations

(b)
Raw agreement is not a deployment certificate

(c)
Hardware footprint of the 70--72B models

Fig. 2 Decision certification across eleven models, the gap between raw agreement and what is statistically certifiable, and the resulting hardware footprint. a, Marginal certified coverage (%) for each model under round-to-nearest at 8, 6 and 4 bits, 8-bit LLM.int8() (INT8) and NF4 4-bit, at ; the class-conditional (Mondrian) policy used for clinical deployment is shown separately in Fig. 3 and Table 1. Eight-bit round-to-nearest certifies at least 99.8% for every model, whereas round-to-nearest 4-bit is strongly model-dependent. Stars mark configurations that certify at 100% with no escalation; crosses mark the LLM.int8() configurations that produce degenerate outputs on two BF16-native 70B checkpoints (an implementation failure) and are assigned zero deployable coverage. b, Raw decision preservation versus certified coverage for every model at round-to-nearest 4-bit (circles) and NF4 4-bit (squares), coloured by family. Points lie below the identity line because the certificate rejects the low-margin cases that raw agreement would accept; the mean gap is 14.8 percentage points (for example Llama-3-8B at round-to-nearest 4-bit, raw 70.6% but certified 15.0%). c, Measured peak VRAM for each of the seven 70–72B models at BF16, 8-bit LLM.int8() (INT8) and NF4 4-bit; the three shaded regions mark how many accelerators the footprint requires. Every model moves from 142–146 GB at BF16, which spans two 80 GB GPUs, to 41–43 GB under NF4, below the nominal capacity of a single 48 GB device (not directly tested on that hardware).

(b)
(c)

Class-conditional (Mondrian) vs marginal: -0.8 to +7.9 pp; flagship near 26%

Fig. 3 A risk level determines the deployable footprint, the certificate is calibrated, and the class-conditional guarantee costs little. a, Marginal (lower-envelope) deployment size as a function of the risk level for six representative models; every model retains a certified operating point across the range, and the monotonic, stable curves approach the 4-bit floor (25%, dotted) as relaxes. b, Calibration diagnostic: for every model and quantizer (light lines), the disagreement observed on the held-out test set at the deployed operating point stays at or below the target (dashed identity) across from 1% to 10%; no line enters the shaded region, the closest approach being Med42-70B under round-to-nearest 4-bit at . c, Deployment size at under the marginal certificate versus the class-conditional (Mondrian) policy. The per-class guarantee changes size by -0.8 to +7.9 percentage points (median +2.3); three models escalate their entire reject class rather than certify it unsafely (labelled), and the flagship models remain near 26%.
(b)

Fig. 4 The quantizer determines whether four-bit compression is certifiable. a, Raw 4-bit decision preservation moving from round-to-nearest (open circles) to NF4 (filled, coloured by family) for each model; NF4 improves preservation for all eleven models. b, Certified coverage at for the same models moving from round-to-nearest (open circles) to NF4 (filled) at 4-bit; NF4 lifts certified coverage into the 82.2% to 100% range (dotted line, 95%). The domain fine-tunes that round-to-nearest had failed, OpenBioLLM-70B (98.1%), Med42-70B (97.5%), MMed-Llama-3.1-70B (96.9%) and BioMistral-7B (95.8%), all certify at high coverage under NF4, and MMed-Llama-3-8B rises from 0% to 84.2%. Both panels share the same row order, so a model can be tracked across them.

(b)
(c)
Reference agreement and task accuracy are complementary ( )

Fig. 5 The frontier-selected configurations preserve external task accuracy, which is complementary to, not the same as, reference agreement. a,b, Disease named-entity F1 against human annotations on BC5CDR-Disease (a) and NCBI-Disease (b) in BF16, round-to-nearest 8/6/4-bit and the frontier-selected NF4 4-bit configuration. Eight- and six-bit round-to-nearest quantization changes the F1 score negligibly; the frontier-selected NF4 4-bit configurations change it comparably to round-to-nearest 4-bit quantization (mean absolute change 0.045 on BC5CDR and 0.045 on NCBI), and MMed-Llama-3.1-70B, the worst round-to-nearest 4-bit casualty (-0.163 and -0.198), recovers under the frontier-selected NF4 configuration (+0.078 and +0.091). c, NF4 4-bit certified coverage versus the mean absolute change in F1. The per-model association is weak and the eleven configurations occupy distinct positions: the certificate concerns agreement with the reference on the verifier task, whereas the benchmark concerns correctness against human labels on a different task, so the two provide complementary evidence.
Supplementary Information Do We Need the Largest LLMs for Every Clinical Decision?
This Supplementary Information provides the formal certificate, extended methods, complete per-model audit tables, statistical and distributional robustness analyses, and the reproducibility record for CERTA. It is organized as thirteen sections: study design and task (S1); the formal finite-sample guarantee with the certification algorithm (S2); the class-conditional derivation (S3); the complete per-configuration and per-class certificate audit (S4); the two mechanisms by which a decision class is escalated (S5); statistical robustness to the confidence level, calibration size, threshold grid and split resampling (S6); distributional robustness to prevalence shift (S7); deployment behaviour on escalated cases (S8); task-wise certification (S9); external human-gold validation (S10); the deterministic-bound impossibility result (S11); the reproducibility record of models, software and commands (S12); and a glossary of the statistical and quantization terms with the rationale for each (S13). The primary certificate and all main-text results use the prespecified patient-disjoint split (, , 2,484 patients); the robustness analyses below additionally repeat the procedure over twenty independent patient-disjoint splits and re-run it with one decision per patient. All certificate and robustness analyses use the recorded per-input reference decisions, quantized decisions and quantized margins and require no additional model inference; the external named-entity results are taken from the locked benchmark outputs. Confidence intervals for empirical clinical-verifier coverage estimates are patient-clustered bootstrap intervals (patients, not individual decisions, are resampled, respecting the sixteen patients that contribute two decisions each); confidence intervals for the external named-entity benchmarks (BC5CDR-Disease, NCBI-Disease), whose evaluation units are public documents rather than patients, are document-level bootstrap intervals. All bootstraps use 1,000 resamples. These intervals quantify empirical-estimate uncertainty; the formal decision-risk control is provided by the Clopper–Pearson certificate described below, not by the bootstrap.
What CERTA does, and does not, certify. CERTA controls compression-induced disagreement risk: the rate at which the quantized model's decision differs from the BF16 reference on the inputs it is permitted to serve. It does not control clinical-correctness risk: whether the reference decision is itself correct against a clinical ground truth. The external named-entity benchmarks estimate a third, separate quantity, task-performance change against human labels. These three risks are kept distinct throughout: the certificate bounds the first, the benchmarks probe the third, and the second is the object of the future clinician-adjudication study.
Clinical reading of the decision classes. An ACCEPT decision retains a candidate clinical entity or answer; a REJECT decision suppresses it. A disagreement with the reference can correspond either to a false accept or a false reject, whose clinical consequences may differ by workflow. CERTA therefore does not impose an a priori stricter risk on one class: the same target is controlled separately for the ACCEPT and REJECT classes, and whichever class cannot be certified at that target is escalated. Empirically it is usually the REJECT class that is escalated, because it is the rarer decision and shows poorer compressed-versus-reference agreement (Supplementary Tables 5 and 6).
Contents
Supplementary Note 1 Study design and task ..... 2
Supplementary Note 2 Formal CERTA guarantee ..... 3
Supplementary Note 3 Class-conditional certification ..... 6
Supplementary Note 4 Complete certificate audit ..... 7
Supplementary Note 5 Why classes are escalated ..... 8
Supplementary Note 6 Statistical robustness ..... 8
Supplementary Note 7 Distribution robustness: prevalence shift ..... 12
Supplementary Note 8 Deployment behaviour: escalated cases ..... 12
Supplementary Note 9 Task-wise certification ..... 14
Supplementary Note 10 External human-gold validation ..... 15
Supplementary Note 11 Illustrative worst-case amplification calculation ..... 16
Supplementary Note 12 Reproducibility ..... 18
Supplementary Note 13 Terminology and methodological rationale ..... 22
Supplementary Note 1 Study design and task
Table 1 defines the quantities used throughout the paper. (For further explanation of terminology and methodological rationale, see Supplementary Note 13.)
The de-identified clinical narrative corpus is the publicly available PMC-Patients dataset of patient summaries curated from open-access PubMed Central case reports; it is sampled into the verifier accept/reject decision set that CERTA certifies. This set is split patient-disjointly into calibration and held-out test, and the same model checkpoints are separately evaluated on independent, human-annotated public named-entity benchmarks.
The certified decision is the accept/reject step of an in-house clinical information-extraction and verification pipeline that we have not yet published; only this accept/reject step is used or evaluated here. Once the verifier decisions and quantized margins have been recorded, the certification procedure itself does not depend on any pipeline-specific model internals; its distributional validity depends only on how the inputs were sampled and on the exchangeability of calibration and test decisions. In this pipeline, a generator model proposes candidate clinical entities and answers extracted from de-identified patient narratives, and a verifier model adjudicates each candidate. The evaluated decision space is binary, ACCEPT and REJECT, and the model is constrained to a single-token accept/reject answer rendered with each checkpoint's native chat template; for checkpoints whose template does not accept a system role, the system instruction is merged into the user turn. Two candidate types were evaluated in equal numbers: named-entity verification (“Is a candidate entity, with a proposed category, a valid and specific clinical entity of that category?”) and answer verification (“Is a proposed answer supported by the supplied context and question?”). Reject cases were constructed by substituting a mismatched answer or a different clinical category, so that the evaluation contains controlled reject cases (constructed from real clinical contexts) rather than an accept-only distribution.
Supplementary Table 1: Interpretation of quantities. Symbols and quantities used in the certificate and throughout this Supplement.
| Symbol | Meaning |
|---|---|
| a single decision input (a candidate clinical accept/reject decision) | |
| BF16 reference decision, ACCEPT or REJECT | |
| quantized-model decision on the same input | |
| predicted decision class of the class-conditional certificate, ; the two classes are abbreviated A (accept) and R (reject) in subscripts | |
| decision margin between the accept and reject answer-token logits at -bit precision | |
| disagreement indicator (where the indicator function flags disagreements: 1 means disagreement; 0 means agreement). | |
| target per-decision disagreement risk (risk level) | |
| confidence parameter; the certificate holds with probability | |
| number of candidate thresholds in the calibration grid | |
| selected margin threshold (marginal; per predicted class ) | |
| calibration inputs (total; in predicted class ) | |
| class- service indicator, | |
| marginal disagreement risk on the served region, | |
| class- disagreement risk, | |
| one-sided Clopper–Pearson upper confidence bound on the risk at threshold | |
| zero-disagreement resolution floor | |
| nominal bit-width of the compressed configuration (e.g. 4 for NF4) | |
| coverage: fraction of decisions served by the quantized model | |
| escalation: fraction routed to the BF16 reference () | |
| amortized size: coverage-weighted nominal-bit cost as a percentage of BF16, 100; a BF16-equivalent nominal-bit metric, not physical VRAM (% BF16) |
Decision distribution. Because class imbalance in the verifier's own decisions is what motivates the class-conditional policy, Supplementary Table 2 reports, for every model, the prevalence of ACCEPT/REJECT decisions in the BF16 reference and in the NF4 quantized model, overall and separately for the two task types. Several clinically adapted models are strongly acceptance-skewed (for example, the reject class of MMed-Llama-3.1-70B and OpenBioLLM-70B is a small minority of their decisions), which is precisely the regime in which a single marginal threshold can leave the rare reject decision poorly controlled.
Supplementary Note 2 Formal CERTA guarantee
Algorithm S1 states the calibration procedure, an instance of Learn-then-Test: a distribution-free calibration method that fixes a finite grid of candidate thresholds and then selects one on held-out data so that a user-specified risk is controlled with finite-sample, high-probability confidence (main-text Methods). To keep the candidate grid independent of the data used to certify it, CERTA splits the calibration decisions into a threshold-selection subset, used only to construct the -point candidate grid, and a disjoint certification subset, used only to evaluate the Clopper–Pearson
Supplementary Table 2: Decision distribution for various models. Prevalence (%) of accept (A) and reject (R) decisions for the BF16 reference and the NF4 4-bit model overall and split by task (named-entity / answer verification), on the full evaluation set.
| Model | Ref A | Ref R | NF4 A | NF4 R | Ref A NER/QA | NF4 A NER/QA |
|---|---|---|---|---|---|---|
| Qwen2.5-72B | 41.2 | 58.8 | 42.8 | 57.2 | 45.0/37.4 | 46.2/39.4 |
| HuatuoGPT-o1-72B | 40.5 | 59.5 | 41.9 | 58.1 | 42.8/38.2 | 43.6/40.2 |
| Med42-70B | 62.1 | 37.9 | 62.5 | 37.5 | 83.4/40.9 | 84.2/40.8 |
| OpenBioLLM-70B | 91.1 | 8.9 | 93.2 | 6.8 | 99.4/82.8 | 100.0/86.5 |
| MMed-Llama-3.1-70B | 86.8 | 13.2 | 89.0 | 11.0 | 100.0/73.6 | 100.0/77.9 |
| Llama-3.3-70B | 57.5 | 42.5 | 67.2 | 32.8 | 83.4/31.7 | 92.2/42.1 |
| Llama-3-70B | 60.3 | 39.7 | 64.3 | 35.7 | 83.3/37.3 | 89.9/38.7 |
| Llama-3-8B | 66.0 | 34.0 | 70.4 | 29.6 | 98.0/34.0 | 98.6/42.2 |
| MMed-Llama-3-8B | 74.0 | 26.0 | 67.7 | 32.3 | 99.4/48.5 | 99.3/36.1 |
| Mistral-7B | 51.8 | 48.2 | 47.8 | 52.2 | 72.3/31.4 | 67.5/28.1 |
| BioMistral-7B | 94.3 | 5.7 | 99.5 | 0.5 | 100.0/88.6 | 100.0/99.0 |
bounds; coverage is then measured on the held-out test set. Because the grid is fixed before the certification labels are read, the finite-sample Learn-then-Test guarantee is exact: at each fixed candidate threshold, the served certification decisions form a binomial disagreement sample, and a one-sided Clopper–Pearson upper bound at the Bonferroni-corrected level controls its risk (Algorithm S1, Lines 7–8), and the smallest threshold whose bound clears the target is deployed (Line 10; a class with no admissible threshold is escalated in full). The class-conditional variant runs the same procedure independently within each predicted decision class at .
The certificate reported in the main text uses the full 1,250-decision calibration set for both the grid and the bounds, a higher-power operational estimate. The exact certificate instead handles every source of data-dependent selection: it builds the grid on the 250-decision selection subset (Lines 4–5) and evaluates the bounds on the 1,000-decision certification subset reduced to one decision per patient (996 decisions). The selection, certification and 1,250-decision test subsets are mutually patient-disjoint, so no patient appears in more than one (the 2,500 decisions come from 2,484 patients, each confined to a single subset), the grid is independent of the certification labels, and, conditional on the number of served certification inputs , the disagreement count is binomial under the patient-level iid assumption; and it applies an outer Bonferroni across the H deployable configurations, so the guarantee holds for the configuration the frontier selects (Proposition S1 and Remark S1). The exactness check comparing this frontier with the reported one is given in the statistical-robustness section (Supplementary Table 7).
For the class-conditional variant, the allocation on Line 5 becomes ; the exact -configuration frontier uses or (Remark S1). Here denotes the -quantile of the distribution, equivalently the inverse of the regularized incomplete beta function, which is the standard closed form of the one-sided Clopper–Pearson upper confidence bound. For the boundary cases used in the algorithm, is defined as 1 when or ; otherwise it is the Beta-quantile expression below.
Proposition S1 (Finite-sample decision-risk control). Fix and let the candidate grid be fixed independently of the certification set, and suppose the certification set contains one decision per patient, with these certification patients and future deployment patients independent and identically distributed (so the served certification units are independent). For each let and be the number of disagreements and the number of served inputs in the certification set,
Require: threshold-selection set and certification set (disjoint calibration subsets, each restricted to inputs whose quantized prediction is class ), each a set of pairs with margin and disagreement flag ; target risk ; confidence allocation ; grid size . Marginal variant: use the unrestricted sets , . Allocation: set (marginal, one configuration) or (class-conditional, one configuration); for the exact frontier selected among deployable configurations, or respectively.
Ensure: threshold and a serve-or-escalate rule
1: if then
2: and return
▷ no class-g selection data: escalate class g in full
3: end if
4: -point grid of empirical margin quantiles of
▷ fixed before is read
5: use the supplied per-threshold allocation or for one configuration; or for the exact configuration-selected frontier
6: for each do
7: , marginal variant: use unrestricted
8: Clopper–Pearson upper bound
9: end for
10: , or if no such
▷ escalates class in full
11: Deployment: serve input with the quantized model if (class-conditional; for the marginal variant, which uses a single threshold), otherwise escalate to the BF16 reference
Algorithm S1: CERTA certify-or-escalate calibration (one decision class; run once per class for the class-conditional variant).
and let denote the served-region disagreement risk. The one-sided Clopper–Pearson upper bound
is valid for . Selecting the smallest with gives, with probability at least over the draw of the certification sample, a disagreement risk whenever a finite threshold is selected; if no admissible threshold exists the procedure escalates the class in full and serves no compressed decisions. Running the procedure separately within each predicted class with allocation yields
that is, every class served by the compressed model satisfies the target risk, while a fully escalated class serves no compressed decisions and contributes no compression-induced disagreement; here is the class-conditional disagreement risk within the predicted accept (A) or reject (R) class, defined in Table 1. The guarantee is stated for the sampling unit of one decision drawn per independent patient according to the deployment sampling protocol; it does not automatically extend to an unrestricted collection of multiple correlated decisions from the same patient, which would require a cluster-level sampling or risk-control argument.
Plain-language reading. Try the candidate margin thresholds in turn. At each one, count how often the quantized model disagrees with the BF16 reference on the cases it would serve, and compute a one-sided confidence bound on that disagreement rate. Deploy the smallest threshold whose bound is already at or below the target ; if none qualifies, escalate the class in full. Because the grid is fixed before the certification labels are read and the bound is widened to cover all G thresholds tried, the served decisions provably disagree with the reference at most a fraction of the time, with confidence .
Proof sketch. Fix . Since is built from the selection set, which is disjoint from the certification set, is independent of the certification labels; conditioning on the number of served certification inputs , the served-set disagreement count is Binomial under the one-decision-per-patient iid assumption, so on the non-boundary thresholds and the one-sided Clopper–Pearson quantity is a valid upper confidence bound: . For the boundary thresholds or the bound is defined as ; since such a threshold is never admissible, so it is never selected and the beta-quantile argument is only needed on the non-boundary cases. A Bonferroni union bound over the fixed candidates makes the probability that any candidate's bound understates its risk at most ; on the complementary event, if an admissible threshold exists, the selected , which satisfies by construction, obeys , giving for the (nonempty) served region. When no admissible threshold exists the class is escalated in full : no compressed decisions are served, the conditional risk is not defined, and the class contributes no compression-induced deployment disagreement, so the all-escalated outcome is consistent with the policy. For the class-conditional variant, the same argument applied within each predicted class at allocation gives each class a guarantee, and a union bound over the two classes yields the joint statement.
Remark S1 (Selection across configurations). When the deployed configuration is chosen by minimum amortized size over H candidate deployable configurations, the choice is itself data-dependent. Replacing the per-threshold allocation by (and by for the class-conditional variant) and taking a union bound over the fixed (configuration, threshold) pairs makes the guarantee hold simultaneously for the selected configuration. The exact certificate uses this correction with deployable configurations (NF4 and 8-bit LLM.int8()); round-to-nearest retains BF16 storage and is excluded from deployment selection. Consistent with the main text, the configuration is selected using calibration-side coverage, so the selection is independent of the test set, which is used only to estimate the selected configuration's coverage and amortized cost (an out-of-sample estimate). The higher-power operational frontier reported in the main text omits this outer factor; Supplementary Table 7 shows that reinstating it, together with the independent grid and one-decision-per-patient certification, changes the frontier by a median of 1.0 and at most 8.2 percentage points.
Plain-language reading. Choosing which compressed configuration to deploy on the basis of its cost is itself a decision made from the data, so we must pay for it statistically: the confidence budget is split across the H candidate configurations as well as the G thresholds, which is why becomes . With only H = 2 deployable configurations, this costs almost nothing, and the main-text frontier, which skips this extra split for statistical power, lands within a median of 1.0 percentage point of the fully corrected one.
Supplementary Note 3 Class-conditional certification
The marginal certificate selects a single threshold by Learn-then-Test over a grid of candidate thresholds, using a Bonferroni allocation so that the finite-sample disagreement bound holds with confidence at least . When two class-conditional certificates are calibrated jointly (one per predicted decision class), controlling each class independently at confidence would guarantee only jointly. To retain the stated over both classes, each class receives a Bonferroni allocation of across its own threshold grid. For a single, prespecified configuration whose candidate grid is fixed independently of the certification sample, a union bound over the two class-conditional events then yields the joint class-conditional guarantee of Proposition S1: with probability at least , every class served by the compressed model satisfies the target risk, while a fully escalated class serves no compressed decisions. The higher-power operational class-conditional analyses in the main text and this Supplement use this allocation; the exact split-sample frontier additionally accounts for selection among the deployable configurations, using (Remark S1, Supplementary Table 7). Unless explicitly stated otherwise, the operational frontier and its robustness analyses are reported as empirical operating-point estimates, and the formal finite-sample guarantee applies to the exact split-sample procedure. The correction is inexpensive, and it is a distinct comparison from the marginal-versus-class-conditional cost reported in the main text: relative to the naive class-wise allocation, the joint correction increases each model's class-conditional frontier by at most 2.3 percentage points of BF16 size, whereas the main-text figure of -0.8 to +7.9 points (median +2.3) is the cost of the class-conditional policy relative to the marginal certificate. The two flagship models are unaffected by this correction: at their class-conditional deployment sizes are 25.8% (Qwen2.5-72B) and 27.3% (HuatuoGPT-o1-72B) of the BF16 size under the joint allocation, the same values as under the naive per-class allocation (Supplementary Table 13).
Sensitivity of the class-conditional frontier. The class-conditional frontier inherits the modest sensitivity of the marginal certificate to the confidence level (Supplementary Table 9, Mondrian columns): the flagship operating points move by less than one percentage point of BF16 size (Qwen2.5-72B 25.8% to 26.2%, HuatuoGPT-o1-72B 27.3% to 28.2%) as confidence tightens from 90% to 99%. Supplementary Table 13 reports the class-conditional frontier and its escalation fraction at . Relaxing the risk level moves each model from a high-escalation regime (at Qwen2.5-72B certifies at 59.2% of BF16 size and escalates 45.6% of decisions) down toward the 4-bit floor (at Qwen2.5-72B and HuatuoGPT-o1-72B reach 25.0% with no escalation), with the deployed operating band (25.8% to 40.2% across the eleven models) in between.
Supplementary Note 4 Complete certificate audit
Supplementary Table 3 gives the marginal certified coverage at for every model and configuration (round-to-nearest at 8, 6 and 4 bits, 8-bit LLM.int8() and NF4 4-bit). Supplementary Table 4 is the per-operating-point decision-risk audit for the marginal NF4 points in the higher-power operational analysis; every operating-point Clopper–Pearson upper bound is at or below the 5% target. Because this analysis builds the threshold grid and evaluates the bounds on the same full calibration sample, these per-operating-point bounds are diagnostic rather than an independent finite-sample guarantee; the formal guarantee for the data-selected deployment frontier is the split-sample certificate of Supplementary Table 7, which uses an independent threshold-selection subset, one decision per patient in the certification subset, and a Bonferroni correction across the deployable configurations. Supplementary Table 5 is the per-class audit at every class-conditional frontier point, reporting each class certificate ( , , , coverage and the Clopper–Pearson bound) so that it can be reconstructed independently. The columns of each table are defined in its caption.
Supplementary Table 3: Per-configuration marginal certificate. Each cell is certified coverage (%) with a patient-clustered 95% bootstrap confidence interval, at , . The point estimate is the certified test coverage and the brackets are patient-clustered 95% bootstrap intervals for that coverage; the operating-point Clopper–Pearson upper bound (Table 4) is the operational risk diagnostic rather than the bootstrap interval, while the formal finite-sample guarantee for the selected frontier is the split-sample certificate (Table 7). INT8 inference failed on two BF16-native 70B checkpoints (Llama-3-70B and Med42-70B); these configurations are treated as infeasible and assigned zero compressed coverage, which is distinct from a statistical certification failure on a successful quantized run.
| Model | RTN-8 | RTN-6 | RTN-4 | INT8 | NF4 |
|---|---|---|---|---|---|
| Qwen2.5-72B | 100.0 [100.0,100.0] | 100.0 [100.0,100.0] | 93.6 [92.1,94.9] | 100.0 [100.0,100.0] | 100.0 [100.0,100.0] |
| HuatuoGPT-o1-72B | 100.0 [100.0,100.0] | 100.0 [100.0,100.0] | 91.0 [89.5,92.6] | 100.0 [100.0,100.0] | 100.0 [100.0,100.0] |
| Med42-70B | 99.8 [99.6,100.0] | 100.0 [100.0,100.0] | 56.3 [53.7,59.2] | 0.0 [0.0,0.0] | 97.5 [96.6,98.4] |
| OpenBioLLM-70B | 100.0 [100.0,100.0] | 100.0 [100.0,100.0] | 84.7 [82.6,86.6] | 86.9 [85.0,88.9] | 98.1 [97.3,98.8] |
| MMed-Llama-3.1-70B | 100.0 [100.0,100.0] | 93.6 [92.2,95.0] | 72.1 [69.6,74.4] | 74.6 [72.1,77.1] | 96.9 [95.9,97.8] |
| Llama-3.3-70B | 100.0 [100.0,100.0] | 100.0 [100.0,100.0] | 51.9 [49.2,54.7] | 38.1 [35.4,40.8] | 82.2 [80.0,84.2] |
| Llama-3-70B | 100.0 [100.0,100.0] | 98.2 [97.4,98.9] | 53.8 [51.2,56.6] | 0.0 [0.0,0.0] | 93.0 [91.6,94.6] |
| Llama-3-8B | 100.0 [100.0,100.0] | 100.0 [100.0,100.0] | 15.0 [13.0,17.1] | 100.0 [100.0,100.0] | 92.8 [91.4,94.2] |
| MMed-Llama-3-8B | 100.0 [100.0,100.0] | 98.2 [97.4,99.0] | 0.0 [0.0,0.0] | 89.0 [87.4,90.8] | 84.2 [82.1,86.2] |
| Mistral-7B | 100.0 [100.0,100.0] | 100.0 [100.0,100.0] | 66.6 [63.9,69.1] | 100.0 [100.0,100.0] | 83.8 [81.8,85.9] |
| BioMistral-7B | 100.0 [100.0,100.0] | 80.3 [78.2,82.6] | 56.1 [53.4,58.9] | 100.0 [100.0,100.0] | 95.8 [94.6,96.8] |
Supplementary Note 5 Why classes are escalated
Whether a decision class can be certified at the target risk is governed by two distinct conditions, and a class is escalated if it fails either. The first is a resolution condition. With disagreements among class- calibration inputs, the tightest certifiable class risk is the zero-disagreement floor ; when the class has too few calibration inputs to reach the target under any threshold and is escalated in full. Several clinically adapted models rarely return REJECT, so their reject class is a small minority of the calibration set (Supplementary Table 6): BioMistral-7B has only 4 reject-class calibration inputs, giving a floor of , and OpenBioLLM-70B has 91, giving a floor of ; both exceed the target, so their reject class is escalated as resolution-limited. The second is a risk condition. Even when the floor lies below , the smallest Clopper–Pearson upper bound attainable over the threshold grid can still exceed , because too many of the reject-class calibration decisions disagree with the reference at every admissible threshold; the class is then escalated as risk-limited. MMed-Llama-3.1-70B is the illustrative case: its reject-class floor is , below the target, yet its best attainable Clopper–Pearson bound is , so it is escalated despite having adequate resolution. The zero-disagreement floor is therefore a necessary resolution condition for certification, not a sufficient one. Supplementary Figure 4 separates the two mechanisms: every escalated model's reject class falls in either the resolution-limited region (floor above ) or the risk-limited region (floor below but best attainable bound above it), while the certified models occupy the low-floor, low-bound corner. This is the statistical reason for the escalation behaviour in main-text Table 1, not an arbitrary choice.
Supplementary Note 6 Statistical robustness
Zero-disagreement floor. With zero observed disagreements among calibration inputs, the tightest certifiable risk at confidence is , which at , , is ; a target is therefore statistically reachable at this calibration size, and targets below are not.
Supplementary Table 4: Decision-risk audit for the marginal NF4 operating points (; higher-power operational analysis). The deployed clinical frontier is class-conditional; its per-class audit is Table 5. : certified calibration inputs (); disag.: those disagreeing with the BF16 reference; : selected margin threshold; : one-sided Clopper–Pearson upper bound on the certified-set disagreement risk (all ); coverage: certified test coverage. The Clopper–Pearson upper bound here is the operational risk diagnostic: the threshold grid and the bound are computed on the same full calibration sample, so it is not an independent finite-sample guarantee, which is instead established by the split-sample certificate (Table 7). The coverage and its 95% bootstrap CI are an empirical deployment estimate.
| Model | disag. | (%) | coverage (%) [95% CI] | ||
|---|---|---|---|---|---|
| Qwen2.5-72B | 1250 | 26 | 0.00 | 3.5 | 100.0 [100.0, 100.0] |
| HuatuoGPT-o1-72B | 1250 | 33 | 0.00 | 4.2 | 100.0 [100.0, 100.0] |
| Med42-70B | 1224 | 35 | 3.06 | 4.5 | 97.5 [96.6, 98.4] |
| OpenBioLLM-70B | 1224 | 37 | 0.31 | 4.7 | 98.1 [97.3, 98.8] |
| MMed-Llama-3.1-70B | 1223 | 29 | 0.12 | 3.9 | 96.9 [95.9, 97.8] |
| Llama-3.3-70B | 1048 | 32 | 8.25 | 4.9 | 82.2 [80.0, 84.2] |
| Llama-3-70B | 1151 | 34 | 3.50 | 4.7 | 93.0 [91.6, 94.6] |
| Llama-3-8B | 1149 | 30 | 1.12 | 4.3 | 92.8 [91.4, 94.2] |
| MMed-Llama-3-8B | 1046 | 30 | 0.61 | 4.7 | 84.2 [82.1, 86.2] |
| Mistral-7B | 1074 | 25 | 0.12 | 4.0 | 83.8 [81.8, 85.9] |
| BioMistral-7B | 1206 | 32 | 0.38 | 4.3 | 95.8 [94.6, 96.8] |
Confidence-level sensitivity. Supplementary Table 9 and Supplementary Figure 5a report the marginal frontier at for (confidence , , ), alongside the class-conditional frontier at the same confidence levels. Across the evaluated confidence levels, the marginal frontier changed only modestly: the range moves from at to at , and the median stays at . The headline deployment envelope therefore does not depend on the choice of a rather than a or confidence level.
Calibration-size sensitivity. Supplementary Table 10 and Supplementary Figure 5b report the frontier as the calibration set is reduced from 1,250 to 250 patient-disjoint decisions. The certificate degrades gracefully, and the aggregate maximum frontier size increases monotonically as the calibration set is reduced: the least compressible model moves from at to at , while the median across models stays near until the smallest set and the 4-bit floor of is retained by the strongest models throughout. More calibration data tightens the frontier, confirming that the -resolution floor is a statistical property of the calibration size rather than a model failure.
Threshold-grid sensitivity. Learn-then-Test discretizes the margin axis into candidate thresholds. Supplementary Table 11 and Supplementary Figure 6a report the marginal frontier as is swept over . The frontier is essentially invariant: the least-compressible model stays within of BF16 size, the median across models moves only between and , and the strongest models remain pinned at the 4-bit floor at every grid size. A finer grid tightens the per-candidate Bonferroni allocation () but also supplies more admissible thresholds; in the evaluated range these changes in threshold availability and Bonferroni allocation produced little net change in the frontier, so is not a sensitive design choice.
Supplementary Table 5: Class-conditional (Mondrian) per-class decision-risk audit at the frontier (, ; higher-power operational analysis). For each decision class: , certified calibration inputs; , disagreements among them; , selected margin threshold ( = class escalated in full); Cov, certified test coverage; , one-sided Clopper–Pearson upper bound on the class risk (all ). esc: reject class escalated. Each class certificate is reconstructible from , and . As in Table 4, the threshold grid and the Clopper–Pearson bounds use the same full calibration sample, so these per-class bounds are operational diagnostics rather than independent finite-sample certificates; the exact split-sample per-class certificate (independent selection subset, one decision per patient, allocation) is Table 8.
| Model | Accept (A) | Reject (R) | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Cov (%) | (%) | Cov (%) | (%) | |||||||
| Qwen2.5-72B | 517 | 11 | 0.34 | 97.4 | 4.9 | 722 | 6 | 0.12 | 100.0 | 2.5 |
| HuatuoGPT-o1-72B | 480 | 10 | 0.54 | 92.7 | 5.0 | 738 | 8 | 0.12 | 100.0 | 2.8 |
| Med42-70B | 762 | 18 | 3.71 | 97.7 | 4.6 | 433 | 4 | 10.78 | 88.2 | 3.4 |
| OpenBioLLM-70B | 1140 | 29 | 0.38 | 98.7 | 4.3 | 0 | 0 | esc | - | |
| MMed-Llama-3.1-70B | 1078 | 21 | 0.12 | 96.5 | 3.6 | 0 | 0 | esc | - | |
| Llama-3.3-70B | 612 | 13 | 10.62 | 72.3 | 4.6 | 420 | 0 | 0.25 | 100.0 | 1.6 |
| Llama-3-70B | 677 | 17 | 5.75 | 85.9 | 5.0 | 426 | 7 | 3.25 | 92.3 | 4.5 |
| Llama-3-8B | 775 | 20 | 1.62 | 89.6 | 4.9 | 370 | 3 | 0.62 | 94.8 | 3.5 |
| MMed-Llama-3-8B | 832 | 9 | 0.00 | 100.0 | 2.7 | 162 | 0 | 1.42 | 35.1 | 4.2 |
| Mistral-7B | 528 | 5 | 0.06 | 89.4 | 3.1 | 554 | 6 | 0.19 | 80.6 | 3.2 |
| BioMistral-7B | 1205 | 32 | 0.38 | 96.3 | 4.4 | 0 | 0 | esc | - | |
Repeated patient-disjoint splits. A single calibration/test split could understate variability. Supplementary Table 12 and Supplementary Figure 6b repeat the entire certification over 20 independent patient-disjoint splits, each re-shuffling the 2,484 patient groups before the 50/50 cut. The marginal frontier is stable across resamples: Qwen2.5-72B sits exactly at the 25% floor on all 20 splits and HuatuoGPT-o1-72B within 0.8 points of it, while even the most variable model has an interquartile width of at most 2.5 percentage points of BF16 size. These results indicate that the observed 25–40% deployment envelope is not driven by the particular patient-disjoint split used for the primary analysis.
One decision per patient. Sixteen of the 2,484 patients contribute a second decision, so the 2,500-decision analysis carries a small amount of within-patient dependence. Re-running the entire certification with one decision per patient (a single decision retained for each of the 2,484 patients, split patient-disjointly) reproduces every frontier: the marginal frontier changes by at most 1.8 percentage points of BF16 size (MMed-Llama-3-8B) and the class-conditional frontier by at most 1.1 points (Llama-3-70B), with the flagship operating points essentially unchanged (Qwen2.5-72B 25.8%, HuatuoGPT-o1-72B 27.3% to 27.6%). The primary analysis uses all 2,500 decisions; the one-decision-per-patient run is the formally patient-level exchangeable version of the procedure, on which the exact formal guarantee relies. It yields similar results (frontiers changing by at most 1.8 percentage points), indicating that the duplicate decisions have little effect on the reported frontier; the formal guarantee itself rests on the stated one-decision-per-independent-patient sampling design rather than on this empirical agreement.
Risk-level operating points. Supplementary Table 13 tabulates the class-conditional deployment size and escalation fraction at , giving the full risk–resource trade-off for every model
Supplementary Table 6: Class-specific calibration resolution and escalation mechanism for the higher-power operational NF4 frontier. : calibration inputs in each predicted class; : zero-disagreement resolution floor ; min. : smallest Clopper–Pearson upper bound on the reject-class risk attainable over the threshold grid; mechanism: whether the reject class is certified, resolution-limited (floor ), or risk-limited (floor but best attainable bound ). Target . The floors use the operational allocation on the full calibration sample, without the configuration-selection factor ; this is an operational diagnostic, distinct from the exact split-sample certificate (Table 8).
| Model | (%) | (%) | min. (%) | mechanism | ||
|---|---|---|---|---|---|---|
| Qwen2.5-72B | 528 | 722 | 1.30 | 0.95 | 1.0 | certified |
| HuatuoGPT-o1-72B | 512 | 738 | 1.34 | 0.93 | 1.1 | certified |
| Med42-70B | 778 | 472 | 0.88 | 1.45 | 1.7 | certified |
| OpenBioLLM-70B | 1159 | 91 | 0.59 | 7.31 | 13.7 | resolution-limited |
| MMed-Llama-3.1-70B | 1105 | 145 | 0.62 | 4.65 | 8.4 | risk-limited |
| Llama-3.3-70B | 830 | 420 | 0.83 | 1.63 | 1.6 | certified |
| Llama-3-70B | 787 | 463 | 0.87 | 1.48 | 1.8 | certified |
| Llama-3-8B | 857 | 393 | 0.80 | 1.74 | 2.0 | certified |
| MMed-Llama-3-8B | 832 | 418 | 0.83 | 1.64 | 4.2 | certified |
| Mistral-7B | 590 | 660 | 1.16 | 1.04 | 1.4 | certified |
| BioMistral-7B | 1246 | 4 | 0.55 | 82.22 | 82.2 | resolution-limited |
under the clinical default policy. The deployable configuration that minimizes amortized size is chosen separately at each risk level, so the serving configuration can differ across : at the strictest target () several models fall back from the NF4 4-bit scheme to the 8-bit LLM.int8() scheme, or escalate in full. For example, HuatuoGPT-o1-72B's 72.6% amortized size at is the 8-bit scheme serving 54.7% of decisions with the remaining 45.3% escalated to BF16, whereas Qwen2.5-72B remains on NF4 (59.2%, serving 54.4% with 45.6% escalated); a size of 100% (for example Med42-70B, whose LLM.int8() variant does not certify) marks models with no certified operating point at that target.
Split-sample exactness check. The reported certificate uses the full calibration set for both the candidate grid and the Clopper–Pearson bounds, which maximizes statistical power but makes the grid a function of the calibration data and omits the corrections for configuration selection and within-patient dependence. Re-running the class-conditional certificate in the exact split-sample form defined above (grid on the 250-decision selection subset, Clopper–Pearson bounds on the 996-decision one-per-patient certification subset, and an outer Bonferroni across the deployable configurations; Algorithm S1, Proposition S1 and Remark S1) reproduces the reported frontier closely (Supplementary Table 7): the deployment size changes by a median of 1.0 and at most 8.2 percentage points of BF16 size across the eleven models, the flagship operating points move by about one point (Qwen2.5-72B 25.8% to 26.7%, HuatuoGPT-o1-72B 27.3% to 27.9%), and every model still selects the NF4 4-bit configuration. The reported higher-power frontier is therefore not an artefact of the data-dependent grid, the configuration search, or within-patient dependence. The exact procedure's per-class certificate, auditable from its served counts, disagreement counts, thresholds and Clopper–Pearson bounds, is given in Supplementary Table 8; every served class satisfies .
Supplementary Table 7: Split-sample exactness. Class-conditional deployment frontier (% BF16, ) under the reported full-calibration certificate (grid and Clopper–Pearson bounds on all 1,250 calibration decisions) and under the exact certificate (grid on the 250-decision selection subset, Clopper–Pearson bounds on the 1,000-decision certification subset reduced to one decision per patient, 996 decisions, and an outer Bonferroni across the deployable configurations; subsets mutually patient-disjoint). The difference column is exact minus full computed on the unrounded sizes and then rounded, so it may differ by 0.1 from the difference of the two displayed (rounded) columns. Every model selects the same NF4 4-bit deployable configuration and remains certified under the exact procedure.
| Model | Full-cal. (% BF16) | Exact (% BF16) | Diff. (pp) | Frontier config | Exact certified? |
|---|---|---|---|---|---|
| Qwen2.5-72B | 25.8 | 26.7 | +0.9 | NF4 | Yes |
| HuatuoGPT-o1-72B | 27.3 | 27.9 | +0.6 | NF4 | Yes |
| Med42-70B | 29.4 | 30.6 | +1.3 | NF4 | Yes |
| OpenBioLLM-70B | 30.6 | 31.5 | +1.0 | NF4 | Yes |
| MMed-Llama-3.1-70B | 35.2 | 35.2 | +0.0 | NF4 | Yes |
| Llama-3.3-70B | 39.1 | 41.4 | +2.3 | NF4 | Yes |
| Llama-3-70B | 33.9 | 40.2 | +6.3 | NF4 | Yes |
| Llama-3-8B | 31.7 | 33.5 | +1.7 | NF4 | Yes |
| MMed-Llama-3-8B | 40.2 | 48.4 | +8.2 | NF4 | Yes |
| Mistral-7B | 36.3 | 36.3 | +0.0 | NF4 | Yes |
| BioMistral-7B | 28.2 | 28.2 | +0.0 | NF4 | Yes |
Supplementary Note 7 Distribution robustness: prevalence shift
Patient-disjoint calibration removes patient leakage but does not, by itself, guarantee robustness to a shift between the calibration and deployment decision distributions. Because the marginal certificate controls disagreement only on average over the calibration prevalence, a deployment whose accept/reject mix differs from calibration can drive the marginal certified-set disagreement above the target, whereas the class-conditional certificate controls each decision class separately and therefore remains below the target across the tested class-prevalence shifts, provided within-class exchangeability holds. This tolerance is conditional: class-conditional certification can absorb a change in the accept/reject mixture only when the within-class margin distributions themselves remain stable, and it does not guarantee robustness to an arbitrary clinical distribution shift that alters those within-class distributions. Supplementary Figure 2 and Supplementary Table 14 report the certified-set disagreement as the deployment reject-class prevalence is swept from to , holding the calibrated thresholds fixed, for all eleven models. For OpenBioLLM-70B, the marginal certificate rises to at a balanced reject prevalence, well above the target, and for Llama-3-70B and Qwen2.5-72B it drifts above at low reject prevalence. Taking the maximum over the eleven models, the marginal certified-set disagreement exceeds the target at every deployment prevalence ( to ), whereas the class-conditional policy stays below the target for every model at every prevalence (maximum over models to ). This supports adopting the class-conditional policy as the default CERTA policy for the evaluated clinical verification setting.
Supplementary Note 8 Deployment behaviour: escalated cases
Supplementary Figure 3 contrasts the decisions the router serves with those it escalates, at the NF4 frontier. Escalated inputs have an approximately 8.6-fold smaller mean decision margin (0.93 versus 7.95 for certified inputs) and a much higher disagreement with the reference (mean versus
Supplementary Table 8: Exact split-sample per-class certificate at the frontier (). The auditable formal guarantee underlying Table 7: for each model, the class-conditional certificate computed by the exact split-sample procedure (candidate grid on the 250-decision selection subset; Clopper–Pearson bounds on the one-decision-per-patient certification subset; outer Bonferroni allocation with deployable configurations). For each decision class: , served certification observations; , disagreements among them; , selected margin threshold; Cov, certified test coverage; , one-sided Clopper–Pearson upper bound on the class risk. Every served class satisfies . : reject class escalated in full, so no compressed decisions are served and the class contributes no compression-induced disagreement. Each class certificate is reconstructible from , and .
| Model | Accept (A) | Reject (R) | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Cov (%) | (%) | Cov (%) | (%) | |||||||
| Qwen2.5-72B | 406 | 6 | 0.51 | 96.3 | 4.6 | 565 | 3 | 0.50 | 98.7 | 2.4 |
| HuatuoGPT-o1-72B | 378 | 5 | 0.54 | 92.7 | 4.5 | 576 | 4 | 0.38 | 98.6 | 2.7 |
| Med42-70B | 591 | 9 | 8.32 | 94.1 | 4.0 | 345 | 4 | 9.39 | 89.7 | 4.5 |
| OpenBioLLM-70B | 895 | 11 | 0.70 | 97.4 | 3.0 | 0 | 0 | esc | - | |
| MMed-Llama-3.1-70B | 861 | 16 | 0.05 | 96.5 | 3.9 | 0 | 0 | esc | - | |
| Llama-3.3-70B | 453 | 8 | 11.52 | 67.8 | 4.8 | 334 | 0 | 0.25 | 100.0 | 2.3 |
| Llama-3-70B | 488 | 9 | 8.12 | 77.0 | 4.8 | 308 | 2 | 6.20 | 84.8 | 3.8 |
| Llama-3-8B | 587 | 11 | 1.90 | 86.4 | 4.5 | 299 | 2 | 0.52 | 94.8 | 4.0 |
| MMed-Llama-3-8B | 660 | 6 | 0.02 | 100.0 | 2.9 | 0 | 0 | esc | - | |
| Mistral-7B | 424 | 3 | 0.05 | 89.4 | 3.2 | 445 | 4 | 0.18 | 80.6 | 3.5 |
| BioMistral-7B | 961 | 25 | 0.38 | 96.3 | 4.7 | 0 | 0 | esc | - | |
2.9%). Escalation is therefore not arbitrary: the router preferentially refers low-margin decisions on which disagreement with the reference is enriched, and serves the high-margin decisions on which the compressed model is reliable.
The separation is distributional, not an artefact of a few extreme inputs. Panel (a) plots the full empirical cumulative distribution of the decision margin for escalated and certified inputs, pooled over the eleven models. Over this pooled sample the empirical escalated CDF lies at or above the certified CDF at every margin, with no crossings (empirical first-order stochastic dominance), so the escalated group is shifted toward lower margins throughout the observed range: the median margin is 0.35 for escalated decisions against 5.12 for certified ones, a roughly fifteen-fold gap at the median that parallels the 8.6-fold gap in means. This ordering establishes that one distribution is shifted below the other; it does not imply that the two distributions are non-overlapping. Model- and class-specific margin thresholds then determine which inputs are eligible for compressed service, serving decisions above each selected threshold (per model, and per class under the class-conditional policy) and escalating the rest.
Panel (b) shows that this partition tracks reference disagreement at the level of individual models, not just in the pooled average. For every one of the eleven models, the certified-set disagreement falls at or below the 5% target (mean 2.9%), whereas the escalated-set disagreement is far higher (mean 45.3%); the decision margin is thus an effective per-input proxy for the risk that compression flips the decision, and escalation concentrates almost all of the compression-induced disagreement onto the minority of low-margin cases routed to the BF16 reference, leaving the served majority reliable. We emphasise that this analysis concerns disagreement with the BF16 reference, not clinical correctness: whether the escalated disagreements are clinically consequential is the object of the future clinician-adjudication study.
Supplementary Table 9: Confidence-level sensitivity (marginal and class-conditional). Frontier size (% BF16) at for three confidence levels, for the marginal certificate and the class-conditional (Mondrian) policy. Both change only modestly across .
| Model | Marginal | Class-conditional | ||||
|---|---|---|---|---|---|---|
| (90%) | (95%) | (99%) | (90%) | (95%) | (99%) | |
| Qwen2.5-72B | 25.0 | 25.0 | 25.0 | 25.8 | 26.2 | 26.2 |
| HuatuoGPT-o1-72B | 25.0 | 25.0 | 25.0 | 27.3 | 27.6 | 28.2 |
| Med42-70B | 26.9 | 26.9 | 26.9 | 29.4 | 29.4 | 30.6 |
| OpenBioLLM-70B | 26.4 | 26.4 | 27.6 | 30.6 | 30.6 | 30.6 |
| MMed-Llama-3.1-70B | 27.3 | 27.3 | 27.3 | 35.2 | 35.2 | 35.2 |
| Llama-3.3-70B | 38.4 | 39.5 | 39.5 | 39.1 | 39.1 | 41.1 |
| Llama-3-70B | 30.2 | 30.2 | 31.8 | 33.9 | 35.1 | 37.4 |
| Llama-3-8B | 30.4 | 30.4 | 30.4 | 31.7 | 31.7 | 32.8 |
| MMed-Llama-3-8B | 36.8 | 36.8 | 39.0 | 40.2 | 40.2 | 48.4 |
| Mistral-7B | 37.1 | 37.1 | 37.1 | 36.3 | 36.3 | 36.3 |
| BioMistral-7B | 28.2 | 28.2 | 28.2 | 28.2 | 28.2 | 28.2 |
Supplementary Table 10: Calibration-size sensitivity. Marginal frontier range (% BF16) at across the eleven models, as the patient-disjoint calibration set is reduced from 1,250 to 250 decisions; the certificate degrades gracefully and the strongest models retain the 4-bit floor.
| min (4× floor) | median | max (least compressible) | |
|---|---|---|---|
| 250 | 25.4 | 31.1 | 49.5 |
| 500 | 25.0 | 27.9 | 44.5 |
| 750 | 25.0 | 28.0 | 40.9 |
| 1000 | 25.0 | 28.2 | 40.3 |
| 1250 | 25.0 | 28.2 | 38.4 |
Supplementary Note 9 Task-wise certification
Supplementary Table 15 reports certified coverage and observed disagreement separately for the two verifier tasks (named-entity and answer verification), averaged over models. The routed decisions behave consistently across both tasks at every precision (for example NF4 serves 94.6% of named-entity and 91.5% of answer decisions, with observed certified-set disagreement of 2.3% and 3.8% respectively, both within the 5% target), showing consistent empirical behaviour across the two evaluated task types.
Two further patterns are visible in the table. First, the observed certified-set disagreement stays at or below the 5% target for both task types under every reported configuration (its largest value, over the models with a non-empty certified set, is 4.1%, for answer verification under round-to-nearest 4-bit). Because the certificate is calibrated by margin and decision class and is not separately stratified by task, these task-wise rates are descriptive evidence of consistent behaviour across the two evaluated tasks rather than independent task-conditional finite-sample guarantees. Second, certifiability is governed by the quantizer rather than by the task. Round-to-nearest 4-bit collapses on both tasks (certified coverage 60.0% for named-entity and 56.5% for answer verification), the deployable NF4 configuration recovers both (94.6% and 91.5%), and 8-bit rounding leaves coverage essentially complete throughout (100%/100% at RTN-8); the pattern of certifiability therefore
Supplementary Table 11: Threshold-grid sensitivity. Marginal frontier size (% BF16) at , as the Learn-then-Test grid size is varied. The first three value columns are the minimum, median and maximum frontier across the eleven models; the last three are three representative models. The frontier is nearly invariant to .
| min (4× floor) | median | max (least compr.) | Qwen2.5 72B | Huatuo o1-72B | Llama 3.3-70B | |
|---|---|---|---|---|---|---|
| 25 | 25.0 | 29.4 | 38.4 | 25.0 | 25.0 | 38.4 |
| 50 | 25.0 | 28.2 | 38.4 | 25.0 | 25.0 | 38.4 |
| 100 | 25.0 | 28.2 | 39.1 | 25.0 | 25.0 | 39.1 |
| 200 | 25.0 | 28.2 | 39.1 | 25.0 | 25.0 | 39.1 |
Supplementary Table 12: Split stability. Marginal frontier size (% BF16) at , across 20 independent patient-disjoint calibration/test splits: per-model median, interquartile range and full range. The frontier is stable across resamples; the strongest models stay at the 4-bit floor on every split.
| Model | median | IQR (25–75%) | min | max |
|---|---|---|---|---|
| Qwen2.5-72B | 25.0 | 25.0–25.0 | 25.0 | 25.0 |
| HuatuoGPT-o1-72B | 25.0 | 25.0–25.0 | 25.0 | 25.8 |
| Med42-70B | 27.8 | 26.8–28.3 | 25.0 | 29.3 |
| OpenBioLLM-70B | 27.2 | 26.6–27.6 | 25.7 | 27.9 |
| MMed-Llama-3.1-70B | 26.7 | 25.0–26.9 | 25.0 | 27.3 |
| Llama-3.3-70B | 38.4 | 36.8–39.0 | 35.8 | 40.7 |
| Llama-3-70B | 33.2 | 31.9–34.4 | 30.0 | 35.7 |
| Llama-3-8B | 29.9 | 29.2–30.3 | 27.6 | 31.5 |
| MMed-Llama-3-8B | 36.8 | 35.9–37.8 | 34.2 | 39.0 |
| Mistral-7B | 36.7 | 36.2–37.0 | 34.9 | 43.5 |
| BioMistral-7B | 27.9 | 26.9–28.0 | 26.6 | 28.7 |
follows the precision scheme, not the task. Answer verification is consistently the slightly harder of the two to certify, with marginally lower coverage and marginally higher disagreement at every memory-reducing configuration, plausibly because it requires integrating a supplied context and question rather than judging a single candidate entity; the gap is small and never breaches the target. That the same margin-based certificate behaves consistently across two quite different verification tasks indicates the mechanism is not tuned to a single task format.
Supplementary Note 10 External human-gold validation
Supplementary Table 16 gives the full disease named-entity F1 score against human annotations on BC5CDR-Disease and NCBI-Disease, at BF16 and under round-to-nearest 8/6/4-bit and the deployed NF4 4-bit configuration, together with precision and recall for the deployed NF4 configuration. These benchmarks measure correctness against human labels, a different question from decision substitution; the deployed NF4 configurations change the F1 score comparably to round-to-nearest 4-bit quantization (mean absolute change 0.045 on BC5CDR and 0.045 on NCBI), and the domain model that collapses under round-to-nearest 4-bit (MMed-Llama-3.1-70B, -0.163 and -0.198) recovers under the deployed NF4 configuration (+0.078 and +0.091).
Supplementary Table 13: Risk-level operating points (class-conditional). Class-conditional (Mondrian) frontier size (% BF16) and escalation fraction (%) at three risk targets (, allocation). Relaxing lowers both the deployed size and the escalation fraction toward the 4-bit floor. The deployable configuration that minimizes amortized size is selected independently at each risk level, so the serving configuration can change with (see text); a size of denotes no certified operating point at that target, for which all decisions escalate to BF16.
| Model | ||||||
|---|---|---|---|---|---|---|
| size | esc. | size | esc. | size | esc. | |
| Qwen2.5-72B | 59.2 | 45.6 | 25.8 | 1.1 | 25.0 | 0.0 |
| HuatuoGPT-o1-72B | 72.6 | 45.3 | 27.3 | 3.1 | 25.0 | 0.0 |
| Med42-70B | 100.0 | 100.0 | 29.4 | 5.8 | 25.3 | 0.4 |
| OpenBioLLM-70B | 40.2 | 20.3 | 30.6 | 7.4 | 29.7 | 6.2 |
| MMed-Llama-3.1-70B | 41.3 | 21.7 | 35.2 | 13.6 | 26.6 | 2.1 |
| Llama-3.3-70B | 100.0 | 100.0 | 39.1 | 18.8 | 33.5 | 11.3 |
| Llama-3-70B | 100.0 | 100.0 | 33.9 | 11.9 | 26.2 | 1.6 |
| Llama-3-8B | 100.0 | 100.0 | 31.7 | 9.0 | 25.8 | 1.0 |
| MMed-Llama-3-8B | 52.3 | 36.4 | 40.2 | 20.2 | 34.2 | 12.2 |
| Mistral-7B | 100.0 | 100.0 | 36.3 | 15.1 | 29.2 | 5.6 |
| BioMistral-7B | 40.5 | 20.7 | 28.2 | 4.3 | 25.5 | 0.6 |
Paired human-gold correctness. The comparison above is against the human gold in aggregate. To test whether compression changes human-gold correctness rather than only reference agreement, we additionally compared each quantized configuration against the same model's BF16 run on the same held-out documents, under the identical overlap scorer, and summarise the paired differences over the eleven models with document-level bootstrap intervals (Supplementary Table 17). The deployable NF4 configuration produces a small but statistically resolvable negative paired F1 change on BC5CDR-Disease (paired [-0.028, -0.003], interval excluding zero), while the paired estimate on NCBI-Disease is centred on zero (+0.000 [-0.012, +0.012]). The paired NF4 changes are smaller in magnitude than the round-to-nearest 4-bit changes (-0.022 [-0.038, -0.006] on BC5CDR-Disease and -0.029 [-0.043, -0.015] on NCBI-Disease) on both benchmarks, with the BC5CDR-Disease difference comparatively modest and the NCBI-Disease estimate centred on zero. The per-entity transitions (Supplementary Table 18) show the same asymmetry: relative to BF16, round-to-nearest 4-bit both loses the most gold entities and introduces the most false positives, while NF4 stays close to break-even. Compression's effect on human-gold correctness therefore tracks the quantizer rather than the bit-width, mirroring the reference-agreement result; these benchmarks concern disease named-entity recognition and do not label the primary clinical verifier's individual decisions.
Supplementary Note 11 Illustrative worst-case amplification calculation
We evaluated whether a worst-case deterministic propagation of the quantization-induced logit perturbation could bound the change in decision margin without any distributional assumption. Let and denote the answer-token logits produced by the BF16 reference and the -bit quantized model on input , and write for the quantization-induced per-logit perturbation, with accept- and reject-token components and , and its largest absolute entry. Writing
Supplementary Table 14: Prevalence-shift stress test. Certified-set disagreement (%) versus deployment reject-class prevalence, for the marginal and class-conditional (Mondrian) policies with fixed calibrated thresholds. Values above the target are the marginal certificate's prevalence-induced violations; the class-conditional policy stays below target throughout.
| Model | Policy | REJECT prevalence (%) | |||||
|---|---|---|---|---|---|---|---|
| 50 | 40 | 30 | 20 | 10 | 5 | ||
| Maximum over models | |||||||
| Mean over models | marginal | 9.5 | 8.0 | 6.6 | 5.7 | 6.3 | 6.6 |
| Mondrian | 2.7 | 2.8 | 3.1 | 3.5 | 3.8 | 3.9 | |
| Mean over models | marginal | 3.7 | 3.5 | 3.4 | 3.3 | 3.1 | 3.1 |
| Mondrian | 1.8 | 1.8 | 1.9 | 2.0 | 2.0 | 2.1 | |
| Qwen2.5-72B | |||||||
| HuatuoGPT-o1-72B | marginal | 2.6 | 3.2 | 3.7 | 4.2 | 4.7 | 4.9 |
| Mondrian | 1.8 | 2.1 | 2.4 | 2.7 | 3.1 | 3.2 | |
| Med42-70B | marginal | 3.1 | 3.4 | 3.8 | 4.1 | 4.5 | 4.7 |
| Mondrian | 1.5 | 1.6 | 1.6 | 1.7 | 1.8 | 1.8 | |
| marginal | 4.0 | 3.8 | 3.7 | 3.5 | 3.4 | 3.3 | |
| OpenBioLLM-70B | Mondrian | 2.7 | 2.7 | 2.7 | 2.8 | 2.8 | 2.9 |
| marginal | 9.5 | 8.0 | 6.6 | 5.2 | 3.8 | 3.1 | |
| MMed-Llama-3.1-70B | Mondrian | 2.4 | 2.4 | 2.4 | 2.4 | 2.4 | 2.4 |
| marginal | 3.7 | 3.2 | 2.6 | 2.1 | 1.6 | 1.4 | |
| Llama-3.3-70B | Mondrian | 1.1 | 1.1 | 1.1 | 1.1 | 1.1 | 1.1 |
| marginal | 2.0 | 2.4 | 2.8 | 3.2 | 3.6 | 3.8 | |
| Llama-3-70B | Mondrian | 1.0 | 1.1 | 1.3 | 1.5 | 1.7 | 1.8 |
| marginal | 3.9 | 4.5 | 5.1 | 5.7 | 6.3 | 6.6 | |
| Llama-3-8B | Mondrian | 2.5 | 2.8 | 3.1 | 3.5 | 3.8 | 3.9 |
| marginal | 2.0 | 2.2 | 2.4 | 2.6 | 2.8 | 2.9 | |
| MMed-Llama-3-8B | Mondrian | 1.3 | 1.3 | 1.4 | 1.5 | 1.5 | 1.6 |
| marginal | 4.6 | 3.7 | 2.7 | 1.8 | 1.0 | 0.5 | |
| Mistral-7B | Mondrian | 1.9 | 1.8 | 1.7 | 1.6 | 1.6 | 1.5 |
| marginal | 3.2 | 2.6 | 2.0 | 1.4 | 0.7 | 0.3 | |
| BioMistral-7B | Mondrian | 1.0 | 0.9 | 0.7 | 0.6 | 0.5 | 0.4 |
| marginal | 2.0 | 2.1 | 2.1 | 2.2 | 2.2 | 2.2 | |
| Mondrian | 2.3 | 2.3 | 2.3 | 2.3 | 2.3 | 2.3 | |
for the reference decision margin, the reference decision is preserved whenever this margin exceeds the induced perturbation of the accept-reject logit difference,
The change in the accept-reject logit difference is in turn controlled by the largest per-logit perturbation,
so a conservative sufficient condition for preserving the reference decision is
In a worst-case analysis this perturbation propagates layerwise and accumulates multiplicatively through the residual and normalization structure as a product of per-block amplification factors. Let denote a per-block worst-case amplification factor, an upper bound on the operator norm by which one transformer block can magnify a perturbation; for attention and MLP blocks this
Supplementary Table 15: Task-wise certification. Certified coverage and observed certified-set disagreement (%) for named-entity (NER) and answer (QA) verification at , (higher-power operational analysis). Coverage is averaged over all eleven models, assigning zero coverage to any configuration that certifies no decisions for a model. Certified-set disagreement is undefined for a model that serves no decisions, so the disagreement columns are averaged only over the models with a non-empty certified set: this is all eleven models for RTN-8, RTN-6 and NF4; nine models for INT8 (the two whose LLM.int8() configurations failed to produce usable inference outputs, Llama-3-70B and Med42-70B, serve nothing); and nine (NER) and ten (QA) models for RTN-4.
| Configuration | NER coverage | NER disag. | QA coverage | QA disag. |
|---|---|---|---|---|
| RTN-8 | 100.0 | 1.1 | 100.0 | 1.4 |
| RTN-6 | 99.7 | 2.0 | 94.7 | 2.6 |
| RTN-4 | 60.0 | 1.9 | 56.5 | 3.7 |
| INT8 | 74.5 | 1.3 | 68.7 | 3.0 |
| NF4 | 94.6 | 2.3 | 91.5 | 3.8 |
factor generally exceeds one. Under the illustrative assumption across blocks, the multiplicative amplification factor exceeds . This calculation is not a numerical bound on the final logit perturbation , because no model-specific bound on the initial perturbation and no layerwise operator-norm bounds were established for the evaluated networks. It illustrates why a generic worst-case amplification argument would not, by itself, provide a useful deterministic certificate for these models: an amplification factor of this size indicates that any bound built from such a propagation would be far too loose to be informative. This is the reason CERTA is built on the finite-sample, distribution-level Learn-then-Test argument of the main text rather than on a deterministic per-input certificate; the deterministic route is reported here only to document that it was considered and found uninformative at this scale.
Supplementary Note 12 Reproducibility
Supplementary Table 19 lists the eleven evaluated checkpoints with their architecture family, adaptation type and parameter count. Two independent quantization routes were evaluated so that the frontier reflects a property of the certificate rather than of any single implementation: round-to-nearest quantization at 8/6/4 bits (symmetric per-group scales over groups of 128 output-channel elements, each group's scale chosen by a mean-squared-error search over clipping ratios , BF16 storage) and the bitsandbytes library (NF4 4-bit with double quantization and BF16 compute, and 8-bit LLM.int8()). The certificate itself is implemented in Python with NumPy and SciPy: the Clopper–Pearson upper bound is the regularized incomplete beta-function inverse (scipy.special.betaincinv), and confidence intervals are patient-clustered bootstraps for the clinical-verifier certificate and document-level bootstraps for the external benchmarks, from 1,000 resamples. The model generations themselves—the reference and quantized decisions and the decision margins—were produced once and are released as recorded per-input outputs; from these recorded outputs every CERTA certificate, table and figure in the main text and this Supplement is regenerated with no further model inference. This covers the per-configuration and per-class certificates (operational and exact split-sample), the robustness analyses (confidence level, calibration size, threshold grid, split resampling, one-decision-per-patient and prevalence shift), the escalation diagnostics and the task-wise summaries. The external named-entity results are released as separate artifacts: the recorded per-model, per-dataset benchmark outputs (bench.csv) regenerate the
Supplementary Table 16: External disease named-entity results. F1 against human annotations at BF16 and under each configuration; the last column is precision/recall for the deployed NF4 4-bit configuration.
| Model | F1 BF16 | F1 RTN-8 | F1 RTN-6 | F1 RTN-4 | F1 NF4 | NF4 P/R |
|---|---|---|---|---|---|---|
| BC5CDR-Disease | ||||||
| Qwen2.5-72B | 0.720 | 0.720 | 0.735 | 0.669 | 0.713 | 0.956/0.568 |
| HuatuoGPT-o1-72B | 0.573 | 0.585 | 0.645 | 0.615 | 0.467 | 0.947/0.310 |
| Med42-70B | 0.852 | 0.853 | 0.852 | 0.694 | 0.829 | 0.895/0.773 |
| OpenBioLLM-70B | 0.705 | 0.705 | 0.710 | 0.684 | 0.573 | 0.925/0.415 |
| MMed-Llama-3.1-70B | 0.469 | 0.475 | 0.506 | 0.306 | 0.547 | 0.624/0.487 |
| Llama-3.3-70B | 0.866 | 0.876 | 0.881 | 0.849 | 0.862 | 0.948/0.791 |
| Llama-3-70B | 0.825 | 0.821 | 0.817 | 0.814 | 0.850 | 0.951/0.768 |
| Llama-3-8B | 0.641 | 0.642 | 0.659 | 0.718 | 0.611 | 0.938/0.454 |
| MMed-Llama-3-8B | 0.453 | 0.469 | 0.447 | 0.436 | 0.419 | 0.397/0.443 |
| Mistral-7B | 0.585 | 0.589 | 0.600 | 0.603 | 0.623 | 0.769/0.524 |
| BioMistral-7B | 0.384 | 0.389 | 0.400 | 0.440 | 0.405 | 0.506/0.338 |
| NCBI-Disease | ||||||
| Qwen2.5-72B | 0.747 | 0.749 | 0.752 | 0.742 | 0.747 | 0.951/0.615 |
| HuatuoGPT-o1-72B | 0.664 | 0.657 | 0.674 | 0.668 | 0.600 | 0.969/0.435 |
| Med42-70B | 0.719 | 0.721 | 0.704 | 0.649 | 0.608 | 0.894/0.460 |
| OpenBioLLM-70B | 0.583 | 0.583 | 0.578 | 0.502 | 0.546 | 0.931/0.386 |
| MMed-Llama-3.1-70B | 0.273 | 0.238 | 0.252 | 0.075 | 0.364 | 0.530/0.277 |
| Llama-3.3-70B | 0.712 | 0.718 | 0.725 | 0.755 | 0.691 | 0.951/0.543 |
| Llama-3-70B | 0.680 | 0.676 | 0.672 | 0.688 | 0.675 | 0.939/0.527 |
| Llama-3-8B | 0.667 | 0.676 | 0.668 | 0.663 | 0.690 | 0.949/0.542 |
| MMed-Llama-3-8B | 0.424 | 0.405 | 0.382 | 0.399 | 0.510 | 0.655/0.418 |
| Mistral-7B | 0.472 | 0.475 | 0.497 | 0.497 | 0.467 | 0.863/0.320 |
| BioMistral-7B | 0.432 | 0.461 | 0.488 | 0.414 | 0.479 | 0.659/0.376 |
external-NER F1 table (Supplementary Table 16) and Figure 5 directly with the included overlap scorer, scored against the public BC5CDR-Disease and NCBI-Disease gold corpora; the per-entity paired analysis (Supplementary Tables 17 and 18) is produced by the released scoring and document-level paired-bootstrap code from the per-document entity-prediction dumps, whose regeneration requires re-running inference on the public benchmark documents with the model weights. A driver script in the code release (reproduce_si.sh; see Code availability for the repository) recomputes the certificate-derived tables and figures, and the external-NER scoring and figures from the released benchmark outputs.
The code release specifies its analysis dependencies (an environment.yml and a requirements.txt) and the released version is tagged at the commit used to produce the reported results. The upstream inference that produced the recorded logits used the Hugging Face Transformers library and PyTorch with no network access; the exact compute environment (GPU model and count, and CUDA and driver versions) is specified by the authors in the code release, and NF4 and LLM.int8() quantization require a CUDA accelerator.
Supplementary Table 17: Paired human-gold differences on the external benchmarks. Entity-level precision, recall and F1 of each configuration minus the same model's BF16 run on the same documents, averaged over the eleven models, with document-level 95% bootstrap intervals (1,000 resamples); matching is the overlap scorer used throughout. is the mean absolute per-model F1 change.
| Benchmark | Config | ΔP | ΔR | ΔF1 | mean |ΔF1| |
|---|---|---|---|---|---|
| BC5CDR-Disease | RTN-8 | +0.004 [-0.001, +0.009] | +0.005 [-0.001, +0.010] | +0.004 [-0.000, +0.010] | +0.005 [-0.005, +0.013] |
| RTN-6 | -0.000 [-0.009, +0.008] | +0.019 [-0.011, +0.028] | +0.016 [-0.009, +0.024] | +0.019 [-0.015, +0.027] | |
| RTN-4 | -0.040 [-0.053, -0.027] | -0.017 [-0.036, +0.003] | -0.022 [-0.038, -0.006] | +0.057 [-0.046, +0.074] | |
| NF4 | -0.006 [-0.017, +0.005] | -0.011 [-0.025, +0.004] | -0.016 [-0.028, -0.003] | +0.045 [-0.037, +0.060] | |
| NCBI-Disease | RTN-8 | -0.002 [-0.010, +0.005] | -0.000 [-0.007, +0.006] | -0.001 [-0.008, +0.006] | +0.011 [-0.007, +0.019] |
| RTN-6 | +0.003 [-0.009, +0.014] | +0.002 [-0.006, +0.010] | +0.002 [-0.007, +0.010] | +0.018 [-0.012, +0.031] | |
| RTN-4 | -0.046 [-0.063, -0.030] | -0.021 [-0.036, -0.006] | -0.029 [-0.043, -0.015] | +0.044 [-0.037, +0.062] | |
| NF4 | +0.029 [-0.014, +0.046] | -0.006 [-0.019, +0.006] | +0.000 [-0.012, +0.012] | +0.045 [-0.035, +0.059] |
Supplementary Table 18: Gold-entity coverage transitions on the external benchmarks. For each configuration versus the same model's BF16 run, pooled over models and documents (recall side): gold entities both recover (preserved), newly recovered, lost, or still missed; net coverage change with its 95% bootstrap interval; and ΔFP, the change in false positives (precision side). Overlap matching.
| Benchmark | Config | Preserved covered | Newly covered | Lost coverage | Stayed missed | Net coverage | ΔFP |
|---|---|---|---|---|---|---|---|
| BC5CDR-Disease | RTN-8 | 2964 | 55 | 34 | 1600 | +21 [-2, +43] | -16 [-35, +5] |
| RTN-6 | 2938 | 138 | 60 | 1517 | +78 [-40, +118] | +12 [-23, +48] | |
| RTN-4 | 2564 | 363 | 434 | 1292 | -71 [-163, +22] | +206 [-136, +286] | |
| NF4 | 2733 | 217 | 265 | 1438 | -48 [-107, +21] | +82 [-33, +135] | |
| NCBI-Disease | RTN-8 | 2763 | 73 | 71 | 3000 | +2 [-41, +43] | +0 [-24, +26] |
| RTN-6 | 2727 | 123 | 107 | 2950 | +16 [-34, +64] | -8 [-62, +44] | |
| RTN-4 | 2349 | 362 | 485 | 2711 | -123 [-220, -33] | +88 [-16, +165] | |
| NF4 | 2516 | 302 | 318 | 2771 | -16 [-92, +58] | -62 [-137, +4] |
Supplementary Table 19: Model and inference configuration. The eleven evaluated checkpoints with architecture/model family (Q, Qwen; L, Llama; M, Mistral), adaptation (G, general-purpose; D, domain-adapted), parameter count, released checkpoint identifier, and measured peak VRAM at the BF16 reference and at the deployed NF4 4-bit configuration. Every model was evaluated under the same quantizer set (round-to-nearest 8/6/4-bit and the bitsandbytes NF4 4-bit and LLM.int8() routes) with BF16 compute; the deployed frontier configuration is NF4 4-bit for all eleven models.
| Model | Family | Adapt. | Params (B) | HuggingFace checkpoint | Compute dtype | BF16 (GB) | NF4 (GB) |
|---|---|---|---|---|---|---|---|
| Qwen2.5-72B | Qwen | G | 72 | Qwen/Qwen2.5-72B-Instruct | BF16 | 146.3 | 43.0 |
| HuatuoGPT-o1-72B | Qwen | D | 72 | FreedomIntelligence/HuatuoGPT-o1-72B | BF16 | 146.1 | 42.7 |
| Med42-70B | Llama | D | 70 | m42-health/Llama3-Med42-70B | BF16 | 141.9 | 41.2 |
| OpenBioLLM-70B | Llama | D | 70 | aaditya/Llama3-OpenBioLLM-70B | BF16 | 141.7 | 41.0 |
| Llama-3-70B | Llama | G | 70 | meta-llama/Meta-Llama-3-70B-Instruct | BF16 | 141.9 | 41.2 |
| MMed-Llama-3.1-70B | Llama | D | 70 | Henrychur/MMed-Llama3.1-70B | BF16 | 141.9 | 41.2 |
| Llama-3.3-70B | Llama | G | 70 | meta-llama/Llama-3.3-70B-Instruct | BF16 | 141.9 | 41.2 |
| BioMistral-7B | Mistral | D | 7 | BioMistral/BioMistral-7B | BF16 | 14.8 | 4.6 |
| Llama-3-8B | Llama | G | 8 | meta-llama/Meta-Llama-3-8B-Instruct | BF16 | 16.7 | 6.4 |
| Mistral-7B | Mistral | G | 7 | mistralai/Mistral-7B-Instruct-v0.1 | BF16 | 14.9 | 4.7 |
| MMed-Llama-3-8B | Llama | D | 8 | Henrychur/MMed-Llama-3-8B-EnIns | BF16 | 16.7 | 8.7 |
Checkpoint identifiers give the released model families used; the authors confirm the exact revisions in the code release. Peak VRAM is the measured allocation during inference; the same values appear in main-text Table 1. The internal short key llama3-70b-base, used in the released code and in the external named-entity logs, denotes meta-llama/Meta-Llama-3-70B-Instruct (the general-purpose Llama-3 70B, as distinct from Llama-3.3-70B); it is not a pretrained base checkpoint. The same eleven checkpoints were used for the clinical-verification and the external named-entity experiments.
Supplementary Figures
Certified compression frontiers, all eleven models (marginal certificate)

Supplementary Figure 1: Certified compression frontiers for all eleven models under the marginal certificate. Marginal deployment size (% BF16) as a function of the risk level ; each curve is one model, coloured by architecture family. The curves are monotonic and stable and settle toward the 4-bit floor (25%, dotted) as relaxes. This is the full version of the representative subset in main-text Fig. 3a.
Supplementary Note 13 Terminology and methodological rationale
This note states, for each statistical, deployment and quantization term used in the main text and this Supplementary Information, what it is and why it is the appropriate choice for a decision-level clinical certificate. Symbols are defined in Table 1, and the primary references for the named methods are given in the main-text Methods.
BF16 reference. The native 16-bit (bfloat16) realization of each checkpoint, used as the standard the quantized model must match. We adopt it because it is the model's own released precision, so any disagreement is attributable to compression alone rather than to a change of model; all results are reported relative to it.
Decision margin. The absolute difference between the accept- and reject-answer logits, . It is a single confidence score the model already produces at no extra inference cost, and it is the score CERTA thresholds on to determine which decisions are eligible to be served by the quantized model under the specified reference-disagreement risk.
(b)

Supplementary Figure 2: Prevalence-shift stress test, all eleven models. Certified-set disagreement versus deployment reject-class prevalence, with calibrated thresholds held fixed, for the (a), marginal and (b), class-conditional (Mondrian) policies. All eleven models are shown (three highlighted, the other eight in grey). Under the marginal certificate several models enter the shaded risk-level violation zone above (the maximum over models reaches 9.5%); under the class-conditional policy every model stays below at every prevalence (maximum over models 3.9%; Supplementary Table 14). The direction of the marginal drift depends on which decision class carries more disagreement for each model.
Conditional disagreement risk . The probability that the quantized and reference decisions differ, conditioned on the margin exceeding , i.e. evaluated only on served decisions. This is the quantity the certificate bounds, because compression-induced disagreement is not incurred in the final routed decision when that input is escalated to the BF16 reference.
Learn-then-Test. A distribution-free calibration framework [1] that selects a threshold on held-out data with a finite-sample risk guarantee. We use it because it provides a genuine guarantee without retraining and without parametric assumptions beyond patient-level iid sampling.
Binomial model. Under the patient-level iid assumption and for a threshold fixed independently of the certification sample, the number of disagreements among served inputs is Binomial( ). This exact model is what makes a finite-sample confidence bound possible from counts alone.
Clopper–Pearson upper bound . The exact one-sided upper confidence limit [2] for a binomial proportion, written in closed form as a Beta quantile . We use it rather than a normal (Wald) approximation because it never under-covers, remains valid at small samples, and gives a correct, non-degenerate bound when zero disagreements are observed,
(b)

Supplementary Figure 3: Escalated cases are enriched for low-margin, high-disagreement inputs (NF4 4-bit, ). (a), Empirical cumulative distribution of the decision margin , pooled over the eleven models, for escalated versus certified inputs; the distributions are strongly separated (median margin 0.35 escalated versus 5.12 certified), not merely different in mean. (b), Observed disagreement with the BF16 reference for certified (filled) versus escalated (open) inputs, per model: escalated inputs disagree with the reference far more often (mean 45.3% versus 2.9%; dotted line, 5%). Escalation therefore selects the decisions on which the compressed model is most likely to disagree with the BF16 reference; whether those disagreements are clinically consequential is the object of the future clinician-adjudication study.
the small-sample setting most relevant to certification [3]. Its cost is statistical conservatism, which can become substantial when calibration samples are small, and this conservatism favours escalation rather than uncertified deployment.
Bonferroni correction. Because CERTA tests candidate thresholds and deploys the smallest that passes, it performs a multiple comparison; evaluating each bound at level and taking a union bound keeps the guarantee valid simultaneously across the whole grid. Bonferroni [4] is used because it is assumption-free (valid under arbitrary dependence) and transparent; we use , and the grid-sensitivity analysis (Supplementary Table 11) shows the resulting frontier is essentially unchanged across . The marginal certificate allocates across the threshold grid; the class-conditional certificate allocates across the two classes and their grids. For the exact frontier, which additionally selects among deployable configurations, these become and respectively (the exact class-conditional allocation is at , , ).

(b)

Supplementary Figure 4: Two mechanisms of reject-class escalation. (a), Number of REJECT-class calibration inputs per model (log scale), coloured by escalation mechanism: certified (green), risk-limited (orange), resolution-limited (red). Acceptance-skewed models have very few reject-class calibration inputs (BioMistral-7B, 4; OpenBioLLM-70B, 91). (b), Reject-class resolution floor (horizontal axis) against the smallest attainable Clopper–Pearson upper bound on the reject-class risk (vertical axis), both on log scales; dashed lines mark the target. A class is certified only when both coordinates fall below (lower-left corner). Resolution-limited classes (BioMistral-7B, OpenBioLLM-70B) fail the floor condition; the risk-limited class (MMed-Llama-3.1-70B) clears the floor at 4.7% but not the attainable bound at 8.4%. The floor is a necessary, not a sufficient, certification condition.
Patient-level iid sampling. The assumption that decisions, grouped by patient, are independent and identically distributed draws from the deployment distribution. It is the sampling assumption underlying the binomial/Clopper–Pearson argument; in the exact certificate, the candidate threshold grid is additionally fixed independently of the certification sample; because sixteen patients contribute two decisions, inference and bootstrap resampling are performed at the patient level, and a one-decision-per-patient re-analysis confirms the conclusions.
Class-conditional (Mondrian) certification. Running the certificate separately within the predicted accept and reject classes (a Mondrian, class-conditional scheme [5]), each at its own threshold and confidence allocation . It is used because a single marginal guarantee can conceal a minority class with substantially higher disagreement; conditioning on the class exposes and controls this asymmetry.
Zero-disagreement resolution floor . In the higher-power operational class-conditional analysis, the smallest risk certifiable for a class with no observed disagreements given its calibration count is . This is the operational floor; the exact class-conditional frontier instead uses the configuration-corrected allocation and the class-specific count

(b)

Supplementary Figure 5: Statistical robustness. (a), Marginal frontier size (% BF16) at for confidence levels (confidence 90/95/99%); each line is one model. The frontier changes only modestly with the confidence level. (b), Frontier range (minimum, median, maximum over models) at as a function of the calibration set size ; the certificate degrades gracefully as calibration data are reduced and tightens as they increase, while the strongest models retain the 4-bit floor.
in its one-decision-per-patient certification subset, giving . It distinguishes classes escalated for lack of calibration data (resolution-limited) from those escalated for genuine disagreement (risk-limited), making escalation interpretable rather than arbitrary.
Patient-clustered bootstrap. Confidence intervals obtained by resampling patients rather than individual decisions, so that within-patient dependence is respected. It quantifies uncertainty on the empirical coverage; the formal risk control is the Clopper–Pearson bound, not the bootstrap. For the external named-entity benchmarks, whose units are documents rather than patients, the corresponding intervals resample documents.
Risk level . The target upper bound on the served-region disagreement risk, reported from 1% to 10%. It is the single knob a deployer sets to trade resource savings against the tolerated rate of disagreement with the reference.
Confidence parameter . The probability with which the finite-sample guarantee is allowed to fail over the draw of the calibration sample; we use (confidence ). It is distinct from : bounds the risk, whereas bounds the chance that the certificate's risk bound is itself violated.
(b)

Supplementary Figure 6: Design-choice robustness of the marginal frontier. (a), Marginal frontier size (% BF16) at as the Learn-then-Test grid size G is varied over : minimum ( floor), median and maximum across the eleven models. The envelope is nearly flat, so the frontier is insensitive to the grid resolution. (b), Distribution of the marginal frontier over 20 independent patient-disjoint splits, one boxplot per model (boxes coloured by architecture family, whiskers the full range; dotted line, the 25% 4-bit floor). The strongest models sit at the floor on every split and no model's interquartile width exceeds 2.5 percentage points, confirming that the 25–40% envelope is not an artefact of the particular split used in the main text.
Candidate threshold grid (G). The finite set of margin thresholds Learn-then-Test searches, of size G = 50. A finite grid makes the multiple-comparison correction explicit (Bonferroni over G); the grid-sensitivity analysis (Supplementary Table 11) shows the frontier is stable across G = 25–200.
Certified coverage (C). The fraction of held-out decisions whose margin clears the selected threshold and are therefore served by the quantized model, . It is the primary benefit measure: higher coverage means more decisions avoid the full-precision reference.
Escalation rate (E). The complementary fraction routed to the BF16 reference, . It is the cost side of the trade-off, since escalated decisions require the reference to be reachable.
Certify-or-escalate. The deployment rule by which each input is either served by the quantized model (if its margin clears the certified threshold) or escalated to the BF16 reference (otherwise). It is the mechanism that converts a population-level risk bound into a per-decision policy with a guarantee.
Operating point. A specific deployed choice of quantizer, bit-width and threshold at a given risk level. Sweeping the risk level traces a model's operating points into its frontier.
Service score (routing statistic). The scalar used to decide eligibility for compressed service, here the decision margin . CERTA can use any prespecified scalar service score, including a learned substitution-risk score, provided the score and the candidate threshold grid are fixed independently of the certification sample; a score learned on separate selection data can therefore be incorporated without changing the finite-sample argument. The margin is used here because the model already produces it at no extra cost.
Empirical certified-set agreement ( ). The observed agreement rate between the quantized and reference decisions on served inputs, , measured on held-out data. It is reported as an out-of-sample diagnostic; the formal guarantee is the Clopper–Pearson bound, not .
Marginal certificate. A single threshold calibrated over both decision classes pooled together. It is the simplest frontier and the baseline against which the class-conditional (Mondrian) certificate is compared.
Accept and reject classes (A, R). The two predicted decision classes of the clinical verifier (accept or reject the candidate). The class-conditional certificate controls disagreement within each separately, because the reject class is typically rarer and harder to certify.
Resolution-limited vs risk-limited escalation. Two reasons a class is escalated in full: resolution-limited, when too few calibration decisions make even zero observed disagreements insufficient to certify the target (its floor exceeds ); and risk-limited, when enough data exist but the best attainable bound still exceeds . The distinction separates a data-quantity limitation from a genuine disagreement problem.
Patient-disjoint calibration and testing. The 2,500 decisions (from 2,484 patients) are split so that no patient appears in both the 1,250-decision calibration set and the 1,250-decision test set, preventing information about a patient from leaking between calibration and evaluation.
Selection and certification subsets. Within calibration, the exact certificate uses an independent 250-decision selection subset to build the threshold grid and a disjoint 1,000-decision certification subset (reduced to 996 one-per-patient decisions) to compute the Clopper–Pearson bounds. Separating them keeps the grid independent of the bounds, which the finite-sample argument requires.
One decision per patient. The certification unit of the exact certificate: at most one decision is retained per patient, so that the served counts are independent, as the binomial argument requires. The higher-power operational analysis instead uses all calibration decisions.
Higher-power operational analysis. The reported full-calibration version of the certificate, which builds the grid and computes the bounds on the same 1,250 calibration decisions. It yields tighter frontiers, but its grid is data-dependent, so its per-operating-point bounds are diagnostics rather than an independent finite-sample guarantee.
Exact split-sample certificate. The formally guaranteed version: independent selection and certification subsets, one decision per patient, and an outer Bonferroni correction across the H deployable configurations. It supplies the finite-sample guarantee, and the operational frontier is reported as a higher-power comparison.
Deployable configurations (H). The memory-reducing quantization schemes eligible for the frontier, NF4 4-bit and 8-bit LLM.int8() (H = 2); round-to-nearest retains BF16 storage and is excluded. The exact certificate corrects for selection among these H configurations.
Compression-induced disagreement risk. The quantity CERTA certifies: the rate at which the quantized model's decision differs from the BF16 reference on served inputs. It is deliberately distinct from clinical-correctness risk (whether the reference decision is itself correct) and from task-performance change on the external benchmarks; the certificate bounds only the first.
Amortized size. The coverage-weighted, BF16-equivalent deployment cost: k bits for the served fraction C and 16 bits for the escalated fraction give a bit-equivalent size , reported throughout as a percentage of the BF16 reference,
For example, a 4-bit configuration serving every decision has . It is used so that a compressed model with occasional fallback can be compared fairly against an uncompressed model; it is a cost-accounting quantity, not physical memory, since escalated decisions still require a reachable reference.
Certified compression frontier. For each model and target risk level , the lowest-cost deployable configuration (bit-width and quantizer) whose certificate is admissible at that ; traced across these operating points form the model's certified compression frontier, the risk-resource trade-off reported throughout. A “frontier point” is one such selected configuration.
Four-bit floor (4×, 25%). The smallest amortized size attainable by a deployable 4-bit configuration serving every decision, at , i.e. of the BF16 nominal size (a fourfold reduction). It is the lower limit a frontier can reach once escalation falls to zero, and the dotted reference line in the risk-resource figures.
Round-to-nearest (RTN). Nearest-level rounding kept at BF16 storage, hence not memory-reducing. It is included as a numerical-precision baseline that isolates the effect of lower precision from the effect of a memory-reducing kernel.
NF4. The bitsandbytes 4-bit NormalFloat format with double quantization, whose levels suit the approximately Gaussian weight distribution and which genuinely reduces memory. It is the deployable 4-bit route and the configuration every model's frontier selects.
LLM.int8(). A memory-reducing 8-bit scheme with outlier handling. It is included as the deployable 8-bit counterpart to RTN-8 and, by failing on two BF16-native 70B checkpoints, demonstrates that numerical 8-bit robustness and deployable 8-bit memory reduction are distinct properties.
Quantizer. The scheme that maps BF16 weights to lower precision (round-to-nearest, NF4 or LLM.int8()). The frontier is defined over quantizers, and two independent routes are evaluated, so that the result reflects a property of the certificate rather than of any single implementation.
Nominal bit-width (k). The configured per-weight precision of a quantizer (4 for NF4, 8 for LLM.int8()). It enters the amortized-size accounting as a nominal figure and is not a measurement of physical memory.
Peak VRAM. The measured maximum GPU memory allocated during the forward pass, summed over the devices a configuration requires. It is reported separately from amortized size because physical memory also includes quantization metadata, activations and runtime allocations, and is therefore the quantity a deployer provisions hardware against.
Overlap match (entity level). The external-benchmark scoring rule by which a predicted disease entity counts as a true positive if it overlaps a gold entity after whitespace and case normalization, and a gold entity counts as recalled if some prediction overlaps it. It is used so that near-boundary span differences are not penalized as outright errors.
Paired per-entity correctness and coverage transitions. The document-level paired analysis that compares each configuration against the same model's BF16 run on the same documents, reporting per-entity transitions (gold entities preserved, newly covered, lost, or still missed) with document-level bootstrap intervals. It isolates the compression effect on human-gold correctness from between-model variation.
Prevalence shift. A stress test that reweights the deployment accept/reject mix away from the calibration prevalence while holding the calibrated thresholds fixed. It probes whether the marginal certificate’s average guarantee survives a change in class balance, which the class-conditional certificate is designed to withstand.
Supplementary References
[1] Anastasios N. Angelopoulos, Stephen Bates, Emmanuel J. Candès, Michael I. Jordan, and Lihua Lei. Learn then test: Calibrating predictive algorithms to achieve risk control. The Annals of Applied Statistics, 19(2):1641–1662, 2025.
[2] C. J. Clopper and E. S. Pearson. The use of confidence or fiducial limits illustrated in the case of the binomial. Biometrika, 26(4):404–413, 1934.
[3] Lawrence D. Brown, T. Tony Cai, and Anirban DasGupta. Interval estimation for a binomial proportion. Statistical Science, 16(2):101–133, 2001.
[4] Olive Jean Dunn. Multiple comparisons among means. Journal of the American Statistical Association, 56(293):52–64, 1961.
[5] Vladimir Vovk, David Lindsay, Ilia Nouretdinov, and Alex Gammerman. Mondrian confidence machine. Technical report, Royal Holloway, University of London, 2003.