[Paper Review] DARC: Differentiable ARchitecture Compression
DARC proposes a differentiable architecture compression framework that learns to replace components of a resource-intensive neural network with efficient alternatives using data-driven, gradient-based optimization. It achieves up to 5.64× faster inference and 5.64× smaller memory footprint on CIFAR-10 with no accuracy loss, while maintaining performance through sparsity-inducing regularization and theoretical generalization bounds.
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 imes$ and memory footprint by $5.64 imes$, with no accuracy loss. For a ResNet with $79.15\%$ Top1 accuracy on ImageNet, we improve batch inference speed by $1.29 imes$ and memory footprint by $3.57 imes$ with $1\%$ accuracy loss. We also give theoretical Rademacher complexity bounds in simplified cases, showing how DARC avoids overfitting despite over-parameterization.
Motivation & Objective
- To address the challenge of deploying high-accuracy deep learning models on resource-constrained inference devices.
- To overcome the limitations of traditional model compression methods like pruning and quantization, which are restricted to parameter-level changes and cannot replace entire layers with structurally different components.
- To develop a unified framework that combines model compression with neural architecture search, enabling data-driven replacement of network components with cheaper alternatives.
- To ensure generalization and avoid overfitting despite over-parameterization, by deriving Rademacher complexity bounds for simplified cases.
- To demonstrate that optimizing for different objectives (e.g., speed vs. size) leads to distinct, efficient architectures, improving the accuracy-efficiency Pareto frontier.
Proposed method
- DARC partitions a pre-trained, resource-heavy neural network into modular components and defines a set of efficient candidate components (e.g., depthwise-separable convolutions) for each.
- It formulates the component selection as a sparse ensemble learning problem, where each component's contribution is weighted by a learnable, differentiable gate parameter.
- A sparsity-inducing regularization term is applied to the gate parameters to encourage selection of only a few efficient components, promoting model compression.
- The method uses gradient-based optimization to jointly train the network weights and the component selection gates, enabling end-to-end training on large-scale datasets like ImageNet.
- The regularization term is tailored to the target objective—e.g., minimizing model size or maximizing throughput—allowing control over the final inference efficiency.
- The framework leverages a pre-trained base model for warm-starting weights, enabling faster convergence and better performance than NAS methods that start from scratch.
Experimental results
Research questions
- RQ1Can a differentiable, data-driven approach outperform traditional model compression techniques by enabling structural replacements of layers with more efficient alternatives?
- RQ2How can a rich search space for component replacement be effectively optimized without overfitting, especially when over-parameterized?
- RQ3Does optimizing for different inference objectives (e.g., speed vs. memory) lead to distinct, high-performing architectures that improve the accuracy-efficiency trade-off?
- RQ4Can theoretical generalization bounds be derived for the DARC framework, particularly under sparsity-inducing regularization?
- RQ5To what extent does starting from a pre-trained, high-accuracy model improve the final compressed model’s performance compared to NAS methods that begin from random architectures?
Key findings
- For a WideResNet achieving 97.2% accuracy on CIFAR-10, DARC improved single-sample inference speed by 2.28× and reduced memory footprint by 5.64× with no accuracy loss.
- For a modified ResNet50 with 79.15% Top1 accuracy on ImageNet, DARC achieved 1.29× faster batch inference and 3.57× smaller memory footprint with only 1% accuracy drop.
- The compressed models achieved better accuracy-efficiency trade-offs than state-of-the-art models, breaching the existing Pareto frontier on both CIFAR-10 and ImageNet.
- Models optimized for model size were structurally distinct from those optimized for throughput, confirming that 'you get what you optimize for'.
- Theoretical analysis provided Rademacher complexity bounds in simplified cases, showing that DARC avoids overfitting despite over-parameterization and sparsity.
- The method outperformed NAS baselines by at least 3% in Top1 accuracy on ImageNet, demonstrating the benefit of starting from a pre-trained, high-performing base model.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.