Are You Getting What You Pay For? Auditing Model Substitution in LLM APIs
Not on the map. Why?
Abstract (arXiv)
Commercial Large Language Model (LLM) APIs create a fundamental trust problem: users pay for specific models but have no guarantee that providers deliver them faithfully. Providers may covertly substitute cheaper alternatives (e.g., quantized versions, smaller models) to reduce costs while maintaining advertised pricing. We formalize this model substitution problem and systematically evaluate detection methods under realistic adversarial conditions. Our empirical analysis reveals that software-only methods are fundamentally unreliable: statistical tests on text outputs are query-intensive and fail against subtle substitutions, while methods using log probabilities are defeated by inherent inference nondeterminism in production environments. We argue that this verification gap can be more effectively closed with hardware-level security. We propose and evaluate the use of Trusted Execution Environments (TEEs) as one practical and robust solution. Our findings demonstrate that TEEs can provide provable cryptographic guarantees of model integrity with only a modest performance overhead, offering a clear and actionable path to ensure users get what they pay for. Code is available at https://github.com/sunblaze-ucb/llm-api-audit
Key facts. Cited by 35 papers in the map (data through 7 Oct 2026). Builds on 31 of its 44 references that are in the map. First posted on arXiv 7 Apr 2025.
Builds on
31 of 44 references.
References · 31
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
- 2023Qwen Technical Reportcited by 3,273
- 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,748
- 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 825
- 2023DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvaturecited by 705
- 2023A Watermark for Large Language Modelscited by 667
19 more
- 2024LLM2Vec: Large Language Models Are Secretly Powerful Text Encoderscited by 396
- 2023Fast-DetectGPT: Efficient Zero-Shot Detection of Machine-Generated Text via Conditional Probability Curvaturecited by 278
- 2023How is ChatGPT's behavior changing over time?cited by 265
- 2023Provable Robust Watermarking for AI-Generated Textcited by 259
- 2023RADAR: Robust AI-Text Detection via Adversarial Learningcited by 187
- 2024Stealing Part of a Production Language Modelcited by 152
- 2023DNA-GPT: Divergent N-Gram Analysis for Training-Free Detection of GPT-Generated Textcited by 127
- 2023A Survey on Detection of LLMs-Generated Contentcited by 70
- 2024Decoding Compressed Trust: Scrutinizing the Trustworthiness of Efficient LLMs Under Compressioncited by 54
- 2024zkLLM: Zero Knowledge Proofs for Large Language Modelscited by 51
- 2024Model Equality Testing: Which Model Is This API Serving?cited by 44
- 2024SoK: Watermarking for AI-Generated Contentcited by 43
- 2024Logits of API-Protected LLMs Leak Proprietary Informationcited by 38
- 2025Idiosyncrasies in Large Language Modelscited by 32
- 2023Towards Possibilities & Impossibilities of AI-generated Text Detection: A Surveycited by 28
- 2025Exploring and Mitigating Adversarial Manipulation of Voting-Based Leaderboardscited by 19
- 2025TOPLOC: A Locality Sensitive Hashing Scheme for Trustless Verifiable Inferencecited by 16
- 2025Predicting the Performance of Black-box LLMs through Follow-up Queriescited by 9
- 2024SVIP: Towards Verifiable Inference of Open-source Large Language Modelscited by 6
Built on by
Citing papers per year: 2025: 13; 2026: 22.
35 papers.
Sort:
By area:
- 2025Auditing Black-Box LLM APIs with a Rank-Based Uniformity Testcited by 16
- 2025CoIn: Counting the Invisible Reasoning Tokens in Commercial Opaque LLM APIscited by 14
- 2025SoK: Large Language Model Copyright Auditing via Fingerprintingcited by 14
- 2025Is Your LLM Overcharging You? Tokenization, Transparency, and Incentivescited by 13
- 2025Invisible Tokens, Visible Bills: The Urgent Need to Audit Hidden Operations in Opaque LLM Servicescited by 10
- 2025Log Probability Tracking of LLM APIscited by 8
- 2026Real Money, Fake Models: Deceptive Model Claims in Shadow APIscited by 8
- 2025Predictive Auditing of Hidden Tokens in LLM APIs via Reasoning Length Estimationcited by 7
- 2025Flex-Judge: Text-Only Reasoning Unleashes Zero-Shot Multimodal Evaluatorscited by 6
- 2026One Token Is Enough: Fingerprinting and Verifying Large Language Models from Single-Token Output Distributionscited by 6
- 2025Pay for The Second-Best Service: A Game-Theoretic Approach Against Dishonest LLM Providerscited by 5
- 2025Auditing Pay-Per-Token in Large Language Modelscited by 4
23 more
- 2026Token-Efficient Change Detection in LLM APIscited by 4
- 2026Proof-of-Guardrail in AI Agents and What (Not) to Trust from Itcited by 4
- 2026Beyond Reproducibility: Token Probabilities Expose Large Language Model Nondeterminismcited by 3
- 2026IMMACULATE: A Practical LLM Auditing Framework via Verifiable Computationcited by 3
- 2026Your "Pro" LLM Subscription May Actually Be "Free": Exposing Fingerprint Spoofing Risks in LLM Inference Servicescited by 3
- 2026Test-Time Compute Gamescited by 2
- 2025TRUST: A Decentralized Framework for Auditing Large Language Model Reasoningcited by 1
- 2026Computational Arbitrage in AI Model Marketscited by 1
- 2026Inferring the Size of Large Language Models From Popular Text Memorizationcited by 1
- 2026Token Inflation: How Dishonest Providers Can Overcharge for Large Language Model Usagecited by 1
- 2026Total Variation Distance Estimation in Autoregressive Modelscited by 1
- 2025Tokenization Multiplicity Leads to Arbitrary Price Variation in LLM-as-a-servicecited by 0
- 2025Let's Measure Information Step-by-Step: AI-Based Evaluation Beyond Vibescited by 0
- 2026Same Pieces, Different Servers: A Tetris Benchmark for AI Agents as Servedcited by 0
- 2026Adaptive Contracts for Cost-Effective AI Delegationcited by 0
- 2026Towards Verifiable AI with Lightweight Cryptographic Proofs of Inferencecited by 0
- 2026Referential Security as a New Paradigm for AI Evaluationscited by 0
- 2026Ventor-QTest: Threat-Model-Driven Verification of Vendor-Hosted LLM APIscited by 0
- 2026AgentProv: Auditing Agentic LLM API Providers via Tool-use Policy Probescited by 0
- 2026Who Is Behind the Harness? Fingerprinting LLMs through Agentic Behaviorcited by 0
- 2026Strategic Self-Consistencycited by 0
- 2026Forging LLM Authorship Fingerprints with Targeted Rewritingcited by 0
- 2026Paying for Too Many Tokens? Valid and Cost-Efficient Multimodal LLM Annotation with Simple Heuristicscited by 0
- 2026Paying for Too Many Tokens? Valid and Cost-Efficient Multimodal LLM Annotation with Simple Heuristics30 Sep 2026
- 2026Forging LLM Authorship Fingerprints with Targeted Rewriting30 Sep 2026
- 2026Strategic Self-Consistency24 Sep 2026
- 2026Who Is Behind the Harness? Fingerprinting LLMs through Agentic Behavior23 Sep 2026
- 2026AgentProv: Auditing Agentic LLM API Providers via Tool-use Policy Probes30 Aug 2026
- 2026Ventor-QTest: Threat-Model-Driven Verification of Vendor-Hosted LLM APIs17 Aug 2026
- 2026Total Variation Distance Estimation in Autoregressive Models21 Jul 2026
- 2026One Token Is Enough: Fingerprinting and Verifying Large Language Models from Single-Token Output Distributions11 Jul 2026
- 2026Your "Pro" LLM Subscription May Actually Be "Free": Exposing Fingerprint Spoofing Risks in LLM Inference Services15 Jun 2026
- 2026Token Inflation: How Dishonest Providers Can Overcharge for Large Language Model Usage28 May 2026
- 2026Inferring the Size of Large Language Models From Popular Text Memorization28 May 2026
- 2026Referential Security as a New Paradigm for AI Evaluations25 May 2026
23 more
- 2026Computational Arbitrage in AI Model Markets23 Mar 2026
- 2026Towards Verifiable AI with Lightweight Cryptographic Proofs of Inference19 Mar 2026
- 2026Adaptive Contracts for Cost-Effective AI Delegation17 Mar 2026
- 2026Proof-of-Guardrail in AI Agents and What (Not) to Trust from It6 Mar 2026
- 2026Same Pieces, Different Servers: A Tetris Benchmark for AI Agents as Served2 Mar 2026
- 2026Real Money, Fake Models: Deceptive Model Claims in Shadow APIs2 Mar 2026
- 2026IMMACULATE: A Practical LLM Auditing Framework via Verifiable Computation26 Feb 2026
- 2026Token-Efficient Change Detection in LLM APIs11 Feb 2026
- 2026Test-Time Compute Games29 Jan 2026
- 2026Beyond Reproducibility: Token Probabilities Expose Large Language Model Nondeterminism3 Jan 2026
- 2025Log Probability Tracking of LLM APIs3 Dec 2025
- 2025Pay for The Second-Best Service: A Game-Theoretic Approach Against Dishonest LLM Providers2 Nov 2025
- 2025TRUST: A Decentralized Framework for Auditing Large Language Model Reasoning23 Oct 2025
- 2025Auditing Pay-Per-Token in Large Language Models5 Oct 2025
- 2025SoK: Large Language Model Copyright Auditing via Fingerprinting27 Aug 2025
- 2025Let's Measure Information Step-by-Step: AI-Based Evaluation Beyond Vibes7 Aug 2025
- 2025Predictive Auditing of Hidden Tokens in LLM APIs via Reasoning Length Estimation29 Jul 2025
- 2025Auditing Black-Box LLM APIs with a Rank-Based Uniformity Test8 Jun 2025
- 2025Tokenization Multiplicity Leads to Arbitrary Price Variation in LLM-as-a-service6 Jun 2025
- 2025Is Your LLM Overcharging You? Tokenization, Transparency, and Incentives27 May 2025
- 2025Flex-Judge: Text-Only Reasoning Unleashes Zero-Shot Multimodal Evaluators24 May 2025
- 2025Invisible Tokens, Visible Bills: The Urgent Need to Audit Hidden Operations in Opaque LLM Services24 May 2025
- 2025CoIn: Counting the Invisible Reasoning Tokens in Commercial Opaque LLM APIs19 May 2025
- 2025CoIn: Counting the Invisible Reasoning Tokens in Commercial Opaque LLM APIscited by 14
- 2025Predictive Auditing of Hidden Tokens in LLM APIs via Reasoning Length Estimationcited by 7
- 2025Flex-Judge: Text-Only Reasoning Unleashes Zero-Shot Multimodal Evaluatorscited by 6
- 2026Test-Time Compute Gamescited by 2
- 2025TRUST: A Decentralized Framework for Auditing Large Language Model Reasoningcited by 1
- 2026Strategic Self-Consistencycited by 0
- 2026Strategic Self-Consistency24 Sep 2026
- 2026Test-Time Compute Games29 Jan 2026
- 2025TRUST: A Decentralized Framework for Auditing Large Language Model Reasoning23 Oct 2025
- 2025Predictive Auditing of Hidden Tokens in LLM APIs via Reasoning Length Estimation29 Jul 2025
- 2025Flex-Judge: Text-Only Reasoning Unleashes Zero-Shot Multimodal Evaluators24 May 2025
- 2025CoIn: Counting the Invisible Reasoning Tokens in Commercial Opaque LLM APIs19 May 2025
- 2025Auditing Black-Box LLM APIs with a Rank-Based Uniformity Testcited by 16
- 2025SoK: Large Language Model Copyright Auditing via Fingerprintingcited by 14
- 2025Is Your LLM Overcharging You? Tokenization, Transparency, and Incentivescited by 13
- 2025Invisible Tokens, Visible Bills: The Urgent Need to Audit Hidden Operations in Opaque LLM Servicescited by 10
- 2025Log Probability Tracking of LLM APIscited by 8
- 2026Real Money, Fake Models: Deceptive Model Claims in Shadow APIscited by 8
- 2026One Token Is Enough: Fingerprinting and Verifying Large Language Models from Single-Token Output Distributionscited by 6
- 2025Pay for The Second-Best Service: A Game-Theoretic Approach Against Dishonest LLM Providerscited by 5
- 2025Auditing Pay-Per-Token in Large Language Modelscited by 4
- 2026Token-Efficient Change Detection in LLM APIscited by 4
- 2026Proof-of-Guardrail in AI Agents and What (Not) to Trust from Itcited by 4
- 2026Beyond Reproducibility: Token Probabilities Expose Large Language Model Nondeterminismcited by 3
12 most cited of 26 All 26 (JSON)
- 2026Forging LLM Authorship Fingerprints with Targeted Rewriting30 Sep 2026
- 2026Ventor-QTest: Threat-Model-Driven Verification of Vendor-Hosted LLM APIs17 Aug 2026
- 2026Total Variation Distance Estimation in Autoregressive Models21 Jul 2026
- 2026One Token Is Enough: Fingerprinting and Verifying Large Language Models from Single-Token Output Distributions11 Jul 2026
- 2026Your "Pro" LLM Subscription May Actually Be "Free": Exposing Fingerprint Spoofing Risks in LLM Inference Services15 Jun 2026
- 2026Token Inflation: How Dishonest Providers Can Overcharge for Large Language Model Usage28 May 2026
- 2026Inferring the Size of Large Language Models From Popular Text Memorization28 May 2026
- 2026Referential Security as a New Paradigm for AI Evaluations25 May 2026
- 2026Computational Arbitrage in AI Model Markets23 Mar 2026
- 2026Towards Verifiable AI with Lightweight Cryptographic Proofs of Inference19 Mar 2026
- 2026Adaptive Contracts for Cost-Effective AI Delegation17 Mar 2026
- 2026Proof-of-Guardrail in AI Agents and What (Not) to Trust from It6 Mar 2026
12 newest of 26 All 26 (JSON)