StochasticRank: Global Optimization of Scale-Free Discrete Functions

Aleksei Ustimenko, Liudmila Prokhorenkova

Abstract

StochasticRank is a novel framework that enables the direct, global optimization of discrete ranking metrics such as Normalized Discounted Cumulative Gain (NDCG) and Mean Reciprocal Rank (MRR). By combining a debiased "consistent smoothing" technique with a global optimizer (Stochastic Gradient Langevin Boosting, or SGLB), it overcomes the bias and local optima traps that have historically limited learning-to-rank (LTR) algorithms.

The Challenge of Direct Metric Optimization

In search engines and recommendation systems, models are evaluated using ranking metrics like NDCG. However, these metrics are notoriously difficult to optimize directly. Because they depend entirely on the sorted order of items, they are "piecewise constant." If a model's score changes slightly, the rank remains identical until it suddenly jumps. Consequently, gradients are zero almost everywhere and undefined at the jump points.

To circumvent this, researchers typically rely on smooth "proxy" losses (like SoftRank) or heuristic gradient-based methods (like LambdaMART). The authors identify two major flaws in these standard approaches:

  1. Smoothing Bias: Most smoothing techniques are inconsistent with the underlying loss. This is especially true when handling "ties" (documents with the same score), which can lead the model toward suboptimal solutions.
  2. Local Optima: Ranking losses are inherently non-convex and multimodal. Existing methods frequently get trapped in local optima, missing out on significantly better ranking configurations.

The StochasticRank Framework

The authors introduce StochasticRank, a framework built on three primary technical pillars designed to address these flaws:

  • Consistent Smoothing: The authors mathematically prove that traditional smoothing introduces bias. To resolve this, they propose a "relevance-based" smoothing technique that shifts the noise distribution based on document relevance. This ensures that the optimum of the smoothed function perfectly aligns with the optimum of the original discrete metric.
  • Conditional Coordinate Sampling (CCS): Estimating gradients for discrete functions often suffers from high variance (the classic "REINFORCE" problem). Using partial integration, the authors derive a novel gradient estimator called CCS. This estimator boasts low variance and is "uniformly bounded," meaning it is mathematically stable enough to support global optimization.
  • Global Optimization via SGLB: Instead of relying on standard Gradient Boosting, the framework utilizes Stochastic Gradient Langevin Boosting (SGLB). By injecting controlled Gaussian noise into the gradients, SGLB allows the model to escape local optima and eventually converge on the global best solution.

The framework is also tailored for Scale-Free (SF) functions, recognizing that a ranking should not change if all scores are multiplied by a positive constant. They introduce a "Scale-Free Acceleration" (SFA) technique to enforce this property during training, significantly speeding up convergence.

Key Insights

  • The Tie-Breaking Trap: A critical insight in the paper is the formal proof that tie-handling methodology fundamentally impacts performance. Most LTR algorithms assume scores will always be distinct, but in practice—especially with decision trees—ties are frequent. Ignoring this reality introduces a fundamental bias that caps model performance.
  • Direct is Better: For years, the LTR field has gravitated toward increasingly complex proxy losses. This paper argues that with the right mathematical tools (CCS and SGLB), it is highly effective to return to basics and directly optimize the target metric.
  • Production Readiness: The authors implemented StochasticRank within the popular CatBoost library, bridging the gap between theoretical global optimization gains and production-grade gradient boosting.

Key Results

The authors evaluated StochasticRank across several standard LTR benchmarks, including a custom Synthetic Multimodal Dataset, the Yahoo! Learning to Rank Challenge (Sets 1 and 2), and Microsoft LETOR (WEB10K and WEB30K).

Performance on synthetic multimodal data
  • Global Convergence: On the synthetic dataset—specifically designed to test if models can navigate multiple local optima—StochasticRank successfully found the global optimum (0.917 NDCG@3). As shown in the table above, every other baseline method, including LambdaMART and SoftRank, became trapped in a local optimum (0.903 NDCG@3).
  • State-of-the-Art on Real Data: On the large-scale Yahoo and Microsoft datasets, StochasticRank consistently outperformed industry standards like LambdaMART and LambdaLoss. For instance, on Yahoo Set 1, it achieved an NDCG@5 of 74.92, compared to LambdaMART's 74.53.
  • MRR Gains: The method demonstrated particularly strong results for Mean Reciprocal Rank (MRR), a metric that is historically difficult for other frameworks to optimize due to its extreme sensitivity to the very top of the ranking list.

Limitations and Future Work

While StochasticRank represents a significant leap forward, it comes with trade-offs:

  • Computational Complexity: Although the algorithm is optimized to run in $O(n \log n)$ time for certain metrics, the SGLB global optimization process generally requires more iterations than standard boosting.
  • Hyperparameter Sensitivity: Global optimization via Langevin dynamics introduces new parameters, such as "diffusion temperature," which require careful tuning to balance exploration (escaping local optima) and exploitation (refining the current solution).
  • Generalization: The paper focuses heavily on ranking, but the authors note that the framework theoretically applies to any scale-free discrete loss. Future research could adapt these techniques for selection problems or other combinatorial optimization tasks in machine learning.

Summary updated

BibTeX
@inproceedings{ustimenko2020stochasticrank,
  author = {Aleksei Ustimenko and Liudmila Prokhorenkova},
  title = {{StochasticRank: Global Optimization of Scale-Free Discrete Functions}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
  url = {https://openreview.net/forum?id=Z7iJrKwk-hv},
}
Figure