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.
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:
- 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).
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