Introduction
Federated Learning (FL) has revolutionized the field of privacy-preserving artificial intelligence by allowing models to be trained on decentralized data sources without the need for raw data exchange. However, despite its potential, the current FL landscape is largely "locked in" to Deep Neural Networks (DNNs). Most existing frameworks are built on the assumption that model updates consist of weight tensors that can be mathematically averaged. This paper introduces Model-Agnostic Federated Learning (MAFL), a framework built on Intel’s OpenFL that extends the benefits of federation to any supervised machine learning model—from decision trees to linear regressions—using a specialized AdaBoost.F algorithm.
The DNN-Centric Bottleneck
Traditional Federated Learning frameworks, such as Flower or FedML, are designed around the inner workings of DNNs. They operate on the principle of "Federated Averaging," where local gradients or weights are aggregated into a global model. While effective for neural networks, this approach fails for many traditional machine learning models. For instance, one cannot simply "average" two decision trees or support vector machines to produce a superior model.
This technical hurdle creates a significant gap in the industry. On tabular data, traditional models like Random Forests often outperform DNNs. Furthermore, in highly regulated sectors like finance or healthcare, the inherent "black-box" nature of DNNs is often a dealbreaker, leading practitioners to favor more explainable, traditional ML models. MAFL addresses this by decoupling the federation process from the specific architecture of the underlying model.
The MAFL Framework
The authors bridge the gap between traditional ML and FL by combining a model-agnostic algorithm with an industry-grade framework overhaul.
1. Algorithmic Core: AdaBoost.F
Instead of relying on weight averaging, MAFL utilizes a federated version of AdaBoost. In this paradigm, the central aggregator does not average parameters; instead, it collects "weak learners" (simple models) from various collaborators and ensembles them into a "strong hypothesis." By treating the federated process as an ensemble problem, the specific type of underlying model becomes irrelevant, provided it can produce a hypothesis slightly better than random guessing.
2. Architectural Overhaul of OpenFL
To support this algorithmic shift, the authors modified Intel’s OpenFL framework to move beyond its DNN-centric roots. Key engineering changes included:
- Plan Generalization: Expanding YAML configuration files to handle complex, multi-step tasks beyond standard training and validation loops.
- Expanded Protocol: Introducing a new
synchmessage to the gRPC protocol to manage the sophisticated synchronization required by boosting algorithms. - TensorDB Optimization: Redesigning internal storage to handle complex objects (such as serialized Scikit-Learn model instances) rather than just weight tensors.
3. Performance Tuning
To mitigate the communication overhead inherent in multi-phase boosting, the system was optimized using Cloudpickle for efficient serialization and calibrated "sleep" timers to manage node synchronization.
Experimental Evaluation
The framework was rigorously tested using ten diverse classification datasets, including binary problems (e.g., adult, forestcover) and multi-class problems (e.g., splice, segmentation, letter). These datasets ranged in scale from a few hundred to nearly 500,000 samples.
Notably, MAFL is not only model-agnostic but also architecture-agnostic. Experiments were successfully conducted across a diverse hardware stack, including x86-64, ARM-v8, Power, and Monte Cimone, the first RISC-V based High-Performance Computing (HPC) cluster.
Key Results
- Correctness and Performance: MAFL achieved F1 scores consistent with theoretical AdaBoost.F studies, validating the implementation. Through software optimizations, the authors achieved a 5.5x speedup over their initial baseline.
- Plug-and-Play Flexibility: The framework allows data scientists to switch between Federated Neural Networks, K-Nearest Neighbors, or Naive Bayes models simply by updating a configuration file, requiring no changes to the underlying code.
- Scalability: The system demonstrated sublinear degradation when scaling up to 64 nodes, making it highly suitable for "cross-silo" (organization-to-organization) federated scenarios.
Limitations and Future Work
The primary challenge identified is the synchronization barrier. Unlike standard Federated Averaging, AdaBoost.F requires an additional communication phase per round, making the system sensitive to "stragglers" (slow nodes). Future research will focus on implementing asynchronous communication to allow faster nodes to proceed independently. Additionally, while MAFL excels in cross-silo environments, further work is required to determine its feasibility for "cross-device" FL involving thousands of mobile devices.
Summary updated