NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ChamNet: Towards Efficient Network Design Through Platform-Aware Model Adaptation.

Xiaoliang Dai, Peizhao Zhang, Bichen Wu, Hongxu Yin, Fei Sun, Yanghan Wang, Marat Dukhan, Yunqing Hu, Yiming Wu, Yangqing Jia, Peter Vajda, Matt Uyttendaele, Niraj K. Jha · DOI

TL;DR

This paper introduces ChamNet, a novel framework for efficiently adapting neural network architectures to specific hardware platforms and resource constraints (like latency or energy). By leveraging predictive models for accuracy and resource usage, ChamNet drastically speeds up the search for optimal, platform-aware models, achieving state-of-the-art performance in minutes rather than days.

What Problem Does This Paper Address?

Deploying neural networks (NNs) on resource-constrained edge devices (like mobile phones or IoT devices) is challenging because NNs are computationally intensive. Furthermore, different hardware platforms (CPUs, DSPs, GPUs) have unique characteristics that impact performance, and real-world applications have diverse constraints (e.g., strict latency for video analysis vs. energy efficiency for battery-powered devices). Manually designing architectures for each platform and constraint is time-consuming and requires deep hardware expertise. Existing automated methods like Neural Architecture Search (NAS) and Sequential Model-Based Optimization (SMBO) are often computationally prohibitive, requiring extensive training and measurement for each new platform or constraint. This paper aims to bridge this gap by providing a fast, scalable, and automated method for adapting NNs to specific deployment scenarios.

Methods

ChamNet's core innovation lies in its platform-aware model adaptation using efficient predictive models. Instead of developing new NN building blocks, it reuses existing efficient ones and focuses on adapting their configuration. The process involves:

  • Efficient Evolutionary Search (EES): This algorithm searches for optimal NN architectures by representing them as vectors of hyperparameters. It iteratively breeds new generations of architectures based on their "fitness," which is determined by predictive models.
  • Predictive Models: To avoid costly training and measurement for every candidate architecture, ChamNet uses pre-built predictors for accuracy, latency, and energy. These predictors can estimate a model's performance in under a second.
  • Accuracy Predictor: Built using Gaussian Process (GP) regression augmented with Bayesian optimization. This allows for efficient learning from a small number of trained architectures and provides uncertainty estimates to guide the search.
  • Latency Predictor: Leverages an operator latency lookup table (LUT). This LUT is pre-populated by benchmarking individual operators (like convolutions) on the target hardware. Network latency is then estimated by summing operator latencies.
  • Energy Predictor: Similar to the accuracy predictor, it uses GP regression and Bayesian optimization, focusing on exploration samples with high uncertainty.
  • Optimization Framework: The search is formulated as a constrained optimization problem: maximizing accuracy subject to a resource constraint (latency or energy). A fitness function combines accuracy and a penalty for violating constraints.

Datasets

  • ImageNet: Used for training and evaluating the adapted neural network models. The paper mentions using 1.2M training and 50K validation images for the main experiments. For building the accuracy predictor, a subset of 50 images per class was reserved.

Key Insights and Ideas

  • Computation Distribution Matters: The paper highlights that how computation is distributed across different stages of a network is crucial for performance, not just the total FLOPs. ChamNet redistributes FLOPs to later stages where feature maps are smaller, potentially improving information propagation.
  • Hardware-Awareness is Key: Directly measuring or predicting hardware-specific latency (beyond just FLOPs) is essential for achieving optimal performance on diverse platforms. The operator latency LUT is a practical way to capture these hardware traits.
  • Predictive Models Drastically Reduce Search Time: The core enabler of ChamNet's speed is the use of accurate and efficient predictive models. This allows for rapid evaluation of candidate architectures, reducing the search process from days to minutes.
  • One-Time Cost for Predictors: Building the predictive models (especially the latency LUT) is a one-time cost per platform. This cost is amortized when adapting multiple models or searching for architectures under various constraints on the same platform, making it highly scalable.

Key Results

ChamNet consistently achieves significant accuracy improvements over state-of-the-art handcrafted and automatically designed architectures across various platforms and constraints:

  • Mobile Platforms (Snapdragon 835 CPU & Hexagon v62 DSP):
    • Achieved 73.8% (CPU) and 75.3% (DSP) top-1 accuracy on ImageNet at 20ms latency.
  • At reduced latency (4ms on CPU), achieved up to 8.2% absolute accuracy improvement over MobileNetV2 and 6.7% over MnasNet.
  • On DSP, achieved up to 4.8% absolute accuracy improvement over MobileNetV2 and 9.3% over MnasNet.
  • Server Platforms (Intel CPU & Nvidia GPU):
    • Achieved 2.7% (CPU) and 4.6% (GPU) accuracy gains over ResNet-101.
  • Achieved 5.6% (CPU) and 2.6% (GPU) accuracy gains over ResNet-152.
  • Energy Efficiency: For energy-constrained adaptation on mobile, ChamNet achieved 1.2% higher accuracy while reducing energy consumption by 26% compared to a baseline MobileNetV2.
  • Search Speed: The adaptation search takes only minutes after the one-time cost of building predictors.

Limitations and Future Work

  • One-Time Cost of Predictor Building: While efficient for multiple adaptations, the initial cost of building predictors (especially the latency LUT) can still be substantial if only a single adaptation is needed.
  • Generalizability of Predictors: The paper focuses on specific hardware platforms. Extending the predictive modeling to a wider range of unseen hardware or more complex device interactions could be a future direction.
  • Search Space Definition: The effectiveness of ChamNet is dependent on the defined search space for hyperparameters. Exploring more sophisticated ways to define or discover effective search spaces could further enhance performance.
  • Future Work: The authors suggest that their framework is suitable for large-scale heterogeneous deployment and can be extended to other domains beyond computer vision. The efficiency of their approach makes it a strong candidate for real-world deployment scenarios where rapid adaptation is crucial.

Summary updated

BibTeX
@inproceedings{dai2019chamnet,
  author = {Xiaoliang Dai and Peizhao Zhang and Bichen Wu and Hongxu Yin and Fei Sun and Yanghan Wang and Marat Dukhan and Yunqing Hu and Yiming Wu and Yangqing Jia and Peter Vajda and Matt Uyttendaele and Niraj K. Jha},
  title = {{ChamNet: Towards Efficient Network Design Through Platform-Aware Model Adaptation.}},
  booktitle = {CVPR},
  year = {2019},
  doi = {10.1109/cvpr.2019.01166},
}
Figure