Skip to main content
QUICK REVIEW

[Paper Review] Dynamic Time Warping based Adversarial Framework for Time-Series Domain

Taha Belkhouja, Yan Yan|arXiv (Cornell University)|Jul 9, 2022
Anomaly Detection Techniques and ApplicationsComputer Science5 citations
TL;DR

This paper proposes DTW-AR, a novel adversarial robustness framework for time-series deep neural networks using Dynamic Time Warping (DTW) instead of Euclidean distance. By leveraging stochastic alignment paths to efficiently generate diverse, realistic adversarial examples, DTW-AR achieves superior fooling rates and robustness improvement over baseline methods while reducing computational cost by orders of magnitude.

ABSTRACT

Despite the rapid progress on research in adversarial robustness of deep neural networks (DNNs), there is little principled work for the time-series domain. Since time-series data arises in diverse applications including mobile health, finance, and smart grid, it is important to verify and improve the robustness of DNNs for the time-series domain. In this paper, we propose a novel framework for the time-series domain referred as {\em Dynamic Time Warping for Adversarial Robustness (DTW-AR)} using the dynamic time warping measure. Theoretical and empirical evidence is provided to demonstrate the effectiveness of DTW over the standard Euclidean distance metric employed in prior methods for the image domain. We develop a principled algorithm justified by theoretical analysis to efficiently create diverse adversarial examples using random alignment paths. Experiments on diverse real-world benchmarks show the effectiveness of DTW-AR to fool DNNs for time-series data and to improve their robustness using adversarial training. The source code of DTW-AR algorithms is available at https://github.com/tahabelkhouja/DTW-AR

Motivation & Objective

  • To address the lack of principled adversarial robustness methods tailored for the time-series domain.
  • To overcome the limitations of $l_p$-norm based adversarial attacks, which fail to capture temporal similarity in time-series data.
  • To develop a framework that generates more realistic and diverse adversarial examples using DTW as a distance metric.
  • To improve the robustness of time-series DNNs through effective adversarial training using DTW-AR-generated examples.
  • To demonstrate that DTW-based adversarial examples are more effective and computationally efficient than existing methods like SoftDTW or standard DTW.

Proposed method

  • Formulates an optimization problem constrained by the DTW distance measure to generate targeted adversarial examples.
  • Introduces stochastic alignment paths to generate multiple diverse adversarial examples, overcoming the limitation of single-path optimization.
  • Theoretically proves that a random alignment path upper-bounds the DTW measure, enabling efficient and effective search.
  • Employs a gradient-based iterative method using the upper-bound approximation to efficiently compute adversarial perturbations.
  • Uses the final cost matrix from dynamic programming to compute DTW, ensuring compatibility with any multivariate DTW variant.
  • Validates the method using real-world time-series benchmarks and compares against state-of-the-art baselines, including CW-SDTW and standard DTW.

Experimental results

Research questions

  • RQ1Is DTW a more suitable distance metric than $l_2$ for generating adversarial examples in the time-series domain?
  • RQ2Can stochastic alignment paths efficiently generate diverse adversarial examples while maintaining effectiveness?
  • RQ3Does adversarial training using DTW-AR improve the robustness of DNNs against standard and adversarial attacks?
  • RQ4How does the computational cost of DTW-AR compare to exact DTW and SoftDTW in generating adversarial examples?
  • RQ5Can DTW-AR generalize across different variants of multivariate DTW, such as DTW_I and DTW_D?

Key findings

  • DTW space contains a superset of adversarial examples compared to Euclidean space under the same distance bound, validating DTW’s suitability for time-series robustness.
  • Stochastic alignment paths enable the generation of multiple diverse adversarial examples, which is not feasible with optimal path-based methods.
  • The upper-bound approximation using random alignment paths is tight, ensuring that the method remains effective while being computationally efficient.
  • DTW-AR-generated adversarial examples achieve higher fooling rates on time-series DNNs than baseline methods, including CW-SDTW.
  • Adversarial training using DTW-AR significantly improves DNN robustness against both standard and adversarial attacks, as shown in Figures 12 and 13.
  • DTW-AR reduces computational cost by orders of magnitude compared to standard DTW and FastDTW, with cDTW serving as a faster and more accurate baseline.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.