Principled Federated Random Forests for Heterogeneous Data
Rémi Khellaf, Erwan Scornet, Aurélien Bellet, Julie Josse
TL;DR
This work tackles federated learning for nonparametric CART/Random Forests on horizontally partitioned data, where gradient-based optimization is not available. FedForest uses federated quantile sketching to generate candidate splits and additive sufficient statistics to evaluate impurity reductions exactly from aggregated client summaries, enabling faithful replication of centralized CART. Importantly, it supports splits on the client indicator $H$, providing a nonparametric form of personalization under outcome heterogeneity. Empirical results show FedForest achieves centralized-like predictive performance with communication-efficient training, across synthetic and real heterogeneous datasets, outperforming several federated baselines and parametric models in non-i.i.d. settings.
Abstract
Random Forests (RF) are among the most powerful and widely used predictive models for centralized tabular data, yet few methods exist to adapt them to the federated learning setting. Unlike most federated learning approaches, the piecewise-constant nature of RF prevents exact gradient-based optimization. As a result, existing federated RF implementations rely on unprincipled heuristics: for instance, aggregating decision trees trained independently on clients fails to optimize the global impurity criterion, even under simple distribution shifts. We propose FedForest, a new federated RF algorithm for horizontally partitioned data that naturally accommodates diverse forms of client data heterogeneity, from covariate shift to more complex outcome shift mechanisms. We prove that our splitting procedure, based on aggregating carefully chosen client statistics, closely approximates the split selected by a centralized algorithm. Moreover, FedForest allows splits on client indicators, enabling a non-parametric form of personalization that is absent from prior federated random forest methods. Empirically, we demonstrate that the resulting federated forests closely match centralized performance across heterogeneous benchmarks while remaining communication-efficient.
