Abstract
The increasing computational demands of modern neural networks present deployment challenges on resource-constrained devices. Network pruning offers a solution to reduce model size and computational cost while maintaining performance. However, current pruning methods focus primarily on improving sparsity by reducing the number of nonzero parameters, often neglecting other deployment costs such as inference time, which are closely related to the number of floating-point operations (FLOPs). In this paper, we propose FALCON, a novel combinatorial-optimization-based framework for network pruning that jointly takes into account model accuracy (fidelity), FLOPs, and sparsity constraints. A main building block of our approach is an integer linear program (ILP) that simultaneously handles FLOP and sparsity constraints. We present a novel algorithm to approximately solve the ILP. We propose a novel first-order method for our optimization framework which makes use of our ILP solver. Using problem structure (e.g., the low-rank structure of approx. Hessian), we can address instances with millions of parameters. Our experiments demonstrate that FALCON achieves superior accuracy compared to other pruning approaches within a fixed FLOP budget. For instance, for ResNet50 with 20% of the total FLOPs retained, our approach improves the accuracy by 48% relative to state-of-the-art. Furthermore, in gradual pruning settings with re-training between pruning steps, our framework outperforms existing pruning methods, emphasizing the significance of incorporating both FLOP and sparsity constraints for effective network pruning.
The Sparsity-FLOP Mismatch
Neural network pruning is essential for deploying large models on resource-constrained devices like phones or IoT sensors. Traditionally, pruning focuses on sparsity—reducing the number of non-zero (NNZ) parameters to save memory. However, a critical gap exists: sparsity is a poor proxy for actual inference speed.
As shown in the figure above, a model can achieve a 20x improvement in memory (NNZ), but this often only translates to an 8-10x improvement in speed (FLOPs). This occurs because parameters in high-FLOP layers (like early convolutions) are computationally more expensive than those in later layers. Most existing methods either ignore FLOPs entirely or use simple heuristics to manage them, leading to models that are small in size but still slow to run.
Methods: FALCON Framework
The authors introduce FALCON (FLOP-Aware Combinatorial Optimization for Neural network pruning) to address this combinatorial explosion. The framework consists of several key components:
- Joint Optimization Formulation: Pruning is modeled as a sparse regression problem with a weighted $\ell_0$ constraint, where weights represent the FLOP cost of each parameter.
- Integer Linear Programming (ILP): To solve the selection problem, FALCON formulates an ILP that simultaneously handles NNZ and FLOP budgets.
- Efficient Dual Solver: Solving an ILP with millions of variables is typically intractable. The authors utilize a convex relaxation and solve its dual problem using a custom Golden-section search.
- Leveraging Problem Structure:
- Low-rank Hessian: The loss function is approximated using the empirical Fisher Information matrix. Its low-rank structure allows the framework to handle millions of parameters without storing a massive Hessian matrix.
- Layer-wise Grouping: Parameters within a single layer usually share the same FLOP cost. This allows replacing expensive sorting operations with a faster algorithm working on pre-sorted layer-wise arrays.
- FALCON++: A multi-stage version of the algorithm that iteratively refines the quadratic approximation of the loss, leading to better results at very high compression levels.
Key Results and Insights
FALCON was evaluated on standard computer vision benchmarks including CIFAR-10 (ResNet20) and ImageNet (MobileNetV1, ResNet50). The results demonstrate that treating pruning as a formal optimization problem yields significantly better "fidelity" (how well the pruned model mimics the original) than simple heuristics like magnitude pruning.
As illustrated in the accuracy plots, Joint Sparsification (the FALCON approach) consistently outperforms methods that focus on only one constraint.
- ResNet50 on ImageNet: At a 20% FLOP budget, FALCON++ achieved 67.08% accuracy, whereas the previous state-of-the-art (WF) only managed 5.39%—a massive 48% relative improvement.
- MobileNetV1: Even on this already-efficient architecture, FALCON outperformed competitors. At 30% FLOPs, FALCON++ achieved 64.74% accuracy, compared to 50.89% for CHITA and 18.72% for WF.
One of the most striking findings is that jointly optimizing for both constraints leads to a more balanced sparsity across the network. Pure FLOP-based pruning tends to gut the early layers of a network (which are FLOP-heavy), while pure sparsity pruning might leave them untouched. FALCON finds the "sweet spot" that preserves the network's representational power while meeting strict hardware budgets.
Summary updated