Abstract
Joint RGB-infrared perception is essential for achieving robustness under diverse weather and illumination conditions. Although foundation models excel within single modalities, they suffer from substantial cross-modal degradation, an issue we attribute to a pattern shortcut, i.e., a modal bias that prioritizes superficial sensor patterns over underlying semantics. To address this problem, we introduce UNIV, a Unified foundation model for Infrared and Visible modalities. At the core of UNIV lies Patch Cross-modal Contrastive Learning (PCCL), a self-supervised contrastive learning strategy that constructs a unified cross-modal feature space. PCCL employs a frozen pre-trained model to sample pseudo patch pairs based on semantic similarity, and aligns infrared-visible representations by attracting semantically related pairs while repelling unrelated ones. This process simultaneously enhances cross-modal alignment and inter-class semantic separability, guiding the model to focus on semantic structure rather than falling into pattern shortcuts. To further enable cross-modal learning, we introduce MVIP, the most comprehensive visible-infrared benchmark to date, containing 98,992 precisely aligned image pairs across diverse scenes. Extensive experiments demonstrate UNIV's superior performance on infrared tasks (+1.7 mIoU for semantic segmentation and +0.7 mAP for detection), while maintaining competitive accuracy on RGB tasks.
Introduction
Joint visible (RGB) and infrared (IR) perception is critical for robust computer vision, particularly in autonomous driving and surveillance where lighting conditions vary drastically. While foundation models have achieved remarkable success in single modalities, they often struggle with cross-modal generalization.
This failure is primarily due to the "pattern shortcut"—a phenomenon where models over-rely on modality-specific superficial cues, such as color and texture in RGB or thermal intensity in IR. Consequently, an RGB-trained model fails on IR data because it lacks the expected texture, while an IR-trained model is confused by RGB color patterns. UNIV addresses this by forcing the model to learn underlying semantic structures rather than sensor-specific patterns, effectively bridging the visible-infrared divide.
Methodology
Patch Cross-modal Contrastive Learning (PCCL)
To build a model that understands semantics across modalities, we propose the Patch Cross-modal Contrastive Learning (PCCL) strategy. PCCL aligns features at a granular patch level, which is essential for dense prediction tasks like segmentation and detection.
The pipeline operates as follows:
- Attention-Guided Patch Anchors: We utilize a frozen, pre-trained RGB vision transformer (MCMAE). The attention maps from its final layer serve as a robust, purely semantic reference. These maps generate pseudo-labels that identify which patches in an image are semantically related.
- Cross-Modal Alignment: A trainable encoder processes either RGB or IR images. Using a contrastive loss function, the network aligns its patch features with the frozen semantic anchors. This process "pulls" semantically related patches together across modalities and "pushes" unrelated ones apart.
- Efficient Adaptation with LoRA: Instead of full-parameter fine-tuning, we employ Low-Rank Adaptation (LoRA). By updating only a small fraction of parameters (approx. 2%), UNIV learns cross-modal alignment efficiently while preventing the "catastrophic forgetting" of its original RGB capabilities.
Datasets: MVIP
To facilitate this large-scale pre-training, we introduced the Multi-scene Visible-Infrared Pair (MVIP) dataset. MVIP is the most comprehensive benchmark of its kind, featuring 98,992 precisely aligned RGB-IR image pairs. These pairs are curated from five major public datasets (FLIR, LLVIP, LasHeR, M3FD, and Drone-based), covering urban driving, surveillance, and aerial drone scenarios.
Experimental Results
UNIV sets new state-of-the-art (SOTA) benchmarks for infrared downstream tasks while maintaining high performance on RGB tasks:
- Infrared Performance: On the MSRS-IR semantic segmentation dataset, UNIV achieved 76.0 mIoU, outperforming the previous SOTA (InfMAE) by +1.7 mIoU. In object detection (M3FD-IR), it reached 56.9 mAP, a +0.7 mAP improvement.
- RGB Preservation: Unlike previous models that suffer from "modality collapse" when adapting to IR, UNIV maintained its baseline RGB performance, scoring 79.0 mIoU on MSRS-RGB and retaining 99% of its original accuracy on the ADE20K dataset.
- Training Efficiency: The LoRA-based variant achieved these results by updating only 1.8 million parameters, demonstrating that selective adaptation is superior to full-parameter tuning for preserving semantic integrity.
Conclusion
UNIV successfully overcomes the pattern shortcut problem by aligning infrared and visible modalities into a unified semantic feature space. Through the PCCL strategy and the massive MVIP dataset, UNIV provides a robust foundation for multi-modal perception. Future work will explore scaling this approach to unaligned data, potentially further reducing the hardware requirements for cross-modal data collection.
Summary updated