RedMulE: A Compact FP16 Matrix-Multiplication Accelerator for Adaptive Deep Learning on RISC-V-Based Ultra-Low-Power SoCs

Yvan Tortorella, Luca Bertaccini, Davide Rossi, Luca Benini, Francesco Conti

Abstract

On-device deep learning adaptation at the extreme edge requires the dynamic range of floating-point arithmetic, yet traditional floating-point units are often too resource-intensive for ultra-low-power (ULP) systems. This paper presents RedMulE (Reduced-precision matrix Multiplication Engine), a compact hardware accelerator designed for FP16 matrix-matrix multiplication. Integrated into a RISC-V-based PULP cluster, RedMulE utilizes a semi-systolic array of Fused Multiply-Add (FMA) units to achieve high data reuse and efficiency. Fabricated in 22nm CMOS, the accelerator delivers up to a 22× speedup and 4.65× better energy efficiency compared to optimized software, enabling sophisticated on-device training within a sub-100mW power budget.

Introduction

While "Extreme-Edge" AI has become proficient at inference using low-precision integer mathematics (INT8), on-device training and adaptation remain significant hurdles. Training algorithms typically require the wider dynamic range of floating-point numbers to converge accurately. However, standard floating-point units (FPUs) are traditionally too bulky and power-hungry for ultra-low-power (ULP) systems-on-chip (SoCs). Most existing edge accelerators focus solely on INT8 inference, leaving a gap for a dedicated, energy-efficient engine capable of handling the FP16 matrix-matrix multiplications (GEMM) that form the backbone of deep learning training.

Architectural Design

The researchers introduce RedMulE, a parametric hardware accelerator designed for tight integration within a Parallel Ultra-Low-Power (PULP) cluster of eight RISC-V cores. The architecture is built around several key features:

  • Semi-Systolic Array: The core datapath consists of an array of FP16 Fused Multiply-Add (FMA) units. It employs a semi-systolic approach where one operand is broadcasted while the other is shifted through the array, balancing high data reuse with low control complexity.
  • Tightly Coupled Integration: RedMulE is implemented as a Hardware Processing Engine (HWPE). It shares the cluster’s multi-banked L1 memory (TCDM) via a high-bandwidth interconnect, allowing RISC-V cores to offload heavy mathematical tasks without the overhead of expensive data transfers to off-chip memory.
  • Specialized Streamer: A dedicated unit manages memory access, interleaving loads and stores to maximize the utilization of the 288-bit wide memory ports.
  • Parametric Design: The hardware is configurable in terms of rows, columns, and pipeline stages, allowing designers to trade off area for throughput depending on specific SoC requirements.

Experimental Methodology

The researchers evaluated RedMulE using two primary methods:

  1. Synthetic GEMM Benchmarks: These were used to measure peak throughput, area, and energy efficiency across various matrix sizes.
  2. TinyMLPerf AutoEncoder: This real-world benchmark represents a common edge AI task. The team tested both forward and backward passes—crucial for training and adaptation—to demonstrate the accelerator's performance in a practical pipeline.

Key Insights

Unlike many inference-only accelerators that are strictly weight-stationary or output-stationary, RedMulE is designed symmetrically. It can treat either matrix as stationary, which is vital for the different data flow patterns required during the backpropagation phase of training. Furthermore, the design reinforces that FP16 (IEEE binary16) provides the necessary precision for many online learning tasks while being significantly more efficient to implement in hardware than FP32. By carefully managing data movement through the Streamer and internal buffers, RedMulE achieves a staggering 98.8% utilization of its FMA units.

Results

The design was prototyped in 22nm CMOS technology, yielding the following results:

  • Compact Footprint: A 32-FMA instance occupies only 0.07 mm², representing just 14% of the total area of an 8-core RISC-V cluster.
  • High Performance: It reaches a maximum frequency of 666 MHz, delivering a throughput of 31.6 MACs per cycle.
  • Superior Efficiency: At the cluster level, it achieves 688 GFLOPS/W. This is 4.65× more energy-efficient than the best-optimized software running on eight RISC-V cores.
  • Massive Speedup: Compared to software execution, RedMulE provides up to a 22× speedup for matrix operations, significantly reducing the latency of on-device learning.

Limitations and Future Work

As the design scales (e.g., to 512 FMA units), the bandwidth required from the shared L1 memory becomes a limiting factor, necessitating more memory ports and increasing complexity. Additionally, while FP16 is effective, future iterations could explore reconfigurable units for emerging "trans-precision" formats like FP8. Finally, further work is required to create seamless compiler support for mapping high-level deep learning frameworks directly to the RedMulE architecture.

Conclusion

RedMulE demonstrates that high-performance floating-point acceleration is viable within the stringent power envelopes of extreme-edge SoCs. By providing the necessary precision for backpropagation in a compact, highly efficient package, RedMulE paves the way for truly autonomous, adaptive AI at the edge.

Summary updated

BibTeX
@inproceedings{tortorella2022redmule,
  author = {Yvan Tortorella and Luca Bertaccini and Davide Rossi and Luca Benini and Francesco Conti},
  title = {{RedMulE: A Compact FP16 Matrix-Multiplication Accelerator for Adaptive Deep Learning on RISC-V-Based Ultra-Low-Power SoCs}},
  booktitle = {DATE},
  year = {2022},
  url = {https://openreview.net/forum?id=1oMw1gdstbC},
}
Figure