Anytime Safe PAC Efficient Reasoning
Chengyao Yu, Hao Zeng, Youxin Zhu, Jianguo Huang, Huajun Zeng, Bingyi Jing
TL;DR
B-PAC reasoning introduces an online, model-agnostic framework for anytime-safe efficient reasoning by routing queries between a high-cost thinking model and a low-cost non-thinking model. It builds an IPS-based risk estimator and a wealth process as a betting game to adapt a time-varying routing threshold, ensuring the risk of incorrect non-thinking usage stays below a user-specified tolerance with high probability, even under partial feedback and non-stationary data. The approach achieves significant efficiency gains (substantial reductions in thinking usage) while maintaining formal safety guarantees via fixed-sequence testing and martingale techniques, demonstrated across diverse benchmarks. This work advances practical deployment of large reasoning models by providing dynamically adaptive, theoretically grounded routing that scales to online and shifting data environments, with meaningful impact for real-time AI systems requiring both speed and reliability.
Abstract
Large Reasoning Models (LRMs) have demonstrated remarkable performance on complex tasks but suffer from high computational costs and latency. While selective thinking strategies improve efficiency by routing easy queries to non-thinking models, existing approaches often incur uncontrollable errors, especially in online settings where the performance loss of a non-thinking model is only partially observed and data are non-stationary. To address this, we propose Betting Probably Approximately Correct (B-PAC) reasoning, a principled method that enables anytime safe and efficient online reasoning under partial feedback. Specifically, we utilize inverse propensity scoring estimators to construct test supermartingales for candidate thresholds, and then dynamically adjust the routing threshold based on the accumulated statistical evidence of safety. Theoretically, we establish the anytime-valid performance loss control and the efficiency of B-PAC reasoning. Extensive experiments demonstrate that B-PAC reasoning significantly reduces computational overhead, decreasing thinking model usage by up to 81.01\%, while controlling the performance loss below the user-specified level.
