[Breaking] Replace DART with tree subsampling #12536
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.47) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 481 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.370
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #12536"
general
weight: 0.35
RAMitchell
Closes https://github.com/dmlc/xgboost/issues/12339.
Summary
Replace DART tree-reweighting normalization with expectation-preserving tree subsampling applied to the temporary training prediction.
For tree retention probability $q$, each existing tree is independently retained with
and gradients are calculated from
The base score or base margin $F_0$ is protected from normalization, giving
The new tree is committed normally without modifying the weights of existing or newly added trees.
Motivation
Existing DART normalization repeatedly modifies historical tree weights. This changes the effective convergence behavior and complicates prediction caching, serialization, model continuation, and inference.
The new formulation treats the existing trees as a sampled training input:
weight_drop.Parameters and migration
tree_subsample, the probability of retaining each existing tree, with $0.000001 \leq q \leq 1$ and default $q=1$.tree_subsampleis absent, deprecatedrate_drop=ris converted totree_subsample=1-r.tree_subsampletakes precedence.sample_type,normalize_type,one_drop, andskip_drophave no exact conversion. They are ignored with removal warnings that link the same issue.booster=dartremains accepted as a deprecated alias forgbtreeand warns that legacy DART normalization has been removed.Relation to row subsampling
Tree subsampling introduces variance into training and can help reduce overfitting similarly to row subsampling.
Row subsampling perturbs only the tree fitted in the current round, so its relative influence on the total ensemble prediction diminishes as the ensemble grows. Tree subsampling perturbs every accumulated tree at the same per-tree probability, so its effect does not vanish merely because the ensemble contains more trees.
Consequently, the omitted-tree fraction
1 - tree_subsamplewill often need to be smaller than the omitted-row fraction1 - subsample.Compatibility
This is an algorithmically breaking change: the legacy DART normalization algorithm is removed rather than emulated. Existing configurations remain parseable, and
rate_dropreceives an explicit conversion and behavioral warning instead of being silently ignored.Legacy weighted DART models remain loadable and retain their historical tree weights for prediction. New rounds appended to legacy models are committed with unit weight.
Performance
This PR does not attempt to optimize sampled training prediction. The current implementation expresses the random sample through temporary prediction weights and still traverses the full ensemble. A future optimization can predict only the omitted trees and subtract their contribution from the cached full prediction.
Testing
testxgboostbuild successfully.git diff --checkpass.CUDA, R, JVM, and Ruff validation are left to CI.