Introduction
The proliferation of "always-on" edge devices, such as smart sensors and hearing aids, necessitates deep learning models that can operate within milliwatt power envelopes. While digital microcontrollers (MCUs) are the current industry standard, they are increasingly constrained by the "memory wall"—the significant energy overhead incurred when moving data between memory and processing units.
Analog Compute-in-Memory (CiM) using Phase-Change Memory (PCM) offers a promising alternative by performing computations directly within the memory array. However, the inherent physical variability of analog hardware—including conductance drift, read/write noise, and limited precision—presents a major hurdle for high-accuracy TinyML. AnalogNets addresses these challenges through a hardware-software co-design framework that optimizes both model architecture and training for noisy analog environments.
The Challenge of Analog Compute-in-Memory
Traditional neural network architectures, like MobileNet, are optimized for digital hardware by minimizing parameter counts and FLOPs through techniques like depthwise separable convolutions. However, these architectures are often physically inefficient on analog crossbars. Depthwise layers lead to sparse mappings (sometimes <1% utilization), resulting in low signal-to-noise ratios (SNR) that make models highly susceptible to hardware noise and weight drift.
Co-Design Methodology
The AnalogNets framework employs two primary strategies to bridge the gap between analog efficiency and model accuracy:
1. Architecture Redesign for SNR
Rather than minimizing parameters, AnalogNets prioritizes hardware utilization and signal strength. By replacing sparse depthwise layers with dense 3x3 convolutions and removing narrow bottleneck layers, the design ensures that more "signal" is accumulated on the bitlines. This approach effectively "drowns out" analog noise, making the model inherently more robust to the physical imperfections of PCM.
2. Hardware-Aware Training (HAT)
To further enhance robustness, the authors implemented several hardware-aware training techniques:
- Noise Injection: Gaussian noise is injected into weights during training to simulate the statistical behavior of PCM conductance drift over time.
- Differentiable Quantization: A fully differentiable approach is used to learn optimal input/output ranges for Data Converters (ADCs/DACs), moving beyond fixed empirical rules.
- AON-CiM Accelerator: A 14nm PCM-based accelerator was designed using a "layer-serial" approach. This architecture processes one layer at a time through a single optimized memory array, circulating activations through on-chip SRAM to minimize area while maximizing efficiency.
Evaluation and Results
The framework was evaluated on two critical TinyML benchmarks: Keyword Spotting (KWS) and Visual Wake Words (VWW).
Accuracy Stability
Testing on a 90nm PCM test chip demonstrated remarkable stability. AnalogNets maintained over 95% accuracy for KWS and 85% for VWW during a 20-hour experiment, showing minimal degradation despite continuous hardware drift.
Energy Efficiency
The 14nm AON-CiM accelerator achieved industry-leading efficiency metrics:
- 8.58 TOPS/W for KWS and 4.37 TOPS/W for VWW at 8-bit activation precision.
- Efficiency increased to 57.39 TOPS/W (KWS) and 25.69 TOPS/W (VWW) when utilizing 4-bit activations.
These results represent a significant leap over standard MCUs, which typically operate in the Mega-Operations Per Second (MOPS) range.
Discussion and Future Work
AnalogNets demonstrates that "density" is a feature in analog computing, as it improves SNR and mitigates drift. However, long-term drift remains a challenge; at 4-bit precision, accuracy begins to decline more sharply after 24 hours, suggesting a need for periodic weight re-programming or further advances in training robustness. Future research may also explore optimizing neural network layer shapes to match the specific physical dimensions of CiM crossbars, further pushing the boundaries of TinyML efficiency.
Summary updated