QuantDemoire: Quantization with Outlier Aware for Image Demoiréing

Zheng Chen, Kewei Zhang, Xiaoyang Liu, Weihang Zhang, Mengfan Wang, Yifan Fu, Yulun Zhang · DOI

Abstract

QuantDemoire is a specialized post-training quantization (PTQ) framework designed to bring heavy image demoiréing models to edge devices without sacrificing image quality. By combining an outlier-aware quantizer with a frequency-aware calibration strategy, it reduces model parameters and computation by over 86% while outperforming existing quantization methods by more than 4 dB in 4-bit settings.

Introduction

Image demoiréing—the process of removing rainbow-colored stripes that appear when photographing digital screens—is a computationally intensive task. While modern deep learning models achieve high restoration quality, they typically involve millions of parameters and heavy floating-point operations, making them unsuitable for real-time use on smartphones or drones.

Example of moiré patterns in a screen-captured image.

Model quantization, which converts 32-bit floats to low-bit integers (e.g., 4-bit or 8-bit), is the standard solution for efficiency. However, standard quantization typically fails for demoiréing due to two main factors:

  1. Distribution Outliers: Extreme values in weights and activations stretch the quantization range, reducing precision for the majority of values.
  2. Banding Artifacts: Low-bit quantization destroys subtle color gradients, creating "staircase" effects in smooth regions.

Methodology

QuantDemoire introduces two novel components to address these challenges:

Outlier-Aware Quantizer

To handle activation outliers, the framework employs sampling-based range estimation, finding a quantization range that represents the main distribution rather than just the absolute maximum. For weights, a mixed-precision approach is used: approximately 0.5% of the most extreme weight values are kept in 16-bit floating point (FP16), while the remaining 99.5% are compressed to low-bit integers. This prevents outliers from disproportionately scaling the quantization grid.

Frequency-Aware Calibration

Standard calibration focuses on pixel-wise accuracy, which can overlook structural artifacts. QuantDemoire introduces a strategy targeting mid- and low-frequency components. By using a dedicated convolution kernel to extract these frequencies during parameter fine-tuning, the model learns to preserve smooth transitions and mitigate banding.

Key Results

The researchers evaluated QuantDemoire on three standard benchmarks: UHDM, FHDMi, and LCDMoire.

Quantitative PSNR comparison and qualitative results across different bit-widths.
  • Efficiency: At 4-bit (W4A4), the method reduces parameters and computation by 86.6%.
  • Accuracy: On the UHDM dataset at 4-bit, QuantDemoire outperformed the previous state-of-the-art (SVDQuant) by 4.01 dB in PSNR.
  • Visual Quality: Qualitative results demonstrate that QuantDemoire produces clean images visually indistinguishable from full-precision versions, whereas other methods leave "ghost" patterns or blocky artifacts.

Conclusion

QuantDemoire demonstrates that high-quality image restoration is possible even under aggressive quantization. By treating demoiréing as a frequency-sensitive problem and isolating weight outliers, the framework enables efficient deployment on mobile hardware. Future work will explore hardware-specific optimizations for mixed-precision operations and applying these techniques to other low-level vision tasks like deblurring.

Summary updated

BibTeX
@inproceedings{chen2026quantdemoire,
  author = {Zheng Chen and Kewei Zhang and Xiaoyang Liu and Weihang Zhang and Mengfan Wang and Yifan Fu and Yulun Zhang},
  title = {{QuantDemoire: Quantization with Outlier Aware for Image Demoiréing}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=xWKcMe90g4},
}
Figure