paper-with-me

홈 › Papers

Are You Getting What You Pay For? Auditing Model Substitution in LLM APIs

2025-04-07 · Will Cai, Tianneng Shi, Xuandong Zhao, Dawn Song

The proliferation of Large Language Models (LLMs) accessed via black-box APIs introduces a significant trust challenge: users pay for services based on advertised model capabilities (e.g., size, performance), but providers may covertly substitute the specified model with a cheaper, lower-quality alternative to reduce operational costs. This lack of transparency undermines fairness, erodes trust, and complicates reliable benchmarking. Detecting such substitutions is difficult due to the black-box nature, typically limiting interaction to input-output queries. This paper formalizes the problem of model substitution detection in LLM APIs. We systematically evaluate existing verification techniques, including output-based statistical tests, benchmark evaluations, and log probability analysis, under various realistic attack scenarios like model quantization, randomized substitution, and benchmark evasion. Our findings reveal the limitations of methods relying solely on text outputs, especially against subtle or adaptive attacks. While log probability analysis offers stronger guarantees when available, its accessibility is often limited. We conclude by discussing the potential of hardware-based solutions like Trusted Execution Environments (TEEs) as a pathway towards provable model integrity, highlighting the trade-offs between security, performance, and provider adoption. Code is available at https://github.com/sunblaze-ucb/llm-api-audit

📄 PDF Abstract BibTeX arXiv:2504.04715

Code (1)

sunblaze-ucb/llm-api-audit 공식 구현

Tasks

BenchmarkingFairnessQuantization

Similar Papers 제목 키워드 기반

KBF: Knowledge Boundary as Fingerprint for Language Model and Black-Box API Auditing

2026-05-28 · Yijia Fang, Yiqing Feng, Bingyu Li, Mingxun Zhou arxiv

Relay and reseller APIs increasingly intermediate access to large language models (LLMs), but users have no direct way to verify that a claimed endpoint is actually serving the advertised model. We introduce KBF, a low-c…

Auditing Black-Box LLM APIs with a Rank-Based Uniformity Test

2025-06-08 · Xiaoyuan Zhu, Yaowen Ye, Tianyi Qiu, Hanlin Zhu 외

As API access becomes a primary interface to large language models (LLMs), users often interact with black-box systems that offer little transparency into the deployed model. To reduce costs or maliciously alter model be…

Quantization

Self-Reflective APIs: Structure Beats Verbosity for AI Agent Recovery

2026-06-03 · Arquimedes Canedo, Grama Chethan arxiv

When an AI agent calls an API and hits a validation error, it needs more than what went wrong -- it needs what to do next. A self-reflective API returns, on validation failure, a machine-readable recovery\_feedback.sugge…

Predictive Auditing of Hidden Tokens in LLM APIs via Reasoning Length Estimation

2025-07-29 · Ziyao Wang, Guoheng Sun, Yexiao He, Zheyu Shen 외 arxiv

Commercial LLM services often conceal internal reasoning traces while still charging users for every generated token, including those from hidden intermediate steps, raising concerns of token inflation and potential over…

P2NIA: Privacy-Preserving Non-Iterative Auditing

2025-04-01 · Jade Garcia Bourrée, Hadrien Lautraite, Sébastien Gambs, Gilles Tredan 외

The emergence of AI legislation has increased the need to assess the ethical compliance of high-risk AI systems. Traditional auditing methods rely on platforms' application programming interfaces (APIs), where responses …

FairnessPrivacy Preserving