From Text to Pixels: A Context-Aware Semantic Synergy Solution for Infrared and Visible Image Fusion

Xingyuan Li, Yang Zou, Jinyuan Liu, Zhiying Jiang, Long Ma, Xin Fan, Risheng LiuarXiv 2024 · DOI

Introduction

Infrared and visible image fusion (IVIF) is a critical technology for enhancing situational awareness in fields such as autonomous driving and night vision. While infrared (IR) sensors excel at capturing thermal signatures in low-light or obscured environments, visible (VIS) sensors provide the high-resolution textures and color information necessary for detailed scene analysis.

However, a fundamental "modality disparity" exists between these sensors: they represent the same scene using vastly different physical properties. Most traditional fusion methods rely on low-level pixel or gradient statistics, which often fail to capture the high-level semantic context required for downstream computer vision tasks. This paper introduces a novel text-guided framework that leverages natural language to bridge this gap, ensuring that fused images are optimized for both visual quality and functional utility.

Proposed Methodology

The researchers propose a multi-stage architecture designed to integrate text, infrared, and visible data through a "context-aware" semantic synergy. The core of the system is a text-guided attention mechanism that uses the CLIP (Contrastive Language-Image Pre-training) model to encode textual prompts (e.g., "A photo of ten cars and four people on the road") into semantic vectors. These vectors guide the fusion network to identify and prioritize semantically important features across both modalities.

The proposed multi-stage architecture featuring text encoding, image encoding, and bilevel optimization constraints.

Key Technical Innovations

  1. Bilevel Optimization: Rather than training fusion and detection separately, the authors treat them as a nested optimization problem. The "lower-level" task optimizes the fusion network for image quality, while the "upper-level" task optimizes an object detector (YOLOv5) to perform better specifically on those fused images. This ensures the fusion process prioritizes features useful for machine vision.
  2. Codebook-based Quantization: The model employs a codebook to map continuous feature spaces into discrete vectors. This discretization helps align the disparate domains of text and imagery more effectively, filtering out modality-specific noise and improving generalization.
  3. Multi-level Feature Extraction: The architecture uses multiple paths to capture features at different scales, preserving both granular textures and abstract scene context.

Experimental Results

The model was evaluated on three standard benchmarks: $M^3FD$, TNO, and RoadScene. A significant contribution of this work is the introduction of the first paired IVIF detection dataset accompanied by descriptive text prompts, enabling this new line of text-guided research.

Quantitatively, the proposed method consistently outperformed seven leading-edge methods. On the $M^3FD$ dataset, it achieved a mean Average Precision (mAP) of 0.517, a notable improvement over the second-best method, SegMiF (0.483). Qualitative comparisons, as seen in Figure 5, demonstrate that the method produces fused images with superior contrast and clarity, leading to more reliable object detection in challenging environments like tunnels and night-time roads.

Qualitative comparison of the proposed method against state-of-the-art fusion techniques across various scenes, highlighting improved detection accuracy.

Conclusion

By shifting the focus from "superficial" pixel-level fusion to a semantic-driven approach, this work demonstrates that natural language can serve as a powerful bridge between disparate imaging modalities. The integration of text-guided attention and bilevel optimization ensures that fused images are not only visually coherent but also highly functional for real-world computer vision applications. Future work may explore the sensitivity of these models to prompt engineering and the extension of this framework to tasks like semantic segmentation or instance tracking.

Summary updated

BibTeX
@misc{li2024from,
  author = {Xingyuan Li and Yang Zou and Jinyuan Liu and Zhiying Jiang and Long Ma and Xin Fan and Risheng Liu},
  title = {{From Text to Pixels: A Context-Aware Semantic Synergy Solution for Infrared and Visible Image Fusion}},
  year = {2024},
  eprint = {2401.00421},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.00421},
}
Figure