UCBEE: A Multi Armed Bandit Approach for Early-Exit in Neural Networks
Deep Neural Networks (DNNs) have demonstrated exceptional performance in diverse tasks. However, deploying DNNs on resource-constrained devices presents challenges due to energy consumption and delay overheads. To mitigate these issues, early-exit DNNs (EE-DNNs) incorporate exit branches within intermediate layers to enable early inferences. These branches estimate prediction confidence and employ a fixed threshold to determine early termination. Nonetheless, fixed thresholds yield suboptimal performance in dynamic contexts, where context refers to distortions caused by environmental conditions, in image classification, or variations in input distribution due to concept drift, in NLP. In this article, we introduce Upper Confidence Bound in EE-DNNs (UCBEE), an online algorithm that dynamically adjusts early exit thresholds based on context. UCBEE leverages confidence levels at intermediate layers and learns without the need for true labels. Through extensive experiments in image classification and NLP, we demonstrate that UCBEE achieves logarithmic regret, converging after just a few thousand observations across multiple contexts. We evaluate UCBEE for image classification and text mining. In the latter, we show that UCBEE can reduce cumulative regret and lower latency by approximately 10%–20% without compromising accuracy when compared to fixed threshold alternatives. Our findings highlight UCBEE as an effective method for enhancing EE-DNN efficiency.
Authors
- Daniel Sadoc Menasché (ORCID: https://orcid.org/0000-0002-8953-4003)
- Rodrigo S. Couto (ORCID: https://orcid.org/0000-0002-6921-7756)
- Manjesh K. Hanawal (ORCID: https://orcid.org/0000-0002-1807-5487)
- Divya Jyoti Bajpai (ORCID: https://orcid.org/0009-0005-8696-6950)
- Mark Shifrin (ORCID: https://orcid.org/0000-0003-0946-5018)
- Roberto G. Pacheco (ORCID: https://orcid.org/0000-0002-6763-7255)
- Miguel Elias M. Campista (ORCID: https://orcid.org/0000-0002-8752-9382)
Institutions
- Universidade Federal do Rio de Janeiro (BR)
- Ben-Gurion University of the Negev (IL)
- Universidade Federal Fluminense (BR)
- Indian Institute of Technology Bombay (IN)
- Universidade Federal do Estado do Rio de Janeiro (BR)
Publication Details
- Journal
- IEEE Transactions on Network and Service Management
- Published
- 2024-10-11
- DOI
- https://doi.org/10.1109/tnsm.2024.3479076
- Citations
- 5
- Primary Topic
- Advanced Bandit Algorithms Research
- Type
- article
- Field-Weighted Citation Impact
- 2.45
Funders
- Coordenação de Aperfeiçoamento de Pessoal de Nível Superior
- Conselho Nacional de Desenvolvimento Científico e Tecnológico
- Fundação Carlos Chagas Filho de Amparo à Pesquisa do Estado do Rio de Janeiro