Wonder 4: A Mixture-of-Experts Recipe for Image Quality Enhancement

Yunan Wu, Bin Sun, Partha Acharjee, Xiaoyu WangarXiv 2026

TL;DR

Wonder 4 is a novel Mixture-of-Experts (MoE) model designed to tackle "high-order mixed degradation"—the messy reality where a single photograph is simultaneously blurry, grainy, and scratched. By routing individual image patches to specialized experts and replacing the standard "equal use" MoE rule with a "minimum share" bias, the model applies localized, conflicting corrections in a single pass without needing task labels or degradation detectors.

What Problem Does This Paper Address?

In the real world, image degradation is rarely uniform. A scanned family photo might have lens blur in the background, film grain throughout, and physical scratches in specific corners. Existing restoration models typically treat the entire image with a single global description or a fixed pipeline of tasks (e.g., denoise then deblur).

This creates a "conflict of corrections." For instance, a model aggressive enough to remove a physical scratch might accidentally erase stars in a night sky or fine texture in a clean region. Conversely, preserving film grain often leaves actual noise uncorrected. To achieve professional-grade results, a model must decide not just how much to retouch, but where to apply specific, often incompatible, operations.

Methods

The authors introduce Wonder 4, an architecture that adapts the Mixture-of-Experts (MoE) framework—popularized by Large Language Models like DeepSeek—to the domain of image restoration.

Per-Patch Routing

The model consists of a backbone with $L$ blocks. In each block, the standard dense layer is replaced by an MoE layer containing $N=13$ structurally identical experts. For every image patch, a linear router selects the top $k=5$ experts. This allows the model to "specialize" different parts of the network for different defects.

The Wonder 4 inference path shows how an image is patchified and routed through $L$ blocks, with only a subset of experts active for any given patch.

The "Minimum Share" Bias

The most significant technical departure from standard MoE training is how expert load is balanced. Standard MoE (from NLP) forces "equal use," pushing every expert to be used equally often. In image restoration, this is counterproductive; an expert trained to fix rare physical scratches shouldn't be forced to process clean sky patches.

Wonder 4 replaces this with a minimum share bias. It ensures every expert is used enough to be trained, but once an expert reaches a minimum threshold of use, the router is free to ignore it for patches where its specific "skill" isn't needed. This allows for true specialization without the "averaging out" effect seen in standard models.

Training Objective

The model is trained end-to-end using a combination of:

  • Enhancement Loss: A weighted sum of MSE, LPIPS (perceptual loss), and an adversarial term.
  • MoE-specific Penalties: A $z$-loss to stabilize router scores, an entropy penalty to encourage sparse expert selection, and a cosine similarity penalty to prevent experts from learning redundant corrections.

Datasets

Wonder 4 was evaluated on several standard benchmarks, though it was not trained on them:

  • DIV2K validation: Tested under "wild x4" (mixed blur, noise, and compression) and "bicubic x8" (extreme upscaling).
  • Flickr2K: A large-scale set (2,650 images) used to ensure the reliability of average scores under unknown x4 degradation.

Key Insights and Ideas

  • Implicit Segmentation: The router effectively performs a "soft" segmentation of the image based on degradation type. As shown in Figure 4, early layers treat the image uniformly, but later layers clearly distinguish between different scene elements (e.g., person vs. background) to apply targeted corrections.
  • No External Detectors: Unlike many "all-in-one" restoration models, Wonder 4 requires no degradation classifier, task labels, or prompts. The routing logic is learned entirely from the data.
  • Conflict Resolution: By allowing experts to overlap (selecting 5 out of 13), the model can blend corrections where defects coexist, such as blur and grain appearing in the same region.
Routing maps visualize how the model's internal decisions follow the structure of the scene.

Key Results

Wonder 4 achieved state-of-the-art (SOTA) performance on perceptual metrics across all test settings, outperforming both specialized enhancement systems (like Real-ESRGAN and SeeSR) and large open-weight pipelines (like FLUX.1 ControlNet and Qwen-Image-Edit).

  • Perceptual Superiority: On Flickr2K, it improved LPIPS by 19% and DISTS by 27% over the strongest published baseline.
  • The PSNR Trade-off: Interestingly, Wonder 4 does not have the highest PSNR (Peak Signal-to-Noise Ratio). The authors note this is a common trade-off: models that add realistic detail often score lower on PSNR (which favors "safe," blurry outputs) but significantly higher on perceptual metrics that humans care about.
  • Qualitative Success: The model successfully handles complex real-world cases, such as removing scratches from a textured surface without destroying the underlying detail.
Qualitative showcase of Wonder 4 handling mixed defects like grain, blur, and physical damage in a single pass.

Limitations and Future Work

While the paper demonstrates impressive results, a few areas remain open for exploration:

  • Computational Efficiency: While MoE is "sparse" (only $k$ experts are active), the total number of parameters ($N$ experts) still impacts memory footprint.
  • Expert Interpretability: The authors identify experts only by index. Further study could reveal exactly what "features" or "degradations" specific experts have specialized in.
  • Full Report: The authors mention that a full version of the report with more extensive metrics is forthcoming.

Wonder 4 is currently released as part of a consumer application by Topaz Labs, marking a successful transition from research to production-grade AI.

Summary updated

Abstract

A real photograph is often blurry, grainy, compressed, scratched, and low-resolution at the same time. Each defect has its own severity and its own place in the image. The corrections for these defects conflict with each other. Exist- ing models describe the whole image with one description, so they cannot say where each correction belongs. To solve this problem, we present Wonder 4, a mixture-of-experts (MoE) model for image quality enhancement. It corrects several defects of a real photograph at the same time, each in the region where it occurs. Every block of the model holds a mixture of N = 13 experts. A router, trained with the model, sends every image patch to k = 5 of them. No degradation classifier, mask, prompt, detector, or task label is used. Another issue is that standard MoE training, taken from language models, pushes every expert toward equal use. Equal use applies every correction everywhere, even where it is not needed. We replace this rule with a bias that only sets a minimum share of use. Across all patches, an expert used less than this minimum gets higher router scores until it is selected again. An expert above the minimum is not changed, so no expert is forced to be used as often as the others. The bias needs no extra loss. The method adds no extra module and no extra processing step. We evaluate Wonder 4 on DIV2K and Flickr2K, against five published methods and three open-weight pipelines. It reaches the best LPIPS, DISTS, and NIQE on all three test settings (DIV2K x4, DIV2K x8, and Flickr2K x4).

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
DIV2KWonder 4LPIPS18%split: val
Source quote
L413: Wonder 4 still improves on it by 18% in LPIPS and 16% in
DIV2KWonder 4LPIPS25%split: val
Source quote
L414: DISTS on DIV2K ×4, by 25% and 22% on DIV2K ×8, and
Flickr2KWonder 4LPIPS10%×4, unknown degradation; relative improvement over Qwen-Image-Edit
Source quote
L415: by 10% and 15% on Flickr2K.
DIV2KWonder 4DISTS16%split: val
Source quote
L413: Wonder 4 still improves on it by 18% in LPIPS and 16% in
DIV2KWonder 4DISTS22%split: val
Source quote
L414: DISTS on DIV2K ×4, by 25% and 22% on DIV2K ×8, and
Flickr2KWonder 4DISTS15%×4, unknown degradation; relative improvement over Qwen-Image-Edit
Source quote
L415: by 10% and 15% on Flickr2K.
Reported baseline / comparator measurements (5)
BenchmarkMethodMetricScoreProtocol / Evidence
DIV2KReal-ESRGAN baselineLPIPS0.4047split: val
Source quote
L464: 0.4047
DIV2KReal-ESRGAN baselineDISTS0.2107split: val
Source quote
L465: 0.2107
DIV2KReal-ESRGAN baselineNIQE4.36split: val
Source quote
L466: 4.36
DIV2KReal-ESRGAN baselineLPIPS0.3998split: val
Source quote
L468: 0.3998
DIV2KReal-ESRGAN baselineDISTS0.2016split: val
Source quote
L469: 0.2016
BibTeX
@misc{wu2026wonder,
  author = {Yunan Wu and Bin Sun and Partha Acharjee and Xiaoyu Wang},
  title = {{Wonder 4: A Mixture-of-Experts Recipe for Image Quality Enhancement}},
  year = {2026},
  eprint = {2611.05294},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.05294},
}
Figure