Inference Offloading for Cost-Sensitive Binary Classification at the Edge
Vishnu Narayanan Moothedath, Umang Agarwal, Umeshraja N, James Richard Gross, Jaya Prakash Champati, Sharayu Moharir
TL;DR
This work tackles cost-sensitive binary classification at the edge by coupling a lightweight local model with a costly but accurate remote model in a Hierarchical Inference (HI) framework. It derives a Bayes-optimal two-threshold rule for calibrated LDLs and introduces H2T2, an online, two-threshold HI policy that learns thresholds during inference with limited feedback, achieving sublinear regret $R_T$ in $T$ with $R_T \le (\\epsilon\\beta + \\tfrac{\\eta}{2\\epsilon})T + \\tfrac{\\ln(|\\Theta|)}{\\eta}$ and optimal choices yielding $O(T^{2/3})$. The approach is model-agnostic and does not require LDL retraining, while systematically balancing local decisions against offloading costs under asymmetric FP/FN costs. Empirical results on multiple real-world and synthetic datasets show substantial cost reductions, strong performance gains over single-threshold HI, and robustness to distribution shifts and out-of-distribution data, including notable gains on medical imaging and cybersecurity benchmarks. The framework also extends to multiclass settings, where calibrated models yield region-based decision rules, and uncalibrated cases can be handled with a learned boundary-expert portfolio, enabling practical, inference-time cost-efficiency in edge deployments.
Abstract
We focus on a binary classification problem in an edge intelligence system where false negatives are more costly than false positives. The system has a compact, locally deployed model, which is supplemented by a larger, remote model, which is accessible via the network by incurring an offloading cost. For each sample, our system first uses the locally deployed model for inference. Based on the output of the local model, the sample may be offloaded to the remote model. This work aims to understand the fundamental trade-off between classification accuracy and the offloading costs within such a hierarchical inference (HI) system. To optimise this system, we propose an online learning framework that continuously adapts a pair of thresholds on the local model's confidence scores. These thresholds determine the prediction of the local model and whether a sample is classified locally or offloaded to the remote model. We present a closed-form solution for the setting where the local model is calibrated. For the more general case of uncalibrated models, we introduce H2T2, an online two-threshold hierarchical inference policy, and prove it achieves sublinear regret. H2T2 is model-agnostic, requires no training, and learns during the inference phase using limited feedback. Simulations on real-world datasets show that H2T2 consistently outperforms naive and single-threshold HI policies, sometimes even surpassing offline optima. The policy also demonstrates robustness to distribution shifts and adapts effectively to mismatched classifiers.
