I. Introduction
Distance metric and similarity function play an important role in many classification and retrieval applications, such as that based on the computation of -nearest neighbors. Selecting an appropriate distance or similarity measurement is crucial to the success of addressing these problems. In the past two decades, many metric and similarity learning approaches have been proposed, and their superiority over the standard Euclidean distance has been demonstrated [1]–[3]. However, metric and similarity learning is highly problem-specific and challenging.