Reproduce “LUT-NN: Empower Efficient Neural Network Inference with Centroid Learning and Table Lookup” 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
Xiaohu Tang, Yang Wang, Ting Cao, Li Lyna Zhang, Qi Chen, Deng Cai, Yunxin Liu, Mao Yang
LUT-NN introduces a system that enables efficient Deep Neural Network inference by replacing complex linear computations with table lookups, powered by a novel differentiable centroid learning method. This approach achieves accuracy comparable to original full-precision models while demonstrating reductions of up to 16x in FLOPs, 7x in model size, and 6.8x in end-to-end inference latency on commodity CPUs.
Key insights
- Centroids can be made differentiable and optimized end-to-end with the global DNN loss function, enabling accurate table lookup-based inference across multiple layers.
- Dynamically learning the temperature parameter for `softmax` during training significantly improves convergence and final accuracy compared to fixed or annealed schedules.
- Careful software optimization, leveraging techniques like SIMD shuffle instructions and memory access patterns, allows efficient table lookup inference on existing general-purpose hardware, overcoming the lack of native support.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.