- The paper introduces SC-FSGL, a causality-driven framework that disentangles shared and client-specific features in dynamic spatio-temporal graphs.
- It leverages a client-conditioned soft mask and a causal codebook with contrastive and IRM losses to simulate interventions and improve invariant feature extraction.
- Empirical results on heterogeneous traffic datasets show stable low MAE and robust generalization compared to traditional federated methods.
Causality-Inspired Federated Learning for Dynamic Spatio-Temporal Graphs: A Technical Analysis
Introduction and Motivation
The paper introduces SC-FSGL, a causality-inspired federated learning framework for dynamic spatio-temporal graphs (FSTGs). The work addresses the limitations of existing federated graph learning (FGL) methods, which are predominantly tailored for static graphs and assume homogeneous knowledge transferability across clients. These traditional assumptions fail in scenarios where data possess marked spatial and temporal heterogeneity, leading to representation entanglement, client-specific interference, and negative transfer, thereby degrading model generalization.



Figure 1: Spatial and temporal heterogeneity across clients and shared causal patterns.
The approach formalizes each client in the federated system as an independent environment, endowed with distinct spatial (graph topology) and temporal (observed time series) data-generating mechanisms. The critical insight is the decomposition of client observations into shared causal variables (stable across environments) and client-specific variables (encapsulating local or ephemeral patterns). Adopting the Structural Causal Model (SCM) formalism, the model seeks to approximate interventional distributions in latent space because direct interventions are infeasible in federated scenarios.
A learnable, client-conditioned soft mask is introduced to simulate interventions in the latent space, attenuating spurious or client-specific effects and promoting extraction of invariant, transferable features. This is further reinforced by an objective rooted in Invariant Risk Minimization (IRM), enforcing feature representations that induce optimal predictors across all client distributions.
Figure 2: A conceptual SCM-inspired illustration on client k showing the relations among observables and latent components.
SC-FSGL Framework: Architectural Innovations
SC-FSGL constructs a client-server federated protocol with the following innovations:
Experimental Results and Empirical Evaluation
Extensive experiments are conducted across five heterogeneous real-world traffic datasets (METRLA, PEMSD4, PEMSD7(M), PEMSD8, PEMSBAY), each representing a federated client with distinct spatial and temporal characteristics. The results demonstrate:
- Superior Predictive Accuracy: SC-FSGL consistently achieves the lowest MAE and MAPE across all prediction horizons (15, 30, and 60 minutes) when compared to FedAvg, FedProx, Moon, FedRep, FedStar, GMAN, MegaCRN, and FUELS.
- Robustness to Heterogeneity: The model maintains stable, low MAE throughout training and across clients, outperforming baselines which exhibit instability or substantial performance degradation under increased spatial or temporal heterogeneity.
- Causal Feature Disentanglement: t-SNE visualizations of learned representations illustrate clear separation between shared and client-specific components, evidencing successful disentanglement and the benefits of codebook-based alignment.


Figure 4: Performance analysis on the PEMSD4 dataset: (a) prediction results, (b) MAE curves, (c) t-SNE visualization highlighting disentangled causal features.

Figure 5: t-SNE visualization of representation evolution across communication rounds.
Figure 6: RMSE and MAPE curves of SC-FSGL, showing its training stability compared to baselines.
Ablation and Analysis
Ablation studies confirm the indispensability of the causal codebook and the conditional separation (CS) module. Removal of either component leads to substantial increases in MAE; benefit is maximal when both modules operate in tandem. Hyperparameter analysis further reveals optimal performance for balanced contributions from the contrastive and IRM loss components.
Figure 7: Ablation study showing MAE sensitivity to module removal.

Figure 8: Hyperparameter study for contrastive and IRM loss weights.
Convergence and Efficiency
The causal codebook aggregation is theoretically proven to converge under convexity and bounded gradient conditions. Communication efficiency is a prominent feature: only the compact codebook is exchanged between clients and server, mitigating common bandwidth bottlenecks in federated graph learning.
Implications and Future Prospects
SC-FSGL demonstrates that explicit modeling of causal structures in federated, dynamic, heterogeneous graph environments significantly improves generalization and predictive accuracy. Practically, the framework enables effective knowledge transfer, robust out-of-distribution prediction, and efficient communication, making it suitable for real-world decentralized spatio-temporal applications, such as urban mobility forecasting, large-scale sensor networks, and smart infrastructure.
Theoretically, this work reinvigorates the connection between causality and federated learning. Future research can broaden the expressivity of the codebook (e.g., via hierarchical or adaptive prototypes), or extend SC-FSGL to tackle causal drift and more pronounced non-stationarities.

Figure 9: Prediction performance visualization on heterogeneous clients.
Conclusion
SC-FSGL introduces a rigorous, causality-driven solution to federated learning on dynamic spatio-temporal graphs. By disentangling transferable and client-specific factors and enforcing representation-level interventions and alignment, the model reliably outperforms prior approaches. This paradigm shift—from implicit distributional alignment to explicit causal disentanglement—offers a robust foundation for future advances in federated learning on complex, heterogeneous, and dynamic data structures.