Federated Forest

Yang Liu, Yingting Liu, Zhijie Liu, Junbo Zhang, Chuishi Meng, Yu Zheng

Abstract

Federated Forest (FF) is a privacy-preserving framework designed to train Random Forest models on vertically partitioned data across multiple organizations. By utilizing a Master-Client architecture and a novel communication-efficient prediction algorithm, FF achieves the same accuracy as centralized models while maintaining strict data privacy. Experimental results on real-world and benchmark datasets demonstrate that FF significantly reduces communication overhead compared to traditional federated tree-based methods, making it a practical solution for cross-organizational data collaboration.

Introduction

In the era of big data, the most valuable insights often lie at the intersection of datasets held by different organizations—for example, combining a bank's financial records with an e-commerce site's shopping habits. However, strict privacy regulations like GDPR and the "data island" problem make it nearly impossible to merge these datasets. Federated Forest (FF) offers a solution: a privacy-preserving framework that allows multiple parties to jointly train a Random Forest model on vertically partitioned data (where different parties hold different features for the same users) without ever exchanging raw data.

System Architecture

The FF framework consists of a Master node (the coordinator) and multiple Clients (the data owners). Unlike horizontal federated learning, which assumes different users with the same features, FF addresses vertical partitioning where parties have the same users but different sets of attributes.

The Federated Forest architecture showing the Master holding the complete tree structure while clients hold partial trees and raw data.

Methodology

Federated Forest is designed to be "lossless," meaning it identifies the exact same optimal splits as a centralized Random Forest, suffering zero accuracy loss compared to non-private versions.

1. Lossless Model Building

The training process follows the standard CART (Classification and Regression Trees) and Bagging paradigms but adapts them for a distributed setting:

  • Feature Selection: The Master randomly selects a subset of features and notifies clients.
  • Local Impurity Calculation: Each client calculates the impurity improvement (e.g., Gini index) for their local features and sends only these encrypted values to the Master.
  • Distributed Storage: The final tree is stored across the network. The Master knows the tree structure, but only the specific client who provided the "best split" knows the actual feature and threshold for that node.

2. Efficient Prediction Algorithm

Traditional federated trees require multiple rounds of communication for every sample to "walk" down the tree. FF introduces a novel prediction method where clients use their local partial trees to determine which leaf nodes a sample could potentially fall into. They send these candidate leaf sets to the Master, which performs a simple set intersection to find the true leaf node. This reduces the process to a single round of communication for the entire forest.

Evaluation and Results

The model was evaluated on nine benchmark datasets, including a real-world "Target Marketing" dataset combining features from an e-commerce company and a bank, as well as eight UCI benchmarks. Statistical tests (Z-tests) showed no significant difference ($p > 0.05$) between Federated Forest and a standard non-federated Random Forest across most datasets.

Comparison of prediction time vs. number of estimators on the Waveform dataset. The FF method (dashed) is significantly more efficient than the classical approach (solid).

As shown in the performance analysis, the proposed prediction algorithm is orders of magnitude faster than the classical federated approach. The execution time for FF remains nearly flat even as the number of estimators or tree depth increases, making it highly scalable for real-time applications.

Conclusion

Federated Forest effectively bridges the gap between data silos and privacy requirements. While the system assumes pre-aligned sample IDs and requires stable communication during the recursive tree-building phase, its mathematical losslessness and scale-free prediction algorithm represent a significant advancement in practical, privacy-preserving machine learning.

Summary updated

BibTeX
@article{liu2022federated,
  author = {Yang Liu and Yingting Liu and Zhijie Liu and Junbo Zhang and Chuishi Meng and Yu Zheng},
  title = {{Federated Forest}},
  journal = {IEEE Trans. Big Data},
  year = {2022},
  doi = {10.1109/tbdata.2020.2992755},
}
Figure