Manuscript Offprint

arXiv:2611.00464

Compression Technique Interactions in Small Language Models: A Factorial Ablation Study

Bhushit Nema, Siddharth Krishnamurthy, Anjali Kadiyala

Abstract

Deploying small language models on resource-constrained hardware requires compression, yet practitioners lack systematic guidance on how quantization, pruning, and post-compression recovery interact when combined. We present a factorial ablation study evaluating 72 compression configurations across four SLM architectures (2.7B–7B parameters), extended with a 48-configuration ordering analysis, benchmark accuracy validation on 30 compressed models, and robustness checks including multi-seed validation and full-corpus perplexity evaluation. INT8 quantization is effectively lossless (<0.5% accuracy degradation), while NF4 quantization combined with L1 magnitude pruning causes model collapse in all 16 tested combinations. LoRA-based fine-tuning reduces degraded perplexity by up to 97% after aggressive pruning; an ablation against standard fine-tuning without a teacher model shows the recovery is driven by LoRA adaptation itself rather than the distillation signal. Compression ordering shows no significant effect among viable configurations (ANOVA p=0.96p = 0.96) but determines viability for NF4+pruning combinations. INT8 quantization alone provides 40–45% memory reduction with no quality loss. On-device CPU deployment via llama.cpp confirms these findings transfer off the GPU: 4-bit quantization runs 46–54% faster than 8-bit for a perplexity difference under 0.5 points, while unstructured pruning yields no CPU latency or memory benefit, consistent with its dense storage format.

1 Introduction

In practice, when building and deploying language models across cloud, on-premise, and edge environments, the question is rarely whether to compress a model but rather which combination of techniques to apply and in what order. A 7B parameter model in half-precision occupies roughly 14GB of GPU memory, which exceeds the capacity of most embedded GPUs, mobile devices, and even some cloud inference endpoints. As a result, compression is not optional for most production deployments of small language models in the 2–7B parameter range.

*Equal contribution.

Three compression techniques dominate the practitioner's toolkit: quantization (reducing weight precision from 16-bit to 8-bit or 4-bit), pruning (zeroing out low-magnitude weights), and knowledge distillation (training a compressed model to match a teacher's output distribution, commonly applied to recover quality lost to compression). Each is well-studied in isolation [Dettmers et al., 2022, Frantar and Alistarh, 2023, Hinton et al., 2015]. What is missing is systematic evidence on how they behave in combination. Does quantizing a pruned model produce the same result as pruning a quantized model? Can distillation recover quality lost from both simultaneously? At what point does stacking cause outright failure? Prior work evaluates these techniques individually or in fixed pairs, but real deployments rarely use just one: a team targeting a Jetson Nano with 4GB of shared memory will likely need both quantization and pruning to fit a 4B model, and may want distillation to recover whatever quality was lost. A team deploying on an edge server with 16GB may only need quantization but wants to know whether adding pruning helps or hurts. Without systematic data, these decisions are made through trial and error.

We address this gap with a controlled factorial study. The ablation spans 72 compression configurations across four model architectures, with an additional 48 runs testing whether the sequence of compression operations matters. All experiments run on a single NVIDIA L40S GPU (ml.g6e.2xlarge cloud instance), ensuring consistent and comparable measurements. We validate our primary metric (WikiText-2 perplexity) against benchmark accuracy (MMLU, HellaSwag, ARC, BoolQ) on 30 compressed configurations, and confirm reproducibility through multi-seed validation across three random seeds. The study produces six principal contributions: (1) a complete 3×3×23 \times 3 \times 2 factorial design across four architectures, (2) a 48-configuration ordering analysis, (3) LoRA-based fine-tuning as a post-compression recovery mechanism with an ablation showing the teacher signal is not the critical component, (4) benchmark accuracy validation confirming perplexity as a reliable proxy, (5) on-device CPU deployment measurements (llama.cpp) across four memory tiers, and (6) robustness validation demonstrating seed independence and full-corpus perplexity consistency (r = 0.985 between 20-sample and 1,940-sample evaluation).

References (29)