Unlocking Dynamic Inter-Client Spatial Dependencies: A Federated Spatio-temporal Graph Learning Method for Traffic Flow Forecasting

Feng Wang, Tianxiang Chen, Shuyue Wei, QianChu, Yi Zhang, Yifan Sun, Zhiming Zheng

TL;DR

Traffic flow forecasting relies heavily on spatio-temporal graphs, but privacy regulations often trap real-world data in isolated silos, making it difficult to model how different regions interact over time. This paper introduces FedSTGD, a federated learning framework that successfully captures dynamic inter-client spatial dependencies without sharing raw data. By cleverly decomposing non-linear graph operations and augmenting node embeddings, FedSTGD achieves forecasting accuracy that rivals centralized models while strictly preserving data privacy.

What Problem Does This Paper Address?

Traffic Flow Forecasting (TFF) is critical for intelligent transportation systems. The best models use Spatio-Temporal Graph Neural Networks (STGNNs), where nodes represent sensors (like metro stations or intersections) and edges represent their spatial relationships.

In the real world, traffic dependencies are highly dynamic—they change between weekdays and weekends, or even hour by hour. However, traffic data is usually fragmented across different stakeholders (e.g., government agencies, private ride-share companies). Due to strict privacy laws like GDPR, these entities cannot pool their data into a centralized server.

Federated Learning (FL) allows these "clients" to train models collaboratively without sharing raw data. But while existing FL methods easily model intra-client dependencies (interactions within a single client's data), they struggle with inter-client dependencies (how traffic in Client A's region affects Client B's region). Existing solutions either ignore these cross-client relationships, assume they are static, or rely on computationally heavy polynomial approximations. Modeling dynamic cross-client interactions requires complex non-linear operations over distributed data, which traditionally breaks FL privacy constraints.

Methods

The authors propose FedSTGD (Federated Spatio-Temporal Graph with Dynamic Inter-Client Dependencies), built on a Time-aware Graph Convolutional Recurrent Network (TGCRN) backbone. It tackles the distributed data problem using three novel modules:

  1. Federated Nonlinear Computation Decomposition (FNCD): To model dynamic cross-client relationships, the network needs to compute non-linear activations over inner products of data from different clients. Since sharing data is forbidden, FedSTGD leverages the universal approximation theorem. Each client trains a local Multi-Layer Perceptron (MLP). The framework approximates the complex global non-linear operation by taking the inner product of these local MLP outputs, entirely avoiding raw data exchange.
  2. Graph Node Embedding Augmentation (GNEA): Because the MLP approximation loses some representational power compared to exact computation, this module boosts the local node embeddings. It applies a non-linear mapping and softmax normalization to inject additional representational capacity back into the graph.
  3. Client-Server Collective Learning Protocol: The authors introduce a novel algebraic transformation (proven in the paper's Theorem 1) that decouples the highly entangled cross-client math (coupled inner and Hadamard products). This allows the complex spatial dependency learning to be broken down into lightweight, parallelizable subtasks that clients can compute locally and the server can safely aggregate.

Datasets

The framework was evaluated on four standard, real-world traffic datasets featuring unique traffic flow dynamics:

  • HZMetro: Passenger flow data from the Hangzhou Metro.
  • SHMetro: Passenger flow data from the Shanghai Metro.
  • NYC-Bike: Citi Bike sharing data from New York City.
  • NYC-Taxi: Taxi trip record data from New York City.

Key Insights and Ideas

  • Dynamic > Static: Traffic patterns change constantly. Models that only capture static inter-client relationships (like the baseline FedGTP) leave a massive amount of predictive performance on the table.
  • MLPs as Privacy-Preserving Approximators: Using MLPs to approximate cross-client non-linear functions is a brilliant workaround for data locality constraints. It avoids the exponential computational overhead of polynomial approximations used in prior federated graph work, scaling linearly instead.
  • Algebraic Decoupling is Key: The mathematical trick to decouple the client-side computations is the linchpin of the framework. It proves that you can compute complex, multi-client graph interactions securely by passing specific, transformed intermediate tensors through a central server, rather than raw features.

Key Results

  • State-of-the-Art Performance: FedSTGD consistently outperformed 9 federated baselines across all four datasets on RMSE, MAE, and MAPE metrics.
  • Massive Accuracy Gains: On the HZMetro dataset, FedSTGD achieved an RMSE of 39.61, significantly beating the next best baseline (FedGTP at 51.14) and approaching the performance of centralized models.
  • Ablation Success: Removing the GNEA module caused performance to drop (RMSE increased from 39.61 to 41.64 on HZMetro), proving that augmenting node embeddings is necessary to recover the expressiveness lost during the MLP decomposition.
  • High Efficiency: The time complexity of FedSTGD scales linearly with the graph size ($O(N \cdot d_N \cdot d^2)$), making it highly efficient for large-scale transportation networks.

Limitations and Future Work

While the paper does not feature a dedicated "Limitations" section, the authors' sensitivity analysis reveals a few boundaries of the current framework. Specifically, the model's performance experiences a modest decline as the number of clients increases and as data heterogeneity (non-IID data distribution across clients) becomes more severe.

Future work in this domain will likely need to focus on improving the robustness of the federated decomposition against highly skewed, non-IID client data, and ensuring the collective learning protocol scales seamlessly to hundreds or thousands of participating stakeholders.

Summary updated

BibTeX
@misc{wang2025unlocking,
  author = {Feng Wang and Tianxiang Chen and Shuyue Wei and QianChu and Yi Zhang and Yifan Sun and Zhiming Zheng},
  title = {{Unlocking Dynamic Inter-Client Spatial Dependencies: A Federated Spatio-temporal Graph Learning Method for Traffic Flow Forecasting}},
  year = {2025},
  eprint = {2511.10434},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.10434},
  howpublished = {arXiv},
}
Figure