Improving Complex Moiré Removal with Generative Supervision

Xinyang Gu, Zhilu Zhang, Honglei Xu, Yanting Mei, Yukang Ding, Wangmeng ZuoarXiv 2026

TL;DR

Training deep learning models to remove complex moiré patterns from photos of electronic screens is notoriously difficult due to a lack of real-world paired training data. This paper introduces a novel data engine that leverages multiple generative foundation models to synthesize high-quality clean ground truths from unpaired real-world moiré images. By filtering these outputs through a strict patch-level quality control pipeline, the authors construct the WildMoiré dataset, which consistently boosts the performance of standard demoiréing models.

What Problem Does This Paper Address?

When you take a photo of a computer monitor, television, or public LED display, you often see ugly, wavy, or multicolored interference patterns overlaying the image. These are moiré artifacts, caused by geometric interference between the screen's pixel grid and the camera's sensor array.

While deep learning models have gotten quite good at removing simple, small-scale moiré patterns, they struggle with the complex, large-scale, multicolored bands frequently encountered in the wild (e.g., on outdoor billboards). Existing datasets are typically collected in highly controlled laboratory environments where a clean digital source image is displayed on a screen and carefully aligned with a captured photograph. However, for public displays or images scraped from the web, obtaining the original clean digital file is impossible. This data scarcity severely limits the generalization capability of current demoiréing models.

Methods

Instead of manually capturing paired data, the authors propose using the rich visual priors of large generative AI models to create "generative supervision." Because no single generative model is perfect—some aggressively remove moiré but hallucinate new content, while others preserve content but leave residual artifacts—the authors deploy a multi-prior framework using five different models: GPT-Image-2, Nano-Banana-2, SDXL, FLUX.2, and Qwen-Image-Edit.

The core innovation lies in their systematic data engine pipeline:

  1. Screen Localization: They use an object detection model (Sa2VA) to automatically detect screen boundaries and crop out the moiré-affected regions.
  2. Candidate Generation: The five foundation models generate clean candidate images based on targeted prompts.
  3. Spatial & Photometric Alignment: To fix spatial shifting and color mismatches introduced by the generative models, they apply global and dense optical flow alignment (via GlueStick and FlowFormer) followed by a linear 3×3 RGB color transformation.
  4. Patch Filtering & Selection: Images are chopped into 1024×1024 patches. Low-texture patches are discarded. Crucially, they use the A-FINE metric—which adaptively balances content fidelity and image naturalness—to score the candidates against the original corrupted patch. The highest-scoring candidate is selected as the ground truth (GT). If no candidate significantly improves upon the input, the entire patch group is rejected to avoid training on hallucinations.

Additionally, they introduce a Scale Transformation Data Augmentation strategy, randomly rescaling images during training to help models adapt to the highly scale-sensitive nature of moiré frequencies.

Datasets

The paper introduces two new datasets:

  • WildMoiré (Training Set): Contains 6,832 high-quality moiré-GT pairs at 1024×1024 resolution, curated via their generative data engine. The distribution of selected ground truths was dominated by GPT-Image-2 (62.73%) and Nano-Banana-2 (17.97%), supplemented by the open-source models.
  • Evaluation Benchmark (Test Set): A completely independent test set of 247 pairs with authentically captured clean ground truths, created by carefully adjusting camera distances and angles in real-world scenes to eliminate moiré physically.

For comprehensive training, WildMoiré was mixed with existing controlled datasets, namely UHDM and DCID.

Key Insights and Ideas

  • Generative Models as Supervisors, Not Restorers: While foundation models like GPT-Image-2 are powerful, they are too prone to hallucinations and content drift to be used directly as inference-time demoiréing tools. Using them offline as a data generation engine allows researchers to filter out their mistakes while keeping their powerful structural priors.
  • The Power of Multi-Prior Complementarity: Relying on a single generative model introduces systematic bias. By pitting commercial closed-source models (which are visually appealing but aggressive) against fine-tuned open-source models (which are conservative but structurally faithful), the pipeline selects the "local winner" for every specific image patch.
  • Scale Matters: Moiré patterns change drastically depending on how far the camera is from the screen. Simple scale augmentation during training yields massive generalization gains.

Key Results

The authors evaluated their dataset by fine-tuning three distinct model architectures: a CNN (ESDNet), a diffusion-UNet (SDXL), and a diffusion-Transformer (Qwen-Image-Edit).

Quantitative Improvements

Incorporating the WildMoiré dataset yielded substantial, consistent improvements across all full-reference fidelity metrics:

  • ESDNet: PSNR increased from 21.50 dB to 23.37 dB (+1.87 dB).
  • SDXL: PSNR increased from 21.90 dB to 23.56 dB (+1.66 dB).
  • Qwen-Image-Edit: PSNR increased from 22.23 dB to 23.93 dB (+1.70 dB).

Significant boosts were also observed in structural similarity (SSIM) and perceptual metrics (LPIPS, MUSIQ, TOPIQ).

Qualitative Improvements

As shown in the paper's visual comparisons, baseline models trained only on traditional datasets left behind severe color bands and waves. Models trained with WildMoiré successfully recovered clean text, sharp object boundaries, and original textures without introducing artificial distortions.

Limitations and Future Work

Despite the rigorous filtering, the authors note that generative supervision remains an approximation of true digital ground truth. Subtle hallucinations, minor text alterations, or slight color inconsistencies can still occasionally bypass the automated A-FINE filter.

To mitigate this, future work will explore integrating more advanced quality-assessment models, leveraging Vision-Language Models (VLMs) for semantic verification, and enforcing stricter downstream geometric constraints to guarantee text and fine-structure preservation.

Summary updated

BibTeX
@misc{gu2026improving,
  author = {Xinyang Gu and Zhilu Zhang and Honglei Xu and Yanting Mei and Yukang Ding and Wangmeng Zuo},
  title = {{Improving Complex Moiré Removal with Generative Supervision}},
  year = {2026},
  eprint = {2608.17883},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.17883},
}
Figure