paper-with-me

Papers

SliM-LLM: Salience-Driven Mixed-Precision Quantization for Large Language Models

2024-05-23 · Wei Huang, Haotong Qin, Yangdong Liu, Yawei Li, Xianglong Liu, Luca Benini, Michele Magno, Xiaojuan Qi

Large language models (LLMs) achieve remarkable performance in natural language understanding but require substantial computation and memory resources. Post-training quantization (PTQ) is a powerful compression technique extensively investigated in LLMs. However, existing PTQ methods are still not ideal in terms of accuracy and efficiency, especially with below 4 bit-widths. Standard PTQ methods using group-wise quantization suffer difficulties in quantizing LLMs accurately to such low-bit, but advanced methods remaining high-precision weights element-wisely are hard to realize their theoretical hardware efficiency. This paper presents a Salience-Driven Mixed-Precision Quantization scheme for LLMs, namely SliM-LLM. The scheme exploits the salience distribution of weights to determine optimal bit-width and quantizers for accurate LLM quantization, while aligning bit-width partition to groups for compact memory usage and fast integer inference. Specifically, the proposed SliM-LLM mainly relies on two novel techniques: (1) Salience-Determined Bit Allocation utilizes the clustering characteristics of salience distribution to allocate the bit-widths of each group, increasing the accuracy of quantized LLMs and maintaining the inference efficiency; (2) Salience-Weighted Quantizer Calibration optimizes the parameters of the quantizer by considering the element-wise salience within the group, balancing the maintenance of salient information and minimization of errors. Comprehensive experiments show that SliM-LLM significantly improves the accuracy of LLMs at ultra-low bits, e.g., 2-bit LLaMA-7B achieves a 5.5-times memory-saving than original model on NVIDIA A800 GPUs, and 48% decrease of perplexity compared to the state-of-the-art gradient-free PTQ method. Moreover, SliM-LLM+, which is integrated from the extension of SliM-LLM with gradient-based quantizers, further reduces perplexity by 35.1%.

📄 PDF Abstract BibTeX arXiv:2405.14917

Code (1)

Aaronhuang-778/SliM-LLM 공식 구현 pytorch

Tasks

Natural Language UnderstandingQuantization

Similar Papers 제목 키워드 기반

CRB Analysis for Mixed-ADC Based DOA Estimation

2024-03-14 · Xinnan Zhang, Yuanbo Cheng, Xiaolei Shang, Jun Liu

We consider a mixed analog-to-digital converter (ADC) based architecture consisting of high-precision and one-bit ADCs with the antenna-varying threshold for direction of arrival (DOA) estimation using a uniform linear a…

QuantizationSparse Learning

Mix-QViT: Mixed-Precision Vision Transformer Quantization Driven by Layer Importance and Quantization Sensitivity

2025-01-10 · Navin Ranjan, Andreas Savakis

In this paper, we propose Mix-QViT, an explainability-driven MPQ framework that systematically allocates bit-widths to each layer based on two criteria: layer importance, assessed via Layer-wise Relevance Propagation (LR…

QuantizationSensitivity

MixLLM: LLM Quantization with Global Mixed-precision between Output-features and Highly-efficient System Design

2024-12-19 · Zhen Zheng, Xiaonan Song, Chuanjie Liu

Quantization has become one of the most effective methodologies to compress LLMs into smaller size. However, the existing quantization solutions still show limitations of either non-negligible accuracy drop or system ine…

MMLUQuantization

Task-Circuit Quantization: Leveraging Knowledge Localization and Interpretability for Compression

2025-04-10 · Hanqi Xiao, Yi-Lin Sung, Elias Stengel-Eskin, Mohit Bansal

Post-training quantization (PTQ) reduces a model's memory footprint by mapping full precision weights into low bit weights without costly retraining, but can degrade its downstream performance especially in low 2- to 3-b…

MathMMLUQuantizationText to SQL+1

MixDiT: Accelerating Image Diffusion Transformer Inference with Mixed-Precision MX Quantization

2025-04-11 · Daeun Kim, Jinwoo Hwang, Changhun Oh, Jongse Park

Diffusion Transformer (DiT) has driven significant progress in image generation tasks. However, DiT inferencing is notoriously compute-intensive and incurs long latency even on datacenter-scale GPUs, primarily due to its…

Image GenerationQuantization