MSQ: Memory-Efficient Bit Sparsification Quantization

Seokho Han, Seoyeon Yoon, Jinhee Kim, Dongwei Wang, Kang Eun Jeon, Huanrui Yang, Jong Hwan Ko

TL;DR

This paper introduces MSQ, a novel method for memory-efficient bit-level quantization in deep neural networks. MSQ significantly reduces training time and GPU memory requirements by avoiding explicit bit-level parameter splitting and instead directly regularizing the least significant bits (LSBs) of weights. This approach achieves competitive accuracy while enabling faster training and greater compression, making it ideal for resource-constrained edge devices.

What Problem Does This Paper Address?

Deep neural networks (DNNs) are increasingly deployed on devices with limited computational and memory resources, such as mobile phones and edge devices. Quantization, the process of reducing the precision of model weights (e.g., from 32-bit floating-point to lower-bit integers), is a key technique to address this. While uniform quantization reduces model size, it can lead to significant accuracy degradation. Mixed-precision quantization, where different layers have different bit precisions, offers a better balance between efficiency and accuracy. However, finding the optimal mixed-precision configuration is a complex search problem.

Recent work has explored bit-level sparsity, where individual bits within a quantized weight are treated as trainable and encouraged to become zero, allowing for dynamic mixed-precision. While promising, these methods often require instantiating a trainable parameter for each bit, leading to substantial increases in training complexity and GPU memory usage. This paper aims to mitigate these resource demands by enabling bit-level sparsity and mixed-precision quantization without the overhead of explicit bit-level parameter splitting.

Methods

The core of MSQ lies in its novel approach to inducing bit-level sparsity and enabling mixed-precision quantization without explicit bit-level parameter splitting.

  • RoundClamp Quantizer: Instead of directly quantizing weights to a fixed low-bit representation, MSQ introduces a "RoundClamp" quantizer. This quantizer is designed to effectively compute the values of the least significant bits (LSBs) of a quantized weight. Crucially, it provides a gradient direction that facilitates the sparsification of these LSBs.
  • LSB Regularization: MSQ applies an L1 regularization to the computed LSBs. This encourages the LSBs to become zero, effectively reducing the precision of the weights without needing to explicitly split them into individual bit parameters. This direct regularization of LSBs is a key departure from prior methods.
  • Hessian-Aware Aggressive Pruning: To further optimize the pruning process, MSQ incorporates Hessian information. The Hessian trace, combined with the weight difference between quantized and full-precision models, is used as a sensitivity metric for each layer. This metric guides an "aggressive pruning" strategy: layers with lower sensitivity (indicating they can tolerate more perturbation) have their LSBs pruned more aggressively (e.g., by 2 bits), while more sensitive layers are pruned more cautiously (e.g., by 1 bit). This adaptive approach allows for faster training and better accuracy-compression trade-offs.

The overall training process involves standard quantization-aware training (QAT) with the addition of LSB regularization and periodic Hessian-aware pruning steps.

Datasets

The paper evaluates MSQ on several standard datasets:

  • CIFAR-10: Used for training and evaluating ResNet-20 models.
  • ImageNet: Used for training and evaluating ResNet-18, ResNet-50, MobileNetV3-Large, DeiT-T/S, and Swin-T models.

No new benchmarks were introduced; the focus was on evaluating MSQ's performance on existing architectures and datasets.

Key Insights and Ideas

  • Direct LSB Regularization is Sufficient: The paper demonstrates that explicit bit-level parameter splitting is not necessary for effective bit-level sparsity and mixed-precision quantization. Directly regularizing the LSBs computed by a specialized quantizer can achieve similar or better results with significantly reduced overhead.
  • Hessian-Aware Pruning Accelerates Convergence: Incorporating layer sensitivity information derived from the Hessian allows for a more intelligent and adaptive pruning strategy. This leads to faster training and a better accuracy-compression trade-off by prioritizing pruning in less sensitive layers.
  • RoundClamp Quantizer's Gradient Direction Matters: The design of the RoundClamp quantizer is crucial. Its specific formulation ensures that the gradients for LSB sparsification are well-behaved, guiding weights towards desired low-precision states without causing detrimental deviations.
  • Efficiency Gains are Substantial: The avoidance of explicit bit-level parameters leads to significant reductions in trainable parameters, training time, and GPU memory, making advanced quantization techniques more accessible.

Key Results

MSQ demonstrates significant improvements in training efficiency and resource usage:

  • Parameter Reduction: Achieves up to 8.00x reduction in trainable parameters compared to previous bit-level quantization methods like BSQ and CSQ.
  • Training Time Reduction: Reports up to 86% reduction in training time compared to BSQ and CSQ. For example, on ResNet-50, MSQ achieved a 5.3x speedup over BSQ and a 14.2x speedup over CSQ.
  • Memory Efficiency: Allows for larger batch sizes before hitting out-of-memory limits, further contributing to faster training.
  • Accuracy: Maintains competitive accuracy, often matching or slightly exceeding previous methods at comparable compression rates. For instance, on ResNet-20 with CIFAR-10, MSQ achieved higher compression ratios than CSQ with minimal accuracy drop, and even improved accuracy in the 2-bit case.
  • Generalization: Shows effectiveness across various architectures, including CNNs (ResNet, MobileNetV3) and Vision Transformers (DeiT, Swin-T).

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that while MSQ significantly reduces training complexity, it still requires quantization-aware training.
  • The effectiveness of the Hessian-aware pruning relies on accurate Hessian computation, which can itself be computationally intensive, though the paper suggests it's applied periodically.
  • The paper focuses on weight quantization; activation quantization is handled separately or kept at full precision in some experiments.
  • Future Work:
    • The authors suggest that MSQ's efficiency makes it feasible to train large-scale networks, implying future work could explore even larger models and more complex tasks.
  • Further exploration of the interplay between LSB regularization strength, pruning interval, and Hessian-aware pruning parameters could yield even better results.
  • Extending MSQ to jointly optimize weight and activation quantization could be a natural next step.

Summary updated

BibTeX
@inproceedings{han2025msq,
  author = {Seokho Han and Seoyeon Yoon and Jinhee Kim and Dongwei Wang and Kang Eun Jeon and Huanrui Yang and Jong Hwan Ko},
  title = {{MSQ: Memory-Efficient Bit Sparsification Quantization}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure