liveBook · Manning

Weighted quantile sketch

As explained in Ensemble Methods for Machine Learning

A weighted quantile sketch is an approximate data-structuring algorithm for estimating quantile-based split points while accounting for example weights.

Weighted quantile sketch is XGBoost’s approximate split-finding algorithm. It estimates useful feature split points with quantiles while accounting for Hessian-weighted training examples, trading exactness for faster tree learning. section 6.3.1

Its practical intuition is close to histogram-based splitting, with important differences:

  • It bins feature values instead of evaluating every possible split. section 6.3.1
  • It creates feature-dependent buckets rather than evenly sized bins. section 6.3.1
  • It incorporates Hessian weights required by Newton boosting, unlike gradient-boosting implementations where examples are treated equally. section 6.3.1
  • It supports scalable training alongside presorted data blocks, caching, compression, and sharding. section 6.3.1

The full sketch construction and implementation are intricate, so the key operational takeaway is its efficiency–exactness tradeoff: approximate, weight-aware split selection enables Newton boosting on very large datasets. section 6.3.1 section 6.6

How Ensemble Methods for Machine Learning covers it

How deep it goes
Explains weighted split selection, feature-dependent buckets, and scalability, but defers the considerable implementation details.
Examples
Uses feature-dependent buckets, Hessian-weighted examples, and large-dataset XGBoost training as concrete illustrations.
What you can do after
Evaluate approximate split finding as an efficiency tradeoff in XGBoost and distinguish it from ordinary histogram binning.
How it connects
Links XGBoost, Newton boosting, Hessian weights, histogram-based splitting, and gradient boosting.

Also explained in

Compare how 2 books explain weighted quantile sketch →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Ensemble Methods for Machine Learning. The section links point to the parts of the book it draws on.