Abstract
Deep Neural Networks (DNNs) are increasingly utilized for critical time series classification (TSC) tasks, yet they remain vulnerable to adversarial attacks. While white-box attacks are well-studied, real-world scenarios often restrict attackers to black-box access. Furthermore, time series data typically resides on a low-dimensional manifold, making traditional global perturbations easily detectable. We present BlackTreeS, a novel framework that achieves high attack success rates and exceptional stealth by combining a quadtree-based search for influential time steps with independent gradient estimation.
Introduction: The Challenge of Stealthy Black-Box Attacks
Adversarial attacks involve making small, intentional perturbations to input data to cause misclassification. In the context of time series, these attacks face two major hurdles: black-box constraints and the "natural manifold" problem.
Time series data typically exists on a low-dimensional manifold. Attacks that apply noise across the entire sequence often fall "off the manifold," appearing as unnatural high-frequency noise that simple auto-encoders can detect with over 95% accuracy. To be effective in the real world, an attack must be both successful in causing misclassification and stealthy enough to evade detection by preserving the data's natural characteristics.
Methodology: The BlackTreeS Framework
BlackTreeS addresses these challenges through two primary innovations: Independent Approximation and Tree Position Search.
Independent Approximation
Standard black-box attacks often estimate gradients by perturbing the entire input simultaneously (joint approximation). However, for non-convex models like RNNs and Transformers, this approach leads to significant estimation errors due to gradient explosion. BlackTreeS instead estimates gradients for each dimension independently, providing a more robust signal for sequential models.
Tree Position Search for $\ell_0$ Sparsity
To maintain stealth, BlackTreeS aims for $\ell_0$ sparsity, modifying only a tiny fraction of the time steps. Finding these influential positions efficiently is a significant challenge.
The framework employs a quadtree-based search. It recursively divides the sequence into regions, calculates a "significance score" for each, and narrows down to the most impactful individual points. By manipulating only a few key positions (e.g., 1/50th of the sequence), the adversarial example remains "on the manifold," preserving the overall shape and temporal patterns of the data.
Experimental Evaluation
The framework was evaluated on three real-world datasets: UWave (gesture recognition), Climate (extreme event prediction), and Eye (EEG data). The attacks targeted five diverse DNN architectures: LSTM, BiRNN, vanilla CNN, TCN (Temporal Convolutional Network), and DynamicConv (a self-attention model).
Key Results
BlackTreeS consistently outperformed state-of-the-art black-box attacks like NES, SPSA, and AutoZOOM:
- Attack Success Rate (ASR): On the UWave dataset targeting an LSTM, BlackTreeS improved ASR from 19.3% to 27.3% over the best baseline.
- Stealth (Defense Success Rate - DSR): While baseline attacks were detected by auto-encoders approximately 90.9% of the time, BlackTreeS reduced the detection rate to just 6.8%.
- Model Robustness: Unlike previous methods that often failed when switching from CNNs to RNNs, BlackTreeS remained effective across all tested architectures.
Discussion and Future Work
The success of BlackTreeS highlights the importance of accounting for the non-convexity of sequential models and the natural manifold of time series data. While highly effective, the tree search still requires multiple model queries, which may be a limitation in rate-limited environments. Future research could extend this approach to discrete-valued sequences (e.g., text or event logs) and further explore the theoretical limits of independent gradient approximation in deep sequential networks.
Summary updated