Abstract
The success of Machine Learning is increasingly tempered by its significant resource footprint, driving interest in efficient paradigms like TinyML. However, the inherent complexity of designing TinyML systems hampers their broad adoption. To reduce this complexity, we introduce "Data Aware Differentiable Neural Architecture Search" (DA-DARTS). Unlike conventional Differentiable Neural Architecture Search, our approach expands the search space to include data configuration parameters alongside architectural choices. This enables DA-DARTS to co-optimize model architecture and input data characteristics, effectively balancing resource usage and system performance for TinyML applications. Initial results on keyword spotting demonstrate that this novel approach to TinyML system design can generate lean but highly accurate systems.
Introduction
Designing systems for TinyML—machine learning on ultra-low-power embedded devices—is notoriously difficult. It requires a "triple threat" of expertise: high-level ML model design, low-level resource optimization, and hardware-specific implementation. While Neural Architecture Search (NAS) has automated the model design phase, it typically treats input data as a fixed constant. In audio applications like keyword spotting (KWS), the transformation of raw sound into features (e.g., via Mel-frequency Cepstral Coefficients, or MFCCs) significantly impacts both accuracy and computational load. DA-DARTS addresses this by co-optimizing the model and the data configuration to find the optimal balance for constrained hardware.
Methodology: The DA-DARTS Framework
The framework builds upon the memory-efficient PC-DARTS variant, introducing a novel co-optimization strategy.
The Data Gamma Parameter
In standard DARTS, learnable weights (alpha and beta) determine the optimal neural network operations. DA-DARTS introduces a third set of learnable parameters: Data Gamma ($\gamma_d$). Each candidate data configuration, such as a specific combination of window size and hop length for MFCCs, is assigned a $\gamma$ value. During the search phase, the system uses a softmax function to combine these configurations into a weighted input. As training progresses, the system learns which configuration minimizes loss, and the corresponding $\gamma$ value increases.
Aligning Input Dimensions
A significant technical challenge arises because different MFCC settings produce varying input shapes (spectrogram dimensions). To integrate these into a unified search space, the authors explored two primary strategies:
- Zero-padding: Smaller inputs are padded with zeros to match the dimensions of the largest possible input configuration.
- Convolutional Pre-processing: Early convolutional layers are used to downsample higher-resolution inputs to match the lowest-resolution configuration.
Experimental results identified convolutional pre-processing as the superior method for dimension alignment. To further enhance efficiency, an early stopping mechanism terminates the data search once a single configuration becomes significantly more dominant than its competitors.
Experimental Results
The researchers evaluated DA-DARTS on the Google Speech Commands (GSC) v0.02 benchmark and a custom name detection task. On the GSC dataset, DA-DARTS achieved state-of-the-art efficiency:
| Model | Parameters | Accuracy |
|---|---|---|
| DA-DARTS (Ours) | 298 K | 97.61% |
| DS-CNN | 1.40 M | 94.68% |
| MobileNetV2 | 2.27 M | 90.84% |
| EfficientNet | 5.93 M | 88.32% |
DA-DARTS achieved the highest accuracy while being approximately 5x smaller than DS-CNN and 20x smaller than EfficientNet. Ablation studies confirmed the value of the joint search; disabling the "Data Aware" component resulted in a drop in accuracy to 96.48% and an increase in parameter count to 391K.
Conclusion and Future Work
DA-DARTS demonstrates that co-optimizing data and architecture is essential for generating high-performance, resource-efficient TinyML systems. While the current search cost is approximately 16 hours on an A100 GPU, the strategic efficiency of differentiable data parameters is a significant step forward. Future work will explore extending this methodology to other modalities like image resolution or sensor sampling rates and investigating continuous search spaces for data parameters.
Summary updated