API-TAIL: Detecting Model Substitution in LLM APIs through Temperature-Aligned Likelihood Tails
Not on the map. Why?
Abstract (arXiv)
Commercial language model APIs return only text, allowing a provider to cut costs by quietly routing a fraction of user requests to a cheaper substitute model while billing for the advertised one. Detecting such partial substitution is challenging because honest providers also alter the output distribution through undocumented decoding and serving choices, such as temperature scaling, sampling truncation, repetition and presence penalties, and default system prompts, forcing an audit to test against a composite null of legitimate configurations rather than a single reference. Our key insight is that these legitimate variations primarily shift response typicality across the entire batch, whereas partial substitution injects individual responses that remain anomalous under the claimed model. Building on this, we introduce API-TAIL, a typicality audit that first absorbs batch-level shifts by aligning a single effective temperature to center standardized surprisal scores across the audited batch, and then flags the endpoint if the number of remaining tail responses exceeds a threshold calibrated across legitimate configurations. Evaluated on real-world API responses and constructed substitution mixtures, API-TAIL controls false alarms across diverse honest providers and detects low-rate partial substitution with a small query budget. Under a common composite calibration, it outperforms the adapted rank- and MMD-based audit baselines.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 24 of its 35 references that are in the map. Submitted 27 Oct 2026.
Builds on
24 of 35 references.
References · 24
- 2019The Curious Case of Neural Text Degenerationcited by 3,022
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 2,115
- 2023AWQ: Activation-aware Weight Quantization for LLM Compression and Accelerationcited by 1,450
- 2023DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvaturecited by 759
- 2019GLTR: Statistical Detection and Visualization of Generated Textcited by 519
- 2023Fast-DetectGPT: Efficient Zero-Shot Detection of Machine-Generated Text via Conditional Probability Curvaturecited by 317
- 2023How is ChatGPT's behavior changing over time?cited by 304
- 2024Spotting LLMs With Binoculars: Zero-Shot Detection of Machine-Generated Textcited by 291
- 2023DetectLLM: Leveraging Log Rank Information for Zero-Shot Detection of Machine-Generated Textcited by 228
- 2024Model Equality Testing: Which Model Is This API Serving?cited by 59
- 2025Are You Getting What You Pay For? Auditing Model Substitution in LLM APIscited by 50
- 2024Logits of API-Protected LLMs Leak Proprietary Informationcited by 46
12 more
- 2024TRAP: Targeted Random Adversarial Prompt Honeypot for Black-Box Identificationcited by 41
- 2025TOPLOC: A Locality Sensitive Hashing Scheme for Trustless Verifiable Inferencecited by 24
- 2025Auditing Black-Box LLM APIs with a Rank-Based Uniformity Testcited by 23
- 2026Real Money, Fake Models: Deceptive Model Claims in Shadow APIscited by 13
- 2026One Token Is Enough: Fingerprinting and Verifying Large Language Models from Single-Token Output Distributionscited by 13
- 2026The Silent Hyperparameter: Quantifying the Impact of Inference Backends on LLM Reproducibilitycited by 12
- 2024An Auditing Test To Detect Behavioral Shift in Language Modelscited by 11
- 2026Which Model Is Actually Serving You? IRIS: Budgeted Black-Box Auditing of Model Substitution and Routing Dilution in LLM Gatewayscited by 8
- 2026Token-Efficient Change Detection in LLM APIscited by 7
- 2026KBF: Knowledge Boundary as Fingerprint for Language Model and Black-Box API Auditingcited by 7
- 2026Your "Pro" LLM Subscription May Actually Be "Free": Exposing Fingerprint Spoofing Risks in LLM Inference Servicescited by 6
- 2026Behavioral Consistency and Transparency Analysis on Large Language Model API Gatewayscited by 5
Built on by
Not cited yet.