ADC/DAC-Free Analog Acceleration of Deep Neural Networks with Frequency Transformation

Nastaran Darabi, Maeesha Binte Hashem, Hongyi Pan, Ahmet Cetin, Wilfred Gomes, Amit Ranjan Trivedi

TL;DR

Researchers have developed a novel analog accelerator for Deep Neural Networks (DNNs) that eliminates the need for power-hungry Analog-to-Digital and Digital-to-Analog Converters (ADCs/DACs). By performing computations in the frequency domain using the Walsh-Hadamard Transform and employing a "predictive early termination" strategy, the design achieves a staggering energy efficiency of up to 5311 TOPS/W.

What Problem Does This Paper Address?

Deploying large-scale DNNs at the "edge"—on devices like smartphones, drones, or IoT sensors—is a constant battle against limited battery life and computing power. While model pruning (removing unnecessary connections) helps, it often disrupts the structured nature of neural networks, making them hard to run efficiently on standard hardware.

Frequency-domain compression, specifically using the Walsh-Hadamard Transform (WHT), offers a structured alternative. It can significantly reduce model size with minimal accuracy loss. However, there's a catch: transforming data into the frequency domain typically increases the number of multiply-accumulate (MAC) operations required, which can negate the energy savings. Furthermore, while analog computing is inherently efficient for MAC operations, it usually requires ADCs and DACs to communicate with digital systems, and these converters often consume the majority of the system's power and area.

Methods

The authors propose an ADC/DAC-free analog accelerator that leverages the unique properties of frequency-domain transformations.

  1. Parameter-Free Transformations: The WHT uses a matrix consisting only of 1s and -1s. This means the "weights" in the transformation are fixed and binary, eliminating the need for complex trainable parameters in the transformation layers.
  2. Analog Crossbar Architecture: They designed a compact 6T NMOS-based computing cell. By leveraging Kirchhoff’s law, multiplications and additions are performed directly in the analog domain (charge-based) without dedicated digital multipliers or adders.
  3. Bitplane-Wise Processing: To avoid DACs, the system processes multi-bit digital inputs one "bitplane" at a time (from most significant to least significant).
  4. Training Against 1-bit Quantization: To avoid ADCs, the authors trained the network to be robust against extreme 1-bit quantization of the analog product-sums. They used continuous approximation functions (like tanh) during training to allow gradients to flow through these non-continuous operations.
  5. Predictive Early Termination: By using a soft-thresholding activation function, the authors created "output sparsity" (many zeros). The system can predict if a result will be zero after processing only the first few bitplanes, allowing it to shut down early and save massive amounts of energy.
Architecture and operation flow for analog frequency-domain processing

Datasets

The proposed architecture was evaluated using two standard image classification benchmarks:

  • CIFAR-10: Used to test ResNet20 and MobileNetV2 architectures.
  • CIFAR-100 & ImageNet: Referenced as benchmarks where these frequency-domain transformations have previously shown significant compression capabilities.

Key Insights and Ideas

  • Physics as a Computer: By summing charges on a wire, the hardware performs complex math "for free" as a result of physical laws, bypassing the overhead of digital logic.
  • WHT is the Perfect Match for Analog: Because the Walsh-Hadamard matrix is binary, the analog cells can be extremely simple (NMOS-only), leading to higher density and lower power than traditional SRAM-based compute-in-memory.
  • Sparsity is an Energy Asset: The "aha moment" here is linking frequency-domain thresholding to hardware power-gating. If you can prove a neuron won't fire based on its most significant bits, you don't need to calculate the rest.
  • Algorithmic Noise Tolerance (ANT): The researchers found that frequency-domain processing is naturally resilient to the "noise" and variability inherent in analog circuits, allowing for simpler hardware designs.
Frequency-domain processing benefits and MAC overhead

Key Results

  • Energy Efficiency: On a 16×16 crossbar at 0.8V, the design achieved 1602 TOPS/W (baseline). With the predictive early termination strategy, this jumped to 5311 TOPS/W.
  • Model Compression: Replacing standard 1×1 convolutions with WHT layers reduced trainable parameters by 55.6% in some configurations.
  • Accuracy: The system maintained high accuracy, showing only a ~3-4% drop compared to floating-point baselines when processing CIFAR-10, even with extreme 1-bit quantization.
  • Throughput: The average number of cycles needed for an 8-bit input was reduced from 8 to just 1.34 due to early termination.

Limitations and Future Work

  • Accuracy Trade-off: While the 3-4% accuracy loss is impressive for such high efficiency, it might be a hurdle for safety-critical applications.
  • Scalability: The paper notes that larger crossbars (e.g., 32×32) are more vulnerable to process variability at low voltages, suggesting that smaller, "stitched" arrays are currently more reliable.
  • Future Directions: The authors suggest further optimizing the loss functions to push for even higher output sparsity and exploring how this architecture handles more complex tasks like object detection or segmentation where fine-grained representations are vital.

Summary updated

BibTeX
@article{darabi2024adc,
  author = {Nastaran Darabi and Maeesha Binte Hashem and Hongyi Pan and Ahmet Cetin and Wilfred Gomes and Amit Ranjan Trivedi},
  title = {{ADC/DAC-Free Analog Acceleration of Deep Neural Networks with Frequency Transformation}},
  journal = {IEEE TVLSI},
  year = {2024},
  doi = {10.1109/tvlsi.2024.3375111},
}
Figure