SOSNet: Second Order Similarity Regularization for Local Descriptor Learning.

Yurun Tian, Xin Yu, Bin Fan, Fuchao Wu, Huub Heijnen, Vassileios Balntas

TL;DR

This paper introduces SOSR, a novel regularization technique that leverages "second-order similarity" to improve local feature descriptors. By encouraging descriptors to maintain consistent relative distances to other points in their neighborhood, SOSR significantly boosts performance on various computer vision tasks, achieving state-of-the-art results.

What Problem Does This Paper Address?

Local feature descriptors are fundamental to many computer vision tasks like 3D reconstruction, image localization, and retrieval. While traditional methods relied on hand-crafted features, recent advancements focus on learning descriptors from data. A key challenge in learning these descriptors is designing effective loss functions. Most existing methods optimize for "first-order similarity" (FOS), ensuring that matching points have close descriptors and non-matching points have distant ones. However, this approach is limited to pairwise comparisons and doesn't fully capture the richer structural information present in the relationships between multiple points. The paper aims to address this gap by exploring the underutilized concept of "second-order similarity" (SOS) for descriptor learning.

Methods

The core contribution is the Second Order Similarity Regularization (SOSR) term. The intuition behind SOSR is that for a pair of matching points, their distances to other points in the descriptor space should be similar. Specifically, if x_i and x_i' are a matching pair, and x_j and x_j' are other points, then the difference d(x_i, x_j) - d(x_i', x_j') should be small. This is formulated as a regularization term that penalizes large variations in these distance differences.

SOSR is incorporated into the training objective alongside a First Order Similarity (FOS) loss. The FOS loss used is a Quadratic Hinge Triplet (QHT) loss, which is a modification of the standard Hinge Triplet loss that weights gradients based on the loss magnitude, leading to improved performance.

To make the SOSR computation more efficient and prevent overfitting on "easy" negatives (points already far from the positive pair), the authors introduce a nearest neighbor selection strategy. This strategy selects a subset of relevant negative points for each positive pair to compute the SOSR, inspired by active learning concepts.

For evaluation, a novel method based on the von Mises-Fisher (vMF) distribution is proposed. This distribution is suitable for analyzing unit vectors on a hypersphere, which is where normalized descriptors reside. The vMF distribution helps to understand how the descriptor space is utilized, specifically by measuring intra-class concentration and inter-class dispersion.

Datasets

The paper uses the following datasets for training and evaluation:

  • UBC Phototour: A widely used dataset for local patch descriptor learning, consisting of three subsets: Liberty, Notredame, and Yosemite. Models are trained on one subset and tested on the others.
  • HPatches: A dataset with over 1.5 million patches extracted from scenes with varying viewpoint and illumination. It includes tasks like patch verification, retrieval, and image matching, categorized by noise levels (easy, hard, tough).
  • ETH SfM: A benchmark for evaluating descriptors in the context of Structure from Motion (SfM) tasks, focusing on building 3D models from 2D images.

Key Insights and Ideas

  • Second-order similarity is crucial for descriptor learning: While SOS has been successful in graph matching, its application to learning local descriptors is novel and proves highly effective. It captures richer structural relationships than simple pairwise comparisons.
  • SOSR leads to more compact and discriminative clusters: The vMF distribution analysis on MNIST shows that SOSR helps create more concentrated clusters in low-dimensional spaces.
  • SOSR promotes better inter-class separation in high-dimensional spaces: In contrast to low-dimensional visualization, SOSR encourages descriptors to spread out more across the hypersphere, leading to better inter-class dispersion in high-dimensional descriptor spaces. This suggests that SOSR adapts its regularization strategy based on the dimensionality of the descriptor space.
  • The vMF distribution is a powerful tool for analyzing descriptor space utilization: This novel evaluation method provides insights into why certain descriptors perform better, linking descriptor space properties to matching performance.
  • QHT loss offers a simple yet effective improvement: The Quadratic Hinge Triplet loss, by adaptively weighting gradients, provides a noticeable performance boost over standard Hinge Triplet loss.

Key Results

  • State-of-the-art performance: SOSNet achieves the best performance on the UBC Phototour dataset, outperforming other methods by a significant margin in terms of false positive rate (FPR@95).
  • Superior performance on HPatches: SOSNet outperforms existing methods on all three tasks (verification, retrieval, image matching) on the HPatches dataset, even outperforming DOAP in retrieval despite DOAP using a specialized ranking loss.
  • Improved 3D reconstruction: On the ETH SfM benchmark, SOSNet leads to significantly denser 3D models, registering more images and producing more sparse points and observations compared to other methods.
  • Generalization ability: SOSNet trained on HPatches performs comparably to methods trained on UBC Phototour, demonstrating good generalization capabilities.

Limitations and Future Work

  • Computational overhead: While the paper introduces a strategy to mitigate computational cost, SOSR inherently involves more complex calculations than FOS alone. The paper mentions that "matching and reconstruction tasks still rely on brute force or approximate nearest neighbor matching" due to the computational demands of SOS, implying that the descriptor learning itself aims to reduce this overhead during matching.
  • Hyperparameter tuning: The performance of SOSNet is sensitive to hyperparameters like N (batch size) and K (nearest neighbors for SOSR). The paper analyzes the impact of these and identifies optimal values (N=512, K=8) for their experiments.
  • Future work could explore:
    • Integrating SOSR with other regularization techniques or loss functions.
  • Further optimizing the nearest neighbor selection strategy for SOSR computation.
  • Investigating the application of SOSR to other computer vision tasks beyond local descriptor learning.
  • Exploring the use of SOSR in conjunction with geometric constraints, similar to GeoDesc, to potentially achieve even better results.

Summary updated

BibTeX
@inproceedings{tian2019sosnet,
  author = {Yurun Tian and Xin Yu and Bin Fan and Fuchao Wu and Huub Heijnen and Vassileios Balntas},
  title = {{SOSNet: Second Order Similarity Regularization for Local Descriptor Learning.}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr.2019.01127},
}
Figure