Stella Nera: A Differentiable Maddness-Based Hardware Accelerator for Efficient Approximate Matrix Multiplication

Jannis Schönleber, Lukas Cavigelli, Matteo Perotti, Luca Benini, Renzo Andri
11/16/2023
cs.ARcs.CVcs.LG

Official code: joennlae/halutmatmul (214 stars, MIT, PyTorch, last commit 2023-12-10).

Abstract

Artificial intelligence has surged in recent years, with advancements in machine learning rapidly impacting nearly every area of life. However, the growing complexity of these models has far outpaced advancements in available hardware accelerators, leading to significant computational and energy demands, primarily due to matrix multiplications, which dominate the compute workload. Maddness (i.e., Multiply-ADDitioN-lESS) presents a hash-based version of product quantization, which renders matrix multiplications into lookups and additions, eliminating the need for multipliers entirely. We present Stella Nera, the first Maddness-based accelerator achieving an energy efficiency of 161 TOp/s/[email protected], 25x better than conventional MatMul accelerators due to its small components and reduced computational complexity. We further enhance Maddness with a differentiable approximation, allowing for gradient-based fine-tuning and achieving an end-to-end performance of 92.5% Top-1 accuracy on CIFAR-10.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Hashed Lookup Table based Matrix Multiplication (halutmatmul) - Stella Nera accelerator

21414Tcl, ShellMar 7, 20222 years agoMIT
approximate-inferencehardwarehardware-accelerationmachine-learningmaddness+1 more

Similar Papers

Cite this paper

@article{schnleber2023stella,
  title  = {Stella Nera: A Differentiable Maddness-Based Hardware Accelerator for Efficient Approximate Matrix Multiplication},
  author = {Jannis Schönleber and Lukas Cavigelli and Matteo Perotti and Luca Benini and Renzo Andri},
  year   = {2023},
  eprint = {2311.10207},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.10207v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.10207.svg)](https://codeofpaper.com/paper/2311.10207)

Discussion