LUT Tensor Core: A Software-Hardware Co-Design for LUT-Based Low-Bit LLM Inference

Zhiwen Mo, Lei Wang, Jianyu Wei, Zhichen Zeng, Shijie Cao, Lingxiao Ma, Naifeng Jing, Ting Cao, Jilong Xue, Fan Yang, Mao Yang · DOI

TL;DR

Researchers from Microsoft Research and several universities have proposed LUT Tensor Core, a software-hardware co-design that accelerates low-bit Large Language Model (LLM) inference. By replacing traditional multiplications with optimized lookup tables (LUTs) and custom hardware, they achieved up to an 8.2× end-to-end speedup and a 1.44× improvement in compute density compared to state-of-the-art accelerators.

What Problem Does This Paper Address?

Large Language Models are massive; a model like Llama-2-70B requires 140GB of memory just for its weights in FP16 precision. To make deployment feasible, researchers use low-bit quantization, shrinking weights to 4-bit, 2-bit, or even 1-bit.

However, this creates a mismatch: weights are low-precision, but activations (the data flowing through the model) remain high-precision (FP16 or INT8). This necessitates mixed-precision matrix multiplication (mpGEMM). Current hardware, like NVIDIA GPUs, doesn't support mpGEMM natively. Instead, they must "dequantize" weights back to high precision before multiplying, which is inefficient and wastes the potential benefits of low-bit quantization.

Figure 2: (a) GEMM, (b) Indirect mpGEMM with dequantiza- tion, (c) Direct mpGEMM for low-bit LLM inference.

Methods

The authors propose a Lookup Table (LUT) approach. Instead of performing millions of multiplications, they precompute the dot products of small activation tiles and store them in a table. The low-bit weight values then act as indices to simply "look up" the result.

The core contribution is a software-hardware co-design called LUT Tensor Core:

  1. Software Optimizations:
    • Operator Fusion: They move the table precomputation from hardware to software, fusing it with preceding operations (like LayerNorm) to eliminate overhead.
  2. Weight Reinterpretation: By mathematically remapping weights to be symmetric around zero, they exploit table symmetry to cut the required LUT storage in half.
  3. Table Quantization: They quantize the precomputed LUT entries themselves to INT8, further reducing storage and simplifying hardware logic.
  4. Hardware Customization:
    • Simplified LUT Units: The hardware uses smaller multiplexers (MUXes) and eliminates negation circuits thanks to the software-side symmetry optimizations.
  5. Elongated Tiling: They identified that "elongated" tiling shapes (reusing one table across many weight columns) are far more efficient for LUT-based designs than the square tiles used in traditional Tensor Cores.
  6. System Integration: They introduced a new instruction set, LMMA (LUT-based Matrix Multiply-Accumulate), and a dedicated compilation stack to automate kernel generation for this new hardware.
Figure 6: LUT Tensor Core workflow.

Datasets

The researchers evaluated their design using several prominent open-source LLMs:

  • Llama-2 (7B, 13B, and 70B versions)
  • OPT (175B)
  • BLOOM (176B)
  • BitNet (a 1.58-bit model)

They used standard benchmarks like WikiText-2 (for perplexity/accuracy) and MMLU (for multi-task accuracy) to ensure their optimizations didn't degrade model performance.

Key Insights and Ideas

  • Symmetry is Free Storage: The "aha moment" for reducing area was realizing that if weights are symmetric (e.g., -1 and 1), the LUT result for one is just the negative of the other. This allows halving the hardware table size.
  • Moving Complexity to Software: By moving table precomputation into the compiler/software layer and fusing it with existing operators, the hardware can stay lean and focused purely on fast lookups.
  • Shape Matters: Traditional Tensor Cores like square tiles for data movement balance. LUT-based cores, however, thrive on "elongated" tiles that maximize the reuse of a single precomputed table across as many weights as possible.

Key Results

  • Efficiency: The LUT Tensor Core achieves a 4× to 6× reduction in power and area compared to conventional MAC-based Tensor Cores.
  • Compute Density: It delivers a 1.44× higher compute density and energy efficiency than previous state-of-the-art LUT accelerators (like UNPU).
  • End-to-End Speedup: In full model simulations, it showed inference speedups ranging from 2.06× to 5.51× (and up to 8.2× in specific configurations) for low-bit models like BitNet and quantized Llama models.
  • Accuracy: Using INT8 table quantization resulted in negligible accuracy loss (e.g., a 0.01 difference in WikiText-2 perplexity for Llama-2-7B).

Limitations and Future Work

  • Inference Only: Currently, the design is optimized for the forward pass (inference). Training requires high-precision gradients and optimizer states in the backward pass, which are not yet compatible with this low-bit LUT approach.
  • Attention Bottlenecks: While it excels at the linear layers (GEMM), the authors note that in very long-context scenarios, the attention mechanism itself becomes the bottleneck, suggesting a need for future work on KV cache quantization using similar LUT techniques.
  • Sparsity: The authors suggest that combining their LUT approach with model sparsity (skipping zero values) is a promising but unexplored direction for even further efficiency gains.

Summary updated

BibTeX
@inproceedings{mo2025lut,
  author = {Zhiwen Mo and Lei Wang and Jianyu Wei and Zhichen Zeng and Shijie Cao and Lingxiao Ma and Naifeng Jing and Ting Cao and Jilong Xue and Fan Yang and Mao Yang},
  title = {{LUT Tensor Core: A Software-Hardware Co-Design for LUT-Based Low-Bit LLM Inference}},
  booktitle = {ISCA},
  year = {2025},
  doi = {10.1145/3695053.3731057},
}
Figure