FusionSAM: Visual Multi-Modal Learning with Segment Anything Model

Daixun Li, Weiying Xie, Mingxiang Cao, Yunke Wang, Yusi Zhang, Leyuan Fang, Yunsong Li, Chang Xu

Abstract

FusionSAM is the first framework to successfully adapt the Segment Anything Model (SAM) for multimodal image segmentation, integrating RGB with Infrared or Depth data. By fusing modalities in a quantized latent space and employing the resulting features as dynamic segmentation prompts, FusionSAM achieves a significant 4.1% mIoU improvement over current state-of-the-art methods in complex autonomous driving scenarios.

Introduction: The Challenge of Multimodal Fusion

Reliable scene understanding in autonomous driving necessitates more than standard RGB cameras. While RGB sensors provide rich texture, they are often compromised in low-light or foggy conditions. Infrared (thermal) sensors can detect heat signatures of pedestrians and vehicles in the dark but lack fine structural detail.

Low-light pedestrian detection remains a significant challenge for standard RGB sensors, where thermal data can provide critical missing information.

The primary challenge lies in effective fusion. Traditional methods using simple concatenation or basic attention often result in redundant information or blurred boundaries where modalities disagree. Furthermore, the Segment Anything Model (SAM), while revolutionary for single-modality tasks, was not designed for multiple input streams. Simply feeding pre-fused images into SAM typically leads to a loss of unique sensor strengths.

Methodology: LSTG and Fusion Mask Prompting

FusionSAM re-architects how SAM processes information through two novel modules:

  1. Latent Space Token Generation (LSTG): Inspired by VQGAN, this module transforms raw images from different modalities into discrete "tokens" within a quantized latent space. Instead of fusing noisy pixels, the model fuses high-level structural concepts, allowing it to ignore modality-specific noise and focus on complementary features.
  2. Fusion Mask Prompting (FMP): This core innovation replaces manual point or box prompts with a cross-attention mechanism that creates a "fusion mask." This mask serves as a rich, multimodal prompt guiding SAM’s decoder to produce precise, pixel-level boundaries.

The training process combines reconstruction loss for latent space fidelity, commitment loss for codebook stability, and standard segmentation losses.

Datasets and Evaluation

The model was evaluated on three primary benchmarks:

  • MFNet: 1,569 pairs of visible and infrared images.
  • FMB: 1,500 pairs of visible and infrared images.
  • VDT-2048: A complex dataset containing 2,048 triplets of RGB, Thermal (T), and Depth (D) images, testing the model's scalability beyond two modalities.

Key Results and Insights

FusionSAM sets a new benchmark for multimodal segmentation, achieving 64.4% mIoU on the MFNet dataset (outperforming the previous SOTA by 5.3%) and 64.1% mIoU on the FMB dataset.

Qualitative comparison showing FusionSAM's performance across various datasets and modalities. The model demonstrates superior boundary accuracy and structural integrity compared to baseline methods.

Key insights include:

  • Prompting as a Bridge: SAM’s flexible prompt encoder is ideal for injecting multimodal information. Treating fused features as prompts leverages SAM’s pre-trained "objectness" while specializing it for multimodal data.
  • Quantization for Robustness: Vector Quantization (VQ) in the LSTG module suppresses sensor-specific noise by forcing the model to use a fixed "vocabulary" of features.
  • Structural Completeness: Unlike standard SAM2, FusionSAM maintains structural integrity for small or occluded objects, such as distant pedestrians.

Limitations and Future Work

Despite its success, FusionSAM involves a multi-stage training process (reconstruction, adversarial, and segmentation) that is computationally intensive. Additionally, the cross-attention-based fusion modules add inference overhead that requires further exploration for real-time deployment. Future work may extend this framework to video-based multimodal segmentation by leveraging SAM2’s temporal tracking capabilities.

Summary updated

BibTeX
@inproceedings{li2025fusionsam,
  author = {Daixun Li and Weiying Xie and Mingxiang Cao and Yunke Wang and Yusi Zhang and Leyuan Fang and Yunsong Li and Chang Xu},
  title = {{FusionSAM: Visual Multi-Modal Learning with Segment Anything Model}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2025},
  doi = {10.1145/3711896.3736973},
}
Figure