Abstract
Soft Uniform Block Pruning (SUBP) is a novel framework designed to train 1×N sparse Convolutional Neural Networks (CNNs) from scratch, specifically optimizing for real-world multithreading efficiency on CPUs. By enforcing uniform sparsity across channels and utilizing a new "angular redundancy" criterion (BPAR), SUBP achieves state-of-the-art accuracy while ensuring balanced workloads across CPU cores. This approach eliminates the "straggler" effect common in non-uniform pruning and avoids the rigid "Pre-train, Prune, Fine-tune" pipeline through a dynamic soft pruning and regrowing mechanism.
Introduction
Deep learning models are notoriously resource-hungry, making them difficult to deploy on edge devices like mobile CPUs. Network pruning—removing redundant weights—is a common solution. Specifically, 1×N sparsity (where N consecutive weights along an output channel are pruned together) has become popular because it aligns perfectly with CPU hardware acceleration features like SIMD (Single Instruction, Multiple Data) and AVX (Advanced Vector Extensions).
However, existing 1×N pruning methods face two major hurdles:
- Workload Imbalance: Most methods prune weights non-uniformly. If one CPU thread receives a channel with high sparsity and another receives one with low sparsity, the first thread sits idle waiting for the second to finish. This "straggler" effect significantly degrades multithreading gains.
- The Rigid Pipeline: Traditional pruning follows a "Pre-train, Prune, Fine-tune" (PPF) pipeline. This is computationally expensive and often leads to sub-optimal models because pruned weights are removed permanently and cannot "regrow" if the pruning decision was incorrect.
The SUBP Framework
The authors introduce Soft Uniform Block Pruning (SUBP) to solve these issues through three key innovations:
Uniform Sparsity Constraint
Unlike previous methods, SUBP forces every output channel group to have the exact same sparsity level. This ensures that every CPU thread performs the same amount of work, maximizing multithreaded throughput by eliminating synchronization overhead.
BPAR (Block Pruning via Angular Redundancy)
Most pruning relies on "magnitude" (removing the smallest weights). SUBP argues that direction matters more than size. BPAR uses cosine similarity to identify blocks that are "angularly redundant"—meaning their contribution to the feature map is already covered by other blocks.
Soft Pruning & Regrowing
Instead of permanent pruning, SUBP uses a "soft" approach during training from scratch. It periodically prunes redundant blocks but allows some to "regrow" based on importance sampling. This exploration phase helps the model recover important features that might have been prematurely silenced.
Multithreading Acceleration
The core advantage of SUBP is its ability to balance the computational load across multiple threads. By ensuring each thread processes the same amount of non-zero data, the framework achieves superior real-world speedups compared to non-uniform sparse models.
Experimental Results
The researchers evaluated SUBP on industry-standard benchmarks including ImageNet (for classification) and COCO (for object detection and instance segmentation).
- Superior Accuracy: On ImageNet, SUBP consistently outperformed other 1×N and structured pruning methods. For example, a ResNet50 model pruned with SUBP (1×16 block size) achieved 76.3% top-1 accuracy while reducing FLOPs by 4×.
- Real-World Speedups: Testing on an Apple M1 Pro CPU showed that SUBP-pruned models were significantly faster than non-uniform sparse models due to balanced thread processing.
- Downstream Success: When used as a backbone for object detection on the COCO dataset, SUBP-pruned ResNet50 models achieved competitive mAP (mean Average Precision) compared to dense models, proving the pruned features are robust and generalizable.
Conclusion
SUBP demonstrates that training sparse models from scratch with a focus on hardware-aligned uniformity can yield high-performance, deployment-ready CNNs. While the current training process involves dense computations due to masking, the resulting models offer significant inference-time benefits. Future work includes extending 1×N sparsity to RNNs and Transformers and developing custom high-performance software operators for block-sparse row (BSR) formats.
Summary updated