TSFool: Crafting Highly-Imperceptible Adversarial Time Series through Multi-Objective Attack

Yanyun Wang, Dehui Du, Haibo Hu, Zi Liang, Yuanhao Liu
9/14/2022
15 citations
cs.LGcs.CR

Official code: FlaAI/TSFool (16 stars, Python, MIT, last commit 2025-08-23).

Abstract

Recent years have witnessed the success of recurrent neural network (RNN) models in time series classification (TSC). However, neural networks (NNs) are vulnerable to adversarial samples, which cause real-life adversarial attacks that undermine the robustness of AI models.

Show full abstract

To date, most existing attacks target at feed-forward NNs and image recognition tasks, but they cannot perform well on RNN-based TSC. This is due to the cyclical computation of RNN, which prevents direct model differentiation. In addition, the high visual sensitivity of time series to perturbations also poses challenges to local objective optimization of adversarial samples. In this paper, we propose an efficient method called TSFool to craft highly-imperceptible adversarial time series for RNN-based TSC. The core idea is a new global optimization objective known as "Camouflage Coefficient" that captures the imperceptibility of adversarial samples from the class distribution. Based on this, we reduce the adversarial attack problem to a multi-objective optimization problem that enhances the perturbation quality. Furthermore, to speed up the optimization process, we propose to use a representation model for RNN to capture deeply embedded vulnerable samples whose features deviate from the latent manifold. Experiments on 11 UCR and UEA datasets showcase that TSFool significantly outperforms six white-box and three black-box benchmark attacks in terms of effectiveness, efficiency and imperceptibility from various perspectives including standard measure, human study and real-world defense.

View on arXivView PDF

Code Implementations(1)

FlaAI/TSFoolOfficial100%
MIT

Repository of paper "TSFool: Crafting Highly-Imperceptible Adversarial Time Series through Multi-Objective Attack" (ECAI'24 Oral)

161PythonJul 12, 20221 years agoMIT
adversarial-attackrnntime-series-classification

Similar Papers

Cite this paper

@article{wang2022tsfool,
  title  = {TSFool: Crafting Highly-Imperceptible Adversarial Time Series through Multi-Objective Attack},
  author = {Yanyun Wang and Dehui Du and Haibo Hu and Zi Liang and Yuanhao Liu},
  year   = {2022},
  eprint = {2209.06388},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.06388}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2209.06388.svg)](https://codeofpaper.com/paper/2209.06388)

Discussion