MEC-Quant: Maximum Entropy Coding for Extremely Low Bit Quantization-Aware Training

Junbiao Pang, Tianyang Cai, Baochang ZhangarXiv 2025 · DOI

Abstract

Quantization-Aware Training (QAT) is a critical technique for deploying deep learning models on resource-constrained edge devices. However, at extremely low bit-widths (e.g., 2-bit), models often suffer from "feature collapse," where learned representations lose diversity and information. We present MEC-Quant, a novel QAT objective that maximizes the entropy of learned representations using a computationally efficient "minimal coding length" surrogate. By employing a Mixture-of-Experts (MoE) Taylor expansion and dynamic scheduling, MEC-Quant enables low-bit models to approach or even exceed the performance of full-precision counterparts.

Introduction

Reducing the precision of weights and activations—quantization—is essential for optimizing memory and power consumption. While 8-bit or 4-bit quantization is relatively mature, 2-bit quantization typically results in significant accuracy degradation. This paper identifies feature collapse as a primary culprit: the quantization process biases feature matrices toward low-rank configurations, effectively wasting the model's limited representational capacity. MEC-Quant addresses this by treating entropy maximization as a core training objective.

Methodology

MEC-Quant introduces a regularization framework designed to maintain high-dimensional feature diversity.

Minimal Coding Length Surrogate

Directly maximizing Shannon entropy in high-dimensional spaces is computationally prohibitive. MEC-Quant utilizes the "minimal coding length" from lossy data coding as a tractable proxy. This metric, derived from the log-determinant of the feature covariance matrix, quantifies the information content of the learned features.

Efficient Computation via MoE Taylor Expansion

To overcome the high cost of log-determinant calculations, the authors employ a Taylor expansion. Recognizing that neural activations often exhibit "long-tailed" distributions, they introduce a Mixture of Experts (MoE) approach. Multiple "experts" perform local Taylor expansions at different points across the distribution, ensuring both computational efficiency and approximation accuracy.

Overview of the MEC-Quant architecture (c) compared to standard QAT (a) and Knowledge Distillation (b).

Dynamic Weight Scheduling

The strength of the entropy regularization is controlled by a hyperparameter $\lambda$. A warm-up schedule is employed: $\lambda$ starts low to allow the model to learn task-specific features, then gradually increases to push the model toward a more diverse, high-entropy representation.

Experimental Results

The method was evaluated on CIFAR-10 and CIFAR-100 using ResNet and MobileNet architectures.

Performance Gains

MEC-Quant consistently outperforms the state-of-the-art LSQ baseline. For instance, on CIFAR-10 with a W2A4 configuration (2-bit weights, 4-bit activations), MEC-Quant achieved 89.98% accuracy on ResNet-18, compared to 88.36% for LSQ. On MobileNetV2, accuracy improved by nearly 3% over the baseline.

Information Retention

The effectiveness of MEC-Quant in preventing feature collapse is evidenced by the higher coding length values maintained during training compared to standard methods. As shown in the table below, MEC-Quant preserves significantly more information (higher minimal coding length) across various bit-widths than the LSQ baseline.

Comparison of minimal coding length (information content) between MEC-Quant and LSQ across different bit-widths.

Conclusion

MEC-Quant shifts the focus of quantization from error minimization to information preservation. By maximizing feature entropy, it prevents the geometric collapse of representations in low-bit spaces. Future work includes scaling the approach to larger datasets like ImageNet and exploring its application to Large Language Models (LLMs).

Summary updated

BibTeX
@misc{pang2025mec,
  author = {Junbiao Pang and Tianyang Cai and Baochang Zhang},
  title = {{MEC-Quant: Maximum Entropy Coding for Extremely Low Bit Quantization-Aware Training}},
  year = {2025},
  eprint = {2509.15514},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.15514},
}
Figure