On the Susceptibility and Robustness of Time Series Models through Adversarial Attack and Defense

Asadullah Hill Galib, Bidhan BashyalarXiv 2023 · DOI

Abstract

Deep learning models for time series analysis are increasingly deployed in critical sectors, yet their vulnerability to adversarial perturbations remains under-explored compared to computer vision. This paper benchmarks seven diverse architectures—RNN, LSTM, Stacked-LSTM, GRU, CNN, CNN-LSTM, and ConvLSTM—against three gradient-based adversarial attacks: FGSM, BIM, and PGD. Through extensive evaluation across classification and regression tasks, the study demonstrates that while recurrent models are highly susceptible, adversarial training serves as a robust defense mechanism, effectively restoring performance metrics to near-baseline levels.

Introduction

Deep Learning (DL) has revolutionized time series analysis in fields like finance, weather forecasting, and industrial maintenance. However, these models are often "brittle"; small, intentional perturbations to input data—known as adversarial attacks—can cause them to fail significantly. While adversarial robustness has been extensively studied in Computer Vision, it remains relatively under-explored in the time series domain. Most existing research focuses either on classification or regression, or limits the scope to a single model type. This paper fills that gap by evaluating the susceptibility and robustness of seven diverse DL architectures across both task types using three different attack vectors and a unified defense mechanism.

Methodology

The researchers evaluate a "zoo" of seven popular DL models categorized into recurrent-based (RNN, LSTM, Stacked-LSTM, GRU), convolution-based (CNN), and hybrid architectures (CNN-LSTM, ConvLSTM). These models are subjected to three gradient-based adversarial attacks:

  1. Fast Gradient Sign Method (FGSM): A fast, one-step attack using the gradient of the loss.
  2. Basic Iterative Method (BIM): An iterative version of FGSM.
  3. Projected Gradient Descent (PGD): A stronger iterative adversary starting from a random point.

To counter these, Adversarial Training is implemented, augmenting the training set with adversarial examples to teach the model to ignore malicious noise through a min-max optimization process.

Overview of the experimental framework

Experimental Setup

The study utilizes six distinct datasets to ensure broad applicability:

  • Classification: Eye State (EEG data).
  • Regression: Five datasets covering Temperature, Power Consumption, Humidity, Wind Speed, and Hurricane Intensity.

All datasets were structured using a sliding window approach, typically using the first 23 time steps to predict the 24th.

Key Insights

  • The "Strongest" Attack: Surprisingly, FGSM—the simplest, one-step attack—often outperformed the more complex BIM and PGD in reducing model performance. This efficiency in generating high-impact perturbations is notable in time series contexts.
  • The "Hardest" Recovery: Models perturbed by PGD were the most difficult to repair via adversarial training. PGD’s random initialization creates a more diverse set of perturbations that are harder for defense mechanisms to generalize against.
  • Architecture Susceptibility: Simple RNNs and GRUs were the most susceptible to attacks. However, LSTMs and GRUs demonstrated a superior ability to recover accuracy and precision after adversarial training compared to pure CNNs or hybrid models.
  • Impact on Regression: Adversarial vulnerability in regression tasks leads to significant spikes in Root Mean Square Error (RMSE), which could be catastrophic in high-stakes environments like power grid management.

Results

The benchmark results confirm that adversarial training consistently boosts robustness across all datasets. In classification tasks (Eye State), an LSTM model's accuracy dropped from 82.46% to 58.54% under FGSM but was restored to 81.28% after defense.

In regression tasks, such as the Temperature dataset, the GRU model initially achieved a very low RMSE of 0.01. Adversarial attacks increased this error by 7x–9x (up to 0.09), but adversarial training successfully brought it back down to a range of 0.03–0.04.

RMSE performance across models for the Temperature dataset

Conclusion

While adversarial training is effective, it is computationally expensive as it requires generating new adversarial examples for every training epoch. Future research should explore a wider variety of defense mechanisms, test more sophisticated attack types, and investigate why hybrid models like CNN-LSTM struggle more with recovery than pure recurrent models.

Summary updated

BibTeX
@misc{galib2023susceptibility,
  author = {Asadullah Hill Galib and Bidhan Bashyal},
  title = {{On the Susceptibility and Robustness of Time Series Models through Adversarial Attack and Defense}},
  year = {2023},
  eprint = {2301.03703},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.03703},
}
Figure