Abstract
Deploying Deep Neural Networks (DNNs) on battery-powered Internet of Things (IoT) edge devices requires balancing flexibility and energy efficiency. Dustin is a 16-core RISC-V compute cluster that addresses this by introducing native hardware support for 2-to-32-bit mixed-precision arithmetic and a novel Vector Lockstep Execution Mode (VLEM). By decoupling precision from instruction encoding through "virtual instructions" and reducing instruction fetch overhead via leader-follower core synchronization, Dustin achieves up to 1.15 TOPS/W efficiency. This paper details the architecture, innovations in memory broadcasting, and silicon-proven results on benchmarks like MLPerf Tiny.
Introduction
The deployment of DNNs at the edge is constrained by tight power and memory budgets. While extreme quantization (mixed-precision) helps fit models into memory, executing these on standard microcontrollers often incurs significant software overhead for data manipulation. Furthermore, multi-core CPUs suffer from redundant instruction fetch/decode energy in parallel tasks. While dedicated accelerators offer efficiency, they lack the flexibility to adapt to new DNN architectures. Dustin aims to provide a middle ground: the flexibility of a multi-core CPU with the energy efficiency of a hardware accelerator.
Architecture and Methodology
Dustin is implemented as a System-on-Chip (SoC) in 65nm CMOS, featuring a cluster of 16 custom RISC-V cores. The architecture centers on three primary innovations:
- Vector Lockstep Execution Mode (VLEM): The cluster can switch between standard MIMD execution and a SIMD-like lockstep mode. In VLEM, a single "leader" core (RV-0) fetches and decodes instructions, broadcasting them to 15 "follower" cores. This allows the followers to clock-gate their instruction fetch stages and private caches, significantly reducing power consumption.
- Hardware Memory Broadcasting: To support the lockstep cores, a hardware snooping mechanism intercepts identical memory requests for shared weights, serving all 16 cores in a single cycle to prevent serialization stalls.
- Dynamic Bit-Scalable Precision: Instead of expanding the Instruction Set Architecture (ISA), Dustin uses a Control and Status Register (CSR) to define operand precision.
Mixed-Precision via Virtual Instructions
A key challenge in mixed-precision hardware is the explosion of the instruction set. Dustin solves this by using "virtual instructions." The programmer configures the desired precision (e.g., 8x4-bit) in the CSR once. Subsequent generic dot-product instructions are then dynamically interpreted by the hardware's multiplier arrays based on the CSR state.
This approach reduces the required instruction encoding space by 10x while providing a performance boost of 1.9x to 7.7x over software-based packing and unpacking.
Experimental Evaluation
The Dustin SoC was evaluated using synthetic kernels and the MLPerf Tiny benchmark (ResNet8 on CIFAR-10).
Key Results:
- Efficiency: Peak performance reached 58 GOPS with an energy efficiency of 1.15 TOPS/W for 2-bit workloads.
- Power Reduction: VLEM reduced power consumption by 38% on average for data-parallel kernels without performance loss.
- System Impact: On the ResNet8 benchmark, the combination of VLEM and mixed-precision hardware reduced execution time by 63% and energy consumption by 73% compared to a baseline cluster.
- Area Overhead: These enhancements added only a 5% area overhead to the total cluster size, demonstrating high architectural efficiency.
Conclusion and Future Work
Dustin demonstrates that GPU-like efficiency can be integrated into a flexible RISC-V CPU cluster with minimal area overhead. While VLEM offers significant savings, it requires careful software-level memory management and synchronization to amortize switching costs. Future research will focus on scaling this architecture beyond 16 cores using pipelined interconnects or multi-cluster topologies to overcome current timing and area bottlenecks.
Summary updated