Introduction
In machine learning, "ranking" is the task of ordering items based on preference—a fundamental component of search engines and recommendation systems. A standard metric for ranking quality is the Wilcoxon-Mann-Whitney (WMW) statistic, which represents the probability that a randomly chosen "better" item is ranked higher than a "worse" one.
However, the WMW statistic is defined over pairs of items. For a dataset with $m$ training samples, there are potentially $O(m^2)$ pairs to compare. This quadratic scaling makes standard gradient-based optimization prohibitively slow for large-scale applications, often forcing researchers to use only small subsets of their data. This paper introduces RankNCG, an algorithm that slashes this computational cost to $O(m)$.
Methods: RankNCG and Fast Summation
RankNCG is a nonlinear conjugate gradient approach that maximizes a continuous surrogate (a lower bound) of the WMW statistic. The core innovation lies in reducing the gradient computation from quadratic to linear time using techniques borrowed from computational physics.
The method employs a sigmoid approximation using the complementary error function (erfc). To compute the required sums efficiently, the authors use a Beaulieu series expansion and space sub-division (clustering). This allows for calculating gradients in linear time with a user-defined error tolerance ($\epsilon$) that can be set as low as machine precision.
Performance and Scalability
The researchers evaluated RankNCG on a diverse set of benchmarks, including artificial datasets (RandNet, RandPoly) and public datasets like California Housing and MovieLens. The results demonstrate that the "fast" version of the algorithm (RankNCG-fast) achieves nearly identical WMW scores to the "direct" version while being orders of magnitude faster.
For instance, on a dataset with approximately 50,000 points, the direct calculation would have taken over 17 hours, whereas the fast approximation completed in just 4.29 seconds. On the largest datasets, such as California Housing, competing state-of-the-art methods like RankNet, RankSVM, and RankBoost often failed due to memory constraints or excessive runtimes. RankNCG-fast, by contrast, handled these tasks efficiently, showing that high-accuracy preference learning is possible even on massive datasets.
Conclusion
By treating the ranking gradient computation like an N-body problem in physics, the authors successfully bypassed the $O(m^2)$ bottleneck. RankNCG-fast offers a scalable solution that maintains the accuracy of direct methods while providing massive speedups. Future work may involve extending these fast-summation techniques to non-linear kernels and integrating them into broader neural network architectures.
Summary updated