paper-with-me

홈 › Papers

SLiM: One-shot Quantization and Sparsity with Low-rank Approximation for LLM Weight Compression

2024-10-12 · Mohammad Mozaffari, Amir Yazdanbakhsh, Maryam Mehri Dehnavi

Conventional model compression techniques for LLMs address high memory consumption and slow inference challenges but typically require computationally expensive retraining to preserve accuracy. In contrast, one-shot compression methods eliminate retraining cost, but struggle to achieve accuracy comparable to dense models. This paper presents SLIM, a new one-shot compression framework that holistically integrates hardware-friendly quantization, sparsity, and low-rank approximation into a unified process. First, we formulate the quantization process using a probabilistic approach (SLIM-Quant) that enables us to apply uniform quantization. Then, we use an existing one-shot pruning method to apply semi-structured sparsity on top of the quantized weights. Finally, to compensate for the introduced aggregated quantization and sparsity error, we use a novel saliency function with unique invertible and additive features that enables us to mathematically compute the value of low-rank adapters. SLIM improves model accuracy by up to 5.66% (LLaMA-2-7B) for 2:4 sparsity with 4-bit weight quantization, outperforming prior methods. Models compressed with SLIM achieve up to 4.3x and 3.8x on Nvidia RTX3060 and A100 GPUs, respectively. Additionally, they achieve up to 0.23x end-to-end memory reduction in comparison to their dense counterparts. We also propose an optional PEFT recipe that further improves accuracy by up to 1.66% (LLaMA-2-13B) compared to SLIM without fine-tuning.

📄 PDF Abstract BibTeX arXiv:2410.09615

Code (1)

mohammad-mozaffari/slim 공식 구현 pytorch

Tasks

Model CompressionNatural Language Understandingparameter-efficient fine-tuningQuantization

Methods 이 논문이 사용한 방법론

Pruning 설명 없음

Similar Papers 제목 키워드 기반

SlimDiff: Training-Free, Activation-Guided Hands-free Slimming of Diffusion Models

2025-09-25 · Arani Roy, Shristi Das Biswas, Kaushik Roy arxiv

Diffusion models (DMs), lauded for their generative performance, are computationally prohibitive due to their billion-scale parameters and iterative denoising dynamics. Existing efficiency techniques, such as quantizatio…

Enabling High-Sparsity Foundational Llama Models with Efficient Pretraining and Deployment

2024-05-06 · Abhinav Agarwalla, Abhay Gupta, Alexandre Marques, Shubhra Pandit 외

Large language models (LLMs) have revolutionized Natural Language Processing (NLP), but their size creates computational bottlenecks. We introduce a novel approach to create accurate, sparse foundational versions of perf…

Arithmetic ReasoningCode GenerationInstruction FollowingQuantization

Sparsity-Aware Distributed Learning for Gaussian Processes with Linear Multiple Kernel

2023-09-15 · Richard Cornelius Suwandi, Zhidi Lin, Feng Yin, Zhiguo Wang 외

Gaussian processes (GPs) stand as crucial tools in machine learning and signal processing, with their effectiveness hinging on kernel design and hyper-parameter optimization. This paper presents a novel GP linear multipl…

Gaussian Processes

Vision Transformer Slimming: Multi-Dimension Searching in Continuous Optimization Space

2022-01-03 · CVPR 2022 1 · Arnav Chavan, Zhiqiang Shen, Zhuang Liu, Zechun Liu 외

This paper explores the feasibility of finding an optimal sub-model from a vision transformer and introduces a pure vision transformer slimming (ViT-Slim) framework. It can search a sub-structure from the original model …

GPU

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

2024-05-23 · Wei Huang, Haotong Qin, Yangdong Liu, Yawei Li 외

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…

Natural Language UnderstandingQuantization