Not All Patches are Equal: Sampling Matters for Visible-Infrared Pre-Training

Qiwei Ma, Bin Deng, Junjie Zhu, Qiangjuan Huang, Puhong Duan +3 more
7/22/2026
cs.CV

No confident code implementation found for this paper.

Abstract

Visible-infrared (VIS-IR) alignment is a key pre-training task for robust multi-sensor perception. Most existing methods use uniform patch-wise contrastive learning, but this can be unreliable in VIS-IR data because imaging-physics differences make some spatially paired regions inherently less comparable, and aligning them with equal strength hinders representation learning and downstream transfer. In this paper, we revisit VIS-IR pre-training from a sampling perspective and propose Importance-Aware Sampling (IAS), which adjusts training emphasis based on patch reliability. Specifically, IAS (i) derives patch weights from infrared structural cues and uses them to reweight the contrastive objective; (ii) learns a soft importance mask with a lightweight sampler, optionally warm-started from the hand-crafted prior; and (iii) employs a patch curriculum learning strategy that gradually expands from high-reliability regions to harder patches. It is worth noting that IAS is plug-and-play and works with both patch-/correlation-level alignment (e.g., UNIV-style) and image-level contrastive baselines (e.g., ImageBind-style). Extensive experiments on multiple VIS-IR benchmarks demonstrate consistent improvements over strong baselines, including for IR semantic segmentation, IR object detection and VIS semantic segmentation and cross-modal retrieval task. Code will be released on https://github.com/KlayMa527/IAS.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ma2026patches,
  title  = {Not All Patches are Equal: Sampling Matters for Visible-Infrared Pre-Training},
  author = {Qiwei Ma and Bin Deng and Junjie Zhu and Qiangjuan Huang and Puhong Duan and Ke Yang and Xudong Kang and Shutao Li},
  year   = {2026},
  eprint = {2607.20238},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.20238v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.20238.svg)](https://codeofpaper.com/paper/2607.20238)

Discussion