PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
June 9, 20240 citationsOpen Access

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

View Full Paper
HYHaoran YouYGYipin GuoYFYichao Fu

Key Points

  • ShiftAddLLM enhances large language models by eliminating multiplications, thereby reducing latency bottlenecks.
  • Utilizing a multi-objective optimization approach, accuracy is maintained while optimizing memory usage.
  • Post-training shift-and-add reparameterization is applied, yielding notable savings in energy and computational resources across tasks and models. 80% reduction observed in original LLMs' resource consumption highlights the efficiency gained through this method.

Abstract

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.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

You et al. (2024) studied this question.

synapsesocial.com/papers/68e65872b6db6435875e794fhttps://doi.org/10.48550/arxiv.2406.05981
Ask AI
Helpful
Bookmark
Share
View Full Paper

Also Consider

Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context:

  1. 1One QuantLLM for ALL: Fine-tuning Quantized LLMs Once for Efficient Deployments2024
  2. 2SliM-LLM: Salience-Driven Mixed-Precision Quantization for Large Language Models2024 · 1 citations
  3. 3CLAQ: Pushing the Limits of Low-Bit Post-Training Quantization for LLMs2024 · 2 citations
  4. 4Simple and Scalable Strategies to Continually Pre-train Large Language Models2024 · 3 citations
  5. 5EfficientQAT: Efficient Quantization-Aware Training for Large Language Models2024 · 8 citations