ChewBaccaNN: A Flexible 223 TOPS/W BNN Accelerator

Renzo Andri, Geethan Karunaratne, Lukas Cavigelli, Luca Benini · DOI

Introduction

Deploying Deep Learning on battery-powered IoT devices remains a significant challenge due to the high computational and memory requirements of standard Convolutional Neural Networks (CNNs). Binary Neural Networks (BNNs) offer a promising path forward by using 1-bit weights and activations, effectively replacing complex multiplications with simple XNOR operations. However, existing BNN hardware often suffers from either extreme rigidity—supporting only fixed kernel sizes—or the noise and inflexibility of analog "Processing-in-Memory" (PIM) designs.

ChewBaccaNN is a fully digital, flexible, and ultra-low-power accelerator designed to bridge this gap. Fabricated in 22nm FDX technology, it achieves a peak energy efficiency of 223 TOPS/W while maintaining the flexibility to support modern, high-accuracy BNN architectures.

Architecture and Methods

The ChewBaccaNN architecture is optimized for low-voltage operation and high data reuse. A central innovation is the use of Standard-Cell Memory (SCM) instead of traditional SRAM. SCMs are latch-based, allowing the supply voltage to scale down to 0.4V, which reduces memory access energy by approximately 3.5x.

ChewBaccaNN Architecture: (a) Top-level, (b) BPU, and (c) NMCU.

The compute core consists of an array of Basic Processing Units (BPUs). Each BPU performs 1D convolutions and can be tiled to support 2D convolutions with kernel sizes up to 7x7. This flexibility is critical for running state-of-the-art BNNs like ResNet-18. To minimize data movement, the design incorporates "Row Banks" and controlled shift registers for smart data reuse. Additionally, a Near-Memory Compute Unit (NMCU) handles operations like binarization, thresholding, and pooling on-the-fly as data is written back to memory, eliminating unnecessary round trips for intermediate results.

Experimental Evaluation

The accelerator's performance was validated across three diverse benchmarks: CIFAR-10, ImageNet (ILSVRC), and Freesound. ImageNet performance is particularly noteworthy, as ChewBaccaNN is one of the first BNN accelerators to publish results for this large-scale dataset.

Key Results

ChewBaccaNN achieved a peak efficiency of 223 TOPS/W at 0.4V and 154MHz. On the challenging ImageNet dataset, it executed a binarized ResNet-18 (Group-Net) with 67.5% Top-1 accuracy, consuming only 3.0 mJ per frame. This represents only a 1.8% accuracy drop compared to full-precision ResNet-18, a significant achievement for a BNN accelerator.

Energy efficiency vs. throughput across different kernel sizes.

On CIFAR-10, the device achieved 91.5% accuracy with just 7.3 µJ per inference. Physically, the core is remarkably compact, occupying 0.7 mm² and consuming as little as 1.1 mW during active inference.

Discussion and Insights

A key takeaway from this work is that flexibility acts as an efficiency multiplier. While analog PIM designs may boast higher theoretical peak TOPS/W, their rigidity often necessitates larger, less efficient networks to achieve target accuracies. Because ChewBaccaNN is flexible, it can run optimized BNNs (such as IR-Net) that achieve higher accuracy with fewer total operations, leading to superior system-level efficiency. In real-world comparisons on CIFAR-10, ChewBaccaNN used 2.8x less energy than the most efficient analog PIM devices.

Furthermore, the chip's floorplan reveals that 97% of the area is dedicated to memory, while compute units occupy only 1%. This confirms that for BNNs, the primary bottleneck has shifted from computation to data orchestration.

Limitations and Future Work

The primary trade-off in the ChewBaccaNN design is the use of SCMs, which are less dense than traditional SRAM, resulting in a larger physical footprint. Future work may explore denser memory alternatives or migration to smaller process nodes (e.g., 10nm) to further enhance efficiency. Additionally, optimizing the high-precision "bookend" layers (first and last layers) remains an area for further refinement to ensure they do not become a bottleneck in the otherwise binarized pipeline.

Summary updated

BibTeX
@inproceedings{andri2020chewbaccann,
  author = {Renzo Andri and Geethan Karunaratne and Lukas Cavigelli and Luca Benini},
  title = {{ChewBaccaNN: A Flexible 223 TOPS/W BNN Accelerator}},
  booktitle = {ISCAS},
  year = {2020},
  doi = {10.1109/iscas51556.2021.9401214},
}
Figure