Introduction
Standard Federated Learning (FL) systems are typically characterized by a tight coupling between computation and data management. This monolithic design often restricts flexibility, particularly in specialized environments like High-Performance Computing (HPC) clusters or scientific applications requiring specific data structures. This paper introduces Data-Decoupling Federated Learning (DDFL), a framework designed to break this monolith by treating the database as a decoupled service.
The DDFL Framework
The core innovation of DDFL is the separation of data management from the FL computation logic. This modularity allows researchers to integrate various database backends as a service without altering the underlying FL algorithms.
Key Components
- Unified Interface: A database-agnostic API enables communication with diverse storage backends.
- Symmetric Encryption: To ensure privacy, DDFL employs Fernet encryption (AES-CBC) for all data exchanges between the master node and clients.
- Database Middleware: The framework supports multiple storage paradigms, including relational (PostgreSQL), document (MongoDB), columnar (Apache Cassandra), graph (Neo4j), message queues (RabbitMQ), and file transfer (SCP).
Experimental Evaluation
The framework was tested on an 11-node CloudLab cluster using three computer vision benchmarks: CIFAR-10, Fashion-MNIST (FMNIST), and Street View House Numbers (SVHN).
Performance and Accuracy
A primary concern with decoupling is the potential latency introduced by middleware. However, experimental results demonstrate that DDFL not only maintains but often exceeds the accuracy of traditional centralized baselines.
On the CIFAR-10 dataset, DDFL reached approximately 85% accuracy after 10 rounds, significantly outperforming the single-node baseline of 81%. Similar trends were observed for FMNIST (92% vs. 89%) and SVHN (95% vs. 94%).
Database Performance Insights
- Efficiency: MongoDB emerged as the top performer, offering the fastest query execution (0.058 ms for testing data retrieval) and the shortest overall training times.
- Complexity: Integration effort varied; MongoDB and PostgreSQL required minimal code changes (<200 lines), whereas Neo4j and RabbitMQ were more complex to implement (>500 lines) due to a lack of established connectors for this use case.
- Queryability: The use of a database backend enables complex queries on intermediate training states, such as identifying the most accurate local model in a specific round—a task that is difficult in coupled systems.
Conclusion
The DDFL framework demonstrates that decoupling data management from Federated Learning is not only feasible but beneficial. By providing a flexible, queryable, and performant architecture, DDFL paves the way for more customizable and efficient FL deployments across diverse hardware and application domains. Future work will focus on integrating advanced privacy techniques like Differential Privacy and automating backend selection based on workload requirements.
Summary updated