Oracle Supervision Transfers for Hyperparameter Prediction in Model-Based Image Denoising

Jianmin Liao, Lixin Shen, Yuesheng XuNeurIPS 2026

TL;DR

Image denoising algorithms—from classical mathematical solvers to modern diffusion models—rely heavily on image-specific "knobs" (hyperparameters), and training a neural network to set those knobs traditionally requires running brutally expensive grid searches for every single denoiser and noise type. This paper introduces HyperDn, a unified predictor that pools tuning data from cheap, fast algorithms to accurately configure slow, expensive ones. With just two labeled examples—or sometimes zero—it nears theoretical optimal quality, turning a recurring computational nightmare into a one-time, reusable investment.

What Problem Does This Paper Address?

Model-based image denoisers clean up corrupted images by balancing two competing forces: staying faithful to the noisy input versus enforcing a "prior" belief about what clean images look like. Whether you use classical Total Variation (TV), patch-based methods (CBM3D), or modern diffusion solvers (DiffPIR), reconstruction quality hinges on tuning hyperparameters—like the weight $\lambda$ balancing that trade-off—for each individual image.

You can train a neural network to look at a noisy image and predict its optimal "oracle" hyperparameters (the best settings found by exhaustively testing candidates against clean ground truth). The catch? Generating that training data scales horribly. A single DiffPIR run on a $256 \times 256$ image takes ~10 seconds. Multiply that by dozens of grid-search candidates, hundreds of training images, and every combination of denoiser, noise type (Gaussian, Poisson, impulse), and resolution. Conventionally, every time you swap denoisers or face a new noise mixture, you start labeling from scratch. The authors ask: Can hyperparameter intuition learned on cheap setups transfer to expensive new ones?

Figure 1: HyperDn: one pool of oracle labels for many configurations. Oracle labels from multiple source configurations are pooled to train a shared conditional predictor fΘ(y, d, r; c). HyperDn reuses this supervision for few-shot transfer to new denoisers (DiffPIR, NLM, and CBM3D) and zero-shot transfer to unseen mixtures of seen noise types, larger resolutions, and simultaneous shifts in image domain and diffusion prior. Here, y is the degraded image, d is the data-term tag, r is the prior identifier, and c encodes noise attributes and observation metadata only when provided.

Methods

The authors propose HyperDn, a single configuration-conditioned predictor trained on pooled oracle labels across diverse source setups.

  • Standard Backbone, Conditional Context: HyperDn extracts visual features (like noise level, texture, and edges) from the degraded image using a standard truncated, ImageNet-pretrained ConvNeXtV2 encoder, appending image dimensions ($\log H, \log W$). Alongside this, a condition encoder embeds tags identifying the denoiser, the data-fidelity math (e.g., L2 vs. Huber), and optional noise/camera metadata.
  • The Novelty — Denoiser-Calibrated Slot Readout: Different denoisers need different numbers of hyperparameters with vastly different numerical scales. HyperDn outputs a padded vector of "slots." Crucially, slots that play similar mathematical roles across different algorithms—like the prior weight $\lambda$ in both classical TV and diffusion-based DiffPIR—share a learned role embedding. A shared scoring function reads the image features and role/scale tags, and then applies lightweight, denoiser-specific scale and offset parameters (plus a linear shortcut) to map that shared intuition into the exact numerical range each specific solver expects. During training, padding slots are simply masked out of the loss.
Figure 2: HyperDn architecture. A shared image encoder built on a truncated ConvNeXtV2 (stem and stages 0–1; FCMAE-pretrained, then fine-tuned on ImageNet-22K and ImageNet-1K) extracts features from the degraded image. A configuration-conditioned output head, comprising a condition encoder, shared slot embeddings, and a denoiser-calibrated slot readout, produces the padded hyper- parameter vector for the queried configuration; padding slots are ignored in the loss.

Datasets

No new image datasets are introduced; instead, the authors construct oracle-labeled hyperparameter banks across established benchmarks:

  • Source Pretraining & In-Domain Tests: STL10 ($96 \times 96$) and crops from the Waterloo Exploration Database (WED) ($256 \times 256$).
  • Cross-Resolution, Cross-Domain, & Real Noise Evaluation: CBSD68 ($321 \times 481$), Kodak24 ($512 \times 768$), and Urban100 ($\sim 1024 \times 768$) for resolution scaling; FFHQ (human faces) for domain/prior shifts; and SIDD sRGB for real smartphone camera noise.

Key Insights and Ideas

  • Cheap Math Teaches Expensive Diffusion: Even though TV variational solvers and DiffPIR diffusion models belong to completely different eras of computer vision, both rely on image textures and noise strength to balance data fidelity against a prior. Supervision from pennies-on-the-dollar TV runs directly informs expensive DiffPIR runs.
  • Transfer Survives "Semantic" Shifts: What if a target denoiser doesn't use a prior weight $\lambda$ at all? NLM uses patch-similarity decay ($h$) and CBM3D uses an assumed noise level ($\sigma_{\text{psd}}$). Even assigning these an UNKNOWN role tag, HyperDn's shared image representation lets it adapt far faster than models trained from scratch.
  • Averaging Single-Noise Predictors Fails on Mixtures: When hit with an unseen cocktail of impulse + Gaussian noise, simply averaging the predictions of two single-noise networks leaves ugly residual artifacts (trailing the oracle by 5–7 dB). Pooling them inside HyperDn solves the mixture zero-shot.
  • Small Patches Teach Giant Images: Labeling a $512 \times 768$ Kodak24 image takes ~40$\times$ more denoiser compute than a $96 \times 96$ STL10 patch. Because image statistics and resolution tags ($\log H, \log W$) generalize cleanly, you can do all your heavy oracle searches on tiny thumbnails.

Key Results

  • 32$\times$ Label Efficiency on DiffPIR: Transferring from TV/TGV to DiffPIR on WED, HyperDn with just 2 target labels reaches 30.23 dB PSNR (within 0.90 dB of the 31.13 dB oracle), matching a standard per-configuration CNN baseline (Afkham) trained on 64 labels. At 16 labels, HyperDn is visually indistinguishable from the oracle.
Figure 3: Few-shot DiffPIR transfer on WED 256×256 crops (100 iterations). Curves show mean test PSNR against target-label budget; shading shows ±std. Oracle: 31.13 dB (dash-dot).
Visual comparison of DiffPIR at 16 labels: Afkham leaves heavy noise (22.84 dB) while HyperDn (33.62 dB) nearly matches the oracle (33.69 dB).
  • Metric-Agnostic: When optimizing for perceptual/structural metrics instead of PSNR, 1 target label in HyperDn beats 16 labels of the baseline on both SSIM (.821 vs. .789) and LPIPS (.227 vs. .246, lower is better).
  • Unseen Nonlocal Denoisers: With 2 target labels, HyperDn beats the from-scratch baseline by +3.73 dB on NLM and +3.95 dB on CBM3D.
  • Zero-Shot Wins: With zero target labels, HyperDn lands within 0.21 dB and 0.09 dB of the oracle on two unseen mixed-noise setups; within 0.01 to 0.27 dB of the oracle when jumping from tiny training crops up to $\sim 1024 \times 768$ images; and within 0.273 dB of the oracle when simultaneously shifting from natural images (ImageNet prior) to human faces (FFHQ prior).

Limitations and Future Work

  • Upfront Bank Cost: Building the initial source pool of oracle labels still requires an upfront computational investment, though it is amortized across future tasks.
  • Not Purely Zero-Shot for New Engines: Transferring to brand-new denoisers or unfamiliar parameter roles still requires a few target labels (few-shot adaptation) to calibrate numerical scales, rather than working zero-shot.
  • Bounded Scope: Zero-shot mixed-noise tests only combined noise types already seen individually during training (no completely alien noise physics), and cross-resolution tests were bounded to the evaluated natural-image benchmarks. Future extensions aren't explicitly mapped out, though expanding the shared oracle bank to broader inverse problems is a natural implication.

Summary updated

Abstract

Hyperparameter prediction is a critical practical bottleneck for model-based image denoisers, ranging from classical TV/TGV variational solvers to modern diffusion-based models such as DiffPIR. While existing learned predictors can achieve near-oracle performance, this approach scales poorly: each new configuration conventionally requires its own oracle-labeled training set, and each label requires a hierarchical grid search evaluated against clean ground truth. We therefore ask whether oracle supervision collected on source configurations can transfer to target configurations with few or no target oracle labels. We propose HyperDn, a single configuration-conditioned predictor that pools oracle supervision across source configurations and predicts heterogeneous hyperparameters for new denoiser--noise configurations. In a cross-paradigm experiment, HyperDn transfers from relatively cheap TV/TGV variational sources to more expensive diffusion-based DiffPIR. With $2$ target labels for predictor fitting after shared configuration calibration, it comes within $0.90$\,dB of the oracle and matches the $64$-label Afkham baseline trained from scratch while using $1/32$ as many target labels. In addition, transfer remains effective when oracle labels are defined by SSIM or LPIPS. We also observe clear transfer gains from variational models to NLM and CBM3D, despite substantial differences in hyperparameter semantics. Without any target oracle labels, HyperDn also reaches near-oracle PSNR on two unseen mixtures of seen noise types, on transfer from mostly $96{\times}96$ source images to targets as large as roughly $1024{\times}768$, and under simultaneous shifts in image domain and diffusion prior, from WED natural images with an ImageNet-trained DiffPIR prior to FFHQ faces with an FFHQ-trained prior. Together, these results show that transferable oracle supervision can replace repeated per-configuration labeling with a shared upfront cost amortized across configurations, plus a small marginal labeling cost for the evaluated targets.
BibTeX
@inproceedings{liao2026oracle,
  author = {Jianmin Liao and Lixin Shen and Yuesheng Xu},
  title = {{Oracle Supervision Transfers for Hyperparameter Prediction in Model-Based Image Denoising}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=vXGWG7Z20k},
}
Figure