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

DARC: Differentiable ARchitecture Compression

Shashank Singh, Ashish Khetan, Zohar KarninOpenReview 2019

Abstract

In many learning situations, resources at inference time are significantly more constrained than resources at training time. This paper studies a general paradigm, called Differentiable ARchitecture Compression (DARC), that combines model compression and architecture search to learn models that are resource-efficient at inference time. Given a resource-intensive base architecture, DARC utilizes the training data to learn which sub-components can be replaced by cheaper alternatives. The high-level technique can be applied to any neural architecture, and we report experiments on state-of-the-art convolutional neural networks for image classification. For a WideResNet with $97.2\%$ accuracy on CIFAR-10, we improve single-sample inference speed by $2.28\times$ and memory footprint by $5.64\times$, with no accuracy loss. For a ResNet with $79.15\%$ Top1 accuracy on ImageNet, we improve batch inference speed by $1.29\times$ and memory footprint by $3.57\times$ with $1\%$ accuracy loss. We also give theoretical Rademacher complexity bounds in simplified cases, showing how DARC avoids overfitting despite over-parameterization.

Introduction

Deep learning currently faces a significant "resource gap" between the training phase and real-world deployment. While models are typically trained on high-performance GPU clusters, they are often deployed on resource-constrained hardware such as mobile devices, embedded systems, or high-throughput production servers where memory and latency are strictly limited.

Existing solutions generally fall into two categories: model compression (e.g., pruning or quantization) and Neural Architecture Search (NAS). Pruning reduces the size of an existing model but is constrained by the original topology. NAS designs efficient models from scratch but is often computationally prohibitive and relies on proxy datasets. DARC (Differentiable ARchitecture Compression) bridges this gap by starting with a high-performing "heavy" model and systematically learning how to simplify its internal architecture based on actual training data.

Methodology

The core of DARC is a differentiable approach to model simplification. Rather than making discrete choices between "heavy" and "light" layers, the framework employs a continuous relaxation. For every layer in the network, a set of candidates is proposed, including the original convolution, 3x3 depthwise-separable convolutions, and 1x1 bottleneck convolutions.

During training, each layer is represented as a weighted average (a convex combination) of these candidates. The weights ($\alpha$) are learned concurrently with the model parameters. To drive the model toward efficiency, a sparsity-inducing penalty representing the computational "cost" (latency or memory) is added to the loss function. As training progresses, this penalty forces the network to select the most efficient candidates that maintain high accuracy. Additionally, a "student-teacher" initialization is used, where cheaper candidates are pre-trained to mimic the original heavy layers, facilitating smoother optimization.

Experimental Results

The researchers evaluated DARC on CIFAR-10 and ImageNet, comparing results against the GluonCV Model Zoo.

Key Insights

  • Optimization Objectives: The resulting architecture depends on the specific goal. Optimizing for model size tends to replace layers near the output, whereas optimizing for throughput spreads replacements throughout the network.
  • Redundancy in Wide Models: WideResNet models showed significant redundancy, allowing DARC to replace nearly every layer with cheaper alternatives with zero loss in accuracy.
  • Theoretical Safety: Using Rademacher complexity, the authors proved that the over-parameterized search phase does not lead to overfitting, provided the original model is sufficiently "richer" than the alternatives.
Performance comparison of original (O) and DARC-transformed (T) ResNet models on ImageNet, showing throughput and Pareto efficiency gains.

As shown in the performance data, DARC-transformed models (T) consistently achieve higher throughput than their original (O) counterparts with minimal impact on Top-1 accuracy. For ResNet50, the framework achieved a batch inference speedup of $1.29\times$ and a memory footprint reduction of $3.57\times$ with only a $1\%$ accuracy drop.

Comparative Analysis

DARC was compared against established pruning methods like ThiNet and Disc. In aggressive compression scenarios—such as reducing a model to one-third of its original size—DARC significantly outperformed these methods in maintaining accuracy.

Comparison of DARC(S) against state-of-the-art pruning methods on ResNet-50 across various compression ratios.

At a $2.05\times$ compression ratio, DARC(S) maintained a much smaller accuracy drop ($-0.63$ Top-1) compared to ThiNet ($-1.87$) and Disc ($-1.06$). Even at extreme compression levels ($6.14\times$), the framework remains competitive while drastically reducing resource requirements.

Conclusion and Future Work

DARC provides a robust framework for learning efficient architectures from heavy base models. While currently focused on CNNs for image classification, the authors suggest that extending DARC to Transformers and LSTMs in NLP is a promising direction. Future iterations may also include "Identity" candidates to allow the model to learn optimal depth by effectively deleting unnecessary layers. Furthermore, while GPU throughput was the primary metric here, the benefits may be even more pronounced on CPU or specialized mobile hardware where standard convolutions are less optimized.

Summary updated

BibTeX
@misc{singh2019darc,
  author = {Shashank Singh and Ashish Khetan and Zohar Karnin},
  title = {{DARC: Differentiable ARchitecture Compression}},
  year = {2019},
  eprint = {1905.08170},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.08170},
  howpublished = {OpenReview},
}
Figure