Abstract
Current federated learning (FL) approaches view decentralized training data as a single table, divided among participants either horizontally (by rows) or vertically (by columns). However, these approaches are inadequate for handling distributed relational tables across databases. This scenario requires intricate SQL operations like joins and unions to obtain the training data, which is either costly or restricted by privacy concerns. This raises the question: can we directly run FL on distributed relational tables? In this paper, we formalize this problem as relational federated learning (RFL). We propose TablePuppet, a generic framework for RFL that decomposes the learning process into two steps: (1) learning over join (LoJ) followed by (2) learning over union (LoU). In a nutshell, LoJ pushes learning down onto the vertical tables being joined, and LoU further pushes learning down onto the horizontal partitions of each vertical table. TablePuppet incorporates computation/communication optimizations to deal with the duplicate tuples introduced by joins, as well as differential privacy (DP) to protect against both feature and label leakages. We evaluate the SGD/ADMM algorithms developed atop TablePuppet by training diverse ML models. Our experimental results show that TablePuppet achieves model accuracy comparable to the centralized baselines running directly atop the SQL results. Moreover, ADMM takes less communication time than SGD to converge to similar model accuracy.
Introduction: The Relational Data Challenge
Most Federated Learning (FL) research assumes a simplified environment where data exists as a single, flat table. In practice, enterprise data is relational and decentralized across various databases. Training a model in this context typically requires a Union of Conjunctive Queries (UCQ)—performing JOIN operations across vertical partitions and UNION operations across horizontal partitions.
This paper formalizes Relational Federated Learning (RFL), which aims to train models directly on these decentralized relational structures without the need to materialize a massive, centralized joined table. This avoids the high costs and privacy risks associated with traditional data movement.
The TablePuppet Framework
TablePuppet is a generic framework designed to handle the complexities of RFL by decomposing the training process into two primary stages:
- Learning over Join (LoJ): This stage "pushes" the learning task down to individual vertical tables. It utilizes a table-mapping mechanism to track how local records contribute to the global "virtual" joined table.
- Learning over Union (LoU): This stage further pushes computation down to the horizontal partitions within those vertical tables, such as data held by different branches of the same organization.
Technical Innovations
- Join Optimization: SQL joins often create duplicate tuples (e.g., one patient record linked to multiple lab results). TablePuppet identifies these duplicates on the server and aggregates their gradients or variables before communicating with clients. This reduces communication complexity from being proportional to the joined result size ($O(N)$) to the size of local tables ($O(n_i)$).
- Algorithmic Flexibility: The framework supports both Stochastic Gradient Descent (SGD) and the Alternating Direction Method of Multipliers (ADMM) through unified abstract operators.
- Privacy Guarantees: TablePuppet incorporates Differential Privacy (DP) by adding Laplace noise to labels at the server and employing DP-SGD (gradient clipping and Gaussian noise) at the client level to protect features.
Key Insights and Results
The framework was evaluated using real-world datasets including MIMIC-III (healthcare), Yelp (reviews), and MovieLens-1M (recommendations).
- Communication Efficiency: ADMM proved particularly effective for RFL. By allowing clients to solve local sub-problems more completely before synchronization, it significantly reduced communication rounds. In MovieLens tests, ADMM was 4.3x faster in communication time than standard Vertical FL approaches.
- Accuracy: TablePuppet achieves model accuracy comparable to centralized baselines that train on the full, materialized joined table. The accuracy drop when implementing Differential Privacy was found to be manageable (e.g., ~0.8 points for MIMIC-III).
- Scalability: By aggregating redundant information before transmission, TablePuppet successfully scales training to massive relational datasets that would otherwise be prohibitive to join centrally.
Conclusion
TablePuppet addresses the "data tax" of relational machine learning by enabling efficient, privacy-preserving training directly on decentralized databases. Future work will explore supporting more complex non-linear aggregation functions, tree-based models like GBDT, and asynchronous communication to improve robustness against straggler clients.
Summary updated