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

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

23 May 2024arXiv:2405.14917archive 2025-07-28

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%.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2405.14917")

Code

Syntology Ran 7 of 13 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 5 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Aaronhuang-778/SliM-LLM officialmentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 7 ran; 0 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
5ran
6unverified

Licence: 13 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from Aaronhuang-778/SliM-LLM. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

ampscaler_get_grad_norm Aaronhuang-778/SliM-LLM/slim-llm-plus/utils.py official repository ran no licence file found · pointer only · c07dba9529e937b7 · report
find_layers Aaronhuang-778/SliM-LLM/slim-llm/modelutils.py official repository ran · our draft was wrong no licence file found · pointer only · a9e7f2cdf016b88b · report
find_layers Aaronhuang-778/SliM-LLM/slim-llm-plus/models/models_utils.py official repository ran no licence file found · pointer only · 904cd61df2fe8fb9 · report
make_disjoint_window Aaronhuang-778/SliM-LLM/slim-llm-plus/models/models_utils.py official repository ran no licence file found · pointer only · 4df9168e0a0c38eb · report
sort_layers_by_params Aaronhuang-778/SliM-LLM/slim-llm-plus/parallel_utils.py official repository ran no licence file found · pointer only · aaa7723c864e0a5e · report
truncate_number Aaronhuang-778/SliM-LLM/slim-llm-plus/models/transformation.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 94587954e392b665 · report
truncate_number Aaronhuang-778/SliM-LLM/slim-llm-plus/models/models_utils.py official repository ran fingerprinted no licence file found · pointer only · 4e53fbbdfa160f7d · report
assign_layers_to_gpus Aaronhuang-778/SliM-LLM/slim-llm-plus/parallel_utils.py official repository unverified no licence file found · pointer only · 7e3ef1ed347af0f3 · report
create_logger Aaronhuang-778/SliM-LLM/slim-llm-plus/utils.py official repository unverified no licence file found · pointer only · 87877d0c60858bff · report
get_lowest_occupied_gpu Aaronhuang-778/SliM-LLM/slim-llm-plus/parallel_utils.py official repository unverified no licence file found · pointer only · 3c6439a3c61dd2bb · report
get_pile Aaronhuang-778/SliM-LLM/slim-llm-plus/datautils.py official repository unverified no licence file found · pointer only · 3b51341ed1a0b73e · report
get_ptb Aaronhuang-778/SliM-LLM/slim-llm-plus/datautils.py official repository unverified no licence file found · pointer only · bd4f416e271c2fb5 · report
get_wikitext2 Aaronhuang-778/SliM-LLM/slim-llm-plus/datautils.py official repository unverified no licence file found · pointer only · 85420819f7a0df4a · report

Tasks

Natural Language UnderstandingQuantization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections