Supported-BinaryNet: Bitcell Array-based Weight Supports for Dynamic Accuracy-Latency Trade-offs in SRAM-based Binarized Neural Network

Shamma Nasrin, Srikanth Ramakrishna, Theja Tulabandhula, Amit Ranjan TrivediarXiv 2019

TL;DR

This paper introduces "Supported-BinaryNet," a novel SRAM-based Binarized Neural Network (BNN) architecture that enhances prediction accuracy by incorporating learnable "support parameters" within each bitcell. This approach allows for dynamic trade-offs between accuracy and latency, enabling more efficient real-time applications and demonstrating robustness to process variations.

What Problem Does This Paper Address?

Modern machine learning (ML) models, especially those used in real-time applications like autonomous vehicles and IoT devices, demand high accuracy and low latency. Binarized Neural Networks (BNNs) offer a promising solution for hardware acceleration due to their reduced computational complexity and memory footprint. However, the extreme quantization of weights in BNNs (typically to just 1-bit) significantly limits their representational capacity, leading to a drop in accuracy compared to full-precision models. Existing SRAM-based BNNs, while efficient, struggle to bridge this accuracy gap without incurring substantial complexity or power overheads. This paper aims to enhance the accuracy of SRAM-BNNs while maintaining hardware simplicity and introducing dynamic control over the accuracy-latency trade-off.

Methods

The core innovation is the introduction of "bitcell array-based support parameters." Instead of just storing binary weights (-1 or +1) in SRAM cells, each block of binary weights is augmented with learnable support parameters, denoted as $a_{ij}$ and $b_{ij}$. The effective weight $w$ within a block is then transformed as $w \leftarrow a_{ij} \times w + b_{ij}$. These support parameters are stored in dedicated SRAM cells and are integrated into the row Digital-to-Analog Converter (DAC) circuitry.

The authors propose two training strategies:

  1. Learning supports on a pre-trained BNN: Existing BNN weights are used as a starting point, and only the support parameters are learned.
  2. Simultaneous learning of supports and weight binarization: Both the binary weights and the support parameters are learned together from scratch or random initialization.

To address power overheads, they also introduce a "dynamic drop out" mechanism where a portion of the support parameters can be pruned without significant accuracy loss. This allows for dynamic energy-accuracy trade-offs. The architecture is implemented using an 8-T SRAM cell design that decouples read/write operations from computation, enhancing throughput.

Datasets

The primary dataset used for training and evaluation is MNIST. The authors evaluate their approach on a 4-layer fully-connected network for this dataset.

Key Insights and Ideas

  • Weight Space Enhancement: The support parameters ($a_{ij}, b_{ij}$) effectively expand the representational capacity of the binarized weights, allowing for higher accuracy without resorting to multi-bit weights. This is analogous to adding a learnable scaling and offset to each block of binary weights.
  • Dynamic Accuracy-Latency Trade-off: The ability to dynamically "drop out" support parameters (pruning them to zero) allows for a flexible trade-off. More support parameters mean higher accuracy but potentially higher latency/power; fewer parameters reduce overheads at the cost of some accuracy.
  • Robustness to Process Variation: The proposed architecture shows improved robustness to transistor variability (e.g., threshold voltage variations) compared to previous SRAM-BNN designs, making it more practical for real-world hardware implementation.
  • Minimal Hardware Overhead: The integration of support parameters is achieved by modifying the DAC circuitry and leveraging existing SRAM cell structures, requiring minimal interventions to a typical SRAM-BNN design.

Key Results

  • MNIST Accuracy Improvement:
    • When learning supports on a pre-trained BNN, the classification error on MNIST was reduced by 35.71% (error rate decreased from 1.4% to 0.91%).
  • When learning supports and binarization simultaneously, the error was reduced by 27.65% (error rate decreased from 1.4% to 1.13%).
  • Dynamic Drop Out: The architecture can drop out 52% of the bitcell array-based support parameters without losing accuracy.
  • Support Parameter Precision: Inference accuracy is tolerant up to 4-bit precision for the support parameters.
  • Power Consumption: The architecture consumes 48.09 μW for an 8x8 bank size and 156.04 μW for a 64x64 bank size.
  • Process Variation Robustness: The architecture is demonstrated to be robust to process variations, with minimal impact on accuracy even with 30 mV VTH variations.

Limitations and Future Work

  • Power Overhead: While the dynamic drop-out mechanism helps, the paper acknowledges that the approach incurs some power and latency overheads compared to a typical SRAM-BNN.
  • Block Size Optimization: The paper explores different block sizes for support parameters, but further optimization of block size for various network architectures and datasets could be a future direction.
  • Generalization to Other Datasets/Architectures: The primary evaluation is on MNIST with a fully-connected network. Future work could explore the effectiveness of Supported-BinaryNet on more complex datasets (e.g., ImageNet) and different network architectures (e.g., CNNs).
  • Hardware Implementation Details: While simulations are performed, a full hardware prototype and its performance characterization would be a valuable next step.

Summary updated

BibTeX
@misc{nasrin2019supported,
  author = {Shamma Nasrin and Srikanth Ramakrishna and Theja Tulabandhula and Amit Ranjan Trivedi},
  title = {{Supported-BinaryNet: Bitcell Array-based Weight Supports for Dynamic Accuracy-Latency Trade-offs in SRAM-based Binarized Neural Network}},
  year = {2019},
  eprint = {1911.08518},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.08518},
}
Figure