Early-Exit with Class Exclusion for Efficient Inference of Neural Networks

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Wang, Jingcun, Li, Bing, Zhang, Grace Li
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911778636562432
author Wang, Jingcun
Li, Bing
Zhang, Grace Li
author_facet Wang, Jingcun
Li, Bing
Zhang, Grace Li
contents Deep neural networks (DNNs) have been successfully applied in various fields. In DNNs, a large number of multiply-accumulate (MAC) operations are required to be performed, posing critical challenges in applying them in resource-constrained platforms, e.g., edge devices. To address this challenge, in this paper, we propose a class-based early-exit for dynamic inference. Instead of pushing DNNs to make a dynamic decision at intermediate layers, we take advantage of the learned features in these layers to exclude as many irrelevant classes as possible, so that later layers only have to determine the target class among the remaining classes. When only one class remains at a layer, this class is the corresponding classification result. Experimental results demonstrate the computational cost of DNNs in inference can be reduced significantly with the proposed early-exit technique. The codes can be found at https://github.com/HWAI-TUDa/EarlyClassExclusion.
format Preprint
id arxiv_https___arxiv_org_abs_2309_13443
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Early-Exit with Class Exclusion for Efficient Inference of Neural Networks
Wang, Jingcun
Li, Bing
Zhang, Grace Li
Machine Learning
Deep neural networks (DNNs) have been successfully applied in various fields. In DNNs, a large number of multiply-accumulate (MAC) operations are required to be performed, posing critical challenges in applying them in resource-constrained platforms, e.g., edge devices. To address this challenge, in this paper, we propose a class-based early-exit for dynamic inference. Instead of pushing DNNs to make a dynamic decision at intermediate layers, we take advantage of the learned features in these layers to exclude as many irrelevant classes as possible, so that later layers only have to determine the target class among the remaining classes. When only one class remains at a layer, this class is the corresponding classification result. Experimental results demonstrate the computational cost of DNNs in inference can be reduced significantly with the proposed early-exit technique. The codes can be found at https://github.com/HWAI-TUDa/EarlyClassExclusion.
title Early-Exit with Class Exclusion for Efficient Inference of Neural Networks
topic Machine Learning
url https://arxiv.org/abs/2309.13443