Abstract
Differentiable Neural Architecture Search methods efficiently find high-accuracy architectures using gradient-based optimization in a continuous domain, saving computational resources. Mixed-precision search helps optimize precision within a fixed architecture. However, applying it to a NAS-generated network does not assure optimal performance as the optimized quantized architecture may not emerge from a standalone NAS method. In light of these considerations, this paper introduces ∇QDARTS, a novel approach that combines differentiable NAS with mixed-precision search for both weight and activation. ∇QDARTS aims to identify the optimal mixed-precision neural architecture capable of achieving remarkable accuracy while operating with minimal computational requirements in a single-shot, end-to-end differentiable framework, obviating the need for pretraining and proxy methods. Compared to fp32, ∇QDARTS shows impressive performance on CIFAR10 with (2,4) bit precision, reducing bit operations by 160× with a slight 1.57% accuracy drop. Increasing the capacity enables ∇QDARTS to match fp32 accuracy while reducing bit operations by 18×. For the ImageNet dataset, with just (2,4) bit precision, ∇QDARTS outperforms state-of-the-art methods such as APQ, SPOS, OQA, and MNAS by 2.3%, 2.9%, 0.3%, and 2.7% in terms of accuracy. By incorporating (2,4,8) bit precision, ∇QDARTS further minimizes the accuracy drop to 1% compared to fp32, alongside a substantial reduction of 17× in required bit operations and 2.6× in memory footprint. In terms of bit-operation (memory footprint) ∇QDARTS excels over APQ, SPOS, OQA, and MNAS with similar accuracy by 2.3× (12×), 2.4× (3×), 13% (6.2×), 3.4× (37%), for bit-operation (memory footprint), respectively. ∇QDARTS enhances the overall search and training efficiency, achieving a 3.1× and 1.54× improvement over APQ and OQA, respectively.
Introduction
Neural Architecture Search (NAS) has revolutionized the discovery of high-accuracy models, yet a significant "deployment gap" remains. Most NAS methods optimize for full-precision (fp32) architectures, but edge devices—such as mobile phones and IoT sensors—require quantization to 2, 4, or 8 bits to meet power and memory constraints.
A critical challenge is that an architecture optimized for fp32 is rarely the optimal choice for low-bit regimes. Traditionally, researchers have addressed this in stages: first finding the architecture, then searching for a quantization policy. This decoupled approach is often suboptimal and computationally expensive, frequently relying on slow "proxy" predictors. ∇QDARTS addresses this by treating quantization not as a post-processing step, but as an "elastic dimension" of the architecture itself, searching for structure and precision simultaneously.
Methodology: Joint Differentiable Search
∇QDARTS builds upon Differentiable Architecture Search (DARTS), which utilizes continuous relaxation to transform discrete operation choices into a differentiable optimization problem. The framework expands this search space to include bit-precision for both weights and activations.
Key Innovations
- Joint Differentiable Search: Learnable parameters ($\gamma$) represent the probability of choosing specific bit-widths (e.g., 2, 4, or 8 bits). This allows the model to "learn" the optimal precision for each layer using standard gradient descent.
- Complexity-aware Loss: To prevent the optimizer from defaulting to high-precision settings, a penalty term based on Bit Operations (BitOps) and memory footprint is integrated into the loss function, forcing a trade-off between accuracy and computational cost.
- Model Capacity Enhancement: Quantized models often suffer from accuracy degradation. The authors discovered that the initial layers are particularly sensitive; duplicating the first discovered cell and stacking it at the top of the network significantly boosts accuracy in ultra-low bit regimes.
- Single-Shot Efficiency: Unlike many state-of-the-art methods that require multi-stage pipelines or pre-training, ∇QDARTS is a "single-shot" framework that discovers the architecture and quantization policy in one pass without proxy models.
Comparative Analysis
When compared to existing NAS and quantization methods, ∇QDARTS stands out for its comprehensive feature set. It is the only method that combines joint search, weight sharing, and mixed-precision for both weights and activations in a single-shot, differentiable framework that avoids proxies and pre-training.
Experimental Results
The framework was evaluated on standard benchmarks, demonstrating that high efficiency can be achieved with minimal accuracy loss.
- CIFAR-10: Using (2,4) bit precision, ∇QDARTS reduced BitOps by 160× with only a 1.57% drop in accuracy compared to fp32. By increasing capacity, it matched fp32 accuracy while still maintaining an 18× reduction in BitOps.
- ImageNet: ∇QDARTS outperformed major competitors like APQ, SPOS, and MNAS. With (2,4,8) bit precision, it achieved a 17× reduction in BitOps and a 2.6× reduction in memory footprint while staying within 1% of the fp32 baseline accuracy.
- Search Speed: The method is significantly more efficient than previous joint-search methods, achieving a 3.1× and 1.54× improvement in total search and training time over APQ and OQA, respectively.
Discussion and Limitations
The core insight of ∇QDARTS is that quantization is a structural property. By treating it as an elastic dimension, the search can find synergies—such as a specific kernel size performing better at a lower bit-width—that staged methods miss.
While the current implementation focuses on Convolutional Neural Networks (CNNs), the authors provide a theoretical framework for extending this to Transformers by treating depth, embedding dimensions, and heads as elastic dimensions. Future work could also integrate hardware-in-the-loop measurements to refine the complexity-aware loss, as actual hardware latency can vary based on specific chip architectures beyond what theoretical BitOps metrics capture.
Summary updated