CONetV2: Efficient Auto-Channel Size Optimization for CNNs

Yi Ru Wang, Samir Khaki, Weihang Zheng, Mahdi S. Hosseini, Konstantinos N. Plataniotis

TL;DR

CONetV2 is a new framework that makes Neural Architecture Search (NAS) for channel sizes significantly faster and more hardware-efficient. By introducing a novel "Quality Condition" metric to evaluate individual layers and an automated system to handle layer dependencies, the authors can shrink or grow models during search without retraining from scratch, ultimately producing CNNs that are both smaller and more accurate than standard baselines.

What Problem Does This Paper Address?

Neural Architecture Search (NAS) has revolutionized how we design Convolutional Neural Networks (CNNs), but it has a massive "bottleneck": computational cost. Most NAS methods require training hundreds of candidate architectures from scratch to see which one performs best.

Furthermore, optimizing channel sizes (the width of each layer) is particularly difficult for two reasons:

  1. Inter-dependencies: In modern networks (like ResNets), you can't just change one layer's width in isolation; because of skip connections and additions, multiple layers must often share the same channel dimensions.
  2. Holistic Metrics: Standard metrics like "total accuracy" tell you how the whole model is doing, but they don't tell you which specific layer is a "dead weight" or which one needs more capacity.

Methods

The authors introduce CONetV2, which optimizes channel sizes through four key innovations:

  • Automated Dependency Extraction: The framework treats the CNN as a Directed Acyclic Graph (DAG) to automatically identify "dependency groups." If changing Layer A requires changing Layer B, the algorithm groups them together for joint optimization.
  • Quality Condition (QC) Metric: Instead of waiting for full training accuracy, the authors use Singular Value Decomposition (SVD) on the weight tensors of individual layers. The QC metric measures the "learning health" of a layer based on its low-rank structure and numerical stability. High QC correlates strongly with high test accuracy.
  • Knowledge Distillation (Weight Transfer): To avoid retraining from scratch in every search trial, CONetV2 transfers weights between trials. If a channel size increases, they use a "reflection" operation to fill the new space; if it decreases, they keep the most important weights (the top singular values). This allows for "warm-starting" trials with only 2 epochs of training.
  • Search Algorithms: They compare a Greedy Algorithm (which always picks the local best move) against Simulated Annealing (SA). SA introduces controlled randomness, allowing the search to "escape" mediocre configurations to find truly optimal, efficient architectures.

Datasets

The researchers evaluated their method on two standard image classification benchmarks:

  • CIFAR-10
  • CIFAR-100 They applied their search to two popular architectures: ResNet34 and DARTS7. They also used the NATS-Bench dataset to validate that their QC metric actually correlates with real-world performance.

Key Insights and Ideas

  • The "Aha!" of SVD: The most striking insight is that you can judge a layer's potential just by looking at the mathematical properties of its weights (rank and condition number). This "proxy" metric allows for much faster iteration than traditional NAS.
  • Weight Preservation: By "distilling" weights during the search process, the authors prove that you don't need to throw away learned knowledge just because you changed the shape of a layer.
  • SA > Greedy: The results show that Simulated Annealing is superior for finding "efficient" models. While Greedy search finds good models, SA consistently finds models that achieve the same accuracy with significantly fewer parameters.

Key Results

CONetV2 consistently outperformed manually designed baselines and other scaling methods:

  • ResNet34 on CIFAR-100: The baseline model had 77.94% accuracy with 21.3M parameters. The CONetV2 (SA) version achieved 78.64% accuracy (+0.7%) with only 18.3M parameters (a ~14% reduction).
  • DARTS7 on CIFAR-100: The improvement here was massive. The baseline was 71.15% accuracy. CONetV2 (SA) boosted this to 79.54% accuracy (+8.39%) while using roughly 5.6M parameters.
  • Efficiency: The entire search process is incredibly cheap, costing only about 0.1 GPU-days, making it accessible to researchers without massive server farms.

Limitations and Future Work

  • Micro vs. Macro: This work focuses on "micro-search" (channel sizes) rather than "macro-search" (changing the overall topology or types of layers). Combining this with global topology search could be a powerful next step.
  • Dataset Scale: While CIFAR is a standard benchmark, testing on larger-scale datasets like ImageNet would further prove the scalability of the QC metric.
  • Hardware-Awareness: The authors suggest that future iterations could explicitly include hardware constraints (like latency on mobile devices) directly into the optimization objective.

Summary updated

BibTeX
@inproceedings{wang2021conetv,
  author = {Yi Ru Wang and Samir Khaki and Weihang Zheng and Mahdi S. Hosseini and Konstantinos N. Plataniotis},
  title = {{CONetV2: Efficient Auto-Channel Size Optimization for CNNs}},
  booktitle = {ICMLA},
  year = {2021},
  url = {https://openreview.net/forum?id=djVq9ql5oT},
}

Loading related content...

Figure