OCCO: LVM-guided Infrared and Visible Image Fusion Framework based on Object-aware and Contextual COntrastive Learning

Hui Li, Congcong Bian, Zeyang Zhang, Xiaoning Song, Xi Li, Xiao-Jun Wu

TL;DR

OCCO is a novel image fusion framework that leverages a pre-trained Large Vision Model (LVM) to guide the blending of infrared and visible images. By incorporating object-aware contrastive learning within a semantic "contextual space," OCCO generates high-quality fused images that maximize performance on downstream tasks like object detection and semantic segmentation without disrupting visual appeal.

What Problem Does This Paper Address?

Infrared (IR) and visible image fusion is essential for applications like autonomous driving and surveillance. Visible images provide rich texture and detail, while infrared images capture thermal radiation, making them robust against darkness or occlusion.

However, existing fusion methods suffer from a fundamental trade-off:

  1. Visual-driven methods focus on pixel-level quality, often resulting in beautiful images that lack the distinct boundaries required for downstream computer vision tasks.
  2. Task-driven methods train fusion networks alongside downstream networks (e.g., segmentation models) in a cascaded fashion. Unfortunately, the conflicting objectives between the two tasks introduce gradient disturbances, causing artifacts, fragmented information, or forced edge diffusion in the final fused image.
Different fusion orientations compared to the proposed object-aware approach.

OCCO addresses this by decoupling the fusion network from the downstream task network during training, using an LVM purely as a high-level visual advisor.

Methods

The OCCO framework consists of three main components: a Feature Interaction Fusion Network (FIFN), a SAM-guided Mask Generator, and a Contextual Contrastive Learning (CCL) strategy.

The overall architecture of the OCCO framework.

1. Feature Interaction Fusion Network (FIFN)

Instead of simple concatenation, OCCO introduces a Feature Interaction Fusion Block (FIFB). As shown in the architecture diagram below, the FIFB processes features through three parallel mechanisms: spatial enhancement (to capture intra-modality salient info), cross-channel attention, and cross-attention (to capture inter-modality relationships). This resolves information conflicts caused by modality differences.

Detailed architecture of the Feature Interaction Fusion Block (FIFB).

2. SAM-guided Mask Generator

To automate object awareness without manual annotation, the authors use Grounding DINO (a text-driven detector) prompted with phrases like "pedestrians or cars" to generate bounding boxes. These boxes act as prompts for the Segment Anything Model (SAM), which yields precise semantic masks for both modalities. These masks are then categorized into modality-unique, shared, and background regions.

3. Contextual Contrastive Learning (CCL)

Using the generated masks, OCCO creates pairs of positive samples (semantically rich regions) and negative samples (semantically sparse regions). The network pulls the fused "anchor" image closer to the positive samples and pushes it away from the negative ones.

Crucially, instead of computing this contrastive loss in standard Euclidean space (which can lead to overly smooth textures), OCCO maps features to a contextual space using deep layers of a pre-trained VGG19 network. This space measures semantic proximity based on relative spatial arrangements and orientation rather than strict pixel-to-pixel alignment.

Datasets

The framework was trained on the FMB dataset (280 image pairs), which features real road scenes with significant thermal radiation noise.

To evaluate generalization and downstream performance, OCCO was tested across four benchmark datasets:

  • FMB (280 pairs)
  • MSRS (361 pairs)
  • M3FD (300 pairs)
  • TNO (21 pairs)

Key Insights and Ideas

  • LVMs as Zero-Shot Advisers: By using SAM and Grounding DINO in a zero-shot manner, OCCO extracts high-level semantic priors without requiring downstream task labels during the fusion training phase.
  • Contextual vs. Euclidean Space: Traditional contrastive learning in image fusion relies on $L_2$ norms in Euclidean space, which tends to over-smooth high-frequency details. Shifting to a contextual space preserves absolute feature properties while optimizing for semantic structure.
  • Modality Filtering: By separating masks into unique and shared spaces, the network learns exactly when to prioritize visible textures (e.g., background details) versus infrared highlights (e.g., pedestrians at night).

Key Results

OCCO was compared against eight state-of-the-art (SOTA) methods (including DenseFuse, SeAFusion, and CDDFuse) and demonstrated superior performance qualitatively and quantitatively.

Quantitative Image Quality

  • Entropy (EN): OCCO ranked first across all four datasets, indicating that its fused images retain the highest amount of information and complex textures.
  • Average Gradient (AG): OCCO secured the top spot on MSRS, TNO, and FMB, demonstrating exceptional image clarity and sharpness, particularly in nighttime scenes.

Downstream Task Performance

  • Semantic Segmentation (MSRS): OCCO achieved the highest mean Intersection over Union (mIoU of 63.72%), outperforming the baseline visible and infrared inputs, as well as all other fusion methods.
  • Object Detection (MSRS & M3FD): OCCO achieved the highest overall mAP (0.803 on MSRS), showing particular strength in accurately detecting pedestrians and cars under challenging lighting conditions.

Limitations and Future Work

The authors note that on large, highly complex road scene datasets like M3FD and FMB, the model occasionally struggles to constrain background scene information effectively. This is reflected in slightly lower Correlation Coefficient (CC) metrics compared to some visual-driven baselines. Future work will likely focus on improving background context constraints to prevent minor semantic bleeding while maintaining high target saliency.

Summary updated

BibTeX
@article{li2025occo,
  author = {Hui Li and Congcong Bian and Zeyang Zhang and Xiaoning Song and Xi Li and Xiao-Jun Wu},
  title = {{OCCO: LVM-guided Infrared and Visible Image Fusion Framework based on Object-aware and Contextual COntrastive Learning}},
  journal = {International Journal of Computer Vision},
  year = {2025},
  url = {https://openreview.net/forum?id=TwmBfPCGH3},
}
Figure