LUT-LLM: Efficient Large Language Model Inference with Memory-based Computations on FPGAs

Zifan He, Shengyu Ye, Rui Ma, Yang Wang, Jason Cong · DOI

The Challenge: FPGAs vs. GPUs in the LLM Era

Deploying Large Language Models (LLMs) for edge applications—such as personal AI assistants or smart home devices—requires highly efficient, single-batch inference. Historically, FPGAs have been the preferred hardware for such tasks due to their fine-grained data control and low power consumption. However, recent GPU-centric optimizations like FlashAttention and GPTQ have narrowed this gap. When competing on pure arithmetic throughput (multiply-accumulate or MAC operations), FPGAs often fall behind because they possess fewer dedicated computational units than modern GPUs like the NVIDIA A100.

Motivation for LUT-LLM: Leveraging FPGA's superior on-chip memory resources to overcome arithmetic limitations compared to GPUs.

To revitalize FPGAs as competitive platforms, LUT-LLM pivots to a different architectural advantage: distributed on-chip memory. Modern FPGAs, such as the AMD V80, offer significantly more on-chip memory units (up to 14.9x more than an A100). The core challenge addressed by this research is how to effectively map billion-parameter LLM computations into memory lookups without exceeding capacity limits or compromising model accuracy.

Methods: Memory-Based Computation via Co-VQ

Instead of calculating dot products on the fly using power-hungry arithmetic units, LUT-LLM pre-computes the results and stores them in lookup tables (LUTs). To make this feasible for massive models, the authors introduce Activation-Weight Co-Quantization (Co-VQ).

The Co-VQ process: Pre-computing dot-product lookup tables for weight and activation centroids to enable memory-based inference.

Key Technical Innovations:

  • 2D Lookup Tables: By applying Vector Quantization (VQ) to both weights and activations, the system maps vectors to representative "centroids." The dot products of these centroids are pre-calculated and stored in 2D LUTs. During inference, the hardware simply uses the centroid indices to retrieve the result.
  • Bandwidth-Aware Parallel Centroid Search: To prevent the search for the closest activation centroid from becoming a bottleneck, LUT-LLM employs a custom hardware unit. This unit balances parallel pipeline chains with a reduction tree, effectively hiding search latency behind data loading times.
  • Spatial-Temporal Hybrid Architecture: The design uses a hybrid execution model where attention layers run in a dataflow manner while linear layers run sequentially. This optimization saves approximately 14% of on-chip buffer space, which is then reallocated to store larger, more accurate LUTs.

Evaluation and Datasets

The authors evaluated LUT-LLM using the Qwen-3 1.7B model. The model was pre-trained for VQ using the FineWeb dataset and fine-tuned on WikiQA. Accuracy benchmarks were conducted across standard datasets, including GLUE, SQuAD v2, and MMLU-Pro. A custom training pipeline was developed to support the unique activation-weight co-quantization scheme required for the memory-based architecture.

Key Results and Insights

Prototyped on an AMD Alveo V80 FPGA, LUT-LLM demonstrates that memory-based operations are significantly more efficient than traditional math for LLM inference:

  • Superior Efficiency: LUT-LLM achieved 1.72x higher energy efficiency than an NVIDIA A100 (running optimized INT8 kernels) and 4.1x higher efficiency than an AMD MI210 GPU.
  • Reduced Latency: The system delivered 1.66x lower end-to-end latency compared to the MI210 GPU for single-batch inference.
  • Competitive Accuracy: Despite aggressive quantization (equivalent to W2A3), the model maintained high performance, suffering only a 1.2% drop in geomean accuracy on GLUE/SQuAD compared to standard SmoothQuant INT8 baselines.
  • Scalability: Performance modeling suggests that LUT-LLM can scale to 32B parameter models while maintaining a 2.16x energy efficiency lead over the A100.

Limitations and Future Work

While promising, the current VQ training process is GPU-memory intensive, limiting the training context window to 512 tokens. Additionally, the accelerator's hardware parameters currently require manual tuning. Future work will focus on automating the hardware generation process, exploring low-bit attention mechanisms, and scaling the architecture to multi-FPGA systems utilizing next-generation High Bandwidth Memory (HBM).

Summary updated

BibTeX
@inproceedings{he2026lut,
  author = {Zifan He and Shengyu Ye and Rui Ma and Yang Wang and Jason Cong},
  title = {{LUT-LLM: Efficient Large Language Model Inference with Memory-based Computations on FPGAs}},
  booktitle = {FCCM},
  year = {2026},
  doi = {10.1109/fccm68464.2026.00027},
}
Figure