[Paper Review] FBNetV2: Differentiable Neural Architecture Search for Spatial and Channel Dimensions
FBNetV2 introduces DMaskingNAS, a differentiable neural architecture search (DNAS) method that enables efficient joint search over spatial (input resolution) and channel dimensions (number of filters) by using a masking mechanism for feature map reuse. This approach expands the search space by up to 10^14× while maintaining nearly constant memory and computation costs, resulting in state-of-the-art accuracy with 15% fewer FLOPs than MobileNetV3-Small and 20% fewer FLOPs than Efficient-B0 at similar accuracy.
Differentiable Neural Architecture Search (DNAS) has demonstrated great success in designing state-of-the-art, efficient neural networks. However, DARTS-based DNAS's search space is small when compared to other search methods', since all candidate network layers must be explicitly instantiated in memory. To address this bottleneck, we propose a memory and computationally efficient DNAS variant: DMaskingNAS. This algorithm expands the search space by up to $10^{14} imes$ over conventional DNAS, supporting searches over spatial and channel dimensions that are otherwise prohibitively expensive: input resolution and number of filters. We propose a masking mechanism for feature map reuse, so that memory and computational costs stay nearly constant as the search space expands. Furthermore, we employ effective shape propagation to maximize per-FLOP or per-parameter accuracy. The searched FBNetV2s yield state-of-the-art performance when compared with all previous architectures. With up to 421$ imes$ less search cost, DMaskingNAS finds models with 0.9% higher accuracy, 15% fewer FLOPs than MobileNetV3-Small; and with similar accuracy but 20% fewer FLOPs than Efficient-B0. Furthermore, our FBNetV2 outperforms MobileNetV3 by 2.6% in accuracy, with equivalent model size. FBNetV2 models are open-sourced at https://github.com/facebookresearch/mobile-vision.
Motivation & Objective
- To overcome the memory and computational bottlenecks in DNAS that limit search space size, especially for spatial and channel dimensions.
- To enable joint search over input resolution and number of filters in a differentiable framework without prohibitive memory or compute costs.
- To achieve state-of-the-art performance in accuracy, FLOPs, and model size for efficient neural networks on ImageNet.
- To develop a scalable, memory-efficient DNAS method that supports large-scale architecture search while maintaining training efficiency.
Proposed method
- Introduces DMaskingNAS, a DNAS variant that uses learnable masks to represent multiple channel and resolution options in a shared supergraph, enabling joint optimization.
- Employs a masking mechanism where feature maps are reused across all channel and resolution options via weighted mask combinations, minimizing memory and computation overhead.
- Applies effective shape propagation to ensure accurate gradient flow and performance estimation during search, maximizing per-FLOP and per-parameter accuracy.
- Uses a weight-sharing approximation with Gumbel-Softmax to differentially select optimal channel and resolution configurations during training.
- Supports joint search over six architectural dimensions: number of channels, kernel size, number of layers, bottleneck type, input resolution, and expansion rate.
- Leverages a supergraph formulation where all candidate architectures are implicitly represented, allowing end-to-end differentiable optimization across a vastly expanded search space.
Experimental results
Research questions
- RQ1Can DNAS be extended to efficiently search over spatial (input resolution) and channel (number of filters) dimensions without incurring prohibitive memory or computational costs?
- RQ2How can feature map reuse be achieved across a large number of channel and resolution options to maintain nearly constant memory usage during search?
- RQ3Can a differentiable search framework jointly optimize macro-architecture (resolution, channels) and micro-architecture (blocks) with state-of-the-art performance?
- RQ4What is the impact of expanding the search space by up to 10^14× on final model accuracy and efficiency compared to prior methods?
- RQ5Can the proposed method achieve superior accuracy with fewer FLOPs or parameters than existing manually and automatically designed models?
Key findings
- FBNetV2-F1 achieves 68.3% top-1 accuracy on ImageNet with only 56M FLOPs, outperforming MobileNetV3-Small by 0.9% accuracy and using 15% fewer FLOPs.
- FBNetV2-F4 achieves 76.0% top-1 accuracy with 238M FLOPs, matching ResNet-50's accuracy while being significantly more efficient.
- FBNetV2-P1 achieves 2.6% higher accuracy than MobileNetV3 and 2.9% higher than FBNet at only 4M parameters, demonstrating superior parameter efficiency.
- The search cost for FBNetV2 is only 27 hours on 8 GPUs, which is 421× less than MobileNetV3-Small's search cost, despite higher accuracy.
- DMaskingNAS maintains nearly constant memory cost even with 32 channel options per block, while conventional DNAS fails to fit into memory beyond 8 options.
- FBNetV2-L1 achieves 77.2% top-1 accuracy with 325M FLOPs, outperforming EfficientNet-B0 (77.3%) with 390M FLOPs, demonstrating superior FLOP efficiency.
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.