Adversarial Diffusion Attacks on Graph-Based Traffic Prediction Models

Lyuyi Zhu, Kairui Feng, Ziyuan Pu, Wei Ma

TL;DR

Graph Convolutional Networks (GCNs) are the backbone of modern traffic prediction systems (like Google Maps), but they harbor a critical vulnerability. This paper introduces the concept of "diffusion attacks," demonstrating how bad actors can degrade network-wide traffic predictions by subtly perturbing data on just a small, strategically selected subset of nodes using a novel black-box algorithm.

What Problem Does This Paper Address?

Smart mobility systems—ranging from smartphone mapping apps to autonomous vehicle networks and city-wide traffic management—rely heavily on deep learning to predict traffic conditions. GCNs are the state-of-the-art for this task because they effectively model both the spatial (road networks) and temporal (time-series speed data) aspects of traffic.

However, neural networks are notoriously vulnerable to adversarial attacks. While previous research has explored adversarial attacks on graphs, they typically focus on modifying all nodes to trick the model into misclassifying a single target node. In the real world of traffic networks, this is entirely impractical; an attacker cannot easily hack every sensor in a city. Instead, a realistic attacker can only compromise a small number of nodes (e.g., spoofing GPS signals on a few phones, as famously demonstrated by an artist who created a fake traffic jam on Google Maps using a wagon full of smartphones). The authors address this gap by formalizing the diffusion attack: a method to degrade the performance of the entire prediction model by attacking only a strictly limited subset of nodes.

Methods

To execute a diffusion attack in a realistic, black-box scenario (where the attacker only sees the model's inputs and outputs, not its internal weights), the authors propose a two-part algorithm called KG-SPSA:

  1. Simultaneous Perturbation Stochastic Approximation (SPSA): Because the attacker doesn't have access to the model's gradients, they must estimate them. SPSA efficiently approximates the gradient of the black-box model by observing how the output changes when random, small perturbations are applied to the input traffic data. This allows the attacker to craft the optimal adversarial noise to add to a node's historical traffic data.
  2. Knapsack Greedy (KG) Node Selection: The attacker has a limited "budget" (e.g., it is harder/more expensive to hack secure urban sensors than rural ones). Selecting which nodes to attack to maximize network-wide disruption is an NP-hard problem. The authors model this as a 0-1 knapsack problem and use a greedy algorithm to select nodes that offer the highest "attack utility" (estimated via SPSA) per unit of cost.

Datasets

The authors evaluated their attack framework on two real-world traffic speed datasets:

  • LA Dataset: Traffic speed data collected every 5 minutes from 207 loop detectors in Los Angeles over a week in 2012.
  • HK Dataset: Traffic speed data from 179 road segments in Hong Kong, collected every 5 minutes over a month in 2020.

Key Insights and Ideas

  • The "Diffusion" Effect is Mathematically Bounded: The authors prove that in an $L$-layer GCN, the effect of perturbing a single node diffuses exactly to its $L$-hop neighbors. Because most traffic GCNs use 3 or fewer layers, the attack effect of a single node is highly localized. Therefore, a successful network-wide attack must select a scattered, distributed set of nodes.
  • Attention Mechanisms Increase Vulnerability: The paper tests three GCN architectures (ST-GCN, T-GCN, and A3T-GCN). They found that A3T-GCN, which uses attention mechanisms, is significantly more vulnerable to diffusion attacks. While attention strengthens the model's ability to learn connections between nodes, it inadvertently creates wider highways for adversarial noise to spread across the network.
  • The Trade-off Between Accuracy and Robustness: While complex models yield better baseline accuracy, simpler RNN-based GCNs proved more robust against data poisoning.

Key Results

  • High Disruption with Low Budget: The KG-SPSA algorithm successfully degraded network-wide predictions. For example, on the LA dataset with a budget of 50 nodes, the Average Attack Influence (AAI)—the average artificial degradation in predicted speed—was 5.46 km/h for ST-GCN, 4.36 km/h for T-GCN, and a massive 12.74 km/h for A3T-GCN.
  • Outperforming Baselines: Because diffusion attacks are a new task, the authors adapted standard graph centrality metrics (PageRank, Betweenness, Degree) as baselines for node selection. KG-SPSA consistently outperformed these baselines, proving that simply attacking the most "central" traffic hubs is less effective than optimizing for the model's specific gradient vulnerabilities.
  • Bypassing Defenses: The authors tested the models using drop regularization defenses (Dropout, DropNode, DropEdge). While Dropout slightly mitigated the attack's effectiveness, KG-SPSA was still able to generate highly effective adversarial samples, proving that standard regularizations are insufficient to protect traffic models.

Limitations and Future Work

  • Scope of Prediction Tasks: The paper focuses exclusively on traffic speed prediction. The authors note that future work should explore diffusion attacks on other critical tasks like traffic flow prediction, origin-destination demand forecasting, and applications in other transit modes (railway, ride-sourcing).
  • Need for Active Defenses: The authors acknowledge that while their work exposes the vulnerability, the next step is building robust defenses. They suggest that future research should focus on real-time anomaly detection and data stream filtering to identify and block malicious sensor data before it enters the GCN.

Summary updated

BibTeX
@article{zhu2024adversarial,
  author = {Lyuyi Zhu and Kairui Feng and Ziyuan Pu and Wei Ma},
  title = {{Adversarial Diffusion Attacks on Graph-Based Traffic Prediction Models}},
  journal = {IEEE Internet of Things Journal},
  year = {2024},
  url = {https://openreview.net/forum?id=5MGLRZfGux},
}
Figure