Comparative Evaluation of Data Decoupling Techniques for Federated Machine Learning with Database as a Service

Muhammad Jahanzeb Khan, Rui Hu, Mohammad Sadoghi, Dongfang ZhaoarXiv 2023 · DOI

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.

DDFL High-Level Architecture showing the decoupling of the database middleware from the master and client nodes.

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.

Testing Accuracy on CIFAR-10 across different DDFL backends compared to a single-node baseline.

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

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
CIFAR-10DDFL systemtesting accuracy85%+4 vs baselinesplit: test · fine-tuned · training-rounds=10 · hyperparameter-tuning=not-fine-tuned
Source quote
L192: As shown in Figures~\ref{fig:lineplot-result-cifar},~\ref{fig:lineplot-result-fmnist}, and ~\ref{fig:lineplot-result-svhn}, our DDFL system achieves a higher testing accuracy than the single node baseline after 10 rounds of training. Specifically, on the CIFAR-10 dataset, the DDFL system achieves a testing accuracy of 85% after 10 rounds, compared to the baseline accuracy of 81%. On the Fashion-MNIST dataset, the DDFL system achieves a testing accuracy of 92% after 10 rounds, compared to the baseline accuracy of 89%. On the SVHN dataset, the DDFL system achieves a testing accuracy of 95% after 10 rounds, compared to the baseline accuracy of 94%.
FashionMNIST · Fashion-MNISTDDFL systemtesting accuracy92%+3 vs baselinesplit: test · fine-tuned · training-rounds=10 · hyperparameter-tuning=not-fine-tuned
Source quote
L192: As shown in Figures~\ref{fig:lineplot-result-cifar},~\ref{fig:lineplot-result-fmnist}, and ~\ref{fig:lineplot-result-svhn}, our DDFL system achieves a higher testing accuracy than the single node baseline after 10 rounds of training. Specifically, on the CIFAR-10 dataset, the DDFL system achieves a testing accuracy of 85% after 10 rounds, compared to the baseline accuracy of 81%. On the Fashion-MNIST dataset, the DDFL system achieves a testing accuracy of 92% after 10 rounds, compared to the baseline accuracy of 89%. On the SVHN dataset, the DDFL system achieves a testing accuracy of 95% after 10 rounds, compared to the baseline accuracy of 94%.
SVHNDDFL systemtesting accuracy95%+1 vs baselinesplit: test · fine-tuned · training-rounds=10 · hyperparameter-tuning=not-fine-tuned
Source quote
L192: As shown in Figures~\ref{fig:lineplot-result-cifar},~\ref{fig:lineplot-result-fmnist}, and ~\ref{fig:lineplot-result-svhn}, our DDFL system achieves a higher testing accuracy than the single node baseline after 10 rounds of training. Specifically, on the CIFAR-10 dataset, the DDFL system achieves a testing accuracy of 85% after 10 rounds, compared to the baseline accuracy of 81%. On the Fashion-MNIST dataset, the DDFL system achieves a testing accuracy of 92% after 10 rounds, compared to the baseline accuracy of 89%. On the SVHN dataset, the DDFL system achieves a testing accuracy of 95% after 10 rounds, compared to the baseline accuracy of 94%.
Reported baseline / comparator measurements (3)
BenchmarkMethodMetricScoreProtocol / Evidence
CIFAR-10Single-node baseline baselinetesting accuracy81%split: test · fine-tuned · training-rounds=10 · hyperparameter-tuning=not-fine-tuned
Source quote
L192: As shown in Figures~\ref{fig:lineplot-result-cifar},~\ref{fig:lineplot-result-fmnist}, and ~\ref{fig:lineplot-result-svhn}, our DDFL system achieves a higher testing accuracy than the single node baseline after 10 rounds of training. Specifically, on the CIFAR-10 dataset, the DDFL system achieves a testing accuracy of 85% after 10 rounds, compared to the baseline accuracy of 81%. On the Fashion-MNIST dataset, the DDFL system achieves a testing accuracy of 92% after 10 rounds, compared to the baseline accuracy of 89%. On the SVHN dataset, the DDFL system achieves a testing accuracy of 95% after 10 rounds, compared to the baseline accuracy of 94%.
FashionMNIST · Fashion-MNISTSingle-node baseline baselinetesting accuracy89%split: test · fine-tuned · training-rounds=10 · hyperparameter-tuning=not-fine-tuned
Source quote
L192: As shown in Figures~\ref{fig:lineplot-result-cifar},~\ref{fig:lineplot-result-fmnist}, and ~\ref{fig:lineplot-result-svhn}, our DDFL system achieves a higher testing accuracy than the single node baseline after 10 rounds of training. Specifically, on the CIFAR-10 dataset, the DDFL system achieves a testing accuracy of 85% after 10 rounds, compared to the baseline accuracy of 81%. On the Fashion-MNIST dataset, the DDFL system achieves a testing accuracy of 92% after 10 rounds, compared to the baseline accuracy of 89%. On the SVHN dataset, the DDFL system achieves a testing accuracy of 95% after 10 rounds, compared to the baseline accuracy of 94%.
SVHNSingle-node baseline baselinetesting accuracy94%split: test · fine-tuned · training-rounds=10 · hyperparameter-tuning=not-fine-tuned
Source quote
L192: As shown in Figures~\ref{fig:lineplot-result-cifar},~\ref{fig:lineplot-result-fmnist}, and ~\ref{fig:lineplot-result-svhn}, our DDFL system achieves a higher testing accuracy than the single node baseline after 10 rounds of training. Specifically, on the CIFAR-10 dataset, the DDFL system achieves a testing accuracy of 85% after 10 rounds, compared to the baseline accuracy of 81%. On the Fashion-MNIST dataset, the DDFL system achieves a testing accuracy of 92% after 10 rounds, compared to the baseline accuracy of 89%. On the SVHN dataset, the DDFL system achieves a testing accuracy of 95% after 10 rounds, compared to the baseline accuracy of 94%.
BibTeX
@misc{khan2023comparative,
  author = {Muhammad Jahanzeb Khan and Rui Hu and Mohammad Sadoghi and Dongfang Zhao},
  title = {{Comparative Evaluation of Data Decoupling Techniques for Federated Machine Learning with Database as a Service}},
  year = {2023},
  eprint = {2303.08371},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.08371},
}
Figure