The Commonplace
Home Papers Evidence Explore Trends Syntheses Digests References Docs 🎲 Workforce Futures
← Papers
Direction, evidence grade, and study type are AI-generated labels (gpt-5-mini), not human-verified. Syntheses are LLM-written. "Tensions" are machine-detected candidates, not confirmed contradictions. A research-acceleration tool, not peer review. How this is built →

IMMACULATE lets customers audit black-box LLM APIs for model substitution, quantization abuse and token overbilling without trusted hardware, and in experiments detects malicious behavior while adding under 1% throughput overhead; the approach strengthens governance options for cloud model services but remains validated only in controlled settings.

IMMACULATE: A Practical LLM Auditing Framework via Verifiable Computation
Yanpei Guo, Wenjie Qu, Linyu Wu, Shengfang Zhai, Lionel Z. Wang, Ming Xu, Yue Liu, Binhang Yuan, Dawn Song, Jiaheng Zhang · February 26, 2026
arxiv descriptive medium evidence 7/10 relevance Full text usable extracted full text Source PDF

Structured author observations

Linked only from stored provider relations; the raw author line above is never matched by name.

Arxiv

Latest observation:

  1. Yanpei Guo unresolved corpus identity
  2. Wenjie Qu unresolved corpus identity
  3. Linyu Wu unresolved corpus identity
  4. Shengfang Zhai unresolved corpus identity
  5. Lionel Z. Wang unresolved corpus identity
  6. Ming Xu unresolved corpus identity
  7. Yue Liu unresolved corpus identity
  8. Binhang Yuan unresolved corpus identity
  9. Dawn Song unresolved corpus identity
  10. Jiaheng Zhang unresolved corpus identity

Semantic Scholar

Latest observation:

  1. Yanpei Guo provider ID
  2. Wenjie Qu provider ID
  3. Linyu Wu provider ID
  4. Shengfang Zhai provider ID
  5. Lionel Z. Wang provider ID
  6. Ming Xu provider ID
  7. Yue Liu provider ID
  8. Binhang Yuan provider ID
  9. Dawn Song provider ID
  10. Jiaheng Zhang provider ID
IMMACULATE is a practical auditing framework that selectively applies verifiable computation to detect model substitution, quantization abuse, and token overbilling in black-box LLM APIs, achieving strong detection guarantees with under 1% throughput overhead in experiments.

Citation observations

Cumulative provider counts captured on specific dates; providers are never combined.

Commercial large language models are typically deployed as black-box API services, requiring users to trust providers to execute inference correctly and report token usage honestly. We present IMMACULATE, a practical auditing framework that detects economically motivated deviations-such as model substitution, quantization abuse, and token overbilling-without trusted hardware or access to model internals. IMMACULATE selectively audits a small fraction of requests using verifiable computation, achieving strong detection guarantees while amortizing cryptographic overhead. Experiments on dense and MoE models show that IMMACULATE reliably distinguishes benign and malicious executions with under 1% throughput overhead. Our code is published at https://github.com/guo-yanpei/Immaculate.

Summary

Main Finding

IMMACULATE is a practical auditing framework that detects economically motivated deviations in black‑box LLM API services (model substitution, aggressive quantization, token overbilling) by combining randomized selective auditing with verifiable computation over a novel fidelity metric—the Logit Distance Distribution (LDD). It provides provable detection guarantees without trusted hardware or requiring bitwise reproducibility, is compatible with existing inference stacks, and in a prototype built on vLLM imposes only ≈1% throughput overhead.

Key Points

  • Problem addressed: black‑box LLM APIs create a trust asymmetry where providers can economically benefit by secretly deviating from claimed inference/billing (cheaper models, lower precision, inflated token counts).
  • Economic insight: a rational provider can only profit if misbehavior occurs on a non‑negligible fraction α of requests; therefore auditing a small random subset suffices to detect large‑scale cheating with high probability.
  • Hybrid LLM abstraction: separates continuous neural transformations (subject to numerical non‑determinism) from discrete decisions (token selection, MoE routing). Fixing discrete decisions yields a continuous reproducible computation path.
  • Logit Distance Distribution (LDD): distance distribution between committed runtime logits and logits recomputed under a committed full‑precision reference model; stable under benign numeric noise but discriminatory under substitution/quantization/token‑overreporting.
  • Verifiable computation + discrete‑state commitments: server commits per‑step logits (or top‑K indices) and uses a VC proof to show (a) discrete decisions match committed logits, (b) recomputation under the claimed full‑precision model produces reference logits, and (c) the LDD is within admissible bounds. This avoids requiring deterministic bitwise replay.
  • Randomized auditing: only a small number of randomly chosen requests are proven. Detection probability scales with α and chosen sample size; example: a few thousand audited queries can detect a 10% cheating rate with high confidence.
  • Practical optimizations: top‑K distance metric to avoid committing full logits vectors; prototype on vLLM and evaluation on dense and MoE models (including LLaMA3 family examples) show separable LDD signatures for benign vs malicious executions and ≲1% runtime overhead.
  • Guarantees and assumptions: completeness (honest servers accepted), soundness (α‑dishonest servers rejected with high probability), privacy (model internals remain hidden), and generality across architectures and hardware. Assumes auditor requests are indistinguishable from normal users and that the server is economically rational (malicious only if profitable on a non‑negligible fraction).

Data & Methods

  • Theoretical foundations:
    • Formal hybrid computation model Mθ = (Eθ, Fθ, S, Gθ, D) separating continuous transforms and discrete decisions.
    • Definition of LDD as distribution of distances Dis(ℓi, ℓ⋆i) between executed logits and full‑precision reference logits, with distance metrics like total variation (TV) or KL.
    • Propositions showing characteristic LDD changes for model substitution (systematic bias), precision reduction (increased variance), and token overreporting (viewed as special-case substitution).
  • Auditing protocol (high level):
  • Model owner publishes a cryptographic commitment to the claimed full‑precision model.
  • Server serves requests normally, records per‑decision runtime logits (or top‑K indices) and commits them.
  • Auditor selects a random subset of requests to audit; server provides VC proofs for those queries showing recomputation under the committed full‑precision model and reporting the LDD.
  • Verifier checks proofs and evaluates tail statistics of the LDD (e.g., Pr[TV(ℓ,ℓ⋆) > τ]) to accept/reject.
  • Implementation & experiments:
    • Prototype implementation built on vLLM; code published: https://github.com/guo-yanpei/Immaculate.
    • Empirical evaluation on thousands of requests across dense and Mixture‑of‑Experts (MoE) models (paper shows LLaMA3‑70B examples) demonstrating well‑separated LDDs between benign and manipulated executions.
    • Metrics used: logit TV/KL distances, empirical tail probabilities; sample complexity calculations show modest audited query counts suffice for detection (examples: thousands for α~0.1).
    • Measured overhead: ≲1% throughput overhead in prototype; cryptographic proving cost amortized because only a small random subset is proved.
  • Cryptographic tools:
    • Commitment primitives (hashes/Merkle) for model and runtime logits.
    • Verifiable computation (VC) to produce succinct proofs that continuous recomputation under the reference model yields claimed LDDs; uses a VC instantiation appropriate for non‑integer floating behavior via proving LDD rather than exact FP execution.
  • Limitations noted in methods:
    • Threat model excludes attacks that increase computational cost while still serving users with alternative models (i.e., attacks that are not economically reducing cost).
    • Assumes auditor’s queries are indistinguishable from ordinary users (avoids targeted evasion).

Implications for AI Economics

  • Reduces moral hazard and information asymmetry: IMMACULATE makes large‑scale, stealthy cost‑saving deviations (distillation, aggressive quantization, token inflation) detectible and thus more costly/risky for providers, changing the incentive calculus.
  • Low-cost auditing enables credible commitment and certification: because proving cost is amortized over large volumes and audit sampling is small, auditors or buyers (platforms, enterprises, regulators) can credibly verify provider claims (model identity, precision, token billing) without prohibitive cost — facilitating enforceable SLAs and contractual warranties.
  • Pricing, contracting, and competition:
    • Providers face higher expected cost of cheating (detection probability × penalty), so some will price correctly or differentiate honestly; others may invest in infrastructure to pass audits.
    • Auditable claims can become a market signal; certified honest providers may command premium pricing or preferred procurement.
    • Potentially lowers consumer risk premium for relying on black‑box APIs, fostering adoption of LLM services in revenue‑sensitive domains (finance, healthcare, autonomous agents).
  • Effects on token‑based billing models and agent economics:
    • Verifiable token usage reduces the ability to overbill hidden intermediate tokens, altering the economics of agent designs that relied on opaque internal token accounting.
    • Developers of autonomous agents and high‑volume users gain tools to control marginal costs, making cost forecasts and optimization more reliable.
  • Regulatory and institutional impacts:
    • Auditing frameworks like IMMACULATE could become part of compliance regimes or standards for AI service transparency and billing fairness.
    • Third‑party auditors or certification authorities could emerge, creating new economic actors and a market for audit services.
  • Potential costs, strategic responses, and limits:
    • Providers must add modest proving infrastructure and may face slightly higher per‑audited‑request cost; but these are small if audits are infrequent and proofs are efficient.
    • Adaptive adversaries: if auditors are predictable or identifiable, providers could evade audits selectively; the framework assumes auditor queries are indistinguishable, so real‑world deployment must ensure randomness and secrecy of audited queries.
    • Enforcement required: detecting cheating creates social value only if detection leads to penalties or contract remedies; economic impact depends on enforcement mechanisms (legal, marketplace punishment).
    • Residual attack space: attacks that are profitable yet rare below auditing detection thresholds or that increase cost but still substitute models are outside the assumed threat model; complementary mechanisms (market monitoring, empirical metrics, or TEEs) may still be needed.
  • Overall economic conclusion: IMMACULATE substantially lowers the monitoring cost for honest verification of LLM execution and billing, shifting the equilibrium toward greater provider accountability and enabling more efficient contracting and market participation—but its real‑world leverage depends on audit design, enforcement, and integration into procurement/regulatory systems.

Assessment

Paper Typedescriptive Evidence Strengthmedium — Provides experimental results demonstrating reliable detection of several specified misbehaviors and reports low throughput overhead, but evidence comes from controlled lab experiments on a limited set of model types and adversary behaviors rather than deployment in diverse real-world provider settings. Methods Rigormedium — Implements a concrete system, open-sources code, and evaluates across dense and MoE models with measured overhead and detection rates; however, rigor is limited by scope of threat models tested, potential simulation assumptions, and incomplete information about datasets, scale of traffic, and production heterogeneity. SampleExperimental evaluation uses simulated API workloads and implemented audits on representative dense transformer and Mixture-of-Experts (MoE) models to test detection of model substitution, quantization abuse, and token overbilling; measurements focus on detection accuracy and throughput overhead under controlled adversary behaviors (details of model sizes, datasets, and traffic traces are not fully specified in the abstract). Themesgovernance adoption GeneralizabilityEvaluated in controlled experiments; real-world provider implementations and production traffic patterns may differ, Limited set of model architectures (dense and MoE) — results may not generalize to all model families or proprietary stacks, Assumes specific adversary models; adaptive or more sophisticated attackers may evade detection, Scalability and integration challenges across large, heterogeneous inference pipelines and billing systems are not fully tested, Legal, contractual, and regulatory constraints that affect real-world audits are not addressed

Claims (6)

ClaimDirectionOutcomeConfidence & EvidenceDetails
Commercial large language models are typically deployed as black-box API services, requiring users to trust providers to execute inference correctly and report token usage honestly. Other null_result deployment modality and trust assumptions (black-box API requiring provider honesty)
Reading fidelity high
Study strength low
not reported
0.09
IMMACULATE is a practical auditing framework that detects economically motivated deviations—such as model substitution, quantization abuse, and token overbilling—without trusted hardware or access to model internals. Other positive detection of economically motivated deviations (model substitution, quantization abuse, token overbilling)
Reading fidelity high
Study strength medium
not reported
0.18
IMMACULATE selectively audits a small fraction of requests using verifiable computation, achieving strong detection guarantees while amortizing cryptographic overhead. Other positive audit rate (small fraction of requests) and tradeoff between detection guarantees and cryptographic overhead
Reading fidelity high
Study strength medium
not reported
0.18
IMMACULATE reliably distinguishes benign and malicious executions in experiments on dense and MoE models. Other positive ability to distinguish benign vs. malicious executions (detection reliability)
Reading fidelity high
Study strength medium
not reported
0.18
IMMACULATE imposes under 1% throughput overhead in those experiments. Other positive throughput overhead
Reading fidelity high
Study strength medium
under 1% throughput overhead
0.18
The authors' implementation/code for IMMACULATE is published at https://github.com/guo-yanpei/Immaculate. Other positive availability of implementation/code
Reading fidelity high
Study strength high
not reported
0.3

Notes