Abstract
Recently, metric learning and similarity learning have attracted a large amount of interest. Many models and optimisation algorithms have been proposed. However, there is relatively little work on the generalization analysis of such methods. In this paper, we derive novel generalization bounds of metric and similarity learning. In particular, we first show that the generalization analysis reduces to the estimation of the Rademacher average over "sums-of-i.i.d." sample-blocks related to the specific matrix norm. Then, we derive generalization bounds for metric/similarity learning with different matrix-norm regularisers by estimating their specific Rademacher complexities. Our analysis indicates that sparse metric/similarity learning with $L^1$-norm regularisation could lead to significantly better bounds than those with Frobenius-norm regularisation. Our novel generalization analysis develops and refines the techniques of U-statistics and Rademacher complexity analysis.
Introduction
In machine learning, the ability to learn an appropriate distance metric or similarity measure is fundamental to the success of algorithms such as k-Nearest Neighbors (kNN), clustering, and recommendation systems. While the field has seen a proliferation of optimization techniques for these tasks, a rigorous understanding of their generalization capabilities—the ability of a model to perform well on unseen data—has remained underdeveloped.
This paper addresses the theoretical gap in generalization analysis, particularly for models utilizing sparse regularizers. While previous research focused on strongly convex regularizers like the Frobenius norm, this work provides a comprehensive framework for analyzing a wider variety of matrix-norm regularizers, proving that sparsity is not just an empirical heuristic but a theoretically sound strategy for high-dimensional data.
Overcoming Pairwise Dependencies
The primary challenge in analyzing metric and similarity learning lies in the nature of the loss functions. Unlike standard classification where losses are calculated on individual points, metric learning involves pairs of examples $(x_i, x_j)$. This structure violates the standard "independent and identically distributed" (i.i.d.) assumption, as a single data point $x_i$ appears in multiple pairs, creating complex statistical dependencies.
To resolve this, the authors employ the theory of U-statistics. By using a "sample-block" decomposition trick, they reduce the dependent pairwise problem into a sum of i.i.d. blocks. This allows for the application of concentration inequalities, such as McDiarmid’s inequality, which are typically reserved for simpler i.i.d. settings.
Methodology: Rademacher Complexity
The authors define a specialized version of Rademacher complexity tailored for metric learning to quantify the flexibility of the function class. The core of the analytical work involves estimating the Rademacher average $R_n$ for various matrix norms. By applying the Khinchin-Kahane inequality, the paper derives specific bounds for:
- Frobenius-norm (standard regularization)
- Sparse $L^1$-norm (promoting element-wise sparsity)
- Mixed (2,1)-norm (promoting group sparsity)
- Trace-norm (promoting low-rank solutions)
Key Theoretical Results
The paper's most significant contribution is the mathematical proof that sparse regularizers provide superior generalization guarantees in high-dimensional spaces. For a dataset with $d$ dimensions and $n$ samples, the Rademacher complexity ($R_n$) scales differently depending on the chosen norm:
- Frobenius-norm: $R_n \leq \frac{2d}{\sqrt{n}}$
- Sparse $L^1$-norm: $R_n \leq 4 \sqrt{\frac{e \log d}{n}}$
- Mixed (2,1)-norm: $R_n \leq 4 \sqrt{\frac{ed \log d}{n}}$
These results demonstrate that as the number of features $d$ increases, the generalization bound for the Frobenius norm grows linearly, which can lead to rapid overfitting. In contrast, the $L^1$-norm bound grows only logarithmically with $d$. This confirms that for high-dimensional datasets where many features may be irrelevant, sparse metric learning is theoretically much more stable and less prone to the "curse of dimensionality."
Conclusion and Future Directions
This research provides a rigorous theoretical validation for the use of $L^1$ regularization in metric learning. By refining techniques in U-statistics and Rademacher complexity, the authors have established a framework that explains why sparse methods excel in modern, high-dimensional contexts.
Future work remains to be done in refining the bounds for trace-norm regularization, perhaps through the use of advanced oracle inequalities. Additionally, while this paper focuses on the generalization of the metric itself, a remaining challenge is to directly link these bounds to the final classification error of algorithms like kNN, providing a complete end-to-end theoretical pipeline for metric-based learning.
Summary updated