HarmoQ: Harmonized Post-Training Quantization for High-Fidelity Image

Hongjun Wang, Jiyuan Chen, Xuan Song, Yinqiang ZhengarXiv 2025 · DOI

Introduction

Deep learning models for Single-Image Super-Resolution (SISR), such as SwinIR, have set new benchmarks for image quality. However, their high computational and memory requirements pose significant challenges for deployment on resource-constrained edge devices. Post-Training Quantization (PTQ) offers a promising solution by converting high-precision weights and activations into low-bit integers without the need for extensive retraining. Despite its potential, traditional PTQ methods often suffer from substantial quality degradation at ultra-low bitwidths (e.g., 2-bit or 4-bit) because they treat weight and activation quantization as independent processes.

The Asymmetry of Quantization Errors

A core contribution of this work is the discovery of a fundamental asymmetry in how quantization affects image restoration. Through empirical analysis, the researchers found that weight quantization primarily impacts structural integrity, as reflected in lower Structural Similarity (SSIM) scores, leading to blurred textures and edges. In contrast, activation quantization predominantly affects pixel-level accuracy, impacting Peak Signal-to-Noise Ratio (PSNR) and global attributes like brightness and contrast.

PSNR/SSIM trade-offs and visual comparison between weight and activation quantization.

This observation suggests that weights act as "restoration priors" encoding structural knowledge, while activations carry the specific intensity information of the input. HarmoQ addresses this by jointly optimizing both components to harmonize their interaction.

Methodology: The HarmoQ Framework

HarmoQ introduces a three-stage optimization strategy to mitigate quantization errors:

  1. Structural Residual Calibration (SRC): To preserve high-frequency details, SRC proactively adjusts weights to compensate for the structural loss induced by activation quantization. It employs a Laplacian filter as a subspace projection operator, focusing optimization on textures and edges where human perception is most sensitive.
  2. Harmonized Scale Optimization (HSO): Recognizing that weights and activations have different statistical distributions, HSO uses a closed-form mathematical solution to determine an optimal scaling factor. This balances the "quantization difficulty" between the two, ensuring neither component dominates the total error.
  3. Adaptive Boundary Refinement (ABR): The final stage involves fine-tuning clipping boundaries through iterative gradient descent. ABR maintains the balance established by HSO while further refining the quantization range for maximum fidelity.

Experimental Results

The HarmoQ framework was evaluated on standard benchmarks including Set5, Set14, B100, Urban100, and Manga109 using the DF2K dataset for calibration.

Quantitative and Qualitative Performance

HarmoQ consistently outperformed state-of-the-art PTQ methods like 2DQuant and DOBI. For instance, at 2-bit quantization, it achieved a 0.46 dB PSNR improvement on the Set5 dataset. Qualitatively, HarmoQ excels at preserving sharp textures—such as animal fur or architectural details—that often become "muddy" or aliased under conventional quantization schemes.

Efficiency and Deployment

Beyond accuracy, HarmoQ demonstrates significant practical benefits. On an NVIDIA A100 GPU, the framework achieved a 3.2× inference speedup and a 4× reduction in memory footprint compared to full-precision models. The calibration process is also efficient, typically requiring only 12-18 minutes, making it suitable for rapid deployment cycles.

Conclusion

HarmoQ represents a significant step forward in making high-fidelity image restoration models deployable on mobile and edge hardware. By harmonizing the quantization of weights and activations based on their distinct roles in image reconstruction, it achieves superior performance at ultra-low bitwidths. Future research may extend these principles to other restoration tasks such as denoising and deblurring, or explore data-free quantization scenarios where calibration data is unavailable.

Summary updated

BibTeX
@misc{wang2025harmoq,
  author = {Hongjun Wang and Jiyuan Chen and Xuan Song and Yinqiang Zheng},
  title = {{HarmoQ: Harmonized Post-Training Quantization for High-Fidelity Image}},
  year = {2025},
  eprint = {2511.05868},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.05868},
}
Figure