TL;DR
When you query a commercial reasoning LLM, you pay by the token—often for thousands of invisible "thinking" tokens you never get to see. This paper reveals that current frameworks designed to audit these bills suffer from a fatal flaw: they rely on evidence supplied by the AI providers themselves. By exploiting this dynamic, a dishonest provider can silently inflate a $100 API bill into $1,569 without tripping a single alarm.
What Problem Does This Paper Address?
Imagine taking a taxi where the driver puts a black cloth over the meter, drives through a series of secret tunnels, and hands you a $200 receipt at the end. That is essentially how modern reasoning LLMs (like OpenAI’s o1/o3 or Gemini 2.5 thinking models) bill their users. To protect intellectual property and prevent safety jailbreaks, providers hide the raw chain-of-thought reasoning trace, returning only a short summary or final answer while billing you for every hidden token generated along the way.
Even when providers do show the full text, tokenization ambiguity—the fact that the same string of text can be sliced into different numbers of subword tokens—means you still cannot verify the exact count.
Recently, researchers proposed third-party auditing frameworks to keep providers honest. However, Hoque et al. identify two structural flaws across all of them:
- The Proxy Gap: Because auditors cannot see the model's actual execution, they check indirect proxies (like whether a hidden text block sounds semantically related to the answer, or whether the bill matches a predicted length). Passing the proxy check does not prove the tokens were actually generated.
- The Trust Paradox: Every artifact the auditor inspects—committed text blocks, final answers, training labels, or reported counts—is controlled by the provider, who can locally simulate the audit and tweak their fake receipts until they pass.
Methods
Rather than building another auditor, the authors play the role of a financially motivated provider and systematically red-team three state-of-the-art auditing frameworks. For each, they demonstrate a naive attack, propose a natural defense, and then build an adaptive attack that bypasses the defense:
- Attacking CoIn (Semantic Similarity Auditor): CoIn hashes hidden reasoning blocks into a Merkle tree and checks sampled blocks for semantic similarity to the answer. The authors evade this by simply duplicating genuine blocks, adding minor token noise to bypass duplicate-hash filters, or using offline gradient optimization (GCG) to train small, cheap models (like T5 or Qwen2.5-1.5B) to mass-produce synthetic "reasoning" blocks that score high on similarity.
- Attacking PALACE (Length-Prediction Auditor): PALACE estimates how many hidden tokens a prompt-answer pair should take, trained on provider-supplied auxiliary data. The authors manipulate estimates at inference time by appending single "trigger tokens" (like
boxed) or using a cheap model to rewrite answers more verbosely. At training time, they poison the auxiliary dataset and plant natural-language backdoors (e.g., starting an answer with"Think harder"). - Attacking Statistical Auditors (Visible Text): When reasoning text is visible, statistical auditors use Monte Carlo sampling and a multiplicative martingale (a statistical test that accumulates evidence of anomalies over time) to catch over-reporting. The authors exploit natural negative drift in the estimator, and adaptively under-report token counts by a tiny "offset" on 9 out of 10 queries to buy massive statistical slack for over-reporting on the 10th.
Datasets
The authors evaluate their attacks using existing public reasoning datasets (no new benchmarks are introduced):
- Glaive reasoning-v1-20m: Used to attack CoIn, attack PALACE, and validate statistical drift.
- Medical-R1-Distill-Data: Used for the main statistical auditor evasion experiments.
- OpenThoughts-Code, OpenR1-Math-220k, and OpenThoughts-Math: Used to confirm negative estimator drift across diverse domains.
Key Insights and Ideas
- Transparency doesn't fix tokenization ambiguity: Even if an API reveals every word of its reasoning trace, statistical auditors aggregate errors nonlinearly. Strategically undercharging by ~41 tokens on most requests lets a provider overcharge by 10,000 tokens every tenth request while pushing the auditor's suspicion score down.
- Predictors latch onto spurious formatting: Length-estimating auditors are fragile. Simply rewriting an answer to be slightly more verbose—or appending an invisible/irrelevant token like
nil—tricks the auditor into expecting a much longer hidden reasoning trace, giving the provider cover to pad the bill. - Cheap models can forge expensive thoughts: A provider doesn't need a frontier model to fake frontier reasoning. Because semantic auditors only check coarse embedding similarity, tiny 1.5B-parameter models can generate passing filler at a fraction of the billed price.
Key Results
Across all three frameworks, simple, low-overhead attacks yield massive undetected overcharges:
- CoIn: Simply duplicating the honest reasoning trace inflates billed tokens by 1,469.0% on average (turning a $100 bill into ~$1,569). When duplicate-hash defenses are applied, hash-diversified block reuse still achieves up to 984.8% inflation, and cheap T5-generated fake blocks achieve 770.0% inflation.
- PALACE: Appending the single token
'boxed'increases predicted token allowances by 82.4 tokens (82% success rate), while verbose style-rewriting inflates estimates by 30.30%. Planting a training-time backdoor ("Think harder") inflates 99.91% of triggered samples by 247.16% on average. - Statistical Auditor: Exploiting natural estimator bias allows 2,000 extra tokens on every other query undetected. With strategic under-reporting offsets, providers achieve 50.85% net token inflation over 1,000 queries without crossing the detection threshold.
Limitations and Future Work
The authors note their evaluation is limited to three existing frameworks and assumes a provider acting alone (excluding auditor collusion or "honest over-reasoning," where a poorly optimized model genuinely wastes tokens).
Crucially, software-only heuristic tweaks—like randomizing scorers after commitment—raise the attacker's cost but cannot close the proxy gap. To truly guarantee honest billing, future systems must remove evidence from provider control entirely. The authors point toward Trusted Execution Environments (TEEs) (hardware enclaves that meter token counts directly and sign cryptographic receipts), cryptographic proofs of inference (zkML), or trusted third-party re-execution—though scaling these hardware and cryptographic solutions to frontier LLM traffic remains a major open challenge.
Summary updated