Effective and Efficient Cross-City Traffic Knowledge Transfer: A Privacy-Preserving Perspective

Zhihao Zeng, Ziquan Fang, Yuting Huang, Lu Chen, Yunjun Gao

TL;DR

FedTT is a novel privacy-preserving federated learning framework designed for cross-city traffic knowledge transfer. By shifting the paradigm from model-sharing to secure data-domain transformation, it simultaneously solves the critical challenges of data scarcity, distribution mismatch, missing sensor data, and high computational overhead without leaking raw traffic data.

What Problem Does This Paper Address?

Traffic prediction (TP) is essential for smart transportation management, but training accurate deep learning models requires massive amounts of historical data. Emerging or smaller cities often suffer from data scarcity because their sensors are newly deployed or frequently malfunction. While Federated Traffic Knowledge Transfer (FTT) aims to leverage data from data-rich "source" cities to help data-scarce "target" cities, existing methods hit a wall due to four major challenges:

  1. Privacy Leakage Risk: Standard federated learning shares gradients or model parameters, which are vulnerable to inversion attacks that can reconstruct sensitive raw data (like license plates or travel trajectories).
  2. Data Distribution Discrepancy: Traffic patterns differ wildly across cities due to distinct urban layouts and behaviors, making direct model transfer ineffective.
  3. Low Data Quality: Real-world sensors frequently fail, leading to missing data that degrades model performance.
  4. High Overhead: Existing FTT methods operate serially and involve complex models, leading to massive communication and computation costs (often running 40x slower than non-transfer methods).
Figure 2: Four Unresolved Challenges of Existing Federated Traffic Knowledge Transfer (FTT) Methods

Methods

Instead of the traditional two-stage approach (training a global model on source cities and fine-tuning it on the target city), FedTT focuses on transforming the source cities' traffic data into the target city's domain securely and efficiently. It consists of four key modules:

  • Traffic View Imputation (TVI): Handles missing data by capturing spatio-temporal dependencies. It uses a Graph Attention Network (GAT) for spatial view extension and a spatio-temporal model (DyHSL) for temporal enhancement to fill in missing sensor readings before training begins.
  • Traffic Domain Adapter (TDA): Uses a Generative Adversarial Network (GAN) to align the data distributions of source and target cities. It computes transformation matrices for both the road network structures and the traffic domain prototypes (central tendencies), mapping source data directly into the target city's domain.
  • Traffic Secret Transmission (TST): A lightweight privacy protocol. Instead of heavy Homomorphic Encryption (HE) or accuracy-reducing Differential Privacy (DP), TST applies a masking technique based on previously aggregated data. This ensures the server only sees the aggregated domain-transformed data, preventing the leakage of individual city data.
  • Federated Parallel Training (FPT): Boosts efficiency via split learning and parallel optimization. By freezing certain intermediate data dependencies, clients and servers can train their respective modules simultaneously, drastically cutting down communication rounds and training time.

Datasets

The authors evaluated FedTT on four widely used real-world traffic datasets:

  • PeMSD4 (P4): Traffic data from San Francisco.
  • PeMSD8 (P8): Traffic data from San Bernardino.
  • FT-AED (FT): Traffic data from Nashville.
  • HK-Traffic (HK): Traffic data from Hong Kong.

The datasets were combined into four cross-city transfer scenarios where three cities acted as data-rich sources to aid one data-scarce target city.

Key Insights and Ideas

  • Data Transformation over Model Fine-Tuning: Traditional FTT transfers model parameters. FedTT flips this by transferring domain-aligned data representations. This allows the target city to train its local model directly on a much richer, synthesized dataset tailored to its own distribution.
  • Privacy Doesn't Have to Cost Efficiency: The TST module proves that you don't need computationally expensive cryptographic primitives to secure federated transfers. Simple, deterministic masking based on historical aggregates can hide individual client contributions perfectly while maintaining 100% data utility.
  • Parallelizing the Sequential: By decoupling the GAN components (generator on the client, discriminator on the server) using split learning and caching historical states, the framework breaks the strict serial dependency of adversarial training in a distributed environment.

Key Results

  • Prediction Accuracy: FedTT significantly outperformed 14 state-of-the-art baselines across traffic flow, speed, and occupancy prediction tasks, reducing Mean Absolute Error (MAE) by 5.43% to 22.78% and Root Mean Square Error (RMSE) by 7.25% to 50.79%.
  • Efficiency Gains: FedTT reduced communication overhead by 90% and cut down running times by 1 to 2 orders of magnitude compared to top FTT baselines like T-ISTGNN and pFedCTP.
  • Robustness to Data Quality: Ablation studies showed that removing the TVI module caused the model's MAE to spike by up to 9.23%, proving its effectiveness in handling real-world sensor dropouts.

Limitations and Future Work

  • Scope of Tasks: The current framework is validated primarily on short-term and long-term traffic flow, speed, and occupancy forecasting. The authors note that future work should extend FedTT to support a broader range of spatio-temporal prediction tasks, such as ride-hailing demand and trajectory prediction.
  • Hyperparameter Sensitivity: The performance relies on tuning the adversarial loss trade-off weights ($\lambda_1$ and $\lambda_2$). If misconfigured, the generator might produce low-quality data or fail to align properly with the target city's distribution.

Summary updated

BibTeX
@misc{zeng2025effective,
  author = {Zhihao Zeng and Ziquan Fang and Yuting Huang and Lu Chen and Yunjun Gao},
  title = {{Effective and Efficient Cross-City Traffic Knowledge Transfer: A Privacy-Preserving Perspective}},
  year = {2025},
  eprint = {2503.11963},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.11963},
}
Figure