Abstract
Deep Neural Network (DNN) pruning is traditionally a data-driven, iterative process that relies on weight importance metrics. This paper introduces Regular Graph based Pruning (RGP), a novel framework that shifts pruning from a heuristic search to a structural optimization problem based on graph theory. By mapping network layers to regular graphs and minimizing their Average Shortest Path Length (ASPL), RGP achieves over 90% reduction in parameters and FLOPs in a single "one-shot" step. Our results demonstrate that topological structure, specifically ASPL, is a critical determinant of a network's capacity for information and gradient flow.
Introduction
Deep Neural Networks are notoriously over-parameterized, leading to significant computational and memory overhead. Traditional pruning methods typically follow a three-step pipeline: training, pruning based on weight magnitude or importance, and fine-tuning. These methods suffer from two primary limitations: high data dependency, where the pruning mask is tied to a specific dataset, and high computational cost due to iterative training cycles.
RGP addresses these issues by asking whether a network's structure can be optimized based on topology alone. By treating the connections between neurons or convolutional channels as edges in a mathematical graph, we can leverage graph-theoretic properties to design efficient, sparse architectures before training even begins.
Methodology: Regular Graph based Pruning
The core of RGP lies in treating neural connections as a graph optimization problem. The process involves four key steps:
- Mapping to Graphs: Neurons or channels within a layer are divided into $n$ groups, each represented as a node in a graph. The connections between these groups are treated as edges.
- The Regular Constraint: The search space is restricted to regular graphs, where every node has the same degree (number of neighbors). This ensures uniform treatment of all neurons and facilitates hardware acceleration through structured sparsity.
- ASPL Optimization: The researchers optimize the graph's Average Shortest Path Length (ASPL). Using an edge-swapping algorithm, connections are rearranged to minimize the average distance between any two nodes, enhancing the network's internal connectivity.
- One-Shot Pruning: Once the optimal graph structure is determined, it is mapped back onto the DNN to create a fixed sparsity mask. This mask is applied before final training, eliminating the need for iterative pruning cycles.
Theoretical Insights: ASPL and Gradient Flow
A central finding of this work is the negative correlation between ASPL and classification accuracy. The authors propose that a shorter average path length allows for more efficient "information flow" during the forward pass and reduced "Gradient-Resistance" (GR) during backpropagation.
Lower ASPL reduces the resistance a gradient faces when traveling from the output layer back to earlier layers, allowing the network to reuse parameters more effectively. This suggests that the topology of connections—how neurons are linked—is fundamentally more important than the initial random values of the weights themselves.
Experimental Evaluation
The authors evaluated RGP across standard benchmarks (CIFAR-10, CIFAR-100, SVHN, and ImageNet) using popular architectures including VGG16 and various ResNet variants.
As shown in the experimental results, there is a clear and consistent trend: as the ASPL of the underlying graph structure decreases, the validation accuracy of the pruned model increases across all tested datasets and models. This empirical evidence supports the use of ASPL as a reliable proxy for network performance.
Key Results and Discussion
RGP demonstrates impressive precision retention even at extreme pruning ratios:
- High Compression: On CIFAR-10, RGP pruned VGG16 by over 90% in both parameters and FLOPs with a minimal Top-1 accuracy loss of only 1.69%.
- Competitive Performance: On ImageNet with ResNet50, RGP achieved a Top-1 accuracy of 72.68% at 75% parameter reduction, performing comparably to state-of-the-art "Prune-From-Scratch" methods while remaining significantly simpler to implement.
- Universality: The optimized graph structures are universal; a low-ASPL 64-node regular graph can be applied as a mask to different models and datasets without needing a new search process.
Conclusion and Future Work
RGP provides a robust, hardware-friendly, and data-independent approach to neural network pruning. By focusing on the mathematical properties of the network's graph structure, specifically ASPL, it achieves high compression with minimal accuracy trade-offs.
Future research will explore expanding beyond regular graphs to other graph categories and investigating how different symmetries might further enhance performance. Additionally, the intersection of this topological approach with concepts from physics, such as entangled networks, offers a promising avenue for understanding the fundamental limits of neural network efficiency.
Summary updated