FoMNet: Adaptive Kernels Meet Contextual Matching for Cross-Modal Homography Estimation

Zhuoran Yang, Zhenyu Yi, Runmin Zhang, Linshan Li, Yiming Li, Xiaokai Bai, Xiaohan Zhang, Hui-liang Shen, Si-Yuan CaoarXiv 2026

TL;DR

Aligning images from wildly different sensors—like matching a crisp satellite photo to a simplified street map, or an optical camera to radar—is notoriously difficult because corresponding pixels look nothing alike. FoMNet solves this by smartly upsampling semantic features from Vision Foundation Models using content-aware kernels rather than blurry, fixed interpolation, and then refining matches with global context. Plus, through clever self-distillation, the authors shrink inference latency by 34% while comfortably beating existing state-of-the-art accuracy.

Figure 1. Cross-modal homography estimation on five datasets. Image pairs illustrate the modality differences and alignment task; green and red quadrilaterals indicate ground truth and FoMNet predictions, respectively. The radar plot compares MACE with three existing methods, with larger radii indicating lower errors.

What Problem Does This Paper Address?

Imagine trying to overlay a thermal infrared image onto a standard daytime photograph of the exact same street. Finding the projective geometric transformation that aligns two views of a planar scene is called homography estimation. When both images come from regular RGB cameras, algorithms just look for matching textures and corners. Across different modalities, however, intensities invert, textures vanish, and local contrast goes haywire.

Modern deep-learning methods tackle this via coarse-to-fine, iterative searches—gradually zooming in on the alignment. Recently, researchers started plugging in Vision Foundation Models (VFMs) like DINOv2, hoping their rich, pre-trained semantic understanding would bridge the appearance gap. There’s a catch, though: VFMs output coarse, low-resolution patch features. To fuse them with high-resolution CNN features for pixel-accurate alignment, existing methods simply stretch the VFM features using fixed bilinear or bicubic interpolation. Because standard interpolation is completely blind to image boundaries and the actual matching task, nearby candidate pixels blur together, bottlenecking fine-scale accuracy.

Methods

FoMNet (Foundation Model-Enhanced Matching Network) rethinks both how foundation features are scaled up and how candidate matches are scored across three progressive scales. While using a frozen DINOv2 backbone, CNN encoders, and iterative corner-offset decoders is standard practice, the authors introduce three key innovations:

Figure 2. Overview of FoMNet. A shared encoder progressively adapts frozen DINOv2 features through PFU, with POOL providing input images at the required scales. At each matching scale, F projects the adapted VFM features and fuses them with CNN features. CCR then jointly processes source descriptors and local correlations using local interactions and global context constructed by spatial pooling (POOL). The refined correlations support corner-displacement updates over Q iterations per scale. After the three matching scales, DLT (Direct Linear Transform) recovers the final homography from the reference corners and their accumulated displacements, and Warping applies this transformation to the input image.
  • Patch Feature Upsampling (PFU): Instead of fixed interpolation, PFU progressively doubles VFM feature resolution using learned, location-specific kernels. Guided by the input image, it calculates local feature similarities, multiplies them by a Gaussian spatial prior, and refines the weights via a tiny residual network. In plain English: it learns which neighboring features to blend based on actual image structures before fusing them with CNN features.
  • Contextual Correlation Refinement (CCR): Raw dot-product correlations between cross-modal features are often ambiguous. Before predicting corner updates, CCR concatenates local correlation scores with the source image descriptors. It then passes them through local window self-attention and global cross-attention (against a pooled $8 \times 8$ memory grid) so each pixel’s match score is informed by both its immediate neighbors and the broader scene layout.
  • Distillation for Speed (FoMNet-D): Predicting custom kernels at every pixel takes time. To speed things up, the authors build FoMNet-D, ripping out PFU in favor of standard bicubic interpolation. To keep the features sharp, they use the trained FoMNet as a frozen teacher during training, forcing the student network to mimic the teacher's within-image pairwise feature similarities across scales.

Datasets

No new datasets are introduced. Instead, the authors evaluate FoMNet across five established cross-modal benchmarks, applying standard synthetic $128 \times 128$ patch deformations (random corner shifts up to $\pm 32$ pixels):

  • GoogleMap: Satellite imagery paired with cartographic maps.
  • OPT-SAR: Optical imagery paired with Synthetic Aperture Radar (SAR).
  • FSD: RGB images paired with disparity maps.
  • VIS-IR: Visible light paired with infrared imagery.
  • DPDN: RGB images paired with depth maps.

Key Insights and Ideas

  • How you upsample matters just as much as what you extract: Simply swapping bicubic upsampling for PFU drops corner error on OPT-SAR by 23.6%. Aligning spatial resolution isn't enough; VFM features need content-aware spatial aggregation to separate nearby candidates at fine scales.
  • FLOPs and MACs lie about real-world speed: FoMNet and FoMNet-D have virtually identical parameter counts (~5.7M trainable) and MACs (~96–97B). Yet FoMNet-D runs 34.0% faster on an RTX 4090. Custom neighborhood kernel gathering creates memory-access bottlenecks that raw compute metrics completely miss.
  • Internal geometry transfers via distillation: You don't need cross-modal supervision in the distillation loss to rescue bicubic interpolation. Simply teaching the student to preserve within-image pairwise feature relationships from the teacher recovers almost all the lost accuracy.

Key Results

FoMNet sweeps the board, achieving the lowest Mean Average Corner Error (MACE, measured in pixels) across all five datasets. Compared to the prior state-of-the-art method (MCNet), FoMNet slashes MACE by:

  • 72.7% on DPDN ($0.22 \rightarrow 0.06$ pixels)
  • 43.5% on GoogleMap ($0.23 \rightarrow 0.13$ pixels)
  • 40.4% on OPT-SAR ($1.36 \rightarrow 0.81$ pixels)
  • 11.2% on VIS-IR ($3.04 \rightarrow 2.70$ pixels) and 10.6% on FSD ($3.12 \rightarrow 2.79$ pixels).
Figure 4. Qualitative comparison on five modality pairs. Green and red quadrilaterals denote ground truth and predictions; red annotations report per-example ACE. All methods share the same input pair and geometric perturbation.

Qualitatively, correlation maps show that while MCNet gets distracted by image borders and repetitive SAR speckle noise, FoMNet locks cleanly onto distinct interior structures (like diagonal roads). Meanwhile, the distilled FoMNet-D cuts inference latency from $68.85\text{ ms}$ down to $45.42\text{ ms}$ per pair, staying within $0.02$ pixels of its teacher on three of the five datasets and still outperforming all prior baselines.

Limitations and Future Work

The authors are candid about one main bottleneck: inference speed. Even with FoMNet-D cutting latency down to $45.42\text{ ms}$, it remains noticeably slower than lightweight, non-VFM CNN baselines like MCNet ($16.50\text{ ms}$) due to the heavy DINOv2 backbone and multi-scale attention. Future work will focus on further accelerating inference latency without giving up the precision gains brought by foundation features.

Summary updated

Abstract

Cross-modal homography estimation requires reliable correspondences despite appearance differences between sensing modalities. Multi-scale refinement progressively reduces the search range, but its accuracy remains limited by the ability of matching features to distinguish nearby candidates. The vision foundation model (VFM) provides complementary representations, yet integrating these features through fixed interpolation leaves their spatial aggregation independent of image content and the correspondence objective. We propose the Foundation Model-Enhanced Matching Network (FoMNet), which combines learned spatial adaptation of VFM features with contextual correspondence estimation. Patch Feature Upsampling (PFU) progressively predicts location-specific kernels to aggregate neighboring features on upsampled grids, preparing VFM representations for fusion with CNN features at different matching scales. Contextual Correlation Refinement (CCR) then jointly processes source descriptors and local correlations with spatial context to refine candidate scores before each homography update. To reduce upsampling overhead, we develop FoMNet-D, which replaces PFU with bicubic interpolation and uses multi-scale feature-relation distillation to recover accuracy. Experiments on five cross-modal datasets show that FoMNet achieves the lowest mean average corner error (MACE) among the evaluated methods, reducing MACE by 10.6%-72.7% relative to MCNet. FoMNet-D retains competitive accuracy while reducing inference latency by 34.0% relative to FoMNet.
BibTeX
@misc{yang2026fomnet,
  author = {Zhuoran Yang and Zhenyu Yi and Runmin Zhang and Linshan Li and Yiming Li and Xiaokai Bai and Xiaohan Zhang and Hui-liang Shen and Si-Yuan Cao},
  title = {{FoMNet: Adaptive Kernels Meet Contextual Matching for Cross-Modal Homography Estimation}},
  year = {2026},
  eprint = {2611.34096},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.34096},
}
Figure