TL;DR
SQS (Sparse Quantized Sub-distributions) unifies neural network pruning and low-bit quantization into a single, elegant Bayesian variational learning framework. By combining a spike-and-slab prior with a Gaussian Mixture Model (GMM), SQS jointly learns which weights to remove and how to compress the rest, achieving significantly higher compression rates with minimal performance loss compared to traditional, isolated compression pipelines.
What Problem Does This Paper Address?
Deploying modern, large-scale deep neural networks (DNNs) on resource-constrained edge devices requires aggressive model compression. Typically, engineers turn to two primary techniques: weight pruning (removing unimportant weights by setting them to zero) and quantization (reducing the bit-width precision of the weights).
The catch? Most existing workflows treat these two steps as completely independent or sequential tasks. This disjointed approach overlooks the massive redundancies between pruning and quantization, often leading to severe "distributional shifts" from the original model and causing steep drops in accuracy. SQS addresses this gap by asking a fundamental question: Can we optimize pruning and quantization simultaneously within a unified mathematical framework to find a globally optimal, low-precision, sparse network?
Methods
The authors introduce SQS, a unified Bayesian framework that models network weights using a specialized variational posterior distribution.
The core architecture relies on two components:
- A Spike-and-Slab Component: The "spike" is a Dirac delta function at zero that mathematically drives weights to be pruned. The "slab" represents the distribution of the remaining active weights.
- A Gaussian Mixture Model (GMM) Slab: Instead of a standard continuous distribution for the slab, SQS uses a GMM. Each mixture component's mean acts as a learnable quantization level (a codebook value), bridging continuous optimization with discrete low-bit quantization.
Because calculating the exact Evidence Lower Bound (ELBO) for a combined spike-and-slab GMM is mathematically intractable, the authors derive a tight, closed-form approximation that evaluates the objective using coordinate-wise posterior means and dominant GMM components.
Furthermore, SQS introduces two clever inference-time strategies:
- Bayesian Averaging: Instead of greedily picking the single most likely weight value during deployment, SQS samples $M$ sparse, quantized models from the learned posterior and averages their predictions, heavily mitigating quantization noise.
- Outlier-Aware Windowing: To protect large-magnitude weight outliers (which are critical for Large Language Models), SQS uses a modified Interquartile Range (IQR) rule to partition weights into tail-sensitive windows before fitting the GMMs.
Datasets
The authors evaluated SQS across several diverse architectures and benchmarks:
- CIFAR-10 & CIFAR-100: Used to benchmark image classification performance on ResNet-18, ResNet-20, ResNet-32, and ResNet-50.
- SQuAD v1.1: Used to evaluate question-answering performance on a BERT-base model.
- SST-2 (GLUE Benchmark): Used to test text classification performance on modern large language models, specifically Llama3.2-1B and Qwen2.5-0.5B.
Key Insights and Ideas
- The Power of Joint Optimization: Treating pruning and quantization as a single optimization problem allows the model to navigate a much broader solution space, finding efficient representations that sequential pipelines completely miss.
- Spike-and-Slab Beats Gaussian Priors: Ablation studies revealed that spike-and-slab formulations are vastly superior to standard Gaussian alternatives at inducing true posterior sparsity, especially under aggressive compression targets.
- Bayesian Averaging as a Noise Buffer: Averaging predictions over a few posterior samples ($M=4$) consistently outperforms greedy weight selection, acting as an effective algorithmic shield against low-bit quantization noise.
- LLMs Need Tail-Fidelity: Standard uniform quantization windows distort the heavy-tailed weight distributions of transformers. SQS's outlier-aware windowing preserves these vital extreme values, preventing catastrophic accuracy drops in LLMs.
Key Results
SQS consistently outperformed state-of-the-art compression baselines (such as DGMS, AWQ, and GPTQ) across all tested models:
- ResNet-56: Achieved a massive 32× compression rate (2-bit quantization + 50% sparsity) while suffering a negligible 0.84% Top-1 accuracy drop on CIFAR-10.
- BERT-base: Reached a 32× compression rate on SQuAD v1.1 with an F1 score drop of just 1.66 points, significantly outperforming methods like OBC and PLATON.
- Llama3.2-1B: Attained a 21× compression rate on SST-2 with only a 1.48% accuracy drop, whereas competing GMM methods like DGMS collapsed entirely (46.67% drop) due to a failure to capture weight outliers.
Limitations and Future Work
Despite its strong performance, SQS has a few notable limitations:
- Data Dependency: SQS is a compression-aware training method that requires task-specific training data for fine-tuning. It cannot be used as a pure, data-free post-training quantization (PTQ) tool.
- Inference Latency: While Bayesian averaging improves robustness, running multiple posterior samples ($M>1$) increases computational overhead and latency during inference.
- Theoretical Gap: The paper provides strong consistency proofs for regression tasks on fully connected networks, but extending these theoretical guarantees to complex transformer architectures and classification settings remains an open area for future research.
Summary updated