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

对大语言模型中按token计费的审计

Auditing Pay-Per-Token in Large Language Models

Ander Artola Velasco, Stratis Tsirtsis, Manuel Gomez-Rodriguez

AI总结:

本文提出基于鞅理论的审计框架,用于检测大语言模型中的token误报问题,通过第三方审计者逐步查询服务提供商,确保能准确识别误报而避免误判。

摘要:

数百万用户依赖云服务获取最先进的大语言模型。然而,最近研究表明,服务提供商使用的实际按token计费机制会创造财务激励,促使他们策略性地和错误地报告模型生成输出所使用的token数量。本文开发了一个基于鞅理论的审计框架,使可信的第三方审计者能够逐步查询提供商以检测token误报。关键在于,我们证明该框架能够保证在无论提供商的(错误)报告策略下,都能始终检测到token误报,并且以高概率不将诚实的提供商误判为不诚实。为了验证我们的审计框架,我们使用来自Llama、Gemma和Ministral家族的多个大语言模型以及来自流行众包基准平台的输入提示,在广泛的(错误)报告策略上进行了实验。结果表明,该框架在观察到少于70个报告输出后就能检测到不诚实的提供商,同时保持将诚实的提供商误判的概率低于α=0.05。

英文摘要:

Millions of users rely on a market of cloud-based services to obtain access to state-of-the-art large language models. However, it has been very recently shown that the de facto pay-per-token pricing mechanism used by providers creates a financial incentive for them to strategize and misreport the (number of) tokens a model used to generate an output. In this paper, we develop an auditing framework based on martingale theory that enables a trusted third-party auditor who sequentially queries a provider to detect token misreporting. Crucially, we show that our framework is guaranteed to always detect token misreporting, regardless of the provider's (mis-)reporting policy, and not falsely flag a faithful provider as unfaithful with high probability. To validate our auditing framework, we conduct experiments across a wide range of (mis-)reporting policies using several large language models from the $\texttt{Llama}$, $\texttt{Gemma}$ and $\texttt{Ministral}$ families, and input prompts from a popular crowdsourced benchmarking platform. The results show that our framework detects an unfaithful provider after observing fewer than $\sim 70$ reported outputs, while maintaining the probability of falsely flagging a faithful provider below $α= 0.05$.

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

↑