Introduction
State-of-the-art Convolutional Neural Networks (CNNs) have achieved remarkable performance in computer vision but often come with high computational costs, making them difficult to deploy on resource-constrained embedded devices. Traditional compression methods like rule-based pruning often result in irregular sparsity that hardware accelerators cannot efficiently process. Alternatively, learning-based methods can be computationally prohibitive.
ALF (Autoencoder-based Low-rank Filter-sharing) addresses these challenges by integrating a structured, automated compression mechanism directly into the training process. By utilizing sparse autoencoders, ALF learns a dense, hardware-friendly representation of convolutional layers, achieving significant reductions in parameters and execution time with minimal impact on accuracy.
Methodology: The ALF-Block
The core of the proposed method is the ALF-block, which replaces standard convolutional layers during the training phase. The architecture consists of three primary components: an encoder, a pruning mask, and a decoder.
Architecture Components
- Encoder: This component compresses the original high-dimensional filter bank into a low-rank "code" ($W_{code}$).
- Pruning Mask: A trainable parameter ($M$) that employs L1 regularization to identify and zero out the least significant filters within the code.
- Decoder: Used exclusively during training, the decoder attempts to reconstruct the original filters from the compressed code, ensuring that the most salient information is preserved.
Training and Deployment
ALF employs a two-player training scheme optimizing two losses simultaneously: a Task Loss for classification accuracy and an Autoencoder Loss for reconstruction fidelity and sparsity. Upon completion of training, the decoder is discarded. The final model utilizes the small, dense "code" filters followed by a $1 \times 1$ expansion layer, maintaining structured tensors that are highly efficient for standard hardware execution.
Experimental Evaluation
The authors evaluated ALF on the CIFAR-10 and ImageNet benchmarks using architectures such as ResNet-20 and ResNet-18. Beyond standard metrics like FLOPs, the study utilized the Timeloop framework to simulate hardware performance on the Eyeriss accelerator.
Key Results
- Efficiency Gains: On CIFAR-10, ALF achieved a 70% reduction in parameters and a 61% reduction in operations (OPs).
- Hardware Performance: Simulations demonstrated a 41% reduction in latency and a 29% reduction in energy consumption compared to vanilla models.
- Accuracy Preservation: These efficiency gains were achieved with a modest accuracy drop of only 1.1% to 1.9% on CIFAR-10.
- Scalability: On ImageNet, ALF proved competitive against established efficient architectures like GoogleNet and SqueezeNet.
Discussion and Future Work
ALF's primary strength lies in its structured consistency. By reducing the number of filters rather than individual weights, it avoids the overhead of sparse memory management. However, the hardware analysis identified a bottleneck: in early network layers, the expansion layer can increase off-chip DRAM traffic due to larger feature maps. Future work may explore "layer fusion" to mitigate this effect. Additionally, while the method is automated, it remains sensitive to hyperparameters such as the pruning rate, suggesting avenues for further optimization in hyperparameter-free compression.
Summary updated