Deep learning models are notoriously compute-heavy, primarily due to General Matrix Multiplications (GEMM) in dense layers. Quantization mitigates this by compressing high-precision weights (e.g., FP16) into low-bit representations (e.g., 2-bit or 4-bit integers). However, standard hardware cannot directly multiply an FP16 activation by a 2-bit quantized index. Consequently, traditional systems must perform on-the-fly dequantization—unpacking and converting the compressed weights back to floating-point values before executing standard multiply-accumulate (MAC) operations.
As G. Park et al. observe in LUT-GEMM: Quantized Matrix Multiplication based on LUTs for Efficient Inference in Large-Scale Generative Language Models, this dequantization overhead severely bottlenecks large language models (LLMs) during their autoregressive generation phase, where memory bandwidth is already at a premium.
Trading Arithmetic for Memory Retrieval
To eliminate this overhead, a growing body of research flips the execution paradigm: instead of dequantizing weights to perform arithmetic, we precompute the possible mathematical outcomes and store them in a Look-Up Table (LUT).
When a high-precision activation vector arrives during inference, the system computes its product against all possible discrete weight configurations (or centroids) in the quantization codebook. Because the weight space is highly constrained, the number of possible outcomes is small. Once this temporary table is built, the actual matrix multiplication is transformed from a compute-bound task into a memory-retrieval task. The quantized weights simply act as indices to fetch the precomputed results, which are then accumulated.
As J. Wei et al. demonstrate with T-MAC in T-MAC: CPU Renaissance via Table Lookup for Low-Bit LLM Deployment on Edge, this strategy bypasses dequantization entirely, aligning execution with the architectural strengths of edge CPUs that handle memory access and basic integer addition far more efficiently than sustained floating-point math.
Subspace Splitting and Product Quantization
For high-dimensional vectors, precomputing a table for an entire row or column would lead to a combinatorial explosion. To keep lookup tables small and cache-friendly, the input space must be divided into smaller, independent chunks—a technique rooted in Product Quantization (PQ).
Early work by J. Wu et al. in Quantized Convolutional Neural Networks for Mobile Devices and Shoot to Know What: An Application of Deep Networks on Mobile Devices pioneered this for convolutional layers. By splitting kernels along the channel dimension, they allowed precomputed inner products to be reused across overlapping spatial windows. Similarly, Q. Dai et al. leveraged this concept in Optimal Bayesian Hashing for Efficient Face Recognition, turning high-dimensional face feature classification into a fast memory-read task.
By mapping input subspaces to precomputed result prototypes, modern frameworks achieve massive reductions in computational complexity. For instance, N. Gupta et al. show in TabConv: Low-Computation CNN Inference via Table Lookups that substituting floating-point arithmetic with subspace table lookups can reduce standard arithmetic operations by over 99% while maintaining high accuracy.
Hardware Optimization and Modern Architectures
Shifting from compute-heavy to memory-heavy patterns requires careful co-design with hardware architectures. On general-purpose processors, D. C. Ganji et al. show in DeepGEMM: Accelerated Ultra Low-Precision Inference on CPU Architectures using Lookup Tables that SIMD-optimized lookup tables can accelerate ultra-low-precision (2-bit) CNN execution, outperforming industry-standard 8-bit implementations.
This approach scales naturally to complex, modern architectures like Mixture-of-Experts (MoE) and vision-language models. In MoE models, X. Yin et al. introduce in CodeQuant: Unified Clustering and Quantization for Enhanced Outlier Smoothing in Low-Precision Mixture-of-Experts specialized LUT kernels that precompute the products of activations and weight centroids, bypassing traditional low-precision bottlenecks on both CPUs and GPUs. For multi-modal detectors, Q. Lou et al. propose a Dictionary-Lookup-Transformation in Lite-MDETR: A Lightweight Multi-Modal Detector, replacing dense linear layers with efficient lookups and scalings to better match mobile cache-access patterns. Even vocabulary projections in translation models can be optimized; F. Zhang et al. demonstrate in Accelerating Neural Machine Translation with Partial Word Embedding Compression that computing values for shared cluster centroids first allows high-dimensional matrix multiplications to be replaced by low-cost lookup operations.
To maximize energy efficiency, the authors of FIGLUT: An Energy-Efficient Accelerator Design for FP-INT GEMM Using Look-Up Tables designed a custom, conflict-free hardware accelerator. By precomputing all possible partial sums of input activations and using quantized weight patterns as indices, the hardware shifts the execution burden entirely away from power-hungry arithmetic logic units.
Eliminating Multiplications via Hashing and Sub-Bit Networks
Can we push this paradigm to its logical extreme and eliminate linear operations altogether? D. W. Blalock et al. address this in Multiplying Matrices Without Multiplying by introducing MADDNESS, an algorithm that replaces linear projections with nonlinear hash functions and learned quantization tables, completely avoiding multiply-add operations during inference. In a similar vein for Transformer architectures, N. Ding et al. present MemoryFormer : Minimize Transformer Computation by Removing Fully-Connected Layers, which replaces traditional fully-connected layers with locality-sensitive hashing and in-memory lookup tables to retrieve pre-stored vector representations.
Even within Binary Neural Networks (BNNs), where weights are restricted to 1-bit, lookup tables can eliminate computational redundancies. Y. Jeon et al. show in BiQGEMM: Matrix Multiplication with Lookup Table For Binary-Coding-based Quantized DNNs that pre-calculating dot products for small segments bypasses the costly "bit-unpacking" overhead that typically slows down low-precision execution.
Finally, when the diversity of binary kernel patterns is strictly limited, networks can compress below the 1-bit threshold. As shown in Sub-bit Neural Networks: Learning to Compress and Accelerate Binary Neural Networks and by Y. Wang in Compacting Binary Neural Networks by Sparse Kernel Selection, restricting a layer to a tiny "sub-codebook" of unique kernel configurations allows hardware to pre-calculate and store all possible convolution results. During inference, active bitwise convolutions are entirely replaced by simple memory queries, unlocking massive throughput gains on edge devices.
Key Foundational Work
Shoot to Know What: An Application of Deep Networks on Mobile Devices (2016) — contributed 3 concept elements to this direction.
Optimal Bayesian Hashing for Efficient Face Recognition (2015) — contributed 1 concept elements to this direction.
Quantized Convolutional Neural Networks for Mobile Devices (2016) — contributed 1 concept elements to this direction.