Conference paper
Cite …

Uncertainty-guided dynamic routing for cost-efficient image classification

Edwin Rajoo, Steven Landgraf ORCID iD icon 1 and Markus Ulrich ORCID iD icon 1
1 Institute of Photogrammetry and Remote Sensing (IPF), Karlsruhe Institute of Technology (KIT)
Abstract

Deep learning networks have reached high accuracy in image classification, but often at the expense of high computational cost, since large models apply their full complexity uniformly to every input regardless of difficulty. We propose an uncertainty-guided dynamic routing framework pairing a lightweight network (MobileNetV3-Large) with a high-capacity network (EfficientNet-B3), routing each input individually based on uncertainty signals, entropy and confidence, from the lightweight model, together with its intermediate feature representation. The router is trained with a binary objective rewarding forwarding only when it corrects a mistake the small model would otherwise make, combined with a class-imbalance-aware weighting term and a regularizer discouraging unnecessary escalation. On Tiny ImageNet, the routed system reaches 78.54% accuracy, matching and, at the chosen operating point, slightly exceeding the standalone larger model (78.02%), while forwarding only around 31% of inputs to it – an estimated 57% compute reduction. An ablation study shows the two scalar uncertainty signals alone route as well as, or better than, the full signal set, with the 960-dimensional feature embedding contributing little once class imbalance is accounted for.