arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.35912cs.CRcs.AIcs.LG
收藏

你是否获得了所付费的推理算力?基于成对可交换性的无参考大语言模型API算力审计

Did You Get the Reasoning You Paid For? Reference-Free Effort Auditing for LLM APIs via Pairwise Exchangeability

Tong Zhang, Ru Zhang, Jianyi Liu

AI总结:

针对LLM API中继可能篡改付费算力的问题,提出首个黑盒LLM API算力审计框架SWAP,通过成对可交换性测试和序列e-过程实现低开销审计,在实地审计中多数商业中继存在算力违规。

摘要:

推理算力是大语言模型(LLM)API中的计量服务术语,更高的算力会增加推理token数量并提高费用。当请求经过第三方API中继时,中继可能会修改算力参数和使用字段,导致用户无法判断是否执行了所付费的算力。现有审计仅验证模型身份,推理算力审计仍未被探索。我们提出SWAP(Sequential Without-reference effort Auditing via Pairwise exchangeability,基于成对可交换性的无参考序列算力审计),这是首个针对黑盒LLM API的算力审计框架。SWAP以作弊为原假设测试可交换性:将同一问题以随机顺序提交给中继,分别使用所付费算力和较低的对照算力。若中继降低了所付费算力,两个请求会获得相同处理,使其响应可交换,此时哪个答案更好如同抛硬币般随机;仅当中继忠实地执行了所付费算力,付费算力对应的响应才会持续优于对照响应,SWAP因此拒绝原假设并认证算力已履行。SWAP无需官方API,也无需中继报告的数据。我们进一步引入序列e-过程,逐对累积证据并在证据充足时停止,降低审计成本,同时确保在任何停止时间的错误认证概率不超过5%。我们在11家提供商的27个模型上评估SWAP,其中20个模型可被认证,仅需14个请求,每次认证成本低至0.001美元。在具有真实值的受控中继中,所有诚实服务均被认证,仅3.7%的降级服务被错误认证;在实地审计中,7个商业中继中有6个在至少一个模型上未通过认证,违规行为包括降低付费算力、升级指定低算力或禁用推理的请求。

英文摘要:

Reasoning effort is a metered service term in LLM APIs. Higher effort increases reasoning token counts and charges. When requests pass through a third-party API relay, the relay can rewrite the effort parameter and alter usage fields, so users cannot tell whether the paid effort was executed. Existing audits only verify model identity, leaving reasoning effort auditing unexplored. We propose SWAP (Sequential Without-reference effort Auditing via Pairwise exchangeability), the first effort auditing framework for black-box LLM APIs. SWAP tests exchangeability with cheating as the null hypothesis. The same problem is submitted to the relay at the paid effort and a lower control effort in random order. If the relay downgrades the paid effort, both requests receive identical treatment, making their responses exchangeable, so which answer is better is a fair coin toss. Only when the relay faithfully executes the paid effort does the paid response consistently outperform the control response. SWAP then rejects the null hypothesis and certifies effort fulfillment. SWAP requires no official API and no data reported by the relay. We further introduce a sequential e-process that accumulates evidence pair by pair and stops once it suffices, reducing audit costs while ensuring the false certification probability does not exceed 5% at any stopping time. We evaluate SWAP on 27 models from 11 providers, of which 20 can be certified, with as few as 14 requests and a cost as low as 0.001 USD per certification. On a controlled relay with ground truth, all honest services are certified and only 3.7% of downgraded services are falsely certified. In field audits, six of seven commercial relays fail certification on at least one model. The violations include downgrades of paid effort and upgrades of requests specifying low effort or disabled reasoning.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑