Routing Denoising Experts by Local Signal-to-Noise Ratio

Real camera and scanner images are not equally noisy everywhere. In a phone photo, the shadows are buried in noise while the highlights are nearly clean. In an MRI slice, noise strength follows the geometry of the receiver coil. One denoising network must therefore handle very different problems inside a single image, and its parameters get pulled in conflicting directions. A mixture of experts is a layer made of several parallel sub-networks, with a small gating model that decides which sub-networks process each input. It is the standard architectural answer to this kind of conflict. The difficulty is deciding what the gate should look at. A gate that reads noisy image features is itself corrupted by the noise. It also tends to confuse fine texture with noise.

This note proposes a simple alternative. Each image token is sent to experts according to its local signal-to-noise ratio (SNR), computed from a physical noise model applied to a heavily smoothed copy of the image. The gate does not need to learn this signal. Generative diffusion models already show that routing experts by noise level works when the noise level is the same across the image: Switch-DiT routes on the global diffusion timestep, which is a global SNR. Our claim is that the right generalization to real sensors is to route on per-token SNR. Done carefully, this gives a gate that is robust to noise, has no seams between regions, and is load-balanced by construction. The note is also honest about the main threat: a dense network that is simply given the SNR map as an input may capture most of the benefit.

Core Claim

For signal-dependent noise, the noise variance at a pixel is close to a known function of the clean intensity there. For camera sensors this is the Poisson-Gaussian model, $\sigma^2 = a\,s + b$, where $s$ is the clean signal and $a, b$ are the sensor's shot-noise and read-noise coefficients (SIDD, SVNR). The per-token routing signal is

$$\rho(u) = \frac{\bar{s}(u)}{\hat{\sigma}(u)},$$

where $\bar{s}(u)$ is the average intensity of the noisy image over a window around token $u$. The noise level $\hat{\sigma}(u)$ is $\sqrt{a\,\bar{s}(u) + b}$ when the sensor's coefficients are known. Otherwise it comes from a strongly smoothed noise-map estimator of the kind used in VDN (Toward Blind Noise Modeling and Removal).

Averaging $n$ pixels shrinks independent noise by a factor of $\sqrt{n}$, so $\bar{s}$, and therefore $\rho$, is far more stable than any statistic computed from local texture. Because $\rho$ depends on brightness rather than on high-frequency content, a richly textured region is not mistaken for a noisy one. This targets the entanglement of edges and noise that both classical estimators (Local Scale Controlled Anisotropic Diffusion) and learned variance networks suffer from.

The hypothesis has two parts. First, experts assigned to bands of $\log\rho$ will beat both content-routed experts and dense networks at matched compute. Second, the gain will be concentrated in the extreme low- and high-SNR bands, where conflict between noise regimes should be worst.

Research Program

The base denoiser is a U-shaped transformer or convolutional restoration network. Its feed-forward blocks are replaced by mixture layers, each with one always-active shared expert and $M$ banded experts. The shared expert follows the shared-plus-routed design of DiT-MoE.

The bin edges along $\log\rho$ start at the training-set quantiles of $\rho$, so every expert receives an equal share of tokens by construction. This removes the auxiliary load-balancing loss that Switch-DiT found to interfere with its exponential-moving-average weights. Each token activates the two experts whose bins bracket its $\rho$, weighted by linear interpolation. Neighboring tokens with similar SNR therefore receive smoothly varying mixtures. This should avoid the patch seams that forced Campbell and Deng to average overlapping patches. The bin edges are made learnable after warm-up, and we track whether they drift.

Dispatch happens at token level, not pixel level. Tokens are sorted by band so each expert runs one contiguous matrix multiply. This sidesteps the slow irregular memory access that Spatial Mixture-of-Experts reports for per-pixel routing.

The program has three analyses. The first stratifies the error by SNR band. This shows where any gain comes from and directly tests the claim that regimes conflict. The second asks how much the route assignments change when the input noise is redrawn. This is the router-fragility question raised by Robustness of Mixtures of Experts to Feature Noise. We compare our router with a learned feature router on this measure. The third measures how much information learned routes carry about $\rho$. DiT-MoE reports that learned routing in diffusion models is sensitive to noise scale but not to class label. If learned routers already rediscover SNR on real noise, then our fixed routing is mainly a robustness and stability device rather than new information.

Baselines

Naive reference. The do-nothing reference is the same backbone with dense feed-forward blocks and no noise information. Campbell and Deng report 34.51 dB PSNR on BrainWeb for such a DnCNN. Their patch-based sparse mixture reaches 39.65 dB. We re-run both under our splits rather than copying them, because their comparison does not give the dense model any noise map.

Strongest competitor. The most serious competitor is a dense network conditioned on a noise map. This is VDN, which jointly learns a pixel-wise variance map and a denoiser and reports 39.23 dB PSNR on the SIDD benchmark (Toward Blind Noise Modeling and Removal). We implement it two ways. One is VDN itself. The other is our backbone with $\rho$, or the noise map, concatenated to the input and injected through feature-wise scale-and-shift modulation at every block. We train this second version at two sizes, one matching our model's active compute per token and one matching its total parameter count. Every model gets the same data, the same training steps, and an equal hyperparameter-search budget of trials. Beating the matched-active-compute dense model shows the method buys efficiency. Beating the matched-total-parameter dense model is required to claim that separating parameters across SNR regimes matters. We define beating as at least 0.2 dB average PSNR, consistent across three seeds, with larger gains in the extreme SNR bands.

Mixture-of-experts alternatives. The first is a learned content router, as in DiT-MoE: the same experts and shared expert, but routed by a linear gate on token features with a balance loss. The second is coordinate routing as in Spatial Mixture-of-Experts, which should capture fixed patterns such as vignetting but not brightness-dependent noise. The third is a reimplementation of Campbell and Deng's offline-clustered experts.

Ablations. Several ablations isolate the key ingredient. Routing on unsmoothed $\rho$ tests the value of smoothing. Hard top-1 assignment tests the interpolation between adjacent bands. Removing the shared expert tests its role. A shuffled-SNR control routes each image with another image's $\rho$ map.

Why not just…?

Why not just give a dense network the noise map as input? This is the real threat, and the file contains no evidence that rules it out. The large mixture-of-experts gains in the file, 5.14 dB on BrainWeb and an FID drop from 92.07 to 34.39 on FFHQ in Switch-DiT, are against dense models given no noise information. They are also in a generation setting rather than restoration. The matched-total-parameter dense baseline settles the question. If it ties our model, the conclusion is that SNR routing is a compute-saving device, not a modeling improvement, and we will report it that way.

Why not just let a learned router discover the noise structure? It might do so. However, Robustness of Mixtures of Experts to Feature Noise shows that the gate is the weak point under heavy corruption. Learned routers also bring collapse and the balance-loss trouble seen in Switch-DiT. The route-stability and information-about-SNR measurements will show whether a learned router matches ours, especially on the low-light ELD and SID data.

Why not just train one denoiser per noise level and blend their outputs by the SNR map? This is the hard, external version of our idea. It costs $M$ full networks and loses shared context across regions, which is the coherence problem Campbell and Deng hit with patch experts. Our shared expert and in-layer interpolation are the cheaper version. The offline-cluster baseline and the hard top-1 ablation measure how much the in-network design actually adds.

Proposed Experiments

The main benchmarks are SIDD raw and sRGB, with leave-one-phone-out splits across its five phones (SIDD), and ELD/SID for extreme low light (Adaptive Domain Learning). On ELD/SID the file reports only relative gains, 0.39 dB for ADL over transfer baselines, and no absolute PSNR, so all baselines will be run fresh. For BrainWeb and IXI MRI with Rician noise, $\hat{\sigma}$ comes from the smoothed estimator, and we test generalization to the unseen 9% noise level that Campbell and Deng use. No reported number was found in the file for IXI. Metrics are PSNR and SSIM overall and per SNR band, route stability under redrawn noise, and wall-clock latency on one GPU against the dense baselines.

Four decisive checks follow. The model must beat the matched-total-parameter dense baseline, or the modeling claim is withdrawn. Performance must drop under the shuffled-SNR control, which shows the experts actually specialize. Our router must hold up better than learned routers at the lowest SNRs. Latency must stay within a small factor of the dense model at matched active compute.

If these checks pass, a natural follow-up applies the same per-token routing inside spatially varying diffusion restoration such as SVNR. There, the effective SNR combines the diffusion timestep and the sensor noise, which directly generalizes the timestep routing of Switch-DiT.