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 "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.
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.
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