Efficient Adversarial Sequence Generation for RNN with Symbolic Weighted Finite Automata

Mingjun Ma, Dehui Du, Yuanhao Liu, Yanyun Wang, Yiyang LiSafeAI @ AAAI 2022

Introduction

Recurrent Neural Networks (RNNs) are fundamental to processing sequential data in critical applications such as autonomous driving and robotics. However, their cyclic internal structures make them susceptible to adversarial attacks—small, intentional perturbations that can lead to catastrophic mispredictions. Traditional gradient-based attacks often fail with RNNs because they are computationally expensive and frequently produce "noisy" sequences that are easily detectable by human observers.

To address these challenges, researchers have introduced AbASG (Abstraction-based Adversarial Sequence Generation). This framework translates complex RNNs into simpler, symbolic models called Symbolic Weighted Finite Automata (SWFA). By operating in this symbolic space, AbASG generates adversarial sequences that are both more effective and visually subtle than those produced by state-of-the-art methods.

Methodology: The AbASG Framework

The AbASG approach consists of two primary phases: symbolic extraction and adversarial generation.

The AbASG framework overview, showing the transition from RNN extraction to adversarial sequence generation.

1. Symbolic Extraction (Fast k-DCP)

The first step involves extracting an SWFA from a trained RNN. Unlike standard automata that use discrete symbols, an SWFA utilizes functions to handle real-valued inputs and infinite alphabets. The researchers developed the Fast k-DCP algorithm, which streamlines this process by bypassing traditional, time-consuming clustering steps, significantly accelerating the extraction of the symbolic model.

2. Adversarial Generation and the "000-status"

Instead of directly perturbing the high-dimensional RNN, AbASG targets the symbolic SWFA. This reduces the search space for adversarial examples. A pivotal discovery in this research is the "000-status"—a specific state where the SWFA's intermediate weights drop to zero. This state serves as a formal indicator that an input has reached the limits of the model's generalization. Sequences that approach this status are highly fragile, providing a "shortcut" for identifying vulnerabilities and generating successful adversarial perturbations.

3. Refinement and Covertness

Once a symbolic adversarial sequence is identified, it is sampled and converted back into concrete data. To ensure "visual covertness," the algorithm constrains perturbations based on the average distance between original data points. This ensures that the resulting adversarial sequence maintains the natural trend of the data, making it nearly invisible to human inspection.

Experimental Evaluation

The researchers evaluated AbASG across several time-series benchmarks, including the Autonomous Driving Dataset (ADD)—generated using the Scenic language and CARLA simulator—as well as the NGSIM vehicle trajectory dataset and subsets of the UCR Time-Series Archive (PPOAG, Chinatown, and Earthquakes).

Key Results

AbASG was compared against standard adversarial attacks, including FGSM, PGD, and NewtonFool.

  • Effectiveness: On the ADD dataset, AbASG achieved an Attack Success Rate (ASR) of 53.72% at low perturbation levels, outperforming the best baseline (NewtonFool at 25.23%) by over 112%.
  • Efficiency: The method is approximately 1.44 times faster than NewtonFool. While the initial SWFA extraction requires an upfront time investment, the resulting model can be reused to generate thousands of adversarial examples almost instantaneously.
  • Visual Fidelity: Qualitative analysis demonstrates that AbASG's adversarial trajectories are significantly more realistic than those of its competitors.
Comparison of adversarial trajectories generated by AbASG and baseline methods. AbASG paths (blue) closely follow realistic movement patterns compared to the noisier baselines.

Conclusion and Future Directions

AbASG demonstrates that symbolic abstraction is a powerful tool for analyzing and testing the robustness of RNNs. By identifying the "000-status" as a marker for vulnerability, the framework provides a principled way to generate high-quality adversarial sequences efficiently.

Future work will focus on scaling this approach to handle multi-label classification tasks with a larger number of categories and optimizing the symbolic extraction process for even more complex spatio-temporal datasets. Additionally, the researchers aim to further investigate the dependency between the accuracy of the extracted SWFA and the ultimate success of the adversarial attack.

Summary updated

BibTeX
@inproceedings{ma2022efficient,
  author = {Mingjun Ma and Dehui Du and Yuanhao Liu and Yanyun Wang and Yiyang Li},
  title = {{Efficient Adversarial Sequence Generation for RNN with Symbolic Weighted Finite Automata}},
  booktitle = {SafeAI @ AAAI},
  year = {2022},
  url = {https://openreview.net/forum?id=75oOG6W43f},
}
Figure