Abstract
CondenseNet is a novel network architecture that makes the highly accurate DenseNet framework efficient enough for mobile devices. By introducing "Learned Group Convolutions," the model automatically prunes redundant feature connections during training, resulting in a sparse but hardware-friendly structure that outperforms industry standards like MobileNet and ShuffleNet.
Introduction
While deep learning has revolutionized image recognition, the most accurate models (like ResNet or DenseNet) are often too computationally expensive for deployment on edge devices such as mobile phones, robots, or autonomous vehicles. These platforms are constrained by limited computational power and memory.
Previous efficiency-focused techniques often involved pruning (removing unimportant connections) or quantization. However, traditional pruning typically results in irregular, non-structured sparsity. While such models have fewer parameters, they often fail to achieve significant speedups on standard hardware (CPUs and GPUs) which are optimized for regular, dense computations. CondenseNet addresses this by achieving the efficiency of pruning while maintaining a regular structure that hardware can accelerate.
Methods: Learned Group Convolutions
The core innovation of CondenseNet is the Learned Group Convolution (LGC). This technique combines the strengths of dense connectivity and group convolutions while mitigating their weaknesses.
- Dense Connectivity: In a DenseNet, every layer receives inputs from all previous layers, encouraging feature re-use but introducing significant redundancy.
- Group Convolutions: This technique splits input features into fixed groups to reduce computation. However, standard group convolutions use pre-defined, arbitrary groupings that may not be optimal.
The Condensing Process
CondenseNet employs a multi-stage training strategy to learn the optimal connectivity pattern:
- Condensing Stage: During the initial training phase, the network uses Group Lasso regularization to encourage sparsity. This forces the weights of less important input features toward zero.
- Pruning: At specific intervals, the weakest connections are permanently removed. Crucially, this pruning is performed per group, ensuring the remaining connections maintain a regular pattern compatible with standard group convolution implementations.
- Optimization Stage: In the final training phase, the sparse connectivity pattern is fixed, and the remaining weights are fine-tuned to recover any lost accuracy.
- The Index Layer: For deployment, an "Index Layer" rearranges features so that the sparse, pruned layer can be executed as a standard, highly-optimized group convolution.
Additionally, the authors introduced an Exponentially Increasing Growth Rate, allowing deeper layers to generate more features than earlier ones, further improving computational efficiency.
Datasets and Evaluation
CondenseNet was evaluated on three standard benchmarks:
- CIFAR-10 and CIFAR-100: Small-scale image classification tasks.
- ImageNet (ILSVRC 2012): A large-scale dataset with 1.2 million images across 1,000 classes, serving as the primary benchmark for mobile-efficient architectures.
Key Insights
- Learned vs. Fixed Grouping: CondenseNet demonstrates that allowing the network to learn which input features are most useful for each group significantly outperforms fixed grouping strategies.
- Hardware-Friendly Sparsity: By accepting a more complex training process, CondenseNet produces a model that is highly efficient on standard hardware without requiring specialized kernels.
- Preserving Feature Diversity: Learning the groups preserves the diversity of features inherent in DenseNets, which is critical for maintaining high accuracy at low bitrates.
Key Results
CondenseNet achieves state-of-the-art efficiency across multiple benchmarks:
- Efficiency vs. DenseNet: CondenseNet achieves accuracy comparable to standard DenseNets while requiring only 1/10th of the FLOPs.
- Efficiency vs. MobileNet: On ImageNet, a CondenseNet with 275 million FLOPs achieved a 29% top-1 error, matching a MobileNet that requires twice the computation.
- Inference Speed: On mobile ARM processors, CondenseNet demonstrated a 2x speedup over comparable MobileNet models without accuracy loss.
Limitations and Future Work
Despite its success, CondenseNet has some limitations. The pruning process introduces additional training complexity and requires careful hyperparameter tuning. Currently, the learned grouping is primarily applied to 1x1 bottleneck layers; extending this to other layer types could provide further gains. Finally, the authors suggest integrating CondenseNet into automated neural architecture search (NAS) frameworks to discover even more optimized structures.
Summary updated