[Paper Review] Energy-efficient Amortized Inference with Cascaded Deep Classifiers
This paper proposes a cascaded deep classifier framework that dynamically selects the smallest sufficient neural network for each input image, using a REINFORCE-trained policy to balance accuracy and FLOPs cost. It achieves higher or comparable accuracy than standard ResNets while reducing inference cost to under 20% on CIFAR-10/100 and 66% on ImageNet32x32.
Deep neural networks have been remarkable successful in various AI tasks but often cast high computation and energy cost for energy-constrained applications such as mobile sensing. We address this problem by proposing a novel framework that optimizes the prediction accuracy and energy cost simultaneously, thus enabling effective cost-accuracy trade-off at test time. In our framework, each data instance is pushed into a cascade of deep neural networks with increasing sizes, and a selection module is used to sequentially determine when a sufficiently accurate classifier can be used for this data instance. The cascade of neural networks and the selection module are jointly trained in an end-to-end fashion by the REINFORCE algorithm to optimize a trade-off between the computational cost and the predictive accuracy. Our method is able to simultaneously improve the accuracy and efficiency by learning to assign easy instances to fast yet sufficiently accurate classifiers to save computation and energy cost, while assigning harder instances to deeper and more powerful classifiers to ensure satisfiable accuracy. With extensive experiments on several image classification datasets using cascaded ResNet classifiers, we demonstrate that our method outperforms the standard well-trained ResNets in accuracy but only requires less than 20% and 50% FLOPs cost on the CIFAR-10/100 datasets and 66% on the ImageNet dataset, respectively.
Motivation & Objective
- Address the high energy and computational cost of deep neural networks in mobile and edge applications.
- Simultaneously optimize prediction accuracy and test-time computational cost without sacrificing performance.
- Enable dynamic, instance-specific model selection to assign easier samples to smaller networks and harder ones to deeper models.
- Develop an end-to-end trainable framework that jointly optimizes the cascade of classifiers and the selection policy.
- Achieve amortized efficiency through a learned stopping policy that minimizes FLOPs while maintaining high accuracy.
Proposed method
- Construct a cascade of progressively deeper ResNet classifiers with increasing capacity and accuracy.
- Train a policy network using the REINFORCE reinforcement learning algorithm to decide when to stop and output a prediction.
- Formulate the training objective as a trade-off between predictive accuracy (reward) and expected FLOPs cost (constraint).
- Perform end-to-end joint training of the classifier cascade and the selection policy to optimize the accuracy-cost trade-off.
- Use the policy to sequentially evaluate each classifier in the cascade until a stopping condition is met based on confidence and accuracy.
- Apply the policy during inference to assign each input to the smallest classifier that yields a sufficiently accurate prediction.
Experimental results
Research questions
- RQ1Can a cascaded ensemble of deep neural networks with a learned selection policy achieve both higher accuracy and lower computational cost than standard deep networks?
- RQ2How effectively can a reinforcement learning policy dynamically assign inputs to the minimal sufficient classifier in a cascade?
- RQ3To what extent does the proposed method reduce FLOPs while maintaining or improving accuracy on challenging image classification benchmarks?
- RQ4How does the distribution of image difficulty across datasets (e.g., CIFAR vs. ImageNet) affect the selection policy and computational savings?
- RQ5Does joint training of the cascade and policy yield better accuracy-cost trade-offs than training the policy on fixed, pre-trained classifiers?
Key findings
- The proposed model achieves top-1 accuracy comparable to or higher than a well-trained ResNet110 on CIFAR-10 and CIFAR-100, while using only 19.5% and 49.8% of the FLOPs, respectively.
- On ImageNet32x32, the model matches the top-5 accuracy of the largest static ResNet but requires only 66.22% of the FLOPs.
- Over 50% of images on CIFAR-10 and CIFAR-100 are assigned to the smallest classifier, indicating a high proportion of easy-to-classify instances.
- On ImageNet32x32, nearly half of the images are assigned to smaller classifiers, demonstrating the method's ability to identify easier samples even in complex datasets.
- The joint training approach outperforms a simplified baseline where classifiers are fixed and only the policy is trained, especially at low FLOPs budgets.
- Visual analysis confirms that the policy correctly assigns visually simple images (e.g., gong, agaric) to shallow classifiers and complex ones (e.g., potter’s wheel) to deeper models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.