On-device Deep Neural Network (DNN) inference consumes significant computing resources and development efforts. To alleviate that, we propose LUT-NN, the first system to empower inference by table lookup, to reduce inference cost. LUT-NN learns the typical features for each operator, named centroid, and precompute the results for these centroids to save in lookup tables. During inference, the results of the closest centroids with the inputs can be read directly from the table, as the approximated outputs without computations. LUT-NN integrates two major novel techniques: (1) differentiable centroid learning through backpropagation, which adapts three levels of approximation to minimize the accuracy impact by centroids; (2) table lookup inference execution, which comprehensively considers different levels of parallelism, memory access reduction, and dedicated hardware units for optimal performance. LUT-NN is evaluated on multiple real tasks, covering image and speech recognition, and nature language processing. Compared to related work, LUT-NN improves accuracy by 66% to 92%, achieving similar level with the original models. LUT-NN reduces the cost at all dimensions, including FLOPs ($\leq$ 16x), model size ($\leq$ 7x), latency ($\leq$ 6.8x), memory ($\leq$ 6.5x), and power ($\leq$ 41.7%).
Fast Matrix Multiplications for Lookup Table-Quantized LLMs
Massachusetts Institute of Technology(麻省理工学院);High School of Mathematics Plovdiv(普罗夫迪夫数学中学);Carnegie Mellon University(卡内基梅隆大学);MBZUAI(穆罕默德·本·扎耶德人工智能大学);Petuum Inc.(派图公司)
HGQ-LUT: Fast LUT-Aware Training and Efficient Architectures for DNN Inference
California Institute of Technology, Pasadena, CA, USA(加州理工学院);University of Bristol, UK(布里斯托大学);Imperial College London, UK(伦敦帝国理工学院);SLAC National Accelerator Laboratory, Menlo Park, CA, USA(SLAC国家加速器实验室)
LUT-KAN: Segment-wise LUT Quantization for Fast KAN Inference
Department of Theoretical and Applied Sciences (DiSTA)(理论与应用科学系);eCampus University(eCampus大学);Department of Intelligent Software Systems and Technologies(智能软件系统与技术系);School of Computer Science and Artificial Intelligence(计算机科学与人工智能学院);V.N. Karazin Kharkiv National University(V.N.卡扎林赫尔辛基国立大学)
LUT-Compiled Kolmogorov-Arnold Networks for Lightweight DoS Detection on IoT Edge Devices
Department of Theoretical and Applied Sciences, eCampus University(理论与应用科学系,eCampus大学);Department of Intelligent Software Systems and Technologies, School of Computer Science and Artificial Intelligence, V.N. Karazin Kharkiv National University(智能软件系统与技术系,计算机科学与人工智能学院,V.N. 卡拉津基尔基夫国立大学)
From Arithmetic to Logic: The Resilience of Logic and Lookup-Based Neural Networks Under Parameter Bit-Flips
The University of Texas at Austin(德克萨斯大学奥斯汀分校);Federal University of Rio de Janeiro(里约热内卢联邦大学);Instituto de Telecomunicações, Porto, Portugal(葡萄牙波尔图电信研究所);Google LLC(谷歌公司)
LUT Tensor Core: A Software-Hardware Co-Design for LUT-Based Low-Bit LLM Inference
Imperial College London(帝国理工学院伦敦分校);Microsoft Research London, UK(微软研究院伦敦, UK);Peking University(北京大学);Microsoft Research Beijing, China(微软研究院北京, China);University of Science(科学大学);University of Washington(华盛顿大学);Microsoft Research Seattle, USA(微软研究院西雅图, USA);Shanghai Jiao Tong University Shanghai, China(上海交通大学上海, China);Microsoft Research(微软研究院);Shanghai Jiao Tong University(上海交通大学)
Shrinking the Giant : Quasi-Weightless Transformers for Low Energy Inference
The University of Texas at Austin(德克萨斯大学奥斯汀分校);NVIDIA Research(英伟达研究院);The University of Texas at San Antonio(德克萨斯大学圣安东尼奥分校);IBM T.J. Watson Research Center(IBM T.J.沃森研究中心);Federal University of Rio de Janeiro(里约热内卢联邦大学);Universidade do Porto(波尔图大学);Instituto de Telecomunicações(电信研究所)
LL-ViT: Edge Deployable Vision Transformers with Look Up Table Neurons
Department of Electrical and Computer Engineering, The University of Texas at Austin(电气与计算机工程系,德克萨斯大学奥斯汀分校);The University of Texas at San Antonio(德克萨斯大学圣安东尼奥分校);Federal University of Rio de Janeiro(里约热内卢联邦大学);Instituto de Telecomunicações(电信研究所)