Log Probability Tracking of LLM APIs
Timothée Chauvin, Erwan Le Merrer, François Taïani, Gilles Tredan
TL;DR
The paper introduces logprob tracking (LT), a low-cost method for auditing LLM API consistency by analyzing first-token logprob distributions via a two-sample permutation test. It defines the TinyChange benchmark to evaluate detection sensitivity across subtle model changes and demonstrates that LT detects changes as small as a single finetuning step while reducing costs by orders of magnitude compared to existing methods. Real-world deployment across hundreds of API endpoints reveals widespread undocumented shifts, underscoring the practical need for continuous, lightweight monitoring. LT provides a pragmatic first line of defense for reproducibility and integrity, and can be integrated into existing audit pipelines to trigger deeper investigations when changes are detected.
Abstract
When using an LLM through an API provider, users expect the served model to remain consistent over time, a property crucial for the reliability of downstream applications and the reproducibility of research. Existing audit methods are too costly to apply at regular time intervals to the wide range of available LLM APIs. This means that model updates are left largely unmonitored in practice. In this work, we show that while LLM log probabilities (logprobs) are usually non-deterministic, they can still be used as the basis for cost-effective continuous monitoring of LLM APIs. We apply a simple statistical test based on the average value of each token logprob, requesting only a single token of output. This is enough to detect changes as small as one step of fine-tuning, making this approach more sensitive than existing methods while being 1,000x cheaper. We introduce the TinyChange benchmark as a way to measure the sensitivity of audit methods in the context of small, realistic model changes.
