Estimating the Hessian Matrix of Ranking Objectives for Stochastic Learning to Rank with Gradient Boosted Trees

Jingwei Kang, Maarten de Rijke, Harrie Oosterhuis · DOI

Introduction

Learning to Rank (LTR) is a fundamental task in Information Retrieval, traditionally dominated by deterministic models like LambdaMART. Recently, Stochastic LTR has gained prominence by treating rankings as probability distributions, which facilitates better exploration and fairness. However, Gradient Boosted Decision Trees (GBDTs)—the industry standard for tabular ranking data—have been sidelined in this area because they require second-order derivatives (the Hessian matrix) for optimization. This paper bridges that gap by introducing a computationally efficient Hessian estimator, enabling GBDTs to achieve state-of-the-art performance and superior stability in stochastic LTR frameworks.

Methodology: Efficient Hessian Estimation

The authors build upon the PL-Rank framework, which utilizes the Plackett-Luce (PL) model to define ranking probabilities. The primary challenge in optimizing stochastic ranking objectives is that standard metrics like NDCG are non-differentiable. While Neural Networks (NNs) can function with first-order gradients, GBDTs require the Hessian to build their trees effectively.

To address this, the authors derived a mathematical estimator for the second-order derivative of the expected reward function. By introducing three pre-computed terms, they reduced the computational complexity from a factorial number of permutations to linear time ($O(K)$ per ranking, where $K$ is the cutoff). This estimator was integrated into the XGBoost library, ensuring that the added overhead is minimal and the total complexity remains competitive with traditional methods.

Experimental Results

The researchers evaluated their method on three large-scale LTR benchmarks: Yahoo! Webscope-Set1, MSLR-Web30K, and Istella, optimizing for DCG at cutoffs of $K=5$ and $K=10$.

Performance and the Necessity of the Hessian

A key insight from the experiments is that the Hessian is not merely an optimization; it is a requirement. Training GBDTs using only gradients resulted in extremely poor performance. With the new estimator, GBDTs achieved significant gains.

Performance comparison of GBDT with and without Hessian vs. Neural Networks on Yahoo! and MSLR datasets.

As shown in the figure above, GBDTs with the Hessian estimator (red circles) significantly outperform the gradient-only baseline (orange triangles) and surpass Neural Networks (pink triangles) on both the Yahoo and MSLR datasets. On the Yahoo dataset at $K=10$, the GBDT with Hessian reached an NDCG of 0.7905, compared to 0.7867 for NNs.

Optimization Stability

One of the most significant findings is the difference in convergence behavior. Neural Networks in stochastic LTR often exhibit unstable convergence, where performance peaks and then degrades, necessitating careful early stopping. In contrast, GBDTs with the Hessian estimator show remarkably stable, monotonic improvement.

Long-term training performance on Yahoo! Webscope-Set1, comparing the stability of GBDTs with Hessian against Neural Networks.

In long-running experiments extending to 4,000 epochs, NNs eventually saw performance drops, while GBDTs remained stable or continued to improve. This suggests that GBDTs are much more robust to training duration and hyperparameter settings in this context.

Conclusion and Future Work

This research successfully integrates GBDTs into the stochastic LTR paradigm by providing an efficient Hessian estimator. While NNs still held an edge on the Istella dataset, GBDTs proved superior or equal on other major benchmarks with significantly better optimization stability. Future work may extend this Hessian estimator to other objectives, such as exposure-fairness, further broadening the application of GBDTs in modern, probabilistic ranking systems.

Summary updated

BibTeX
@inproceedings{kang2024estimating,
  author = {Jingwei Kang and Maarten de Rijke and Harrie Oosterhuis},
  title = {{Estimating the Hessian Matrix of Ranking Objectives for Stochastic Learning to Rank with Gradient Boosted Trees}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2024},
  doi = {10.1145/3626772.3657918},
}
Figure