[Paper Review] AdaSample: Adaptive Sampling of Hard Positives for Descriptor Learning
AdaSample proposes an adaptive online batch sampler that selects hard positives based on their informativeness to improve descriptor learning. By formulating a hardness-aware training protocol via maximum loss minimization, it achieves consistent and significant performance gains over strong baselines like HardNet on standard benchmarks such as HPatches and UBC Phototour.
Triplet loss has been widely employed in a wide range of computer vision tasks, including local descriptor learning. The effectiveness of the triplet loss heavily relies on the triplet selection, in which a common practice is to first sample intra-class patches (positives) from the dataset for batch construction and then mine in-batch negatives to form triplets. For high-informativeness triplet collection, researchers mostly focus on mining hard negatives in the second stage, while paying relatively less attention to constructing informative batches. To alleviate this issue, we propose AdaSample, an adaptive online batch sampler, in this paper. Specifically, hard positives are sampled based on their informativeness. In this way, we formulate a hardness-aware positive mining pipeline within a novel maximum loss minimization training protocol. The efficacy of the proposed method is evaluated on several standard benchmarks, where it demonstrates a significant and consistent performance gain on top of the existing strong baselines.
Motivation & Objective
- Address the imbalance in triplet mining by focusing on informative batch construction, not just hard negative mining.
- Improve descriptor generalization by dynamically adjusting training difficulty based on network progress.
- Develop a principled sampling strategy that quantifies the informativeness of training examples via gradient-based analysis.
- Overcome limitations of existing methods that treat batch construction as random or static, leading to suboptimal training signals.
- Demonstrate consistent performance gains across multiple tasks including patch retrieval, verification, and matching.
Proposed method
- Define informativeness of training samples using the magnitude of their contributing gradients, which estimates their potential impact on model optimization.
- Formulate a tractable sampling probability expression (Eqn. 13) that prioritizes more informative positive pairs for batch construction.
- Introduce a maximum loss minimization-inspired training protocol that adaptively adjusts the overall hardness of triplets based on training progress.
- Integrate the adaptive sampling into a triplet loss framework, enabling online, dynamic batch construction during training.
- Use angular hinge triplet (AHT) loss as the primary optimization objective, which outperforms standard hinge triplet (HT) loss in most settings.
- Balance sampling between hard positives and negatives via a hyperparameter λ, with λ=10 showing optimal performance on HPatches.
Experimental results
Research questions
- RQ1Can adaptive sampling of hard positives improve descriptor learning beyond traditional hard negative mining?
- RQ2How does the informativeness of positive samples—measured via gradient contributions—affect model convergence and performance?
- RQ3Does dynamically adjusting triplet hardness during training lead to better generalization compared to fixed sampling strategies?
- RQ4What is the optimal trade-off between sampling hard positives and maintaining diversity in mini-batches?
- RQ5Can the proposed method achieve statistically significant improvements over state-of-the-art baselines like HardNet and L2-Net?
Key findings
- AdaSample achieves a 94.78% verification accuracy on HPatches with AHT loss and λ=10, outperforming HardNet (94.42%) by 0.36%.
- On the same benchmark, AdaSample achieves 83.98% retrieval accuracy, a 0.57% improvement over HardNet’s 83.41%.
- In patch classification, AdaSample shows up to 8.38% relative improvement over HardNet on the Notredame-to-Liberty setting, with p-value = 0.011.
- Statistical significance testing (Mann-Whitney U test) confirms that AdaSample’s performance gain is significant at α=5% in 5 out of 6 experimental settings.
- The ablation study shows λ=10 yields the best performance across tasks, indicating a balanced sampling strategy outperforms extreme hard-positive-only sampling.
- The method demonstrates high reproducibility, with standard deviations below 0.05 across five random seeds, suggesting stable gradient-based sampling.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.