Introduction
Deep learning models are increasingly massive, presenting significant challenges for deployment on edge devices or in real-time applications like autonomous driving. Structural pruning—the removal of redundant network components—is a standard solution. However, it faces two primary hurdles: the Granularity Gap and the Latency Gap.
Most existing methods prune at a fine-grained level (e.g., channels), making it difficult to achieve the high compression ratios (70-90%) required for real-time speedups. Furthermore, researchers often rely on "FLOPs" or "parameter count" as proxies for speed, which frequently fail to correlate with actual wall-clock time on hardware. Modern architectures like Transformers exhibit complex, non-linear interactions between embedding size, head count, and MLP dimensions that linear models cannot capture.
Methodology: Multi-Dimensional Pruning (MDP)
MDP (Multi-Dimensional Pruning) is a framework that treats pruning as a global optimization problem. It jointly optimizes across multiple model dimensions—including channels, heads, embeddings, and entire blocks—to find the most accurate subnetwork within a strict hardware latency budget.
The framework consists of several key components:
- Unified Encoding: Every prunable dimension (channels in CNNs; embeddings, heads, and Q/K/V dimensions in Transformers) is represented using one-hot variables. Binary decision variables are also employed to determine whether to retain or remove entire blocks.
- Non-linear Latency Modeling: Instead of assuming linear scaling, MDP utilizes Latency Lookup Tables (LUTs) precomputed on target hardware. This allows the system to accurately predict performance for various combinations of dimensions.
- MINLP Formulation: Pruning is formulated as a Mixed-Integer Nonlinear Program (MINLP). The objective is to maximize the "importance" of remaining parameters (using Taylor or Hessian-based scores) while maintaining total predicted latency under a specified budget ($\Psi$).
- Global Optimization: Unlike methods that prune layer-by-layer, MDP solves for the entire model structure in a single pass, ensuring an optimal balance across the network.
Key Results and Evaluation
The authors evaluated MDP across three distinct tasks: ImageNet-1K classification (ResNet50 and DeiT-Base), 2D object detection (Pascal VOC), and 3D object detection (NuScenes).
MDP consistently sits on the "Pareto frontier," providing higher accuracy than previous methods for any given speed.
- ResNet50 (CNN): At a 70% pruning ratio, MDP achieved a 28% speed increase and a +1.4% Top-1 accuracy improvement over the previous state-of-the-art (HALP).
- DeiT-Base (Transformer): Compared to "Isomorphic Pruning," MDP accelerated the model by an additional 37% while gaining +0.7% in Top-1 accuracy.
- 3D Detection: On the NuScenes benchmark, MDP pruned the StreamPETR model by 45%, resulting in a 1.18x speedup and an increase in mAP (0.451 vs. 0.449) compared to the dense baseline.
Conclusion
MDP demonstrates that pruning shouldn't happen in a vacuum; dimensions interact in ways that linear models miss. By allowing the optimizer to remove entire blocks as a "safety valve," MDP achieves significantly higher speedups at aggressive pruning levels (80%+) where traditional methods typically fail. While the framework currently relies on precomputed LUTs, its importance-score agnostic nature provides a robust foundation for future extensions to Large Language Models (LLMs) where KV-cache and sequence length further complicate latency modeling.
Summary updated