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

Institutions

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

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

UCBEE: A Multi Armed Bandit Approach for Early-Exit in Neural Networks

Daniel Sadoc Menasché, Rodrigo S. Couto, Manjesh K. Hanawal, Divya Jyoti Bajpai et al.
5 citations
IEEE Transactions on Network and Service Management
Advanced Bandit Algorithms Research
2.45
article

UCBEE: A Multi Armed Bandit Approach for Early-Exit in Neural Networks

Daniel Sadoc Menasché, Rodrigo S. Couto, Manjesh K. Hanawal, Divya Jyoti Bajpai, Mark Shifrin, Roberto G. Pacheco, Miguel Elias M. Campista
article en
5 citations

Abstract

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.

IEEE Transactions on Network and Service ManagementVol. 22(1)
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)
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
Openalex Percentile: Top 10%
Advanced Bandit Algorithms Research
2.45
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.