MERIT: Multi-domain Efficient RAW Image Translation

Wenjun Huang, Shenghao Fu, Yian Jin, Yang Ni, Ziteng Cui, Hanning Chen, Yirui He, Yezi Liu, Sanggeon Yun, SungHeon Jeong, Ryozo Masukawa, William Youngwoo Chung, Mohsen Imani

TL;DR

MERIT is the first unified framework for multi-domain RAW-to-RAW image translation, enabling a single model to translate RAW images across arbitrary camera domains. By explicitly modeling sensor-specific noise statistics and leveraging an efficient multi-scale attention mechanism, it outperforms prior methods in image quality (+5.56 dB PSNR) while maintaining a compact, highly scalable parameter footprint.

What Problem Does This Paper Address?

RAW images captured by different camera sensors vary significantly, even under identical scene conditions. These variations—caused by differing spectral sensitivities, noise characteristics, and tone behaviors—create a substantial "domain shift." Consequently, downstream computer vision models (like object detection or image restoration) trained on one camera sensor perform poorly when deployed on another.

Prior works addressed this via RAW-to-RAW (RAW2RAW) translation, mapping images from a source camera's domain to a target camera's domain. However, these methods are strictly one-to-one mappings. To support $N$ different camera domains, you would need to train and maintain a separate model for every single pair, leading to an unsustainable quadratic explosion of models ($O(N^2)$).

MERIT solves this scalability bottleneck by introducing a single, unified model capable of handling one-to-many and many-to-many camera domain translations.

Figure 1. Overview of the challenges and paradigms in multi-domain RAW-to-RAW (RAW2RAW) translation. (a). RAW images captured under the same scene vary across sensors due to differing spectral sensitivity and noise characteristics. (b). Without RAW2RAW translation, domain-specific task models must be independently trained for each camera. (c). One-to-one translation enables shared task models, but requires a separate translation model for every source-target pair, leading to scalability issues. (d). Our proposed method, MERIT, introduces a unified multi-domain RAW2RAW translator that supports all domains with a single model. (e). MERIT achieves su- perior scalability in both parameter count and training iterations as the number of camera domains increases, outperforming prior methods.

Methods

The MERIT architecture consists of three core components: a Style Encoder, a Generator, and a Discriminator. Instead of training separate networks for each domain, the Style Encoder extracts a domain-specific, content-independent style embedding from a target exemplar image. The Generator is then conditioned on this embedding to perform the translation.

The authors introduce two key technical innovations to handle the unique properties of RAW data:

  1. Sensor-Aware Noise Modeling (SANM): RAW images operate in a linear light domain where sensor noise follows a predictable Poisson-Gaussian distribution. Traditional GANs struggle to learn these noise patterns implicitly. MERIT introduces a differentiable, histogram-based noise loss ($\mathcal{L}_{noise}$). It uses a Sobel gradient filter to isolate flat, low-texture patches where variance is dominated by sensor noise rather than image texture. It then forces the generated image's noise statistics to match the target domain's precomputed noise profile.
  2. Multi-Scale Large Kernel Attention (MS-LKA): To capture both fine-grained local structures and long-range spatial dependencies without the massive computational overhead of standard self-attention, the authors design parallel branches of depthwise convolutions with large kernels and varying dilation rates. This is combined with a style-modulated channel attention mechanism that dynamically weights features based on the target domain embedding.
Figure 1. Overview of the challenges and paradigms in multi-domain RAW-to-RAW (RAW2RAW) translation. (a). RAW images captured under the same scene vary across sensors due to differing spectral sensitivity and noise characteristics. (b). Without RAW2RAW translation, domain-specific task models must be independently trained for each camera. (c). One-to-one translation enables shared task models, but requires a separate translation model for every source-target pair, leading to scalability issues. (d). Our proposed method, MERIT, introduces a unified multi-domain RAW2RAW translator that supports all domains with a single model. (e). MERIT achieves su- perior scalability in both parameter count and training iterations as the number of camera domains increases, outperforming prior methods.

Datasets

The paper evaluates performance on two datasets:

  • RAW-to-RAW Mapping Dataset: An existing benchmark containing 392 unpaired and 115 paired testing RAW images from the Samsung Galaxy S9 and iPhone X.
  • MDRAW (Multi-Domain RAW): A new benchmark dataset introduced by the authors to evaluate multi-domain scaling. It contains 519 unpaired RAW images captured across five diverse sensors: Samsung Galaxy S23 Ultra, Huawei P30, iPhone 13 Pro Max, Nikon Z5, and Canon EOS Rebel T6. To enable quantitative evaluation, they used an extended LoFTR feature-matching pipeline to extract 285 spatially aligned patch pairs across these domains.

Key Insights and Ideas

  • Explicit Physics-Based Loss Beats Implicit Learning: Relying purely on adversarial losses (discriminators) fails to accurately replicate sensor noise. Explicitly isolating flat regions to compute a physical noise profile via a differentiable histogram loss drastically improves translation fidelity.
  • Decoupling Domain Style from Network Capacity: By feeding compact style embeddings into a single generator, the model size remains nearly constant regardless of how many camera domains are added. This breaks the linear/quadratic scaling curse of prior architectures.
Figure 3. Visualization of the sensor-aware noise modeling pro- cess. (a). Input RAW image. (b). Gradient magnitude map com- puted via the Sobel operator. (c). Red-shaded regions indicate low-texture patches selected for sensor noise profile estimation.

Key Results

  • Superior Image Quality: On the standard RAW-to-RAW benchmark, MERIT achieves state-of-the-art results. For Samsung-to-iPhone translation, it delivers a massive +5.56 dB PSNR gain and a significant reduction in Mean Absolute Error (MAE) compared to prior unsupervised methods.
  • Remarkable Scalability: When scaling from 3 to 5 camera domains, competing frameworks like UVCGAN experience a linear explosion in parameters (from 186M to 620M). MERIT maintains a nearly flat parameter count of ~58.7M and cuts required training iterations by up to 80%.
Figure 4. Qualitative results on the RAW-to-RAW mapping dataset. Each group of images (from left to right) shows: the input source RAW image, predictions from CUT [26], Xie et al. [33], CycleGAN [38], UVCGAN [30], Rawformer [27], our method MERIT, and the target ground truth. Odd-numbered rows display the translated RAW outputs, while even-numbered rows visualize the corresponding absolute error maps with respect to the ground truth.

Limitations and Future Work

While the style encoder successfully extracts domain-specific features, the authors note that the embeddings can still be slightly influenced by global scene characteristics like brightness. To mitigate this during evaluation, they had to implement a brightness-based reference image selection strategy. Future work could focus on achieving complete disentanglement between environmental lighting conditions and pure sensor hardware characteristics within the style embedding space.

Summary updated

BibTeX
@inproceedings{huang2026merit,
  author = {Wenjun Huang and Shenghao Fu and Yian Jin and Yang Ni and Ziteng Cui and Hanning Chen and Yirui He and Yezi Liu and Sanggeon Yun and SungHeon Jeong and Ryozo Masukawa and William Youngwoo Chung and Mohsen Imani},
  title = {{MERIT: Multi-domain Efficient RAW Image Translation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=0g2FDha0ro},
}
Figure