Exploration of Unary Arithmetic-Based Matrix Multiply Units for Low Precision DL Accelerators
Prabhu Vellaisamy, Harideep Nair, Di Wu, Shawn Blanton, John Paul Shen
TL;DR
This work assesses unary GEMM designs (uGEMM, tuGEMM, tubGEMM) against traditional binary GEMM for INT-based DL inference, conducting post-synthesis PPA evaluations across multiple bit-widths and matrix sizes followed by sparsity profiling on CNNs and LLaMA2-70B. It finds that temporal-unary designs (tuGEMM and tubGEMM) offer strong area-power and energy performance, with tubGEMM particularly advantageous when sparsity is present, while binary GEMM retains the best latency-ADP trade-offs. The results illuminate trade-offs among area, power, latency, and sparsity exploitation, suggesting temporal-unary compute as a viable, energy-efficient path for edge AI accelerators in low-precision regimes (2–4 bits). The study thus informs design directions for next-generation DLA architectures prioritizing energy efficiency and sparsity-aware operation at ultra-low precision.
Abstract
General matrix multiplication (GEMM) is a fundamental operation in deep learning (DL). With DL moving increasingly toward low precision, recent works have proposed novel unary GEMM designs as an alternative to conventional binary GEMM hardware. A rigorous evaluation of recent unary and binary GEMM designs is needed to assess the potential of unary hardware for future DL compute. This paper focuses on unary GEMM designs for integer-based DL inference and performs a detailed evaluation of three latest unary design proposals, namely, uGEMM, tuGEMM and tubGEMM, by comparing them to a conventional binary GEMM. Rigorous post-synthesis evaluations beyond prior works are performed across varying bit-widths and matrix sizes to assess the designs' tradeoffs and determine optimal sweetspots. Further, we perform weight sparsity analysis across eight pretrained convolutional neural networks (CNNs) and the LLaMA2 large language model (LLM). In this work, we demonstrate how unary GEMM can be effectively used for energy-efficient compute in future edge AI accelerators.
