Federated Time Series Generation on Feature and Temporally Misaligned Data

Zhi Wen Soi, Chenrui Fan, Aditya Shankar, Abel Malan, Lydia Y. Chen

TL;DR

This paper introduces FedTDD, a novel federated learning framework for generating synthetic time series data from clients with misaligned features and timestamps. FedTDD uses a data distillation approach, where clients share synthetic data instead of model parameters, enabling collaborative learning without compromising privacy and effectively handling data discrepancies.

What Problem Does This Paper Address?

In many real-world scenarios, data is distributed across multiple clients (e.g., hospitals, financial institutions) and often suffers from heterogeneity. This heterogeneity can manifest as:

  • Feature Misalignment: Clients may collect data on different sets of features.
  • Temporal Misalignment: Clients may record data at different time intervals or have non-overlapping time periods.
  • Missing Data: Data points can be missing due to various reasons.

Traditional federated learning approaches, like horizontal or vertical FL, are not designed to handle both feature and temporal misalignment simultaneously. This makes it challenging to train robust generative models for time series data in a distributed and privacy-preserving manner. Existing methods often assume perfect alignment, limiting their applicability to real-world, messy datasets.

Methods

FedTDD tackles these challenges with a novel federated generative learning framework that combines a global distiller model with local imputer models.

  • Global Distiller (Coordinator): This is a diffusion-based model (specifically, an adaptation of Diffusion-TS) pre-trained on a public dataset containing common features. Its role is to learn to impute missing common features across all clients.
  • Local Imputers (Clients): Each client trains its own imputer model. These local models leverage the global distiller to impute missing common features in their local data. They then use these imputed common features along with their exclusive features to train their local imputer to predict missing exclusive features.
  • Data Distillation and Aggregation: Instead of sharing model parameters, clients generate synthetic versions of their common features and send these to the coordinator. The coordinator uses this synthetic data to expand its public dataset and periodically fine-tune the global distiller. This iterative process allows the distiller to learn from the collective knowledge of the clients without them sharing raw or exclusive data.
  • Diffusion Model Backbone: The core generative capability is built upon Denoising Diffusion Probabilistic Models (DDPMs), adapted for time series by incorporating temporal embeddings and sequential conditioning to capture trends and seasonality.

Datasets

The paper evaluates FedTDD on five datasets:

  • Stocks: Daily historical Google stock data (2004-2019) with highly correlated features.
  • ETTh: Electricity transformer data (hourly) with load and oil temperature.
  • Energy: UCI appliances energy prediction dataset (10-minute intervals).
  • fMRI: A simulated brain activity time series dataset.
  • MuJoCo: A physics-based simulation time series dataset.

These datasets were preprocessed using a sliding window technique to create sequences of length 24, capturing temporal dependencies.

Key Insights and Ideas

  • Synthetic Data as a Privacy-Preserving Communication Channel: The core innovation is using synthetic data generated by clients as the primary means of communication. This circumvents the need to share raw data or model parameters, offering a strong privacy guarantee.
  • Iterative Refinement through Data Distillation: The feedback loop where clients generate synthetic common features, which are then used to retrain the global distiller, creates a powerful iterative refinement process. This allows the system to adapt to client-specific data characteristics and improve imputation quality over time.
  • Handling Heterogeneity without Explicit Alignment: FedTDD's design inherently addresses feature and temporal misalignment by focusing on imputing common features and then allowing local models to handle exclusive ones. This bypasses the need for explicit, complex alignment procedures.
  • Distiller as a Shared Knowledge Repository: The global distiller acts as a central repository of knowledge about common features, benefiting all clients by providing a more accurate imputation of shared data.

Key Results

FedTDD demonstrates strong performance across multiple datasets, particularly in scenarios with significant feature and temporal misalignment.

  • Significant Improvement over Local Training: FedTDD achieved up to 79.4% improvement in Context-FID scores and 62.8% improvement in Correlational scores over local training.
  • Comparable to Centralized Training: The performance of FedTDD is often comparable to centralized training approaches, which have access to all data.
  • Robustness to Reduced Common Features: An ablation study showed FedTDD's robustness even when the number of common features was reduced to around 25% of the total features.

Limitations and Future Work

  • fMRI Dataset Challenges: The paper notes that imputation quality was lower on the fMRI dataset, leading to degraded client model performance. This suggests that highly complex or noisy datasets may require further refinement of the imputation strategy. The authors acknowledge that in such cases, local training might appear better due to not relying on imputed data.
  • Future Work: The authors suggest that any time series generative model can be adopted as a backbone for FedTDD, implying flexibility and potential for integrating newer generative architectures. Further analysis of different training configurations, including the impact of limited public data and imbalanced distributions, is also mentioned.

Summary updated

BibTeX
@inproceedings{soi2024federated,
  author = {Zhi Wen Soi and Chenrui Fan and Aditya Shankar and Abel Malan and Lydia Y. Chen},
  title = {{Federated Time Series Generation on Feature and Temporally Misaligned Data}},
  booktitle = {ECML/PKDD},
  year = {2024},
}
Figure