English

Know What You Don't Know: Selective Prediction for Early Exit DNNs

Machine Learning 2025-09-16 v1 Artificial Intelligence

Abstract

Inference latency and trustworthiness of Deep Neural Networks (DNNs) are the bottlenecks in deploying them in critical applications like sensitive tasks. Early Exit (EE) DNNs overcome the latency issues by allowing samples to exit from intermediary layers if they attain `high' confidence scores on the predicted class. However, the DNNs are known to exhibit overconfidence, which can lead to many samples exiting early and render EE strategies untrustworthy. We use Selective Prediction (SP) to overcome this issue by checking the `hardness' of the samples rather than just relying on the confidence score alone. We propose SPEED, a novel approach that uses Deferral Classifiers (DCs) at each layer to check the hardness of samples before performing EEs. Specifically, the DCs identify if a sample is hard to predict at an intermediary layer, leading to hallucination, and defer it to an expert. Early detection of hard samples for inference prevents the wastage of computational resources and improves trust by deferring the hard samples to the expert. We demonstrate that EE aided with SP improves both accuracy and latency. Our method minimizes the risk of wrong prediction by 50%50\% with a speedup of 2.05×2.05\times as compared to the final layer. The anonymized source code is available at https://github.com/Div290/SPEED

Keywords

Cite

@article{arxiv.2509.11520,
  title  = {Know What You Don't Know: Selective Prediction for Early Exit DNNs},
  author = {Divya Jyoti Bajpai and Manjesh Kumar Hanawal},
  journal= {arXiv preprint arXiv:2509.11520},
  year   = {2025}
}

Comments

To appear in the the Fifth International Conference on AI ML Systems

R2 v1 2026-07-01T05:36:00.432Z