atlas

Research map / Large language models / Agents, code and math

LibAMM: Empirical Insights into Approximate Computing for Accelerating Matrix Multiplication

NeurIPS 2024 · Large language models › Agents, code and math · approach: Software engineering agents · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Empirical benchmark of twelve approximate matrix multiplication (AMM) algorithms plus two exact MM baselines across real-world matrices, memory-stall profiling, dataset attributes, and four downstream tasks, released as the LibAMM toolkit.

Problem

Existing AMM literature gives contradictory guidance on which approximation strategy to use, relies on synthetic data, and uses inconsistent implementations and baselines, so practical AMM selection is unclear.

Approach

A unified static-compiled C++ (LibTorch) implementation of twelve AMM algorithms benchmarked under a common protocol on real MatrixMarket matrices, with micro-architectural stall analysis and downstream-task evaluation, plus an open-source toolkit.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use CRS instead of LTMMMatrix multiplication · ECOprocessing latency: 0.10 -> 0.10No clear effect
Use CRS instead of LTMMMatrix multiplication · BUSprocessing latency: 60.60 -> 1.88Helped
Use CRS instead of LTMMMatrix multiplication · BUSAMM error: 0.0000 -> 1.0000Hurt
Use INT8 instead of LTMMMatrix multiplication · ECOprocessing latency: 0.10 -> 0.01Helped
Use SMP-PCA instead of LTMMMatrix multiplication · BUSprocessing latency: 60.60 -> 6.97Helped
Use CRS instead of LTMMUnitary Transformation · UTprocessing latency: 213.36 -> 10.93Helped
Use COOFD instead of LTMMMachine Learning Inference · MLIApproximation Impact Factor: 0 -> 0.6799Hurt
Enable GPU modeCRS · ECOprocessing latency: 0.13 -> 3.29Hurt
Enable GPU modeSMP-PCA · BUSprocessing latency: 4.5 -> 3.69Helped
Increase tuning parameter ω (ablation)Most AMM algorithms · Synthetic 2500 × 2500 matricesAMM errorHelped
Increase tuning parameter ω (ablation)Most AMM algorithms · Synthetic 2500 × 2500 matricesprocessing latencyHurt
Increase numeric-value skewness (ablation)AMM algorithms · Synthetic matricesAMM errorHurt

Surprising findings

Limitations

Experimental setup

Datasets: MatrixMarket ECO MatrixMarket DWAVE MatrixMarket AST MatrixMarket UTM MatrixMarket RDB MatrixMarket ZENIOS MatrixMarket QCD MatrixMarket BUS SIFT10K MNIST CIFAR100 synthetic torch::rand and Zipf matrices

Benchmarks: MatrixMarket matrices SIFT10K PCA MNIST MLP training CIFAR100 inference quantum unitary transformation

Metrics: processing latency Frobenius AMM error application error impact factor processor stall cycle proportion

Baselines: NLMM LTMM INT8 CRS CS COOFD BLOCKLRA FASTJLT VQ PQ RIP SMP-PCA

Builds on: CRS count sketch product quantization SMP-PCA MADDNESS

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy