ExaGEMM: Exploration Framework for CPU-Driven ML Inference via Associative In-Register Computing for Low-Bit GEMM

Hyunwoo Oh, Suyeon Jang, Hanning Chen, Sanggeon Yun, Ryozo Masukawa, Mohsen ImaniarXiv 2026

TL;DR

ExaGEMM is a hardware/software co-design framework that accelerates ultra-low-bit matrix multiplication (GEMM) on conventional CPUs using register-resident lookup tables. By adding a minimal, lightweight in-register selection network to existing SIMD pipelines, it bypasses expensive memory bottlenecks to deliver up to a 13.29× speedup over software-only baselines. Crucially, its analytical exploration engine prunes the massive hardware/software design space by over 99%, allowing designers to easily pinpoint optimal, workload-specific ISA extensions before simulation.

What Problem Does This Paper Address?

Quantization—reducing model weights to 4-, 2-, or even 1-bit precision—is a powerful strategy for deploying large machine learning models on resource-constrained edge devices and CPUs. However, conventional CPU architectures handle ultra-low-bit operations poorly. Recent software methods use table-driven lookups (where activation combinations are pre-computed into a table and low-bit weights act as indexes) to replace explicit multiply-accumulate (MAC) operations. Unfortunately, this shifts the bottleneck to table construction and constant data movement through the memory hierarchy.

Compounding this issue is the highly fragmented nature of modern quantization. Different models and layers demand different precision mixes (e.g., W1A8 for vision, W4A16 or mixed-precision for LLMs). Because register files and SIMD budgets are fixed, a single rigid hardware design cannot optimally serve all these variations. Hardware designers have lacked a systematic way to explore this massive co-design space to decide exactly which lightweight CPU support points are worth implementing before tapeout.

Methods

The authors present ExaGEMM, an end-to-end analytical exploration and co-design framework that bridges the gap between parameterized GEMM software kernels and lightweight ISA extensions.

  • Lightweight Hardware Extension: Instead of proposing a massive new accelerator array, ExaGEMM reuses existing CPU SIMD datapaths (addition, dot-product, and accumulation). It introduces only a minimal in-register select network that applies lookup tables directly to staged weight blocks inside the Vector Register File (VRF), keeping the execution entirely CPU-native.
  • Parameterized Execution Space: It unifies the mapping space by parameterizing kernels into a five-tuple $k = (e, b, r, c, u)$, representing the packing factor ($e$), fan-in ($b$), row tile ($r$), column tile ($c$), and an instruction-level merge factor ($u$) that balances register reuse against loop overhead.
  • Analytical Explorer: To avoid slow, cycle-accurate architectural simulations across millions of design candidates, ExaGEMM uses fast mathematical surrogate models to evaluate register feasibility, instruction count, memory traffic, and hardware area/power overhead. This filters out unfeasible configurations and identifies a non-dominated Pareto frontier.
  • Automated Artifact Generation: Once a designer selects a point on the frontier, the framework automatically generates custom ISA specifications, gem5 simulator patches, and synthesizable RTL datapath designs.
ExaGEMM Framework Overview

Datasets / Workloads

The framework was evaluated using representative workloads spanning different quantization regimes:

  • DeiT-B (Vision Transformer): Uniform W1A8 (1-bit weights, 8-bit activations).
  • Llama2-7B (LLM): Uniform W2A16 (2-bit weights, 16-bit activations).
  • Llama2-7B (LLM): Mixed-precision W{1,2,4}A16 (inter-layer mixed 1-, 2-, and 4-bit weights with 16-bit activations).

The hardware configurations simulated in gem5 spanned 128-bit (Mobile), 256-bit (Laptop), and 512-bit (Workstation) SIMD vector widths.

Key Insights and Ideas

  • The "Free" Datapath: The core insight is that table-driven GEMM doesn't need a brand-new execution pipeline. Existing SIMD units already know how to do addition and accumulation; they just need a lightweight "traffic cop" (the select network) to route register data efficiently.
  • Workload Fragmentation Changes the Hardware Choice: For uniform workloads like vision transformers (DeiT), a single aggressive hardware design point is often sufficient. However, for mixed-precision LLMs, the optimal hardware configuration shifts dynamically across layers. A workload-aware exploration framework is vital because a single rigid design point becomes highly inefficient or completely infeasible across different layers.
  • Massive Pre-Simulation Pruning: By using analytical models for hardware constraints (like register file capacity), the framework can safely throw away 99.2% of uniform candidates and up to $10^7\times$ of mixed-precision combinations before running a single cycle of expensive architectural simulation.

Key Results

  • Significant Speedups: ExaGEMM achieves a 1.92× to 13.29× speedup in latency over software-only SIMD baselines (such as T-MAC and llama.cpp) across different CPU targets.
  • High Estimation Fidelity: The analytical explorer's ranking closely matches cycle-accurate gem5 simulations, achieving a high Spearman correlation of 0.889 to 0.982.
  • Minimal Hardware Overhead: When synthesized in a TSMC 28nm process, the custom select network adds negligible area overhead (0.024% to 13.21% depending on vector width) to the baseline SIMD datapath, proving its practicality for edge devices.
  • Asymmetric Payoff for LLMs: Moving from 256-bit to 512-bit SIMD support reduces Llama prefill latency by 3.89× and increases decode throughput by 5.69×, showing that LLMs benefit far more from wider vector units than vision models under this paradigm.

Limitations and Future Work

  • The framework relies on empirical calibration parameters ($\alpha_{mem}$ and $\alpha_{sel}$) derived from microbenchmarks and ASIC synthesis tools to maintain high analytical accuracy; changes in underlying microarchitectures or process nodes require recalibration.
  • The current evaluation focuses primarily on standard CPU vector extensions (x86 AVX and ARMv8-A); extending this to emerging RISC-V vector architectures or specialized matrix extensions (like Intel AMX or ARM SME) remains an open direction for future work.

Summary updated

BibTeX
@misc{oh2026exagemm,
  author = {Hyunwoo Oh and Suyeon Jang and Hanning Chen and Sanggeon Yun and Ryozo Masukawa and Mohsen Imani},
  title = {{ExaGEMM: Exploration Framework for CPU-Driven ML Inference via Associative In-Register Computing for Low-Bit GEMM}},
  year = {2026},
  eprint = {2607.14622},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.14622},
}
Figure