Learning Time/Memory-Efficient Deep Architectures With Budgeted Super Networks

Tom Veniat, Ludovic Denoyer

Abstract

We propose to focus on the problem of discovering neural network architectures efficient in terms of both prediction quality and cost. For instance, our approach is able to solve the following tasks: learn a neural network able to predict well in less than 100 milliseconds or learn an efficient model that fits in a 50 Mb memory. Our contribution is a novel family of models called Budgeted Super Networks (BSN). They are learned using gradient descent techniques applied on a budgeted learning objective function which integrates a maximum authorized cost, while making no assumption on the nature of this cost. We present a set of experiments on computer vision problems and analyze the ability of our technique to deal with three different costs: the computation cost, the memory consumption cost and a distributed computation cost. We particularly show that our model can discover neural network architectures that have a better accuracy than the ResNet and Convolutional Neural Fabrics architectures on CIFAR-10 and CIFAR-100, at a lower cost.

Introduction

While deep learning has achieved incredible accuracy, the resulting models are often computationally expensive, requiring significant RAM or high-end GPUs. This poses a challenge for deployment on resource-constrained devices like mobile phones or IoT sensors. Traditionally, efficient models are either hand-designed (e.g., MobileNet) or found via Neural Architecture Search (NAS). However, most NAS methods focus on a single cost metric like FLOPs. This paper introduces Budgeted Super Networks (BSN), a framework to automatically discover architectures optimized for any measurable hardware constraint, including inference latency, memory footprint, or communication overhead.

Methods

The BSN framework operates by "pruning" a large, over-parameterized graph into an efficient sub-architecture. The process involves:

  1. Super Network Definition: A large Directed Acyclic Graph (DAG) is defined where nodes represent layers and edges represent potential operations.
  2. Stochastic Relaxation: To avoid intractable combinatorial search, each edge is assigned a probability. During training, architectures are sampled based on these probabilities.
  3. Budgeted Objective Function: The loss function balances prediction quality with a cost penalty. The penalty is applied only when the sampled architecture exceeds a user-defined budget $C$.
  4. Optimization: Network weights are updated via backpropagation, while architecture probabilities are optimized using policy gradients. This allows the system to identify essential connections while discarding those that are too "expensive."
Discovered architectures for different cost constraints: (a) B-ResNet, (b) B-CNF optimized for computation cost, and (c) B-CNF optimized for memory consumption.

Results and Discussion

The authors evaluated BSN on CIFAR-10, CIFAR-100, and a Part Label segmentation dataset.

Efficiency and Accuracy

On CIFAR-10, the discovered B-ResNet achieved 92.39% accuracy with only 39.25 million FLOPs, outperforming the standard ResNet-20 (91.25% accuracy at 40.9 million FLOPs). As shown in Figure 3, B-ResNet consistently provides a better accuracy-to-cost trade-off compared to standard ResNets and other baselines like MSDNet.

Accuracy vs. FLOPs comparison on CIFAR-10, showing B-ResNet outperforming standard ResNet variants.

Architecture Plasticity

A key insight is that the same Super Network evolves into different shapes depending on the constraint. When optimized for computation cost, the model might favor certain paths, whereas a memory constraint leads to different structural choices (see Figure 6). This cost-agnosticism allows BSN to adapt to diverse hardware requirements.

Conclusion

BSN provides a flexible, automated way to design neural networks that respect real-world hardware budgets. While the search process itself is computationally intensive and dependent on the initial Super Network's design, the resulting models demonstrate superior efficiency. Future work may involve meta-learning to accelerate the discovery of architectures for new hardware constraints.

Summary updated

BibTeX
@inproceedings{veniat2018learning,
  author = {Tom Veniat and Ludovic Denoyer},
  title = {{Learning Time/Memory-Efficient Deep Architectures With Budgeted Super Networks}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  url = {https://openreview.net/forum?id=rJ-3V1Mu-H},
}
Figure