Not All Pairs are Equal: Hierarchical Learning for Average-Precision-Oriented Video Retrieval
Yang Liu, Qianqian Xu, Peisong Wen, Siran Dai, Qingming Huang
TL;DR
This work targets the misalignment between training objectives and AP-based evaluation in video retrieval. It introduces HAP-VR, a self-supervised hierarchical framework that optimizes AP at both video and frame levels using a novel TopK-Chamfer video similarity and a gradient-friendly QuadLinear-$AP$ surrogate, complemented by frame similarity distillation from a self-supervised teacher. Empirically, HAP-VR delivers consistent gains over strong baselines on EVVE, SVD, and FIVR datasets, with notable improvements in both retrieval ($mAP$) and detection ($m{Cmu AP}$) tasks, and ablations validate the contributions of each component. The approach offers a practical pathway to align training with AP evaluation in videos, improving top-list quality and robustness to frame-level noise for real-world multimedia retrieval tasks.
Abstract
The rapid growth of online video resources has significantly promoted the development of video retrieval methods. As a standard evaluation metric for video retrieval, Average Precision (AP) assesses the overall rankings of relevant videos at the top list, making the predicted scores a reliable reference for users. However, recent video retrieval methods utilize pair-wise losses that treat all sample pairs equally, leading to an evident gap between the training objective and evaluation metric. To effectively bridge this gap, in this work, we aim to address two primary challenges: a) The current similarity measure and AP-based loss are suboptimal for video retrieval; b) The noticeable noise from frame-to-frame matching introduces ambiguity in estimating the AP loss. In response to these challenges, we propose the Hierarchical learning framework for Average-Precision-oriented Video Retrieval (HAP-VR). For the former challenge, we develop the TopK-Chamfer Similarity and QuadLinear-AP loss to measure and optimize video-level similarities in terms of AP. For the latter challenge, we suggest constraining the frame-level similarities to achieve an accurate AP loss estimation. Experimental results present that HAP-VR outperforms existing methods on several benchmark datasets, providing a feasible solution for video retrieval tasks and thus offering potential benefits for the multi-media application.
