Online Distribution Shift Detection via Recency Prediction
Rachel Luo, Rohan Sinha, Yixiao Sun, Ali Hindy, Shengjia Zhao, Silvio Savarese, Edward Schmerling, Marco Pavone
TL;DR
This work tackles online distribution shift detection for robotics, addressing the need for rapid, streaming, high-dimensional shift awareness with formal guarantees. It introduces a self-supervised, end-to-end framework that learns a recency-predictor and builds an exponential martingale to issue warnings when non-exchangeability arises, achieving an $\epsilon$-sound online guarantee and a false positive rate capped by $1/C$. The approach yields up to 11x faster shift detection in photorealistic simulations and hardware experiments (X-Plane taxiing and free-flyer docking) while maintaining a strict $1\%$ false alarm bound, demonstrating practical viability for safety-critical robotics. The combination of deep recency prediction with martingale theory enables rapid, scalable monitoring of high-dimensional inputs like images, and the results suggest this method can meaningfully enhance reliability in deployed learning-enabled systems.
Abstract
When deploying modern machine learning-enabled robotic systems in high-stakes applications, detecting distribution shift is critical. However, most existing methods for detecting distribution shift are not well-suited to robotics settings, where data often arrives in a streaming fashion and may be very high-dimensional. In this work, we present an online method for detecting distribution shift with guarantees on the false positive rate - i.e., when there is no distribution shift, our system is very unlikely (with probability $< ε$) to falsely issue an alert; any alerts that are issued should therefore be heeded. Our method is specifically designed for efficient detection even with high dimensional data, and it empirically achieves up to 11x faster detection on realistic robotics settings compared to prior work while maintaining a low false negative rate in practice (whenever there is a distribution shift in our experiments, our method indeed emits an alert). We demonstrate our approach in both simulation and hardware for a visual servoing task, and show that our method indeed issues an alert before a failure occurs.
