M3FGM: A Node Masking and Multi-granularity Message Passing-Based Federated Graph Model for Spatial-Temporal Data Prediction

Yuxing Tian, Jiachi Luo, Zheng Liu, Song Li, Yanwen QuICONIP 2022

Spatial-temporal data prediction, such as forecasting traffic flow or energy demand, is a cornerstone of smart city infrastructure. However, real-world implementations face significant challenges: data privacy concerns prevent raw data sharing, network clients frequently go offline, and standard heuristic graphs often fail to capture complex, long-range dependencies. This paper introduces M3FGM, a novel framework that combines Federated Learning (FL) and Split Learning (SL) with a robust graph neural network (GNN) architecture designed to remain accurate even under unstable network conditions.

System Architecture

The M3FGM framework utilizes a GNN-oriented Split Federated Learning (SFL) architecture. In this setup, the model is split between clients and a central server. Clients are responsible for local temporal encoding, while the server hosts a GNN to capture broader spatial relationships across the network. This division ensures that sensitive raw data remains on the client side while still benefiting from global spatial insights.

The overall architecture of M3FGM, illustrating the split federated learning framework with MaskNode and MGMP layers.

Core Innovations

M3FGM introduces three primary technical innovations to address the limitations of existing federated GNNs:

1. MaskNode (MN) Layer

To simulate the reality of offline clients during training, the server-side MaskNode layer randomly replaces a subset of client embeddings with a shared trainable "mask" tensor. This strategy acts as a powerful regularizer, forcing the model to learn robust spatial dependencies that do not over-rely on any single neighbor. Consequently, the model maintains high performance even when significant portions of the graph are missing during inference.

2. Dual-Sub-Decoders

Each client is equipped with two decoders: an Online Decoder and an Offline Decoder. The Online Decoder utilizes spatial information provided by the server. Simultaneously, the Offline Decoder is trained via knowledge distillation to mimic the online version using only local data. This allows a client to provide a reliable "best guess" prediction even if its connection to the central server is severed.

3. Multi-Granularity Message Passing (MGMP)

Standard GNNs often struggle with long-range dependencies. M3FGM addresses this by using spectral clustering to group clients into "clusters." The MGMP layer then facilitates message passing at two distinct levels: fine-grained (between immediate local neighbors) and coarse-grained (between clusters).

Detailed view of the MGMP layer, showing the interaction between client, cluster, and cross-level graph structures.

As shown in the detailed MGMP structure, the layer processes information through three sublayers: cross-level ($sublayer_{\to Clu}$), cluster-level ($sublayer_{Clu}$), and client-level ($sublayer_{Cli}$). This hierarchical approach allows the model to perceive global traffic patterns that a standard local GNN would miss.

Experimental Evaluation

The model was evaluated on two benchmark traffic datasets: METR-LA (207 sensors in Los Angeles) and PEMS-BAY (325 sensors in the Bay Area).

Key Results

  • Superior Accuracy: In ideal conditions (all nodes online), M3FGM achieved the lowest Root Mean Squared Error (RMSE) on both datasets (3.684 on PEMS-BAY and 11.352 on METR-LA), outperforming state-of-the-art baselines like CNFGNN.
  • Robustness to Disconnection: In scenarios where 25% to 35% of nodes were offline, M3FGM significantly outperformed competitors. For instance, with 25% offline nodes on PEMS-BAY, M3FGM maintained an RMSE of 3.741, whereas the baseline CNFGNN's error rose to 3.972.
  • Ablation Studies: Removing either the MaskNode layer or the MGMP layer resulted in higher errors, confirming that both simulated failure training and multi-level spatial views are critical to the model's success.

Conclusion and Future Work

M3FGM demonstrates that training for failure through node masking and incorporating global context via multi-granularity clustering can create highly resilient federated models for spatial-temporal prediction. While the current model uses static clustering and heuristic initial graphs, future research will explore dynamic cluster evolution and automated graph structure learning to further enhance adaptability in changing environments.

Summary updated

BibTeX
@inproceedings{tian2022m,
  author = {Yuxing Tian and Jiachi Luo and Zheng Liu and Song Li and Yanwen Qu},
  title = {{M3FGM: A Node Masking and Multi-granularity Message Passing-Based Federated Graph Model for Spatial-Temporal Data Prediction}},
  booktitle = {ICONIP},
  year = {2022},
}
Figure