tubGEMM: Energy-Efficient and Sparsity-Effective Temporal-Unary-Binary Based Matrix Multiply Unit

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Vellaisamy, Prabhu, Nair, Harideep, Finn, Joseph, Trivedi, Manav, Chen, Albert, Li, Anna, Lin, Tsung-Han, Wang, Perry, Blanton, Shawn, Shen, John Paul
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916541372563456
author Vellaisamy, Prabhu
Nair, Harideep
Finn, Joseph
Trivedi, Manav
Chen, Albert
Li, Anna
Lin, Tsung-Han
Wang, Perry
Blanton, Shawn
Shen, John Paul
author_facet Vellaisamy, Prabhu
Nair, Harideep
Finn, Joseph
Trivedi, Manav
Chen, Albert
Li, Anna
Lin, Tsung-Han
Wang, Perry
Blanton, Shawn
Shen, John Paul
contents General Matrix Multiplication (GEMM) is a ubiquitous compute kernel in deep learning (DL). To support energy-efficient edge-native processing, new GEMM hardware units have been proposed that operate on unary encoded bitstreams using much simpler hardware. Most unary approaches thus far focus on rate-based unary encoding of values and perform stochastic approximate computation. This work presents tubGEMM, a novel matrix-multiply unit design that employs hybrid temporal-unary and binary (tub) encoding and performs exact (not approximate) GEMM. It intrinsically exploits dynamic value sparsity to improve energy efficiency. Compared to the current best unary design uGEMM, tubGEMM significantly reduces area, power, and energy by 89\%, 87\%, and 50\%, respectively. A tubGEMM design performing 128x128 matrix multiply on 8-bit integers, in commercial TSMC N5 (5nm) process node, consumes just 0.22 mm^2 die area, 417.72 mW power, and 8.86 uJ energy, assuming no sparsity. Typical sparsity in DL workloads (MobileNetv2, ResNet-50) reduces energy by more than 3x, and lowering precision to 4 and 2 bits further reduces it by 24x and 104x respectively.
format Preprint
id arxiv_https___arxiv_org_abs_2412_17955
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle tubGEMM: Energy-Efficient and Sparsity-Effective Temporal-Unary-Binary Based Matrix Multiply Unit
Vellaisamy, Prabhu
Nair, Harideep
Finn, Joseph
Trivedi, Manav
Chen, Albert
Li, Anna
Lin, Tsung-Han
Wang, Perry
Blanton, Shawn
Shen, John Paul
Hardware Architecture
General Matrix Multiplication (GEMM) is a ubiquitous compute kernel in deep learning (DL). To support energy-efficient edge-native processing, new GEMM hardware units have been proposed that operate on unary encoded bitstreams using much simpler hardware. Most unary approaches thus far focus on rate-based unary encoding of values and perform stochastic approximate computation. This work presents tubGEMM, a novel matrix-multiply unit design that employs hybrid temporal-unary and binary (tub) encoding and performs exact (not approximate) GEMM. It intrinsically exploits dynamic value sparsity to improve energy efficiency. Compared to the current best unary design uGEMM, tubGEMM significantly reduces area, power, and energy by 89\%, 87\%, and 50\%, respectively. A tubGEMM design performing 128x128 matrix multiply on 8-bit integers, in commercial TSMC N5 (5nm) process node, consumes just 0.22 mm^2 die area, 417.72 mW power, and 8.86 uJ energy, assuming no sparsity. Typical sparsity in DL workloads (MobileNetv2, ResNet-50) reduces energy by more than 3x, and lowering precision to 4 and 2 bits further reduces it by 24x and 104x respectively.
title tubGEMM: Energy-Efficient and Sparsity-Effective Temporal-Unary-Binary Based Matrix Multiply Unit
topic Hardware Architecture
url https://arxiv.org/abs/2412.17955