3.0.0 is a milestone for XGBoost. This note will summarize some general changes and then
list package-specific updates. The bump in the major version is for a reworked R package
along with a significant update to the JVM packages.
External Memory Support
This release features a major update to the external memory implementation with improved
performance, a new ExtMemQuantileDMatrix for more efficient data
initialization, new feature coverage including categorical data support and quantile
regression support. Additionally, GPU-based external memory is reworked to support using
CPU memory as a data cache. Last but not least, we worked on distributed training using
external memory along with the spark package’s initial support.
External memory now supports distributed training (#10492, #10861). In addition, the
Spark package can use external memory (the host memory) when the device is GPU. The
default package on maven doesn’t support RMM yet. For better performance, one needs
to compile XGBoost from the source for now. (#11186, #11238, #11219)
Improved performance with new optimizations for both the hist-specific training and
the approx (DMatrix) method. (#10529, #10980, #10342)
Reduced binary cache size and memory allocation overhead by not writing the cut matrix. (#10444)
More feature coverage, including categorical data and all objective functions, including
quantile regression. In addition, various prediction types like SHAP values are
supported. (#10918, #10820, #10751, #10724)
GPU-based external memory supports both batch-based and sampling-based training. Before
the 3.0 release, XGBoost concatenates the data during training and stores the cache on
disk. In 3.0, XGBoost can now stage the data on the host and fetch them by
batch. (#10602, #10595, #10606, #10549, #10488, #10766,
#10765, #10764, #10760, #10753, #10734, #10691,
#10713, #10826, #10811, , , ,
)
See our latest document for details Using XGBoost External Memory Version. The PyPI package
(pipinstall) doesn’t have RMM support, which is required by the GPU external
memory implementation. To experiment, you can compile XGBoost from source or wait for the
RAPIDS conda package to be available.
The timeout option is now supported for NCCL using the NCCL asynchronous mode (#10850,
#10934, , ).
SYCL
Continuing the work on the SYCL integration, there are significant improvements in the
feature coverage for this release from more training parameters and more objectives to
distributed training, along with various optimization (#10884, #10883).
Starting with 3.0, the SYCL-plugin is close to feature-complete, users can start working
on SYCL devices for in-core training and inference. Newly introduced features include:
This section describes new features in the XGBoost core. For language-specific features,
please visit corresponding sections.
A new initialization method for objectives that are derived from GLM. The new method is
based on the mean value of the input labels. The new method changes the result of the
estimated base_score. (#10298, #11331)
In prior releases, XGBoost makes a copy for the booster to release memory held by
internal tree methods. We formalize the procedure into a new booster method
reset() / XGBoosterReset(). (#11042)
Optimization
In addition to the external memory and quantile sketching improvements, we have a number
of optimizations and performance fixes.
GPU tree methods now use significantly less memory for both dense inputs and near-dense
inputs. (#10821, #10870)
For near-dense inputs, GPU training is much faster for both hist (about 2x) and
approx.
Quantile regression on CPU now can handle imbalance trees much more efficiently. (#11275)
Small optimization for DMatrix construction to reduce latency. Also, C users can now
reuse the ProxyDMatrix for multiple inference
calls. (#11273)
CPU prediction performance for has been improved
() and now is on par with normal .
Breaking Changes
This section lists breaking changes that affect all packages.
Remove the deprecated DeviceQuantileDMatrix. (#10974, #10491)
Support for saving the model in the deprecated has been removed. Users can still
load old models in 3.0. (#10490)
Support for the legacy (blocking) CUDA stream is removed (#10607)
XGBoost now requires CUDA 12.0 or later.
Bug Fixes
Fix the quantile error metric (pinball loss) with multiple quantiles. (#11279)
Fix potential access error when running prediction in multi-thread environment. (#11167)
Check the correct dump format for the gblinear. (#10831)
Documentation
A new tutorial for advanced usage with custom objective functions. (#10283, #10725)
The new online document site now shows documents for all packages including Python, R,
and JVM-based packages. (#11240, #11216, #11166)
Validate reference dataset for training. The function now
throws an error if a is used as a validation
dataset without a reference. ()
R Package
We have been reworking the R package for a few releases now. In 3.0, we will start
publishing a new R package on R-universe, before moving toward a CRAN update. The new
package features a much more ergonomic interface, which is also more idiomatic to R
speakers. In addition, a range of new features are introduced to the package. To name a
few, the new package includes categorical feature support, QuantileDMatrix, and an
initial implementation of the external memory training. To test the new package:
Also, we finally have an online documentation site for the R package featuring both
vignettes and API references (#11166, #11257). A good starting point for the new interface
is the new function. We won’t list all the feature gains here, as there are
too many! Please visit the for more info. There’s a migration
guide () there if you use a previous XGBoost R package version.
JVM Packages
The XGBoost 3.0 release features a significant update to the JVM packages, and in
particular, the Spark package. There are breaking changes in packaging and some
parameters. Please visit the migration guide for
related changes. The work brings new features and a more unified feature set between CPU
and GPU implementation. (#10639, #10833, #10845, #10847, #10635, #10630, #11179, #11184)
Automatic partitioning for distributed learning to rank. See the features section above (#11023).
Support missing value when constructing dmatrix with iterator ()
Maintenance
Code maintenance includes both refactoring (#10531, #10573, #11069), cleanups (#11129,
#10878, #11244, #10401, #10502, #11107, #11097, #11130, #10758, #10923, #10541, #10990),
and improvements for tests (#10611, , , , ), along with fixing
various warnings in compilers and test dependencies (, , ,
). Also, miscellaneous updates, including some dev scripts and profiling annotations
(, , , , , , ).
CI
The CI is reworked to use RunsOn to integrate custom CI pipelines with GitHub
action. The migration helps us reduce the maintenance burden and make the CI
configuration more accessible to others. (#11001, #11079, #10649, #11196, #11055,
#10483, #11078, #11157)
Other maintenance work includes various small fixes, enhancements, and tooling
updates. (#10877, #10494, #10351, #10609, #11192, #11188, , , ,
, , , , , , )
In addition, a new Config class is added for users to
specify various options including timeout, tracker port, etc for distributed
training. Both the Dask interface and the PySpark interface support the new
configuration. (#11003, #10281, #10983, #10973)
OpenMP thread setting is exposed to the XGBoost global configuration. Users can use it
to workaround hardcoded OpenMP environment variables. (#11175)
We improved learning to rank tasks for better hyper-parameter configuration and for
distributed training.
In 3.0, all three distributed interfaces, including Dask, Spark, and PySpark, support
sorting the data based on query ID. The option for the
DaskXGBRanker is true by default and can be opted
out. (#11146, #11007, #11047, #11012, #10823, #11023)
Also for learning to rank, a new parameter lambdarank_score_normalization is
introduced to make one of the normalizations optional. (#11272)
The lambdarank_normalization now uses the number of pairs when normalizing the
mean pair strategy. Previously, the gradient was used for both topk and
mean. #11322
We have improved GPU quantile sketching to reduce memory usage. The improvement helps
the construction of the QuantileDMatrix and the new
ExtMemQuantileDMatrix.
A new multi-level sketching algorithm is employed to reduce the overall memory usage
with batched inputs.
In addition to algorithmic changes, internal memory usage estimation and the quantile
container is also updated. (#10761, #10843)
The change introduces two more parameters for the QuantileDMatrix
and DataIter, namely, max_quantile_batches and
min_cache_page_bytes.
More work is needed to improve the support of categorical features. This release
supports plotting trees with stat for categorical nodes (#11053). In addition, some
preparation work is ongoing for auto re-coding categories. (#11094, #11114,
#11089) These are feature enhancements instead of blocking issues.
Implement weight-based feature importance for vector-leaf. (#10700)
Reduced logging in the DMatrix construction. (#11080)
Fixed a performance issue for running inference using CPU with extremely sparse
QuantileDMatrix (#11250).
Optimize CPU training memory allocation for improved performance. (#11112)
Improved RMM (rapids memory manager) integration. Now, with the help of
config_context(), all memory allocated by XGBoost should be routed to
RMM. As a bonus, all thrust algorithms now use async policy. (#10873, #11173, #10712,
#10712, #10562)
When used without RMM, XGBoost is more careful with its use of caching allocator to
avoid holding too much device memory. (#10582)
Support doc link for the sklearn module. Users can now find links to documents in a
jupyter notebook. (#10287)
Dask
Prevent the training from hanging due to aborted workers. (#10985) This helps
Dask XGBoost be robust against error. When a worker is killed, the training will fail
with an exception instead of hang.
Optional support for client-side logging. (#10942)
Fix LTR with empty partition and NCCL error. (#11152)