Learning Spread-Out Local Feature Descriptors

Xu Zhang, Felix X. Yu, Sanjiv Kumar, Shih-Fu Chang

Abstract: We propose a simple, yet powerful regularization technique that can be used to significantly improve both the pairwise and triplet losses in learning local feature descriptors. The idea is that in order to fully utilize the expressive power of the descriptor space, good local feature descriptors should be sufficiently “spread-out” over the space. In this work, we propose a regularization term to maximize the spread in feature descriptor inspired by the property of uniform distribution. We show that the proposed regularization with triplet loss outperforms existing Euclidean distance based descriptor learning techniques by a large margin. As an extension, the proposed regularization technique can also be used to improve image-level deep feature embedding.

Introduction

In computer vision, local feature descriptors are essential for matching images across different viewpoints. An ideal descriptor should be invariant to viewpoint changes for the same physical point while remaining highly distinct for different points. Standard training methods, such as pairwise or triplet losses, often struggle with the global structure of the descriptor space, leading to "clumping" where descriptors fail to utilize the available mathematical space effectively. This clumping increases the likelihood of false matches in large-scale retrieval tasks.

Global Orthogonal Regularization (GOR)

The authors propose that a high-quality descriptor space should be "spread out." Drawing inspiration from high-dimensional geometry, they note that two random points on a high-dimensional sphere are almost certainly nearly orthogonal. To enforce this property, they introduce Global Orthogonal Regularization (GOR), a plug-and-play term added to existing loss functions.

The training pipeline integrates GOR with a standard triplet loss, using shared weights and an l2 normalization layer.

GOR works by analyzing a batch of non-matching patches and penalizing deviations from an ideal uniform distribution. It specifically targets two statistical moments:

  1. Mean of Inner Products ($M_1$): Pushes the average similarity of non-matching pairs toward zero (orthogonality).
  2. Second Moment ($M_2$): Ensures the spread of these similarities matches a uniform distribution, pushing $M_2$ toward $1/d$, where $d$ is the descriptor dimension.

Key Insights: The Geometry of High Dimensions

A core insight of this work is that in high-dimensional spaces (e.g., $d \ge 64$), "far away" is statistically equivalent to "orthogonal." By forcing non-matching descriptors toward orthogonality, the network is compelled to use the entire surface of the unit sphere, creating a more robust representation.

As the dimension $d$ increases, the probability density of inner products for random vectors becomes increasingly concentrated around zero.

This "spread-out" property is a phenomenon of high-dimensional space. Empirical results show that GOR provides significant gains primarily when the descriptor dimension is sufficiently high, as lower dimensions lack the capacity to satisfy the orthogonality condition without compromising matching performance.

Experimental Results

The method was evaluated on the UBC Patch Dataset (Yosemite, Notre Dame, and Liberty) and the Stanford Online Products dataset. Key findings include:

  • Significant Error Reduction: On the UBC dataset, adding GOR to a standard triplet loss reduced the False Positive Rate at 95% recall (FPR95) from 6.47% to 4.36%—a relative improvement of over 30%.
  • State-of-the-Art Performance: The combination of Triplet Loss, Anchor Swapping, and GOR (TL+AS+GOR) outperformed all existing Euclidean distance-based descriptors at the time of publication.
  • Versatility: GOR improved performance across various base losses, including Pairwise and Structured losses, demonstrating its broad applicability.

Conclusion and Future Work

While GOR is highly effective for high-dimensional descriptors, it is less beneficial for low-dimensional spaces or very small datasets where the assumption of a uniform distribution may not hold. Future research may explore extending this "spread-out" logic to non-Euclidean metric spaces or more complex data structures. Nevertheless, GOR remains a computationally efficient and powerful tool for improving the global structure of learned feature embeddings.

Summary updated

BibTeX
@inproceedings{zhang2017learning,
  author = {Xu Zhang and Felix X. Yu and Sanjiv Kumar and Shih-Fu Chang},
  title = {{Learning Spread-Out Local Feature Descriptors}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  url = {https://openreview.net/forum?id=BJWTLbzubB},
}
Figure