Lune

NeurIPS2024顶会

ShiftAddLLM: Accelerating Pretrained LLMs via Post-Training Multiplication-Less Reparameterization

Haoran You, Yipin Guo, Yichao Fu, Wei Zhou, Huihong Shi, Xiaofan Zhang, Souvik Kundu, Amir Yazdanbakhsh, Yingyan (Celine) Lin

摘要

Large language models (LLMs) have shown impressive performance on language tasks but face challenges when deployed on resource-constrained devices due to their extensive parameters and reliance on dense multiplications, resulting in high memory demands and latency bottlenecks. Shift-and-add reparameterization offers a promising solution by replacing costly multiplications with hardware-friendly primitives in both the attention and multi-layer perceptron (MLP) layers of an LLM. However, current reparameterization techniques require training from scratch or full parameter fine-tuning to restore accuracy, which is resource-intensive for LLMs. To address this, we propose accelerating pretrained LLMs through post-training shift-and-add reparameterization, creating efficient multiplication-free models, dubbed ShiftAddLLM. Specifically, we quantize each weight matrix into binary matrices paired with group-wise scaling factors. The associated multiplications are reparameterized into (1) shifts between activations and scaling factors and (2) queries and adds according to the binary matrices. To reduce accuracy loss, we present a multi-objective optimization method to minimize both weight and output activation reparameterization errors. Additionally, based on varying sensitivity across layers to reparameterization, we develop an automated bit allocation strategy to further reduce memory usage and latency. Experiments on five LLM families and eight tasks consistently validate the effectiveness of ShiftAddLLM, achieving average perplexity improvements of 5.6 and 22.7 points at comparable or lower latency compared to the most competitive quantized LLMs at 3 and 2 bits, respectively, and more than 80% memory and energy reductions over the original LLMs. Codes and models are available at https://github.com/GATECH-EIC/ShiftAddLLM.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 9 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • A Simple and Effective Pruning Approach for Large Language Models 引用了 Measuring Massive Multitask Language Understanding
  • A Simple and Effective Pruning Approach for Large Language Models 引用了 SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
  • EVA: Accelerating LLM Decoding via an Efficient Vector Quantization Architecture 引用了 ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformers
  • EVA: Accelerating LLM Decoding via an Efficient Vector Quantization Architecture 引用了 CodeGEMM: A Codebook-Centric Approach to Efficient GEMM in Quantized LLMs
  • EVA: Accelerating LLM Decoding via an Efficient Vector Quantization Architecture 引用了 SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
  • EVA: Accelerating LLM Decoding via an Efficient Vector Quantization Architecture 引用了 FIGLUT: An Energy-Efficient Accelerator Design for FP-INT GEMM Using Look-Up Tables
  • AnyBCQ: Hardware Efficient Flexible Binary-Coded Quantization for Multi-Precision LLMs 引用了 A Simple and Effective Pruning Approach for Large Language Models
  • AnyBCQ: Hardware Efficient Flexible Binary-Coded Quantization for Multi-Precision LLMs 引用了 Measuring Massive Multitask Language Understanding
  • AnyBCQ: Hardware Efficient Flexible Binary-Coded Quantization for Multi-Precision LLMs 引用了 SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
  • AnyBCQ: Hardware Efficient Flexible Binary-Coded Quantization for Multi-Precision LLMs 引用了 FIGLUT: An Energy-Efficient Accelerator Design for FP-INT GEMM Using Look-Up Tables
  • CodeGEMM: A Codebook-Centric Approach to Efficient GEMM in Quantized LLMs 引用了 A Simple and Effective Pruning Approach for Large Language Models
  • CodeGEMM: A Codebook-Centric Approach to Efficient GEMM in Quantized LLMs 引用了 FIGLUT: An Energy-Efficient Accelerator Design for FP-INT GEMM Using Look-Up Tables
  • Unifying Uniform and Binary-coding Quantization for Accurate Compression of Large Language Models 引用了 Measuring Massive Multitask Language Understanding
  • Unifying Uniform and Binary-coding Quantization for Accurate Compression of Large Language Models 引用了 SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
  • SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models 引用了 Measuring Massive Multitask Language Understanding
  • FIGLUT: An Energy-Efficient Accelerator Design for FP-INT GEMM Using Look-Up Tables 引用了 ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformers
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper9

  1. FIGLUT: An Energy-Efficient Accelerator Design for FP-INT GEMM Using Look-Up TablesGunho Park, Hyeokjun Kwon, Jiwoo Kim, Jeongin Bae 等HPCA 2025 · 10 次引用
  2. AnyBCQ: Hardware Efficient Flexible Binary-Coded Quantization for Multi-Precision LLMsGunho Park, Jeongin Bae, Beomseok Kwon, Byeongwook Kim 等ICLR 2026 · 8 次引用
  3. CodeGEMM: A Codebook-Centric Approach to Efficient GEMM in Quantized LLMsGunho Park, Jeongin Bae, Byeongwook Kim, Baeseong Park 等NeurIPS 2025 · 3 次引用
  4. EVA: Accelerating LLM Decoding via an Efficient Vector Quantization ArchitectureBowen Duan, Cong Guo, Chiyue Wei, Haoxuan Shan 等ISCA 2026 · 2 次引用
  5. Unifying Uniform and Binary-coding Quantization for Accurate Compression of Large Language ModelsSeungcheol Park, Jeongin Bae, Beomseok Kwon, Minjun Kim 等ACL 2025 · 1 次引用

它引用的 Paper29

  1. Measuring Massive Multitask Language UnderstandingDan Hendrycks, Collin Burns, Steven Basart, Andy Zou 等ICLR 2021 · 7,905 次引用
  2. FlashAttention: Fast and Memory-Efficient Exact Attention with IO-AwarenessTri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra 等NeurIPS 2022 · 5,493 次引用
  3. SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language ModelsGuangxuan Xiao, Ji Lin, Mickaël Seznec, Hao Wu 等ICML 2023 · 1,493 次引用
  4. ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale TransformersZhewei Yao, Reza Yazdani Aminabadi, Minjia Zhang, Xiaoxia Wu 等NeurIPS 2022 · 816 次引用
  5. A Simple and Effective Pruning Approach for Large Language ModelsMingjie Sun, Zhuang Liu, Anna Bair, J. Zico KolterICLR 2024 · 794 次引用

相关 Paper

  1. ShiftAddViT: Mixture of Multiplication Primitives Towards Efficient Vision TransformerHaoran You, Huihong Shi, Yipin Guo, Yingyan LinNeurIPS 2023 · 27 次引用
  2. SliM-LLM: Salience-Driven Mixed-Precision Quantization for Large Language ModelsWei Huang, Haotong Qin, Yangdong Liu, Yawei Li 等ICML 2025
  3. FlexQuant: A Flexible and Efficient Dynamic Precision Switching Framework for LLM QuantizationFangxin Liu, Zongwu Wang, JinHong Xia, Junping Zhao 等EMNLP Findings 2025 · 2 次引用
  4. Anda: Unlocking Efficient LLM Inference with a Variable-Length Grouped Activation Data FormatChao Fang, Man Shi, Robin Geens, Arne Symons 等HPCA 2025 · 15 次引用
  5. ShiftAddNet: A Hardware-Inspired Deep NetworkHaoran You, Xiaohan Chen, Yongan Zhang, Chaojian Li 等NeurIPS 2020 · 99 次引用
黄昏的海面,两侧是细线勾勒的悬崖