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$.
IMMACULATE: A Practical LLM Auditing Framework via Verifiable Computation
National University of Singapore(新加坡国立大学);Nanyang Technological University(南洋理工大学);Independent Researcher(独立研究者);University of California, Berkeley(加州大学伯克利分校)
SMA: Who Said That? Auditing Membership Leakage in Semi-Black-box RAG Controlling
Sun Yat-Sen University(孙中山大学);Nanyang Technological University(南洋理工大学);University of Chinese Academy of Science(中国科学院大学);Zhongguancun Academy(中关村学院);Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所)
Auditing and Mitigating Privacy Leakage in Cloud-Edge Collaborative Decoding
The Hong Kong Polytechnic University(香港理工大学);Institute for AI Industry Research, Tsinghua University(清华大学人工智能产业研究院);School of Software, Tsinghua University(清华大学软件学院)
Token-Flow Firewall: Semantic Runtime Auditing for Persistent AI Agents
State Key Laboratory of AI Safety(人工智能安全国家重点实验室);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences, Beijing, China(中国科学院大学北京校区)
Soft Token Attacks Cannot Reliably Audit Unlearning in Large Language Models
Ludwig Maximilian University of Munich(慕尼黑路德维希-马克西米利安大学);Munich Center for Machine Learning (MCML)(慕尼黑机器学习中心);Aalto University(艾尔沃斯大学);Intel Labs(英特尔实验室)
GoAT-X: A Graph of Auditing Thoughts for Securing Token Transactions in Cross-Chain Contracts
Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));Peng Cheng Laboratory(鹏城实验室);Sun Yat-sen University(中山大学);Harbin Institute of Technology, Harbin(哈尔滨工业大学)
PromptCOS: Towards Content-only System Prompt Copyright Auditing for LLMs
State Key Laboratory of Blockchain and Data Security, Zhejiang University(浙江大学区块链与数据安全全国重点实验室);College of Computing and Data Science, Nanyang Technological University(南洋理工大学计算与数据科学学院);CRRC Zhuzhou Institute & Tengen Intelligence Institute(中车株洲研究所与天恒智能研究院)