While adversarial attacks—small, intentional perturbations designed to fool AI—are well-studied in domains like image classification, they remain a relatively unexplored frontier in time-series forecasting. Most existing research focuses on univariate models, where an attacker must manipulate the target data directly. However, real-world systems such as stock markets, traffic networks, and power grids are inherently multivariate, involving many interconnected variables.
This paper exposes a critical vulnerability in these systems: indirect adversarial attacks. In this scenario, an attacker perturbs a few "innocent" time series to sabotage the prediction of a completely different target series. To counter this, the authors introduce a novel probabilistic sparse attack and two robust defense mechanisms that significantly improve model resilience.
The Threat of Indirect Attacks
Can an adversary manipulate the price of a minor commodity to cause a massive forecasting error in a major stock index? The authors argue that these indirect, sparse (affecting only a few variables), and imperceptible changes pose a severe, under-studied threat to safety-critical systems.
The power of indirection is substantial. The authors demonstrate that an attacker can increase forecasting error by 20% by perturbing just one out of nine non-target time series. Attacking half of the series can increase the error by over 100%. Furthermore, attacks designed for univariate models perform poorly when applied to multivariate models, proving that multivariate forecasting requires its own specialized robustness theory.
Attack and Defense Methodologies
To systematically study this vulnerability, the authors propose two attack strategies and two corresponding defense mechanisms.
The Attacks
- Deterministic Attack: This method uses Projected Gradient Descent (PGD) to find the optimal small perturbation that maximizes forecasting error under a strict sparsity constraint (limiting the number of series changed).
- Probabilistic Sparse Attack: The paper's primary innovation is the introduction of a "Sparse Layer"—a differentiable distribution combining a standard Gaussian with a Dirac density (zero-point mass). This allows the attack to be non-deterministic and differentiable, meaning it can be integrated directly into training loops. Non-deterministic attacks are often more potent because the specific coordinates being attacked change, preventing the model from simply learning to ignore a fixed noise pattern.
The Defenses
- Randomized Smoothing (RS): A post-training technique that adds random noise to the input during inference and averages the forecasts. The authors provide a "Robust Certificate," extending the theory of randomized smoothing to the multivariate setting to guarantee how much the output can change given a certain input perturbation.
- Mini-max Defense: A form of adversarial training. Using the differentiable probabilistic attack, the model is trained to minimize the maximum possible damage an adversary could cause. It’s essentially a cat-and-mouse game played during the training phase to harden the model.
Key Results and Insights
The researchers evaluated their methods on four diverse, real-world multivariate benchmarks: Traffic, Electricity, Taxi, and Wiki datasets, utilizing DeepVAR as the underlying state-of-the-art probabilistic forecasting model. The primary metric used was Weighted Quantile Loss (wQL), which measures the accuracy of probabilistic forecasts (where lower is better).
The results highlight the severity of the threat and the efficacy of the proposed defenses:
- Attack Effectiveness: On the Electricity dataset, a probabilistic attack with a sparsity of 7 (out of 10) increased the wQL from a baseline of 0.2909 to a near-total failure state of 0.9991.
- Defense Performance: In the same high-intensity attack scenario, the Mini-max defense successfully brought the wQL back down to 0.6161. While standard Data Augmentation (adding simple noise) offered slight improvements (wQL 0.8267), the Mini-max defense proved significantly more effective against strategic attacks.
Limitations and Future Work
While the proposed defenses mark a significant step forward, they come with trade-offs. The Mini-max defense involves solving a complex optimization problem during training, making it more computationally expensive than standard methods. Additionally, it requires a sparsity parameter ($\kappa$) to be set as a hyperparameter, whereas in the real world, a defender rarely knows exactly how many series an attacker intends to target.
Future work must also address scaling. While tested on up to 2,000 series, many industrial applications involve tens of thousands of interconnected variables. Exploring how these adversarial Sparse Layers scale to massive dimensions, and mitigating the real-time latency overhead introduced by Randomized Smoothing during inference, remain critical next steps for securing multivariate forecasting systems.
Summary updated