This study presents an ensemble technique, SPQ (SVD-Pruning-Quantization), for large language model (LLM) compression that combines variance-retained singular value decomposition (SVD), activation-based pruning, and post-training linear quantization. Each component targets a different source of inefficiency: i) pruning removes redundant neurons in MLP layers, ii) SVD reduces attention projections into compact low-rank factors, iii) and 8-bit quantization uniformly compresses all linear layers. At matched compression ratios, SPQ outperforms individual methods (SVD-only, pruning-only, or quantization-only) in perplexity, demonstrating the benefit of combining complementary techniques. Applied to LLaMA-2-7B, SPQ achieves up to 75% memory reduction while maintaining or improving perplexity (e.g., WikiText-2 5.47 to 4.91) and preserving accuracy on downstream benchmarks such as C4, TruthfulQA, and GSM8K. Compared to strong baselines like GPTQ and SparseGPT, SPQ offers competitive perplexity and accuracy while using less memory (6.86 GB vs. 7.16 GB for GPTQ). Moreover, SPQ improves inference throughput over GPTQ, achieving up to a 1.9x speedup, which further enhances its practicality for real-world deployment. The effectiveness of SPQ's robust compression through layer-aware and complementary compression techniques may provide practical deployment of LLMs in memory-constrained environments. Code is available at: https://github.com/JiaminYao/SPQ_LLM_Compression/
Figures & tables
Figure 1: SPQ Framework. 1) Attention layers are compressed using variance-retained SVD, where the preserved rank is determined by a variance threshold. 2) MLP layers, per-layer activation means are computed and mapped to pruning ratios via a log-scale formula. 3) Finally, 8-bit linear quantization with different scaling strategies is applied to all linear layers.
Table 3: Performance of LLaMA-2-7B compressed by SPQ and baselines on: i) 2 language modeling datasets with perplexity ( ↓ ), WikiText-2 ( Thoma et al., 2025 ) and C4 ( Raffel et al., 2020 ) ; ii) 5 reasoning datasets with individual and average accuracy ( ↑ ), OpenBookQA ( Mihaylov et al., 2018 ) , ARC ( Clark et al., 2018 ) , WinoGrande ( Sakaguchi et al., 2021 ) , HellaSwag ( Zellers et al., 2019 ) , PIQA ( Bisk et al., 2020 ) ; 2 reasoning datasets with BLEU ( ↑ ), TruthfulQA-1 and TruthfulQA-2 ( Lin et al., 2021 ) ; and 1 reasoning dataset with Exact Match Flexible-Extract Accuracy ( ↑ ) GSM8K ( Cobbe et al., 2021 ) .
Figure 7: SPQ and individual method perplexities.
Model
MEM (GB)
Perplexity
Before
After
Ratio
Before
After
Change
LLaMA-3.2-1B
5.99
2.27
62%
7.88
8.62
+0.75
LLaMA-3.2-3B
14.42
4.77
67%
6.86
6.39
-0.47
LLaMA-2-7B
26.95
7.05
74%
5.47
4.71
-0.76
OPT-1.3B
5.68
1.72
70%
14.80
12.76
-2.04
OPT-2.7B
11.12
3.11
72%
12.81
11.49
-1.31
Table 4: WikiText-2 perplexity and weight memory of LLaMA, OPT, Vicuna, and Mistral models before and after applying SPQ (MLP pruning with max ratio 0.05, attention SVD with 0.94 variance threshold, and 8-bit linear quantization).