[Paper Review] SCAN: A Scalable Neural Networks Framework Towards Compact and Efficient Models
SCAN trains shallow classifiers on intermediate features with self distillation and attention, enabling scalable, sample-specific inference with compression and acceleration across backbones. It yields accuracy gains on shallow classifiers and overall speedups with minimal overhead.
Remarkable achievements have been attained by deep neural networks in various applications. However, the increasing depth and width of such models also lead to explosive growth in both storage and computation, which has restricted the deployment of deep neural networks on resource-limited edge devices. To address this problem, we propose the so-called SCAN framework for networks training and inference, which is orthogonal and complementary to existing acceleration and compression methods. The proposed SCAN firstly divides neural networks into multiple sections according to their depth and constructs shallow classifiers upon the intermediate features of different sections. Moreover, attention modules and knowledge distillation are utilized to enhance the accuracy of shallow classifiers. Based on this architecture, we further propose a threshold controlled scalable inference mechanism to approach human-like sample-specific inference. Experimental results show that SCAN can be easily equipped on various neural networks without any adjustment on hyper-parameters or neural networks architectures, yielding significant performance gain on CIFAR100 and ImageNet. Codes will be released on github soon.
Motivation & Objective
- Motivate the need for scalable, edge-friendly neural networks due to growing model size and compute requirements.
- Propose SCAN to partition networks into sections and add shallow classifiers with attention and distillation.
- Enable sample-specific inference with thresholded, scalable execution to balance accuracy and speed.
- Demonstrate that SCAN improves accuracy and accelerates computation on CIFAR100 and ImageNet without changing base architectures or hyperparameters.
Proposed method
- Divide the backbone network into three sections: backbone, attention modules, and shallow classifiers.
- Attach a bottleneck and a fully connected layer after intermediate features to form shallow classifiers.
- Use self distillation to transfer knowledge from the deepest classifier to shallow classifiers during training.
- Incorporate a simplified attention module to produce classifier-specific features for shallow classifiers.
- Apply a threshold-based scalable inference to decide when to use shallow classifiers versus deeper ones, with thresholds searched by a genetic algorithm.
- Optionally ensemble predictions when needed to boost accuracy.
Experimental results
Research questions
- RQ1Can SCAN’s combination of self distillation and attention improve shallow classifier accuracy without modifying the backbone?
- RQ2Does scalable inference with thresholding achieve meaningful speedups with negligible accuracy loss across datasets and architectures?
- RQ3How does SCAN perform on standard benchmarks (CIFAR100, ImageNet) across multiple backbones (VGG, ResNet, Wide ResNet)?
Key findings
- SCAN achieves 2.17x acceleration and 3.20x compression on CIFAR100 averages with no accuracy drop, and up to 4.05% absolute accuracy gain on shallow classifiers.
- On CIFAR100, deeper or wider networks benefit more from SCAN in accuracy and speedup.
- On ImageNet, there is an average 1.26% accuracy gain with SCAN, with depth-sensitive gains (max 1.41% on ResNet50).
- Scalable inference yields higher acceleration versus using a single shallow classifier, e.g., up to 4.41x on CIFAR100 without accuracy loss, and up to 6.23x for deeper nets.
- Attention modules provide notable accuracy boosts for shallow classifiers (e.g., gains of 5.46%, 4.13%, 5.16% on ResNet50 CIFAR100 cases).
- Visualizations show attention focuses on informative regions (e.g., animal bodies) and shifts from local features in shallow classifiers to more global textures in deeper ones.
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.