Why and How: Knowledge-Guided Learning for Cross-Spectral Image Patch Matching

Chuang Yu, Yunpeng Liu, Jinmiao Zhao, Xiangyu YuearXiv 2024

Abstract

Recently, cross-spectral image patch matching based on feature relation learning has attracted extensive attention. However, performance bottleneck problems have gradually emerged in existing methods. To address this challenge, we make the first attempt to explore a stable and efficient bridge between descriptor learning and metric learning, and construct a knowledge-guided learning network (KGL-Net), which achieves amazing performance improvements while abandoning complex network structures. Specifically, we find that there is feature extraction consistency between metric learning based on feature difference learning and descriptor learning based on Euclidean distance. This provides the foundation for bridge building. To ensure the stability and efficiency of the constructed bridge, on the one hand, we conduct an in-depth exploration of 20 combined network architectures. On the other hand, a feature-guided loss is constructed to achieve mutual guidance of features. In addition, unlike existing methods, we consider that the feature mapping ability of the metric branch should receive more attention. Therefore, a hard negative sample mining for metric learning (HNSM-M) strategy is constructed. To the best of our knowledge, this is the first time that hard negative sample mining for metric networks has been implemented and brings significant performance gains. Extensive experimental results show that our KGL-Net achieves SOTA performance in three different cross-spectral image patch matching scenarios.

Introduction

Matching image patches across different spectra—such as visible light (VIS) to near-infrared (NIR) or Synthetic Aperture Radar (SAR)—is a notoriously difficult task in computer vision. Because physical sensor properties differ, the same object can appear fundamentally different across bands. Traditional approaches generally fall into two categories: Descriptor Learning, which maps patches to high-dimensional vectors for Euclidean distance comparison, and Metric Learning, which uses a network to output a direct similarity score.

While metric learning often offers higher accuracy, it frequently results in "bloated" networks that are difficult to train. Recent research has hit a wall where simply increasing network depth yields diminishing returns. KGL-Net addresses this by rethinking the integration of these two approaches, creating a "knowledge-guided" bridge that allows them to inform each other during training.

Methodology: The KGL-Net Framework

The core of KGL-Net is a stable and efficient bridge between descriptor and metric learning. This framework rests on three primary pillars:

  1. Feature Extraction Consistency: The authors observed that metric learning (based on feature differences) and descriptor learning (based on Euclidean distance) seek the same underlying information. They designed an architecture where branches share low-level layers but diverge for high-level tasks, ensuring they "speak the same language."
  2. HNSM-M (Hard Negative Sample Mining for Metric Learning): This is the paper's most novel contribution. The system uses the descriptor branch to quickly calculate a distance matrix for a batch of patches, identifying which non-matching patches are most similar (the "hard negatives"). These difficult pairs are then fed into the metric branch, forcing it to learn much finer distinctions.
  3. Feature-Guided Loss: To ensure the bridge remains stable, a loss function constrains the feature maps of both branches to remain consistent, preventing divergence.
The KGL-Net architecture featuring the HNSM-M strategy and the integrated metric branch.

Experimental Results

The authors evaluated KGL-Net on three diverse cross-spectral scenarios: VIS-NIR (1.6 million patch pairs), VIS-LWIR (thermal), and Optical-to-SAR (OS). KGL-Net established new state-of-the-art (SOTA) benchmarks across all datasets.

  • Accuracy: On the VIS-NIR dataset, KGL-Net reduced the FPR95 (False Positive Rate at 95% recall) from 0.85 to 0.54—a 36.5% improvement over the previous leader, FIL-Net.
  • Efficiency: KGL-Net is significantly more efficient than its predecessors. Compared to the lightweight EFR-Net, KGL-Net reduced the total parameter count by 30.1% (from 9.17M to 6.41M) while delivering superior performance.
Performance comparison of KGL-Net against other SOTA models, showing FPR95 vs. Parameter count.

Conclusion and Insights

KGL-Net demonstrates that complexity is not the only path to performance. By leveraging the global ranking ability of descriptor networks to "teach" the metric network via hard negative mining, the model achieves higher accuracy with fewer parameters. Ablation studies confirmed that sharing early, low-level feature extraction layers is optimal for cross-spectral tasks, as basic textures are often shared across spectra even when intensities differ. Future work may involve incorporating global context features to improve matching in repetitive environments like forests or urban grids.

Summary updated

BibTeX
@misc{yu2024why,
  author = {Chuang Yu and Yunpeng Liu and Jinmiao Zhao and Xiangyu Yue},
  title = {{Why and How: Knowledge-Guided Learning for Cross-Spectral Image Patch Matching}},
  year = {2024},
  eprint = {2412.11161},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.11161},
}
Figure