Reproduce “BiQGEMM: Matrix Multiplication with Lookup Table For Binary-Coding-based Quantized DNNs” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Yongkweon Jeon, Baeseong Park, Se Jung Kwon, Byeongwook Kim, Jeongin Yun, Dongsoo Lee

BiQGEMM, developed by Samsung Research, introduces a matrix multiplication method utilizing lookup tables for deep neural networks with binary-coding-based quantized weights. This approach efficiently replaces arithmetic operations with table lookups, resulting in substantial speedups on CPUs and up to 30x faster performance on GPUs compared to baseline kernels for 1-3 bit quantized models.

Key insights

  • The inherent redundancy in dot product computations involving real-valued inputs and binary-coded weights allows for efficient pre-computation and storage in lookup tables.
  • The substantial performance overhead associated with unpacking bit-packed quantized weights on general-purpose hardware can be bypassed by directly using the packed bits as lookup indices.
  • Optimizing matrix multiplication for quantized DNNs by replacing arithmetic operations with table lookups can achieve a significant speedup, especially when the number of possible lookup table entries (2^μ) is much smaller than the output size (m).

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.