TL;DR
SimQ-NAS introduces a framework for simultaneously searching for the optimal neural network architecture and its corresponding mixed-precision quantization policy. By leveraging multi-objective evolutionary search and lightly trained predictors, the authors achieve up to 4.8x latency speedups and 3.44x model size reductions over standard INT8 baselines without sacrificing accuracy across CNNs, Transformers, and multi-modal foundation models.
What Problem Does This Paper Address?
Optimizing deep learning models for deployment usually involves two distinct steps: Neural Architecture Search (NAS) to find the best structure (depth, width, etc.) and Quantization to reduce numerical precision (e.g., from 32-bit floats to 8-bit integers).
Traditionally, these are treated as separate problems. However, the "best" architecture at full precision might not be the most robust to quantization. Jointly searching for both creates a massive combinatorial explosion—a search space as large as $10^{50}$ configurations. While this joint approach has been explored for standard Convolutional Neural Networks (CNNs), it remains largely under-explored for modern Transformer-based models and multi-modal foundation models, which are notoriously difficult to compress without significant accuracy drops.
Methods
The authors propose a systematic two-step approach to navigate this complexity:
- Super-network Creation: Instead of training a new model for every configuration, they use a "super-network" (via techniques like InstaTune and Once-for-All). This is a large, weight-sharing network from which smaller "sub-networks" can be extracted without retraining.
- Joint Search with LINAS: They employ the Lightweight Iterative NAS (LINAS) algorithm. LINAS uses an iterative, predictor-based approach. It trains simple surrogate models (like ridge regression) on a few sampled architectures to predict the performance of others. This allows the search to efficiently navigate the $10^{50}$ joint search space toward a Pareto frontier—the set of models that offer the best trade-offs between accuracy, latency, and size.
For quantization, the framework uses Post-Training Quantization (PTQ), specifically searching for a mixed-precision policy using INT8 and FP32 for different layers, implemented via the Intel Neural Compressor.
Datasets
The framework was evaluated on standard benchmarks across different domains:
- Computer Vision: ImageNet-1K for ResNet50 and ViT (Vision Transformer).
- Natural Language Processing: SST2 (sentiment analysis) for BERT.
- Multi-modal: ImageNet-1K for BEiT-3 (a foundation model that handles both text and images).
Key Insights and Ideas
- The Power of "Jointness": The most critical insight is that searching for architecture and quantization together significantly outperforms searching for them sequentially. Figure 3 in the paper demonstrates that for the same accuracy level, the joint search finds models that are substantially smaller than those found by a quantization-only search.
- Predictors are Essential: You cannot brute-force a $10^{50}$ search space. The success of SimQ-NAS hinges on the ability of simple predictors (trained on minimal data) to accurately guide the evolutionary search toward high-performing regions of the search space.
- Cross-Modality Success: The method isn't just for CNNs. It proved highly effective for Transformers (ViT, BERT) and even complex multi-modal models (BEiT-3), suggesting that the relationship between architecture and quantization robustness is a fundamental property across different model families.
Key Results
The authors compared their discovered models against standard fully-quantized INT8 baselines. The improvements were dramatic:
- OFA ResNet50: Achieved a 4.8x latency reduction and a 3.44x model size reduction compared to the ResNet152 INT8 baseline, all while maintaining equivalent accuracy.
- BERT: Found a configuration 2.2x faster than the INT8 baseline at the same accuracy level. It also achieved a 1.83x reduction in model size.
- ViT: Identified a sub-network with a 1.97x speedup over the baseline without accuracy loss.
As seen in the Pareto fronts above, the "Discovered DNN Models" (blue dots) consistently push the boundaries of efficiency further than the standard INT8 reference points (red/orange diamonds).
Limitations and Future Work
- Precision Constraints: The study limited its search to INT8 and FP32 due to current hardware support. The authors note that expanding the search to include INT4 or BFloat16 could yield even better results as hardware support for these formats matures.
- Super-network Dependency: The method relies on the availability of a pre-trained or fine-tuned super-network. While InstaTune makes this easier, it still represents a significant upfront computational cost.
- Scaling to LLMs: While BEiT-3 is a foundation model, the authors highlight that extending this methodology to Large Language Models (LLMs) is a vital next step for the research community.
Summary updated