Partial Order Pruning: For Best Speed/Accuracy Trade-Off in Neural Architecture Search

Xin Li, Yiming Zhou, Zheng Pan, Jiashi Feng

Abstract

Achieving an optimal trade-off between inference speed and accuracy is critical for deploying deep neural networks on real-world target platforms. While many Neural Architecture Search (NAS) methods prioritize high performance, they often neglect hardware-specific constraints or rely on inaccurate proxies like FLOPs. We propose Partial Order Pruning (POP), an algorithm that prunes the architecture search space based on a partial order assumption: that wider or deeper networks are generally slower but more accurate. By incorporating actual hardware profiling, POP efficiently identifies architectures with superior speed/accuracy trade-offs. We introduce the Dongfeng (DF) family of networks, which achieve state-of-the-art results in both image classification and real-time semantic segmentation across various GPU platforms.

The Latency-Accuracy Challenge

Deploying deep learning models involves a constant tension between accuracy and latency. Most NAS methods focus on maximizing accuracy or use FLOPs (Floating Point Operations) as a proxy for speed. However, FLOPs are often deceptive; they fail to account for memory access patterns, data movement, and hardware-specific optimizations (e.g., NVIDIA TensorRT). A model with lower FLOPs can be slower than a more complex one if its operations are not hardware-friendly.

This research addresses two fundamental deployment questions:

  1. Given a specific latency budget, what is the maximum achievable accuracy?
  2. To meet a required accuracy threshold, what is the minimum possible latency?

Partial Order Pruning (POP) Methodology

The core of our approach is the Partial Order Pruning algorithm, which streamlines the search process by leveraging structural relationships between architectures.

1. Hardware-Aware Latency Estimation

Instead of relying on FLOPs, we utilize actual hardware profiling. We construct a lookup table containing the execution time of individual building blocks on target platforms, such as the NVIDIA Jetson TX2 or GTX 1080Ti. This allows for highly accurate latency estimation of any candidate architecture in the search space.

2. The Partial Order Assumption

We observe a logical trend: if network A is structurally "smaller" (narrower or shallower) than network B, network A is almost certainly faster and likely less accurate. This creates a "partial order." By assuming this relationship holds, the algorithm can skip training hundreds of sub-optimal architectures. If the search identifies a fast, high-accuracy network, it automatically prunes smaller networks that are already slower than the current best-in-class for that accuracy level.

The general network architecture and residual blocks used in the search space.

3. Search Space and Architecture Encoding

Our search space focuses on varying the depth and width of standard residual blocks across different stages of the network. The algorithm searches for both backbone architectures (for classification) and decoder architectures (for semantic segmentation), resulting in the "Dongfeng" (DF) model family.

Experimental Results

We evaluated the DF networks on ImageNet for classification and Cityscapes for real-time semantic segmentation.

ImageNet Classification

The searched DF1 model achieved 69.8% Top-1 accuracy with a latency of 2.5ms on an NVIDIA Jetson TX2. This makes it 43% faster than a standard ResNet-18 while maintaining higher accuracy. The search revealed that "quick down-sampling" in early stages and using convolutional layers for down-sampling (rather than pooling) are key to maintaining efficiency and precision.

Cityscapes Segmentation

For semantic segmentation, our DF1-Seg models set new benchmarks for real-time performance. On a high-end GTX 1080Ti, DF1-Seg achieved 74.1% mIoU at 106.4 FPS. Even on the power-constrained Jetson TX2, it reached 21.8 FPS at 720p resolution, outperforming established real-time models like ICNet and BiSeNet.

Comparison of DF-Seg networks against other real-time segmentation methods on the Cityscapes dataset.

Conclusion

Partial Order Pruning significantly improves the efficiency of Neural Architecture Search by pruning 438 architectures after training only 200, speeding up the search process by over 2x. By moving beyond FLOPs to hardware-specific profiling, POP ensures that the discovered Dongfeng networks are truly optimized for the devices they will run on. While the partial order assumption may face challenges in extremely deep networks (hundreds of layers), it remains a highly effective heuristic for practical, real-time model deployment.

Summary updated

BibTeX
@inproceedings{li2019partial,
  author = {Xin Li and Yiming Zhou and Zheng Pan and Jiashi Feng},
  title = {{Partial Order Pruning: For Best Speed/Accuracy Trade-Off in Neural Architecture Search}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  url = {https://openreview.net/forum?id=IEz51DFQl0},
}
Figure