Abstract
SACP (Structure-Aware Automatic Channel Pruning) is a novel framework that treats neural networks as graphs to automate the pruning process. By leveraging Graph Convolutional Networks (GCNs) and unsupervised contrastive learning, SACP identifies the most important "global" structures in a model. This approach allows for massive reductions in size—up to 92% fewer parameters—while maintaining or even slightly improving accuracy. SACP effectively bridges the gap between local pruning heuristics and the need for global structural awareness in modern deep learning architectures.
Introduction
Deep Neural Networks (DNNs) have achieved remarkable success but are often too computationally heavy for deployment on resource-constrained devices. Channel pruning has emerged as a popular technique to reduce model size by removing entire filters from convolutional layers. However, traditional pruning methods face two significant hurdles: they often rely on local heuristics that ignore the network's overall topology, and they require labor-intensive manual tuning of pruning rates for every layer.
SACP addresses these issues by modeling the neural network as a graph and using automated search strategies. By understanding the global structure, SACP can make more informed decisions about which channels to prune, ensuring that the information flow within the network remains intact even after significant compression.
Methodology
The SACP framework introduces a data-driven pipeline designed to capture and preserve the structural essence of a neural network through graph embeddings.
Graph-Based Representation and GCN Encoding
The network is represented as a Directed Acyclic Graph (DAG), where nodes correspond to layers (Convolutional, Batch Normalization, Pooling) and edges represent data flow. Each node is assigned a binary feature vector indicating which channels are active. A Graph Convolutional Network (GCN) then processes this graph to learn a compact embedding that represents the entire architecture.
Unsupervised Contrastive Learning
To train the GCN without the prohibitive cost of retraining thousands of pruned models, SACP employs an unsupervised contrastive approach. It generates "positive" samples using the L1-norm pruning method and "negative" samples via random pruning. The GCN is trained to minimize the distance between the original model and positive samples in the embedding space while maximizing the distance to negative samples.
Search and Refinement
Once trained, the GCN evaluates a pool of candidate pruning configurations. Candidates with embeddings most similar to the original model (measured by cosine similarity) are selected. These top-m candidates are lightly fine-tuned, and the best-performing top-k candidates are fully retrained to produce the final optimal pruned network.
Experimental Results
SACP was evaluated on CIFAR-10 and ImageNet using VGG-16, ResNet-18, and ResNet-56 backbones. The results consistently demonstrate that SACP outperforms state-of-the-art methods like HRank and ABCPruner in terms of both compression ratio and accuracy retention.
For VGG-16 on CIFAR-10, SACP achieved a staggering 92.12% reduction in parameters and an 82.23% reduction in FLOPs, while actually increasing accuracy from 92.60% to 92.76%. On ResNet-18, it maintained 93.41% accuracy despite a 92.67% parameter reduction, showcasing its ability to handle complex residual structures that often baffle simpler pruning algorithms.
Key Insights
- Topology is King: By treating the network as a web rather than a stack, SACP accounts for how pruning in one branch (e.g., a skip connection) impacts the rest of the model.
- Embeddings as Performance Proxies: Structural similarity in the embedding space serves as a reliable proxy for model performance, allowing for efficient searching without full retraining.
- Automation and Scalability: SACP removes the need for hand-crafted pruning rules, making it a scalable solution for diverse and increasingly complex neural architectures.
Conclusion and Future Work
SACP represents a significant step forward in automatic channel pruning by integrating graph-based structural awareness. While highly effective for CNNs, future research could extend this framework to Transformer-based architectures and explore more continuous search spaces for even finer-grained optimization. Despite the initial overhead of training the GCN, the resulting efficiency gains make SACP a powerful tool for modern model compression.
Summary updated