Cascade Network with Guided Loss and Hybrid Attention for Two-view Geometry

Zhi Chen, Fan Yang, Wenbing TaoarXiv 2020

Abstract

Estimating two-view geometry is a fundamental task in computer vision, typically involving the identification of correct point correspondences (inliers) amidst a sea of outliers. This paper introduces a cascade network architecture that leverages a novel "Guided Loss" and a "Hybrid Attention Block" (HAB) to achieve state-of-the-art performance. The Guided Loss directly optimizes for the $F_n$-measure, balancing precision and recall dynamically, while the HAB incorporates classical geometric priors to enhance feature representation.

Introduction

Determining the relative orientation between two images—two-view geometry estimation—relies on finding accurate matches between points. However, putative correspondence sets are often dominated by outliers. Deep learning approaches typically treat this as a binary classification problem, but they face challenges like extreme class imbalance and the difficulty of encoding global context in noisy environments.

Methods

The proposed approach addresses these challenges through three primary innovations: a mathematically grounded Guided Loss, a Hybrid Attention Block, and a multi-stage cascade architecture.

Hybrid Attention Block (HAB) and Cascade Pipeline

The network utilizes a "coarse-to-fine" strategy across three stages. Early stages prioritize high recall to retain potential inliers, while later stages focus on high precision to filter noise. The core component, the Hybrid Attention Block (HAB), integrates Bayesian Attentive Context Normalization (BACN) and Channel-wise Attention (CA). BACN uses Lowe’s Ratio as a prior to help the network ignore likely outliers during global statistic calculation.

Architecture of the Hybrid Attention Block (a) and the overall cascade network pipeline (b).

Guided Loss

Standard Cross-Entropy loss often fails to optimize the metrics actually used for evaluation, such as the $F_n$-measure. The authors introduce a Guided Loss that dynamically adjusts weights for positive and negative samples. They prove a negative correlation between this loss and the $F_n$-measure, ensuring that minimizing the loss directly improves the target performance metric.

Experimental Results

The model was evaluated on the St&Brown and Colmap benchmarks, which include diverse indoor and outdoor scenes. Training and testing were performed on separate scenes to ensure generalization.

Quantitative Performance

The proposed network significantly outperforms previous state-of-the-art models like OA-Net and ACN-Net. On the St&Brown dataset, the model achieved a mean Average Precision (mAP) of 31.25% at a 5° threshold. When integrated with RANSAC as a post-processing step, performance further improved to 41.90% mAP, demonstrating that the network provides a significantly cleaner input for traditional geometric solvers.

Comparison of the proposed method against state-of-the-art approaches on St&Brown and Colmap datasets.

Conclusion

By bridging the gap between training loss and evaluation metrics and incorporating classical geometric heuristics into deep learning architectures, this work sets a new standard for two-view geometry estimation. Future work may explore the computational trade-offs of the cascade design and the generalizability of the Guided Loss to other imbalanced classification tasks.

Summary updated

BibTeX
@misc{chen2020cascade,
  author = {Zhi Chen and Fan Yang and Wenbing Tao},
  title = {{Cascade Network with Guided Loss and Hybrid Attention for Two-view Geometry}},
  year = {2020},
  eprint = {2007.05706},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.05706},
}
Figure