NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Fast Ranking with Additive Ensembles of Oblivious and Non-Oblivious Regression Trees

Domenico Dato, Claudio Lucchese, Franco Maria Nardini, Salvatore Orlando, Raffaele Perego, Nicola Tonellotto, Rossano Venturini

Abstract

Modern Learning-to-Rank (LtR) systems rely on additive ensembles of regression trees to score documents, a process often bottlenecked by CPU cache misses and branch mis-predictions. This paper introduces QuickScorer (QS), a high-performance algorithm designed to accelerate document ranking. By representing tree ensembles as bitvectors and utilizing an interleaved, feature-by-feature traversal, QS effectively transforms control hazards into predictable data processing tasks. Experimental results on large-scale datasets like MSN-1, Y!S1, and Istella demonstrate speedups of up to 6.6x over existing state-of-the-art methods while significantly reducing hardware-level inefficiencies.

Introduction

Modern search engines must rank thousands of documents for every user query within strict latency constraints. This task is typically performed using complex machine learning models such as Gradient Boosted Regression Trees (GBRT). However, the traditional traversal of these trees—evaluating one document against one tree at a time—is inefficient on modern hardware. The primary bottlenecks are control hazards, caused by frequent conditional branching, and poor cache locality, resulting from jumping between disparate memory locations. QuickScorer addresses these issues by rethinking the tree traversal process from a hardware-aware perspective, bridging the gap between model complexity and real-time performance.

The QuickScorer Algorithm

The fundamental innovation of QuickScorer is the transformation of tree traversal into bitwise operations. Instead of following a path from root to leaf for every tree, QS identifies "false nodes"—nodes whose conditions are not met by the input document.

A standard non-oblivious regression tree. QuickScorer identifies the 'false nodes' to determine the exit leaf via bitwise operations.

Each tree in the ensemble is represented by a bitvector where each bit corresponds to a leaf. Internal nodes are mapped to bitmasks that indicate which leaves become unreachable if the node's test fails. By iterating through features rather than trees, QS evaluates all relevant thresholds across the entire ensemble simultaneously. A bitwise AND operation between the tree's current state and the masks of its false nodes eventually reveals the correct exit leaf. This "False Node Oracle" approach is highly efficient because most nodes in a large ensemble are either never visited or evaluate to true.

Specialized Variants: QS-Omega and BWQS

The authors also introduce QS-Omega, a variant optimized for oblivious trees. In an oblivious tree, all nodes at the same level test the same feature and threshold, leading to even greater cache efficiency and predictable memory access patterns.

An oblivious regression tree where all nodes at a given level share the same splitting feature and threshold, enabling the specialized QS-Omega variant.

To handle massive ensembles that exceed CPU cache limits, Block-wise QS (BWQS) processes documents and trees in blocks. This ensures that critical data structures remain within the fast L1/L2/L3 cache hierarchy, successfully mitigating the "cache wall" that typically degrades performance as model size increases.

Experimental Evaluation

The algorithm was evaluated on three major benchmarks: MSN-1, Yahoo (Y!S1), and the Istella (Full) dataset—a new, large-scale dataset released by the authors containing over 10 million query-document pairs.

Key results include:

  • Massive Speedups: QS outperformed VPRED (the previous state-of-the-art) by factors ranging from 1.9x to 6.6x.
  • Efficiency Gains: Compared to standard if-then-else implementations, QS was up to 24x faster for certain configurations.
  • Hardware Optimization: Profiling showed that QS visits only 20-25% of branching nodes compared to 50-80% in traditional methods, maintaining near-zero branch mis-prediction rates.

Conclusion

QuickScorer represents a significant advancement in the efficiency of Learning-to-Rank systems. By aligning algorithmic logic with modern CPU architectures—specifically focusing on bitwise operations and cache-aware data layouts—it allows for the deployment of more complex models without sacrificing search latency. Future work may involve further parallelization using SIMD or GPGPU architectures to push the boundaries of ranking speed even further.

Summary updated

BibTeX
@article{dato2016fast,
  author = {Domenico Dato and Claudio Lucchese and Franco Maria Nardini and Salvatore Orlando and Raffaele Perego and Nicola Tonellotto and Rossano Venturini},
  title = {{Fast Ranking with Additive Ensembles of Oblivious and Non-Oblivious Regression Trees}},
  journal = {ACM Trans. Information Systems},
  year = {2016},
  doi = {10.1145/2987380},
}
Figure