From Private to Public: Benchmarking GANs in the Context of Private Time Series Classification

Dominique Mercier, Andreas Dengel, Sheraz Ahmed · DOI

Abstract

Deep learning's reliance on large-scale data is often at odds with privacy requirements in sensitive domains like healthcare and finance. This paper benchmarks Generative Adversarial Networks (GANs) as a mechanism for "privatizing" time series data. By comparing two leading architectures—DPWGAN and GSWGAN—the researchers demonstrate that Gradient-Sanitized Wasserstein GANs (GSWGAN) can generate high-quality synthetic datasets that facilitate accurate classification while maintaining strict differential privacy, significantly outperforming traditional differentially private GAN approaches.

Introduction

In critical sectors such as healthcare, finance, and infrastructure, data is frequently restricted due to privacy concerns. Traditional anonymization methods are increasingly susceptible to de-anonymization attacks by sophisticated neural networks. While Differential Privacy (DP) is the gold standard for mathematical privacy guarantees, applying it directly to a classifier often results in a significant performance degradation.

This study explores an alternative paradigm: using a private generator to create a "public" synthetic version of the dataset. The primary challenge is ensuring that this synthetic data is realistic enough for downstream tasks, such as classification, without "memorizing" and leaking original private records.

Methodology

The authors utilize the Wasserstein GAN (WGAN) framework, known for its training stability, and compare two privacy-preserving variants:

  1. DPWGAN (Differentially Private WGAN): This model applies DP by adding noise to gradients and clipping the weights of the discriminator. However, privatizing the discriminator restricts the generator's ability to learn effectively.
  2. GSWGAN (Gradient-Sanitized WGAN): This approach sanitizes only the gradients passed to the generator. Since the discriminator is discarded post-training, it requires less direct protection, allowing it to provide higher-quality feedback to the generator.

The study also investigates the impact of stopping criteria (e.g., Frechet Inception Distance) and architectural choices (Dense vs. Convolutional layers) on synthetic data utility.

Experimental Setup

The researchers evaluated these models across nine diverse datasets from the UEA & UCR time series repository, spanning domains such as transport, communications, public health, and manufacturing. These datasets vary significantly in sequence length, channel count, and class distribution, providing a robust benchmark.

Key Insights and Results

The Advantage of Gradient Sanitization

A core finding is the "Discriminator Dilemma": in DPWGAN, the weakened discriminator cripples the generator. GSWGAN bypasses this by focusing privacy constraints on the generator-discriminator interface, leading to more stable and accurate data generation.

Table 1: Performance comparison (weighted F1-score) across various datasets and privacy-preserving methods. GSWGAN consistently outperforms DPWGAN.

As shown in the results table, GSWGAN achieved an average weighted F1-score of 0.7691, nearly matching the performance of models trained directly with Differential Privacy (0.7781). In contrast, DPWGAN struggled significantly, with an average F1-score of only 0.5166.

Architectural and Training Optimization

The research highlights that GAN quality does not always improve monotonically. Utilizing Frechet Inception Distance (FID) as an early stopping criterion improved performance by up to 15% on certain datasets compared to fixed-iteration training.

Furthermore, convolutional architectures proved superior for time series data. GSWGAN-conv models produced smoother samples and achieved higher average accuracy than their dense counterparts.

Table 2: Comparison between GSWGAN-dense and GSWGAN-conv architectures, demonstrating the superior performance of convolutional layers for time series generation.

Robustness and Visualization

GSWGAN demonstrated remarkable resilience to increased privacy protection (noise multipliers). While the performance of standard DP-classifiers and DPWGAN often collapsed under high noise, GSWGAN maintained high data quality. T-SNE visualizations further confirmed that GSWGAN successfully captured underlying class distributions and separations, whereas DPWGAN often resulted in collapsed clusters.

Conclusion and Future Work

While GSWGAN represents a significant step forward, challenges remain. The model exhibits sensitivity to architectural hyperparameters, requiring extensive searches for complex datasets. Additionally, GANs still struggle with extreme class imbalances, often failing to capture nuances in minority classes. Future work will focus on automating architecture searches and improving performance on imbalanced time series data.

Summary updated

BibTeX
@article{mercier2024from,
  author = {Dominique Mercier and Andreas Dengel and Sheraz Ahmed},
  title = {{From Private to Public: Benchmarking GANs in the Context of Private Time Series Classification}},
  journal = {Applied Intelligence},
  year = {2024},
  doi = {10.1007/s10489-024-05671-z},
}
Figure