Introduction
In the domains of autonomous driving and robotics, environmental perception relies heavily on multi-modal sensor data. Visible (RGB) sensors provide high-resolution textures and color information essential for human-like recognition but are often compromised in low-light, foggy, or high-glare conditions. Conversely, Infrared (IR) sensors detect heat signatures, allowing them to identify targets regardless of lighting, though they lack the fine spatial details of RGB imagery.
Image fusion aims to combine these modalities into a single, highly informative representation. However, a persistent gap exists between traditional fusion methods and downstream scene understanding. Most existing frameworks prioritize pixel-level visual quality—making images look "good" to the human eye—without optimizing for task-level perception, such as semantic segmentation. Training a single model to excel at both low-level reconstruction and high-level classification is challenging because their optimization goals often conflict. MAFS (Masked Autoencoder for Fusion and Segmentation) addresses this by introducing a unified framework that leverages self-supervised pre-training and dynamic multi-task balancing.
The MAFS Framework
MAFS utilizes a parallel network structure designed to foster "reciprocal promotion" between the fusion and segmentation tasks. The methodology is defined by four core innovations:
1. Two-Stage Training with Masked Autoencoders (MAE)
The model employs a two-stage training strategy to ensure robust feature extraction. In Stage I, the network functions as a Masked Autoencoder. By masking a significant portion of input patches and forcing the encoder to reconstruct the original image, the model learns deep, meaningful representations of the scene's structure before any task-specific labels are introduced. In Stage II, the model transitions to multi-task learning, utilizing these pre-trained weights to perform fusion and segmentation in parallel.
2. Heterogeneous Feature Fusion
To effectively merge the disparate characteristics of IR and visible data, MAFS employs three specialized modules:
- Adaptive Fusion Module (AFM): Focuses on fusing shallow, detail-oriented features to preserve edge information.
- Cross-modal Attention Module (CAM): Utilizes spatial and channel attention mechanisms to aggregate deep semantic features from both modalities, ensuring that the most relevant information from each sensor is prioritized.
- Progressive Heterogeneous Fusion (PHF): Gradually integrates shallow and deep features, ensuring the final fused image maintains a balance between fine textures and high-level context.
3. Knowledge Distillation
To stabilize the segmentation training and improve accuracy, MAFS adopts a teacher-student paradigm. A pre-trained, high-performance segmentation model (SegNeXt) serves as the teacher, providing "soft labels" (logits). This guides the student network to learn more effective latent representations than it would from ground-truth labels alone.
4. Max-Min Fairness Dynamic Weighting
Multi-task learning often suffers from gradient imbalance, where one task dominates the optimization process. MAFS introduces a dynamic weighting factor based on the max-min fairness principle, a concept borrowed from wireless resource allocation. This strategy adaptively adjusts the gradient magnitude, giving more weight to the harder-to-optimize task (typically segmentation) to ensure stable, simultaneous convergence of both objectives.
Experimental Results
The model was rigorously evaluated on several benchmark datasets, including MFNet, PST900, FMB, and M3FD. These datasets cover a wide range of challenging environments, from nighttime urban scenes to industrial settings.
Fusion Quality
On the MFNet and M3FD benchmarks, MAFS demonstrated superior performance, ranking first in five out of six quantitative metrics, including Entropy (EN), Spatial Frequency (SF), and Visual Information Fidelity (VIF). These results indicate that the fused images are not only visually clear but also rich in information content.
Segmentation Performance
MAFS achieved a state-of-the-art 57.44% mIoU on the MFNet dataset. This outperforms previous collaborative frameworks such as SeAFusion (56.07%) and SegMiF (57.21%), proving that the joint optimization strategy successfully enhances high-level scene understanding.
Computational Efficiency
Despite its dual-task capabilities, MAFS remains computationally competitive. With 128.69M parameters and 324.22 GFlops, it is more efficient than some dedicated segmentation-only models like LASNet, making it a viable candidate for integrated perception systems.
Key Insights and Future Directions
The success of MAFS highlights two critical insights: first, that high-level semantic knowledge can actually improve low-level fusion by helping the model identify and preserve critical targets (like pedestrians or vehicles); and second, that self-supervised pre-training via MAE provides a superior foundation for multi-modal tasks.
Future work will focus on further lightweighting the backbone for real-time deployment on embedded sensors and exploring the integration of generative diffusion models to further enhance the structural integrity of fused images. Additionally, addressing open-set generalization remains a priority to ensure the model can handle out-of-distribution objects in unpredictable real-world environments.
Summary updated