Introduction
In domains such as text processing, drug discovery, and computer vision, data is typically represented as high-dimensional sparse vectors. For instance, a bag-of-words representation can easily exceed 100,000 dimensions. Standard similarity learning aims to learn a matrix $M$ to compute the bilinear form $x^T M x'$. However, with $d$ dimensions, $M$ contains $d^2$ parameters. For $d=10^5$, this results in 10 billion parameters, leading to prohibitive memory requirements and severe overfitting.
Traditional approaches mitigate this by applying dimensionality reduction (e.g., PCA or random projections) before learning. However, these methods often "blur" features, sacrificing interpretability and potentially mixing signal with noise. This paper introduces High-Dimensional Similarity Learning (HDSL), a method that learns similarity measures directly in the original high-dimensional space without pre-processing.
The HDSL Framework
HDSL addresses the parameter explosion by enforcing extreme sparsity through a greedy optimization strategy. The core of the method relies on three pillars:
- Sparse Parameterization: The similarity matrix $M$ is modeled as a convex combination of 4-sparse basis matrices. Each basis represents the interaction between a specific pair of features $(i, j)$.
- Frank-Wolfe Optimization: Instead of a global update, the algorithm uses the Frank-Wolfe (FW) framework to greedily add one feature pair per iteration. This allows for precise control over model complexity; stopping early results in a sparser, more regularized model.
- Computational Efficiency: The complexity per iteration scales with the number of non-zero entries in the data ($D$) rather than the total dimensionality ($d$). A fast heuristic is employed to identify optimal feature pairs without exhaustive quadratic search.
As shown in the figure above, the number of selected features grows predictably with iterations, allowing the model to perform implicit feature selection and dimensionality reduction simultaneously.
Experimental Evaluation
The authors evaluated HDSL on several high-dimensional benchmarks:
- Dexter: 20,000 features (text data).
- Dorothea: 100,000 features (pharmaceutical data).
- Reuters CV1 (rcv1_2 and rcv1_4): ~30,000–47,000 features.
Dexter and Dorothea are particularly notable for their high noise levels and large proportions of irrelevant features, making them rigorous tests for any similarity learning algorithm.
Results and Analysis
HDSL consistently outperformed diagonal similarity learning and PCA-based baselines. On the noisy Dexter dataset, HDSL achieved a 6.5% error rate, significantly lower than PCA+OASIS (9.3%). Furthermore, HDSL surpassed various SVM configurations, including non-linear kernels, on datasets with many irrelevant features.
The figure above illustrates the performance on the Dorothea dataset. HDSL (dashed blue line) maintains a lower error rate across various projection space dimensions compared to Random Projections (RP) and PCA-based methods. Notably, HDSL achieved top-tier accuracy on this 100,000-dimension dataset using only 731 features, demonstrating extreme model compactness.
Conclusion
HDSL provides a robust framework for similarity learning in high-dimensional settings. By leveraging Frank-Wolfe optimization and sparse basis matrices, it produces interpretable models that resist overfitting in the presence of noise. The resulting matrices are remarkably sparse—often containing only 0.0001% non-zero entries—making HDSL an ideal tool for data exploration in fields like genomics where understanding feature interactions is critical. Future work involves refining the triplet constraint selection process to further improve scaling.
Summary updated