PN-Net: Conjoined Triple Deep Network for Learning Local Image Descriptors

Vassileios Balntas, Edward Johns, Lilian Tang, Krystian MikolajczykarXiv 2016

Abstract

In this paper we propose a new approach for learning local descriptors for matching image patches. It has recently been demonstrated that descriptors based on convolutional neural networks (CNN) can significantly improve the matching performance. Unfortunately their computational complexity is prohibitive for any practical application. We address this problem and propose a CNN based descriptor with improved matching performance, significantly reduced training and execution time, as well as low dimensionality. We propose to train the network with triplets of patches that include a positive and negative pairs. To that end we introduce a new loss function that exploits the relations within the triplets. We compare our approach to recently introduced MatchNet and DeepCompare and demonstrate the advantages of our descriptor in terms of performance, memory footprint and speed i.e. when run in GPU, the extraction time of our 128 dimensional feature is comparable to the fastest available binary descriptors such as BRIEF and ORB.

Introduction

Local descriptors are the mathematical fingerprints used to match points between different images, essential for tasks like 3D reconstruction or panorama stitching. While deep learning has pushed matching accuracy beyond handcrafted methods like SIFT, early CNN-based descriptors were often too slow for real-time use, produced high-dimensional feature vectors, and required days of training. PN-Net addresses these challenges by introducing a highly efficient CNN for learning local image descriptors that balances state-of-the-art accuracy with the speed and compact size of traditional methods.

Methodology

The core innovation of PN-Net lies in its Conjoined Triple architecture and the SoftPN loss function.

Triplet Architecture

Instead of the standard Siamese network which processes pairs of patches, PN-Net uses three identical CNN branches that share weights. During training, it processes a triplet consisting of two patches of the same physical point ($p_1, p_2$) and one "negative" patch ($n$) from a different point. This approach provides more constraints per training sample, leading to faster convergence.

Comparison of standard Siamese (top) and the proposed Triplet (bottom) architectures.

SoftPN Loss

Traditional hinge loss often leads to "dead" gradients by only penalizing negatives within a fixed threshold. SoftPN instead optimizes the ratio of distances. It identifies the "soft" hardest negative within the triplet and forces the network to push it further away while pulling the positive pair closer. This effectively performs implicit "hard negative mining" naturally within the loss function, making training significantly more efficient.

Experimental Setup

The authors evaluated PN-Net on several industry-standard benchmarks:

  • Photo Tour Dataset: Used to measure false positive rates at 95% recall across Liberty, Yosemite, and Notredame subsets.
  • Oxford Dataset (Extended): Augmented with illumination, rotation, and scale changes to test generalization.
  • Patch Data from Brown et al.: Used for primary training and testing of matching error.
Examples of image patch triplets used for training the PN-Net descriptor.

Key Results

PN-Net demonstrates significant improvements in both performance and efficiency:

  • Accuracy: Reduced matching error from 26.55% (SIFT) to approximately 7%, outperforming other deep models like MatchNet.
  • Speed: Descriptor extraction is 40x faster than SIFT and comparable to fast binary descriptors like BRIEF when run on a GPU.
  • Training Efficiency: A single epoch of training (1.2 million triplets) takes only 2 minutes on a modern GPU, compared to days for previous models.
  • Compactness: It produces a 128-dimensional float vector, making it a drop-in replacement for SIFT without increasing memory overhead.

Conclusion

PN-Net proves that deep learning descriptors can achieve high accuracy without prohibitive computational costs. By utilizing a shallow 2-layer CNN and a triplet-based loss function, the model achieves a rare combination of speed, low dimensionality, and robustness. Future work may address multi-scale processing and end-to-end detection to further enhance the utility of this approach.

Summary updated

BibTeX
@misc{balntas2016pn,
  author = {Vassileios Balntas and Edward Johns and Lilian Tang and Krystian Mikolajczyk},
  title = {{PN-Net: Conjoined Triple Deep Network for Learning Local Image Descriptors}},
  year = {2016},
  eprint = {1601.05030},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1601.05030},
}
Figure