TLDR: A new framework called PALACE helps users estimate the number of hidden “reasoning tokens” that large language model (LLM) services charge for, even though these tokens are not visible to the user. This addresses concerns about overbilling and lack of transparency by using a smart prediction system that learns from prompt-answer pairs, making LLM API billing more accountable.
Large Language Models (LLMs) have become incredibly powerful, offering advanced capabilities like multi-step reasoning and tool use. However, a significant concern has emerged regarding how these services bill users. Many commercial LLM providers, such as OpenAI, Google Gemini, and Anthropic Claude, often hide the internal reasoning steps their models take, yet they still charge users for every token generated during these hidden processes. This practice has led to worries about “token inflation” and potential overbilling, as users cannot verify the actual token usage.
Auditing these hidden costs is a complex challenge. Traditional cryptographic methods offer limited assurance because the service providers control the entire execution pipeline. User-side predictions are also difficult due to the inherent variability of reasoning LLMs, where token usage can fluctuate widely depending on the domain and prompt style.
Introducing PALACE: A User-Side Auditing Solution
To address this critical gap, researchers have introduced PALACE (Predictive Auditing of LLM APIs via Reasoning Token Count Estimation). PALACE is a groundbreaking user-side framework designed to estimate the number of hidden reasoning tokens directly from prompt-answer pairs, without needing access to the LLM’s internal processes. This makes it a lightweight and transparent solution for users.
PALACE works by learning to infer the length of hidden reasoning from the observable input and output. It achieves this through two key innovations:
- A GRPO-augmented adaptation module: This component enhances the model’s ability to predict reasoning length, especially for complex tasks.
- A lightweight domain router: This intelligent router dynamically calibrates predictions across various usage scenarios by classifying user prompts and selecting the most appropriate prediction module.
For PALACE to function, LLM service providers are asked to release small, verifiable auxiliary datasets. These datasets contain examples of user prompts, the model’s internal reasoning process, and the final answer. PALACE then uses this data to train its prediction models.
How PALACE Works in Practice
When a user submits a prompt and receives a response from an LLM service, PALACE steps in. It first identifies the domain of the prompt (e.g., math, coding, medical). Based on this, it loads the relevant prediction module and processes the prompt-answer pair. The system then predicts the number of hidden reasoning tokens. If this predicted count deviates significantly from the amount reported by the LLM service, PALACE flags it as potentially inflated, helping users identify discrepancies in billing.
Strong Performance Across Diverse Tasks
Extensive experiments have shown that PALACE delivers impressive results across various reasoning benchmarks, including mathematics, coding, medical, and general reasoning tasks. It consistently achieves low relative error and high prediction accuracy, outperforming other auditing methods. Crucially, PALACE maintains both low average error and low aggregated error, making it uniquely suited for large-scale auditing where overall consistency is vital.
The research demonstrates that PALACE’s regression-based approach to token estimation is more effective than classification-based methods. Furthermore, its modular design, incorporating the domain router, significantly improves auditing performance by adapting to different reasoning styles and reducing cross-domain interference.
Also Read:
- Guiding Large Language Models for Clearer, More Reliable Reasoning
- STIM: A New Lens on AI Memorization and Reasoning Errors
A Step Towards Transparency
The introduction of PALACE represents a significant stride towards greater transparency and accountability in LLM API billing. By providing a practical, user-side framework for estimating hidden token usage, it empowers users to verify costs and detect potential token inflation. While there are still avenues for future development, such as expanding the training datasets and incorporating additional metadata, PALACE lays a crucial foundation for more trustworthy and verifiable LLM services.
For more technical details, you can refer to the full research paper: Predictive Auditing of Hidden Tokens in LLM APIs via Reasoning Length Estimation.


