Token-Efficient Change Detection in LLM APIs
Timothée Chauvin, Clément Lalanne, Erwan Le Merrer, Jean-Michel Loubes, François Taïani, Gilles Tredan
TL;DR
This work tackles the problem of detecting changes in LLM APIs without access to model weights or log-probabilities. It introduces Border Input Tracking (B3IT), which exploits border inputs—where multiple top logits tie at low temperature—to achieve highly sensitive change detection under a strict black-box setting. The authors develop a Local Asymptotic Normality framework that ties detectability to a data-dependent SNR, and prove a phase transition: at zero temperature, border inputs yield maximal detectability when at least two top tokens tie. Empirical validation on TinyChange and 93 commercial endpoints shows B3IT achieves performance approaching grey-box methods at roughly 1/30th the cost of the best black-box baselines, highlighting its practical utility for continuous LLM API monitoring.
Abstract
Remote change detection in LLMs is a difficult problem. Existing methods are either too expensive for deployment at scale, or require initial white-box access to model weights or grey-box access to log probabilities. We aim to achieve both low cost and strict black-box operation, observing only output tokens. Our approach hinges on specific inputs we call Border Inputs, for which there exists more than one output top token. From a statistical perspective, optimal change detection depends on the model's Jacobian and the Fisher information of the output distribution. Analyzing these quantities in low-temperature regimes shows that border inputs enable powerful change detection tests. Building on this insight, we propose the Black-Box Border Input Tracking (B3IT) scheme. Extensive in-vivo and in-vitro experiments show that border inputs are easily found for non-reasoning tested endpoints, and achieve performance on par with the best available grey-box approaches. B3IT reduces costs by $30\times$ compared to existing methods, while operating in a strict black-box setting.
