[Paper Review] UDC: Unified DNAS for Compressible TinyML Models
UDC proposes a unified differentiable Neural Architecture Search (DNAS) framework that jointly optimizes neural network architecture, per-layer weight bitwidths, and sparsity levels to generate compressible TinyML models for Neural Processing Units (NPUs). By integrating hardware-aware compression (quantization and pruning) into the search space, UDC achieves state-of-the-art performance—up to 3.35× smaller at iso-accuracy or 6.25% higher accuracy at iso-size on ImageNet—while guaranteeing deployment within strict NPU memory constraints.
Deploying TinyML models on low-cost IoT hardware is very challenging, due to limited device memory capacity. Neural processing unit (NPU) hardware address the memory challenge by using model compression to exploit weight quantization and sparsity to fit more parameters in the same footprint. However, designing compressible neural networks (NNs) is challenging, as it expands the design space across which we must make balanced trade-offs. This paper demonstrates Unified DNAS for Compressible (UDC) NNs, which explores a large search space to generate state-of-the-art compressible NNs for NPU. ImageNet results show UDC networks are up to $3.35 imes$ smaller (iso-accuracy) or 6.25% more accurate (iso-model size) than previous work.
Motivation & Objective
- To address the challenge of designing TinyML models that fit within the limited memory of low-cost IoT devices.
- To enable full exploitation of hardware model compression (quantization and sparsity) on NPUs, which software-based MCUs cannot efficiently utilize.
- To jointly search over neural architecture, per-layer bitwidths, and sparsity levels while guaranteeing compliance with hard NPU memory constraints.
- To develop a differentiable, hardware-aware search algorithm that avoids over-regularization and ensures efficient weight sharing.
- To produce compressible, deployable TinyML models that are Pareto-optimal in accuracy and model size for NPU deployment.
Proposed method
- Extends differentiable NAS (DNAS) to jointly optimize layer-wise weight sparsity and bitwidths using a differentiable, compressibility-aware objective function.
- Introduces a novel differentiable measure of compressibility based on entropy-limited compression of pruning masks and quantized weights, enabling gradient-based optimization.
- Employs a Gumbel-softmax-based search with improved exploration-exploitation control and reduced bias to avoid over-regularization.
- Uses a novel weight representation and training algorithm to stabilize training of sparse, low-bitwidth models that are otherwise hard to optimize.
- Imposes a hard constraint on compressed model size via a differentiable size approximation, ensuring all generated models fit within target NPU memory limits.
- Validates compression gains using the real-world Vela NPU compiler, which applies Golomb-Rice and run-length encoding to masks and non-zero weights.
Experimental results
Research questions
- RQ1Can a unified differentiable NAS framework jointly optimize neural architecture, per-layer bitwidths, and sparsity levels to produce NPU-deployable TinyML models?
- RQ2How can the search process be made robust to over-regularization and biased Gumbel-softmax approximations while maintaining high accuracy and compressibility?
- RQ3To what extent can joint search over architecture, bitwidth, and sparsity outperform sequential design and conditioning in terms of model size and accuracy?
- RQ4Can the proposed method guarantee that generated models satisfy hard NPU memory constraints without manual tuning?
- RQ5How does the proposed compressibility-aware search compare to random search and ablated variants in terms of final model performance and search efficiency?
Key findings
- UDC-generated models achieve up to 3.35× smaller size than prior work at the same ImageNet top-1 accuracy, demonstrating significant compression gains.
- At the same model size, UDC models are 6.25% more accurate than previous state-of-the-art models on ImageNet.
- Theoretical compressed model sizes closely match practical sizes measured with the Vela NPU compiler, with differences within two decimal places.
- Ablation studies show that disabling any component of UDC leads to significantly worse performance on both CIFAR100 and ImageNet.
- UDC is 1.4× faster than FBNet and FBNetV2 in system-specific runtime and outperforms all other methods except those two in normalized search cost (3.2 GPUD on a 460 images/sec system).
- The proposed number format and training algorithm enable stable training of extremely sparse, low-bitwidth models that are otherwise difficult to optimize.
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.