arXiv:2611.05294cs.CVNov 2026

Manuscript Offprint

arXiv:2611.05294

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

Yunan Wu, Bin Sun, Partha Acharjee, Xiaoyu Wang

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. Existing 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=13N = 13 experts. A router, trained with the model, sends every image patch to k=5k = 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 ×4, DIV2K ×8, and Flickr2K ×4). The full version of the report will be released soon.

1. Introduction

A scanned family photograph is usually blurry from the lens and the scan, grainy from the film, marked by compression bands, covered by dust and scratches from the print, and much lower in resolution than people now want to view. Every defect is present at the same time. Each defect has its own severity and is limited to its own part of the image. This is the ordinary case in consumer photography, and we call it high-order mixed degradation. The required output quality is much higher. A result is acceptable only if it still looks

Figure

Figure 1. Wonder 4 at a glance. Top: a low-quality (LQ) input photograph, a map showing which expert each patch (a small region of the image) prefers in one block, and the enhanced output. Colors are expert indices. Bottom: the LQ image passes through LL blocks. In each block a router sends every patch to 5 of 13 experts (green cells). Because every patch chooses its own experts, a photograph with several defects is corrected in one pass with no task label and no degradation detector.

correct at full resolution, with no softened edge, no invented texture, and no visible boundary between corrected and untouched regions. That is the quality a photo retoucher aims for, and the quality we mean by professional-grade. These corrections conflict with each other. Removing noise also removes film grain. Keeping the grain leaves the blur uncorrected. Removing a scratch adds false texture if the same correction is applied to a clean sky. A model that improves this photograph must decide not only how strongly to retouch each region but where, and it must apply incompatible corrections to different regions of one image.

Task-specific models for super-resolution, denoising, deblurring, compression-artifact removal and damage repair are each trained on a degradation pipeline built for one task and have never seen this combination of defects. Running them one after another has three drawbacks: the order of the corrections must be chosen in advance, each model works on the invented detail of the one before it, and a detector is needed to decide which model runs. Unified models were introduced to solve this problem, but they all stop for the same reason. They condition on a global description of the degradation, whether inferred as a code [9] or prompt [10], borrowed from a vision-language model [11], written or planned as text [12, 13], predicted as the predominant class [20], or set by a task flag [21]. One description for the whole image cannot say which region each correction belongs to, and getting that description needs a second network, whose mistakes limit the whole result. This limitation also shows in how the field evaluates these models. The standard test combines denoising, deraining, dehazing, deblurring and low-light enhancement [22], and the corrections missing from that test are exactly the localized ones. Neither pipelines of separate models nor these unified models handle high-order mixed degradation. A pipeline never sees the combined defects and cannot apply conflicting corrections without detectors and a fixed order. A unified model that conditions on one global description cannot assign incompatible corrections to different regions of the picture.

Because the image can be split into patches, a mixture of experts (MoE) is a good match: it computes a combination of corrections at every patch, rather than one decision about which task is present. In language modeling the standard design is already fixed. An MoE network replaces each dense layer with an MoE layer of structurally identical experts and a linear router that selects a few experts for each input [1, 2, 4, 6–8], and the same layer is used without change in generative image models [24]. Image restoration has not adopted it. Existing restoration mixtures either select experts once per image or replace the experts with prompts, adapters, or whole models chosen by an external degradation estimator [14–19]. Most of them also take a rule from language models: every expert should be used equally. This is right when the experts do the same job, and harmful when a correction belongs on only a few patches. Scratch removal is one such case, since a scratch covers only a small part of the image.

We propose Wonder 4, which is the first MoE architecture for image quality enhancement. Its experts are N = 13 structurally identical small networks, one MoE layer per block of the backbone, selected k = 5 at a time per patch by a router local to that block. The router needs no estimator, so each patch is routed where its own defect occurs. One rule adapts the recipe to photographs. We add a bias to the scores the router uses when it chooses experts [5, 6]. Each expert must be selected for at least a minimum share of the patches. If an expert is selected less often than this minimum, that bias increases until the router selects it often enough. Once an expert is above the minimum, the bias stops increasing, so a correction that belongs in only a few places stays there. Other models cover many defects by adding extra parts. Wonder 4 uses the standard mixture and adds nothing else: no second network to classify the damage, no prompts, no mask, no second processing step, and no separate path for each task. Wonder 4 is released in a consumer application.

References (37)