TL;DR
Combining infrared and visible-light camera feeds gives machines "superhuman" vision, but real-world sensors rarely line up perfectly and often suffer from noise or darkness. Existing algorithms fix either the alignment or the image quality, falling apart when faced with both simultaneously. G2Fusion bridges explicit geometric alignment with generative AI in a closed feedback loop, turning raw, warped, and degraded sensor inputs directly into crisp, perfectly aligned images.
What Problem Does This Paper Address?
Imagine driving down an unlit highway at night. A standard visible-light camera struggles to see in the dark, picking up heavy grain and color distortion, though it still captures street signs and lane markings under your headlights. Meanwhile, a thermal infrared camera effortlessly spots the heat signature of a pedestrian on the shoulder, even if the background looks like a featureless grey blob. Multi-modal image fusion blends these two feeds into a single, comprehensive picture.
In a clean lab dataset, those two images are crisp and pixel-for-pixel aligned. Out in the wild, two coupled gremlins ruin the party:
- Spatial Misalignment: Because the two cameras sit slightly apart and use different lenses, their viewpoints don't match, causing ugly "ghosting" or double-vision when merged.
- Complex Degradations: Sensor noise, pitch-black lighting, and color distortion ruin visual fidelity.
Here is the catch-22: severe darkness and noise blind the algorithms trying to align the images, while misalignment creates ghosting artifacts that confuse restoration models. Existing methods tackle either registration (alignment) or restoration (cleaning up noise/lighting), failing when both problems occur together. Furthermore, you can't just throw a generative diffusion model at the problem out of the box—nobody has a "ground truth" dataset of perfectly fused, restored, and aligned images to train it on!
Methods
G2Fusion introduces a "geometric-to-generative" paradigm where alignment and image restoration co-evolve rather than run in an isolated, error-accumulating assembly line. It relies on four main pillars:
- Flow-based Geometric Deformation Reduction (Flow-GDR): First, the model tackles large, non-rigid spatial warps. Using a hybrid feature extractor—combining high-level semantic features from a fine-tuned DINOv3 vision backbone with multi-scale structural pyramids—it estimates a dense pixel-displacement field ("flow") to roughly warp the visible image onto the infrared reference.
- DiT-based Generative Fusion (DiT-GF): Instead of fusing raw, noisy pixels, the infrared and roughly aligned visible images are encoded into a shared latent space. A Dual-Stream Diffusion Transformer (DiT) iteratively denoises them. Using bidirectional cross-attention, the two streams trade structural cues, simultaneously scrubbing away sensor noise/darkness and smoothing out tiny, leftover misalignments.
- Target Distribution Mining: How do you train a diffusion model without ground-truth targets? The authors run 10 existing fusion and restoration models on clean, pre-aligned image pairs to build a "candidate pool." They then run a two-stage tournament: first filtering the top 5 candidates that best preserve information from the source images, then picking the single sharpest winner using an unsupervised perceptual metric. This synthetic "best-of-breed" winner acts as the clean training target.
- Mutual Promotion Mechanism: To connect the geometric and generative halves into a closed loop, G2Fusion relies on a clever observation: once fused, the final image should share the exact geometry of the infrared reference. The authors feed the final fused image back into the Flow-GDR module alongside the infrared input. Any detected movement between them should be zero; if it isn't, a penalty loss updates both networks alternately so they actively coach one another.
Datasets
- Training & Primary Evaluation: A mixed set of 2,500 pairs drawn from four standard infrared-visible benchmarks covering diverse lighting and street scenes: MSRS, M³FD, LLVIP, and RoadScene. To test robustness, the visible images were synthetically warped (random rotations of $\pm 5^\circ$, translations of $\pm 5\%$, and elastic Gaussian deformations).
- Real-World Generalization: Evaluated zero-shot on the TNO dataset, which features naturally occurring real-world sensor misalignments.
- Custom Registration Benchmark: No new full dataset was introduced, but to strictly measure spatial alignment, the authors manually annotated 500 corresponding point landmarks across 100 scenes.
Key Insights and Ideas
- Implicit Inpainting via Diffusion: When you warp a crooked visible image to align it with an infrared one, you inevitably leave empty black borders along the edges (which confuse downstream object detectors). Because DiT-GF trains on complete, border-free pseudo-targets, it implicitly learns to hallucinate and fill in those missing boundary regions seamlessly.
- Division of Labor in Alignment: Explicit optical flow (Flow-GDR) is great at heavy lifting—fixing big, non-rigid warps—while generative cross-attention (DiT-GF) acts like fine sandpaper, polishing away subtle pixel discrepancies in latent space.
- Self-Supervision Through Zero-Flow: Checking if the deformation between the final fused output and the reference infrared image equals zero is a remarkably elegant way to prevent errors from cascading down the pipeline.
Key Results
Even when competing fusion-only, registration-based, and restoration-based baselines were gifted state-of-the-art external pre-processing tools (MINIMA for alignment and InstructIR for restoration), G2Fusion operating on raw inputs outperformed them across nearly all metrics on all four datasets (achieving top PSNR scores like 63.39 dB on M³FD and 64.00 dB on LLVIP).
- Pinpoint Alignment: On the 500-landmark test, initial unregistered images had a Median Euclidean Error (MEE) of 11.08 pixels. Flow-GDR cut that down to 4.07 pixels, and DiT-GF refined it further in the final output to 2.79 pixels (reducing RMSE from 13.18 down to 5.87).
- Downstream Utility: Better fusion translates directly to better machine perception. Feeding G2Fusion's outputs into YOLOv5 (object detection) and SegNeXt (semantic segmentation) yielded the highest overall scores: 0.574 [email protected]:0.95 and 0.562 mIoU, beating all competing fusion pipelines.
Limitations and Future Work
Iterative latent denoising is computationally heavy. On a $640 \times 480$ image pair, G2Fusion takes 2.064 seconds per frame (and ~7.1 GB of peak GPU memory), with the 688M-parameter DiT-GF module accounting for 1.958 seconds and nearly 95% of the 9,420 GFLOPs—far too slow for high-frame-rate real-time video. The authors note that future work should focus on distillation or fewer denoising steps alongside lighter, more efficient Diffusion Transformer architectures.
Summary updated