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.
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:
- 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.
- 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.
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.
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%.
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