跳到正文
arXiv cs.CL· Haocheng Mei, Yuchuan Tian, Ye Yuan, Chao Xu, Allen Chen, Kai Han, Yunhe Wang·· 2 天前AI 评分34

API-TAIL:通过温度对齐的似然尾部检测 LLM API 中的模型替换

API-TAIL: Detecting Model Substitution in LLM APIs through Temperature-Aligned Likelihood Tails

AI 导读

研究者提出 API-TAIL,一种基于典型性审计的方法,用于检测商业 LLM API 提供商将部分用户请求悄悄路由至更便宜替代模型的行为。该方法先对齐单一有效温度以吸收批次级分布偏移,再根据剩余尾部响应数量是否超过阈值标记端点。在真实商业 API 上评估,API-TAIL 能在多样诚实提供商中可靠控制误报,并以小查询预算检测低比例部分替换,显著优于基于 rank 和 MMD 的审计方法。

正文 · 原文

View PDF HTML (experimental)

Abstract: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 commercial APIs, API-TAIL reliably controls false alarms across diverse honest providers while detecting even low-rate partial substitution with a small query budget, substantially outperforming existing rank- and MMD-based audits that lose detection power under the same composite calibration.
Comments: Project page: this https URL
Subjects: Machine Learning (cs.LG); Computation and Language (cs.CL)
Cite as: arXiv:2610.36801 [cs.LG]
  (or arXiv:2610.36801v1 [cs.LG] for this version)
  https://doi.org/10.48550/arXiv.2610.36801

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Haocheng Mei [view email]
[v1] Tue, 27 Oct 2026 08:04:04 UTC (34 KB)

来源:arXiv cs.CL · arxiv.org