Source-linked AI summary

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

Vassileios Balntas, Edward Johns, Lilian Tang, Krystian Mikolajczyk

arXiv:1601.05030v1cs.CV

TL;DR

CNN-based descriptors improve image-patch matching but are costly in training, execution, data, and dimensionality. PN-Net learns descriptors from patch triplets with the SoftPN loss, achieving lower matching error and improved efficiency. The paper also introduces broader evaluation data and protocols to assess generalisation and compare methods more consistently.

  • Problem

    CNN-based descriptors improve matching but have high training, execution, data, and dimensionality costs, while patch benchmarks and protocols remain limited and inconsistent.

  • Method

    PN-Net trains a CNN descriptor on triplets containing positive and negative patch pairs and uses SoftPN to exploit their relations.

  • Results

    Matching error decreases from 26% with SIFT to ≈7%, while extraction is 40 times faster than SIFT and only 3 times slower than BRIEF.

  • Takeaways & Limitations

    Triplet training and SoftPN produce a compact, fast descriptor with good generalisation, while the revised benchmark supports more detailed and consistent evaluation.

  • Takeaways & Limitations

    The evaluation field remains constrained by limited benchmark data, changing protocols, small improvement margins, and possible train-test distribution overlap; the implementation discussion focuses mainly on triplets with SoftPN.

Abstract

from arXiv · show

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.

1. Introduction

CNN-based local descriptors improve matching but impose substantial training, computation, dimensionality, and data costs. PN-Net addresses these constraints with triplet training, a new loss, and an expanded evaluation protocol.

  • Motivation: CNN descriptors significantly improve matching, but require extensive training, computation, annotated data, and feature dimensionality.Reported CNN systems use days of GPU training on hundreds of thousands of patches, with dimensionality reaching 4096.
  • Motivation: Existing patch benchmarks are limited, use inconsistent protocols, and may encourage over-fitting because training and testing data can share similar distributions.The paper identifies small benchmark datasets, changing evaluation measures, and narrow margins for improvement as additional challenges.
  • Contributions: PN-Net reduces matching error from 26% with SIFT to ≈7% while retaining SIFT dimensionality.The reported descriptor is also 40 times faster to extract than SIFT and only 3 times slower than BRIEF.
  • Contributions: PN-Net trains on positive and negative pairs formed by patch triplets and introduces the SoftPN loss to exploit both relations.The method is evaluated against CNN approaches and state-of-the-art descriptors across matching performance, extraction efficiency, dimensionality, and training time.
  • Contributions: The paper extends Oxford image sequences and modifies its evaluation protocol to separate noise types and assess descriptor generalisation.Together with patch data, the revised benchmark supports more detailed and comparable evaluation.

2. Related work

Prior work established that CNN-based and metric-learning descriptors can outperform traditional features, while hard-example selection improves training. PN-Net extends this line by learning from triplets and introducing SoftPN for local patch matching.

  • Handcrafted descriptors: Earlier descriptors evolved from handcrafted measurements to SIFT and later variants, with SIFT identified as a top pre-2005 performer.The related work situates recent learning-based descriptors within this longer progression.
  • CNN descriptors: CNN-based end-to-end descriptors and siamese networks trained with hinge loss reported consistent matching improvements over state-of-the-art descriptors.These approaches use positive and negative patch pairs with shared CNN weights.
  • Metric learning: Hard-example mining improves learning by identifying difficult training pairs and retraining the network on selected examples.Related metric-learning methods likewise exploit relationships among training points rather than treating all examples equally.
  • PN-Net: PN-Net uses positive and negative relations within patch triplets instead of pairs, matching the structure of problems with thousands of patch classes.Its SoftPN loss combines SoftMax-ratio ideas with hard-negative mining and is reported to improve matching, dimensionality, and training and test speed.

3. PN-Net

PN-Net learns local image descriptors from patch triplets rather than pairs, using the SoftPN loss to exploit all three within-triplet distances. The resulting descriptor improves matching while remaining compact and efficient.

  • Network architecture: PN-Net uses two positive patches from the same 3D point and one negative patch from another point, yielding one positive and two negative distances per triplet.The triplet architecture replaces the single pairwise distance used by siamese networks.
  • SoftPN loss: The SoftPN loss incorporates positive and negative examples simultaneously and performs soft negative mining without separately backpropagating selected hard negatives.It identifies the smaller of the two negative distances within each triplet.
  • SoftPN loss: Unlike Hinge Embedding, SoftPN makes negative distances contribute to optimization and includes both negative distances from each triplet.Its objective forces the smaller negative distance to exceed the positive distance.
  • Evaluation: Triplet-based learning produces substantially better matching results than siamese pair-based learning, with SoftPN achieving a 15% lower final error rate.The comparison uses the same underlying CNN and training data for the different loss functions.
  • Scope: The study focuses on triplet learning with SoftPN, while alternative nonlinearities and normalization layers are left for other network configurations.The paper presents those configurations in supplementary material rather than making them the main focus.

4. Experimental evaluations

The experiments evaluate PN-Net on Photo Tour and Oxford matching benchmarks, finding competitive or superior accuracy alongside substantially lower dimensionality and faster training and extraction.

  • Benchmark setup: The evaluation compares PN-Net with SIFT, Convex optimization, MatchNet, and DeepCompare on Photo Tour and Oxford local-descriptor benchmarks.The Photo Tour protocol measures false-positive rate at 95% true-positive rate, while Oxford evaluations use precision-recall and mAP.
  • Photo Tour dataset: PN-Net outperforms MatchNet on Photo Tour while producing a 128-dimensional descriptor instead of MatchNet’s 4096 dimensions.The comparison covers all training-testing combinations across Liberty, Yosemite, and Notredame, with one noted exception relative to all competing descriptors.
  • Training efficiency: After one epoch, PN-Net with SoftPN reaches performance close to state of the art, whereas DeepCompare required two days of training.A single epoch corresponds to approximately two minutes of training; full training reaches state-of-the-art performance in 100–200 epochs.
  • Oxford image sequences: On Oxford’s challenging graffiti and trees sequences, PN-Net outperforms MatchNet and DeepCompare, particularly on trees affected by blur.The curves report precision-recall performance, and the trees sequence is identified as especially difficult for DeepCompare.
  • Oxford image sequences: Across Oxford sequences, PN-Net 256 improves mean average precision by 2% over MatchNet despite MatchNet using a 4095-dimensional descriptor.The advantage is especially reported for affine deformations and blur, while scale-change sequences show the inverse pattern.
  • Computational efficiency: GPU PN-Net extraction is close to CPU BRIEF speed and remains faster than GPU-accelerated SIFT implementations.The descriptor is also smaller and faster than recently proposed deep feature descriptors, supporting use with large datasets.

5. Conclusion

The conclusion presents PN-Net as a triplet-trained CNN descriptor using SoftPN to combine positive and negative constraints. It reports faster learning, lower dimensionality, efficient extraction, good generalisation, and a revised evaluation protocol.

  • Approach: PN-Net trains a CNN descriptor with positive and negative constraints simultaneously for nearest-neighbour matching.The approach combines convolutional networks with ideas from distance metric learning and online boosting.
  • SoftPN loss: SoftPN is a triplet-based loss with hard-negative mining that avoids mining and retraining the network after each iteration.The experiments report faster convergence and lower error than hinge loss or SoftMax ratio.
  • Efficiency and generalisation: Triplet training yields a better descriptor and faster learning while allowing simpler networks, fewer examples, lower dimensionality, and extraction speed comparable to BRIEF.The conclusion also connects these properties with good generalisation results.
  • Evaluation resources: The paper proposes a revised feature-matching evaluation protocol and adds image sequences to the Oxford dataset.The stated aim is to reduce discrepancies between evaluation protocols and ambiguities in interpreting descriptor results.
  • Practical implications: The authors argue that PN-Net’s efficient computation, low memory requirements, and state-of-the-art performance could support real-time applications.The conclusion frames this as evidence that CNN descriptor efficiency need not be sacrificed for matching performance.
Loading 1601.05030v1…