LG-FiLM: Local-Global Mixture-of-Experts Modulation for RAW-to-RGB Reconstruction

Fei Li, Xilei Cao, Shichang Zhai, Kun ZhanarXiv 2026

TL;DR

LG-FiLM introduces a scene-adaptive "Mixture-of-Experts" (MoE) module at the bottleneck of a neural Image Signal Processor (ISP). By modulating shared features with affine transformations predicted from both local and global context, the model achieves state-of-the-art RAW-to-RGB reconstruction fidelity while maintaining a single, efficient processing pathway.

What Problem Does This Paper Address?

Traditional Image Signal Processors (ISPs) in smartphones must make complex decisions—like how much to denoise or how to map high-dynamic-range tones—that depend entirely on the scene. A backlit sunset requires a different tone curve than an indoor portrait.

Most current "neural ISPs" learn a single, fixed transformation for all images. While some use attention mechanisms, they often lack an explicit way to switch between different "processing modes" for different regions. Purely global signals can't handle local variations, and purely local signals can't determine the overall "look" a scene should have. LG-FiLM aims to bridge this gap by making adaptation an explicit, steerable part of the network architecture.

Methods

The authors propose a U-Net-style encoder-decoder backbone with a novel Local-Global Feature Modulation (LG-FiLM) module at the bottleneck.

The LG-FiLM architecture uses a shared encoder-decoder with a specialized MoE bottleneck.

Key components include:

  • Local-Global Conditioning: At the bottleneck, the model extracts local evidence (via a 3x3 depthwise convolution) and a global scene descriptor (via global average pooling). These are concatenated to drive the adaptation.
  • Mixture of Affine Experts: Instead of heavy convolutional branches, the model uses 8 "experts" that are small MLPs. These experts predict affine parameters—scales ($\gamma$) and shifts ($\beta$)—to modulate the bottleneck features.
  • Soft Fusion Router: A router predicts mixing weights for these experts at every spatial location. Crucially, the model uses "soft fusion," meaning it calculates a weighted average of the experts' parameters rather than picking just one. This allows the model to interpolate smoothly between different processing modes.
  • Shared Pathway: The heavy lifting of reconstruction is done by a shared encoder and decoder. The MoE module only acts as a low-dimensional "tuner" at the bottleneck, keeping the parameter count low.

Datasets

The model was evaluated on three distinct domains:

  1. Fujifilm UltraISP: The primary benchmark, pairing mobile sensor RAW data with high-quality Fujifilm RGB references.
  2. Zurich RAW to RGB (ZRR): A cross-sensor dataset mapping Huawei P20 RAW measurements to Canon 5D Mark IV photographs.
  3. InvISP-derived COCO: A synthetic benchmark created by applying an "inverse ISP" to standard COCO images to test how well the architecture generalizes to structurally different RAW data.

Key Insights and Ideas

  • Global for Mode, Local for Strength: The authors found that global context is essential for selecting the "processing mode" (e.g., the overall tone mapping style), while local context helps determine how strongly that mode should be applied to preserve specific details.
  • Interpolation is Key: The "soft" mixture outperforms "hard" selection (picking the single best expert). This suggests that the optimal ISP settings for a specific pixel often lie in the continuous space between learned expert behaviors.
  • Explicit vs. Implicit Adaptation: By isolating the adaptation to the bottleneck, the authors can "bypass" or "freeze" the modulation to inspect exactly what the experts are contributing. They proved that the experts actually specialize; for example, certain experts focus on brightening shaded foregrounds while others manage bright skies.
Visualizing the error reduction shows how specific experts (E1, E5) contribute to correcting luminance in different scene regions.

Key Results

  • State-of-the-Art Performance: On the Fujifilm UltraISP benchmark, LG-FiLM reached 24.998 dB PSNR, outperforming all entries from the MAI 2026 challenge and improving upon the RMFA-Net baseline by 0.62 dB.
  • Efficiency: The MoE module adds only 0.268M parameters to a 1.4M parameter backbone (a ~19% increase) but provides a massive boost in reconstruction fidelity.
  • Qualitative Fidelity: The model excels at maintaining plausible white balance and gradients in challenging areas like foliage and skies, even at full resolution.
Qualitative results on the ZRR dataset show consistent color and detail reproduction compared to the Canon reference.

Limitations and Future Work

  • Inference Latency: While parameter-efficient, evaluating all experts at every token is computationally expensive. At 4K resolution (3968 x 2976), the model takes about 131ms on an NVIDIA L40S. The authors suggest that future work could involve "sparse" routing (only running a subset of experts) to save time.
  • Lighting Diversity: The primary training set (Fujifilm UltraISP) consists mostly of daytime scenes. Testing the model's adaptive capabilities in extreme low-light or highly varied artificial lighting remains a task for future research.
  • Token Reduction: The authors note that the module accounts for 44% of wall-clock time despite being only 21% of the GFLOPs, suggesting that reducing the number of tokens processed at the bottleneck could yield significant speedups.

Summary updated

Abstract

An image signal processor does more than reconstruct an image. It also has to decide how strongly to denoise, how to balance color, and which tone curve maps the scene onto the display, and these settings depend on the scene itself, the curve that suits a backlit sky is not the one that suits an indoor portrait. Most neural ISPs learn a single fixed transformation and apply it to every scene. We instead make the adaptation an explicit part of the network. Our model, LG FiLM, keeps one shared encoder decoder and places a small mixture of affine experts at its bottleneck; the experts scales, shifts, and mixing weights are predicted from local neighborhood evidence together with a global scene descriptor. Reconstruction stays in a single shared pathway and only the processing mode is switched. We evaluate LG FiLM on three datasets, Fujifilm UltraISP, Zurich RAW to RGB, and a COCO derived benchmark built with an inverse ISP. The model reaches the best reconstruction fidelity of the compared entries on the primary benchmark and transfers to the other two.
BibTeX
@misc{li2026lg,
  author = {Fei Li and Xilei Cao and Shichang Zhai and Kun Zhan},
  title = {{LG-FiLM: Local-Global Mixture-of-Experts Modulation for RAW-to-RGB Reconstruction}},
  year = {2026},
  eprint = {2611.25639},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.25639},
}
Figure