arXiv is now an independent nonprofit! Learn more
License: arXiv.org perpetual non-exclusive license
arXiv:2210.02447v1 [cs.LG] 05 Oct 2022

Practical Adversarial Attacks on Spatiotemporal Traffic Forecasting Models

Fan LIU Affiliation: AI Thrust&RBM, The Hong Kong University of Science and Technology (Guangzhou) Email: fliu236@connect.hkust-gz.edu.cn&liufan@ust.hk    Hao LIU thanks: Corresponding author Affiliation: AI Thrust, The Hong Kong University of Science and Technology (Guangzhou) Affiliation: Guangzhou HKUST Fok Ying Tung Research Institute Affiliation: CSE, The Hong Kong University of Science and Technology Email: liuh@ust.hk    Wenzhao Jiang Affiliation: AI Thrust, The Hong Kong University of Science and Technology (Guangzhou) Email: wjiang431@connect.hkust-gz.edu.cn
Abstract

Machine learning based traffic forecasting models leverage sophisticated spatiotemporal auto-correlations to provide accurate predictions of city-wide traffic states. However, existing methods assume a reliable and unbiased forecasting environment, which is not always available in the wild. In this work, we investigate the vulnerability of spatiotemporal traffic forecasting models and propose a practical adversarial spatiotemporal attack framework. Specifically, instead of simultaneously attacking all geo-distributed data sources, an iterative gradient-guided node saliency method is proposed to identify the time-dependent set of victim nodes. Furthermore, we devise a spatiotemporal gradient descent based scheme to generate real-valued adversarial traffic states under a perturbation constraint. Meanwhile, we theoretically demonstrate the worst performance bound of adversarial traffic forecasting attacks. Extensive experiments on two real-world datasets show that the proposed two-step framework achieves up to 67.8%67.8\% performance degradation on various advanced spatiotemporal forecasting models. Remarkably, we also show that adversarial training with our proposed attacks can significantly improve the robustness of spatiotemporal traffic forecasting models. Our code is available in https://github.com/kdd-hkust/Adv-ST.

1 Introduction

Machine learned spatiotemporal forecasting models have been widely adopted in modern Intelligent Transportation Systems (ITS) to provide accurate and timely prediction of traffic dynamics, e.g., traffic flow [1], traffic speed [2, 3], and the estimated time of arrival [4, 5]. Despite fruitful progress in improving the forecasting accuracy and utility [6], little attention has been paid to the robustness of spatiotemporal forecasting models. For example, Figure 1 demonstrates that injecting slight adversarial perturbations on a few randomly selected nodes can significantly degrade the traffic forecasting accuracy of the whole system. Therefore, this paper investigates the vulnerability of traffic forecasting models against adversarial attacks.

Refer to caption
Figure 1: An illustration of adversarial attack against spatiotemporal forecasting models on the Bay Area traffic network in California, the data ranges from January 2017 to May 2017. (a) Adversarial attack of geo-distributed data. The malicious attacker may inject adversarial examples into a few randomly selected geo-distributed data sources. (e.g., roadway sensors) to mislead the prediction of the whole traffic forecasting system. (b) Accuracy drop of victim nodes. By adding less than 50% traffic speed perturbations to 10% victim nodes, we observe 60.4% accuracy drop of victim nodes in morning peak hour. (c) Accuracy drop of neighbouring nodes. Due to the information diffusion of spatiotemporal forecasting models, the adversarial attack also leads to up to about 47.23% accuracy drop for neighboring nodes.

In recent years, adversarial attacks have been extensively studied in various application domains, such as computer vision and natural language processing [7] However, two major challenges prevent applying existing adversarial attack strategies to spatiotemporal traffic forecasting. First, the traffic forecasting system makes predictions by exploiting signals from geo-distributed data sources (e.g., hundreds of roadway sensors and thousands of in-vehicle GPS devices). It is expensive and impractical to manipulate all data sources to inject adversarial perturbations simultaneously. Furthermore, state-of-the-art traffic forecasting models propagate local traffic states through the traffic network for more accurate prediction [5]. Attacking a few arbitrary data sources will result in node-varying effects on the whole system. How to identify the subset of salient victim nodes with a limited attack budget to maximize the attack effect is the first challenge. Second, unlike most existing adversarial attack strategies that focus on time-invariant label classification [8, 9], the adversarial attack against traffic forecasting aims to disrupt the target model to make biased predictions of continuous traffic states. How to generate real-valued adversarial examples without access to the ground truth of future traffic states is another challenge.

To this end, in this paper, we propose a practical adversarial spatiotemporal attack framework that can disrupt the forecasting models to derive biased city-wide traffic predictions. Specifically, we first devise an iterative gradient-guided method to estimate node saliency, which helps to identify a small time-dependent set of victim nodes. Moreover, a spatiotemporal gradient descent scheme is proposed to guide the attack direction and generate real-valued adversarial traffic states under a human imperceptible perturbation constraint. The proposed attack framework is agnostic to forecasting model architecture and is generalizable to various attack settings, i.e., white-box attack, grey-box attack, and black-box attack. Meanwhile, we theoretically analyze the worst performance guarantees of adversarial traffic forecasting attacks. We prove the adversarial robustness of spatiotemporal traffic forecasting models is related to the number of victim nodes, the maximum perturbation bound, and the maximum degree of the traffic network.

Extensive experimental studies on two real-world traffic datasets demonstrate the attack effectiveness of the proposed framework on state-of-the-art spatiotemporal forecasting models. We show that attacking 10%10\% nodes in the traffic system can break down the global forecasting Mean Average Error (MAE) from 1.9751.975 to 6.13296.1329. Moreover, the adversarial attack can induce 68.65%68.65\%, and 56.67%56.67\% performance degradation under the extended white-box and black-box attack settings, respectively. Finally, we also show that incorporating adversarial examples we generated with adversarial training can significantly improve the robustness of spatiotemporal traffic forecasting models.

2 Background and problem statement

In this section, we first introduce some basics of spatiotemporal traffic forecasting and adversarial attack, then formally define the problem we aim to address.

2.1 Spatiotemporal traffic forecasting

Let 𝒢t=(𝒱,)\mathcal{G}_{t}=(\mathcal{V},\mathcal{E}) denote a traffic network at time step tt, where 𝒱\mathcal{V} is a set of nn nodes (e.g., regions, road segments, roadway sensors, etc.) and \mathcal{E} is a set of edges. The construction of 𝒢t\mathcal{G}_{t} can be categorized into two types, (1) prior-based, which pre-define 𝒢t\mathcal{G}_{t} based on metrics such as geographical proximity and similarity [10], and (2) learning-based, which automatically learns 𝒢t\mathcal{G}_{t} in an end-to-end way [2]. Note the 𝒢t\mathcal{G}_{t} can be static or time-evolving depending on the forecasting model. We denote 𝐗t=(𝐱1,t,𝐱2,t,,𝐱n,t)\mathbf{X}_{t}=(\mathbf{x}_{1,t},\mathbf{x}_{2,t},\cdots,\mathbf{x}_{n,t}) as the spatiotemporal features associated to 𝒢t\mathcal{G}_{t}, where 𝐱i,tc\mathbf{x}_{i,t}\in\mathbb{R}^{c} represents the cc-dimensional time-varying traffic conditions (e.g., traffic volume, traffic speed) and contextual features (e.g., weather, surrounding POIs) of node vi𝒱v_{i}\in\mathcal{V} at tt. The spatiotemporal traffic forecasting problem aims to predict traffic states for all vi𝒱v_{i}\in\mathcal{V} over the next τ\tau time steps,

𝐘^t+1:t+τ=fθ(𝒯+:),\mathbf{\hat{Y}}_{t+1:t+\tau}=f_{\theta}(\mathbfcal{H}_{t-T+1:t}), (1)

where 𝒯+:={(𝒳𝒯+,𝒢𝒯+),,(𝒳,𝒢)}\mathbfcal{H}_{t-T+1:t}=\{(\mathbf{X}_{t-T+1},\mathcal{G}_{t-T+1}),\dots,(\mathbf{X}_{t},\mathcal{G}_{t})\} denotes the traffic states contains input features and the traffic network in previous TT time steps, fθ()f_{\theta}(\cdot) is the spatiotemporal traffic forecasting model parameterized by θ\theta, and 𝐘^t+1:t+τ={𝐘^t+1,𝐘^t+2,,𝐘^t+τ}\mathbf{\hat{Y}}_{t+1:t+\tau}=\{\mathbf{\hat{Y}}_{t+1},\mathbf{\hat{Y}}_{t+2},\cdots,\mathbf{\hat{Y}}_{t+\tau}\} is the estimated traffic conditions of interest of 𝒱\mathcal{V} from time step t+1t+1 to t+τt+\tau. We denote 𝐘t+1:t+τ={𝐘t+1,𝐘t+2,,𝐘t+τ}\mathbf{Y}_{t+1:t+\tau}=\{\mathbf{Y}_{t+1},\mathbf{Y}_{t+2},\cdots,\mathbf{Y}_{t+\tau}\} as the ground truth of 𝒯+:.\mathbfcal{H}_{t-T+1:t}.

Note the above formulation is consistent with the state-of-the-art Graph Neural Network (GNN) based spatiotemporal traffic forecasting models [2, 10, 11, 12], and is also generalizable to other variants such as Convolutional Neural Network (CNN) based approaches [13].

2.2 Adversarial attack

Given a machine learning model, adversarial attack aims to mislead the model to derive biased predictions by generating the optimal adversarial example

xargmaxx(x,y,θ)s.t.xxpε,x^{\ast}\in\arg\max_{x^{\prime}}\mathcal{L}(x^{\prime},y;\theta)\quad s.t.\left\|x^{\prime}-x\right\|_{p}\leq\varepsilon, (2)

where xx^{\prime} is the adversarial example with maximum bound ε\varepsilon under LpL_{p} norm to guarantee the perturbation is imperceptible to human, and yy is the ground truth of clean example xx.

Various gradient-based methods have been proposed to generate adversarial examples, such as FGSM [14], PGD [8], MIM [9], etc. For instance, the adversarial example x=x+εsign(xCE(x,y,θ))x^{\prime}=x+\varepsilon\text{sign}(\nabla_{x}\mathcal{L}_{CE}(x,y;\theta)) in FGSM, where sign()\text{sign}(\cdot) is the Signum function and CE()\mathcal{L}_{CE}(\cdot) is the cross entropy loss.

Note the adversarial attack happened in the testing stage, and the attackers cannot manipulate the forecasting model or its output. On the benign testing set, the forecasting model can perform well. Based on the amount of information the attacker can access in the testing stage, the adversarial attack can be categorized into three classes. White-box attack. The attacker can fully access the target model, including the model architecture, the model parameters, gradients, model outputs, the input traffic states, and the corresponding labels. Grey-box attack. The attacker can partially access the system, including the target model and the input traffic states, but without the labels. Black-box attack. The attacker can only access the input traffic states, query the outputs of the target model or leverage a surrogate model to craft the adversarial examples.

2.3 Adversarial attack against spatiotemporal traffic forecasting

This work aims to apply adversarial attacks to spatiotemporal traffic forecasting models. We first define the adversarial traffic state as follow,

={(𝒳,𝒢):𝒮η,(𝒳𝒳)𝒮ε},\mathbfcal{H}^{\prime}_{t}=\left\{(\mathbf{X}^{\prime}_{t},\mathcal{G}_{t}):\left\|S_{t}\right\|_{0}\leq\eta,\left\|(\mathbf{X}^{\prime}_{t}-\mathbf{X}_{t})\cdot S_{t}\right\|_{p}\leq\varepsilon\right\}, (3)

where St{0,1}n×nS_{t}\in\{0,1\}^{n\times n} is a diagonal matrix with iith diagonal element indicating whether node ii is a victim node, and 𝐗t\mathbf{X}^{\prime}_{t} is the perturbed spatiotemporal feature named adversarial spatiotemporal feature. We restrict the adversarial traffic state by the victim node budget η\eta and the perturbation budget ε\varepsilon.

Note that following the definition of adversarial attack, we leave the topology of 𝒢t\mathcal{G}_{t} immutable as we regard the adjacency relationship as a part of the model parameter that may be automatically learned in an end-to-end way.

Attack goal. The attacker aims to craft adversarial traffic states to fool the spatiotemporal forecasting model to derive biased predictions. Formally, given a spatiotemporal forecasting model fθ()f_{\theta}(\cdot), the adversarial attack against spatiotemporal traffic forecasting is defined as

max𝒯+:t𝒯testt𝒯test(fθ(𝒯+:),𝒴+:+τ)\displaystyle\max_{\begin{subarray}{c}\mathbfcal{H}^{\prime}_{t-T+1:t}\\ t\in\mathcal{T}_{test}\end{subarray}}\sum_{t\in\mathcal{T}_{test}}\mathcal{L}(f_{\theta^{\ast}}(\mathbfcal{H}^{\prime}_{t-T+1:t}),\mathbf{Y}_{t+1:t+\tau}) (4a)
s.t.,θ=argminθt𝒯train(fθ(𝒯+:),𝒴+:+τ),\displaystyle s.t.,\quad\theta^{\ast}=\arg\min_{\theta}\sum_{t\in\mathcal{T}_{train}}\mathcal{L}(f_{\theta}(\mathbfcal{H}_{t-T+1:t}),\mathbf{Y}_{t+1:t+\tau}), (4b)

where 𝒯test\mathcal{T}_{test} and 𝒯train\mathcal{T}_{train} denote the set of time steps of all testing and training samples, respectively. ()\mathcal{L}(\cdot) is the loss function measuring the distance between the predicted traffic states and ground truth, and θ\theta^{\ast} is optimal parameters learned during the training stage.

Since the ground truth (i.e., future traffic states) under the spatiotemporal traffic forecasting setting is unavailable at run-time, the practical adversarial spatiotemporal attack primarily falls into the grey-box attack setting.

However, investigating white-box attacks is still beneficial to help us understand how adversarial attack works and can help improve the robustness of spatiotemporal traffic forecasting models (e.g., apply adversarial training). We discuss how to extend our proposed adversarial attack framework to white-box and black-box settings in Section 3.2.

3 Methodology

In this section, we introduce the practical adversarial spatiotemporal attack framework in detail. Specifically, our framework consists of two steps: (1) identify the time-dependent victim nodes, and (2) attack with the adversarial traffic state.

3.1 Identify time-dependent victim nodes

One unique characteristic that distinguishes attacking spatiotemporal forecasting from conventional classification tasks is the inaccessibility of ground truth at the test phase. Therefore, we first construct future traffic states’ surrogate label to guide the attack direction,

𝐘~t+1:t+τ=gϕ(𝒯+:)+δ+:+τ,\mathbf{\tilde{Y}}_{t+1:t+\tau}=g_{\phi}(\mathbfcal{H}_{t-T+1:t})+\mathcal{\delta}_{t+1:t+\tau}, (5)

where gϕ()g_{\phi}(\cdot) is a generalized function (e.g., tanh()\tanh(\cdot), sin()\sin{(\cdot)}, OPENfθ())f_{\theta}(\cdot)), δt+1:t+τ\mathcal{\delta}_{t+1:t+\tau} are random variables sampled from a probability distribution π(δt+1:t+τ)\pi(\mathcal{\delta}_{t+1:t+\tau}) to increase the diversity of the attack direction. In our implementation, we derive ϕ\phi based on the pre-trained forecasting model parameter θ\theta^{\ast}, and δt+1:t+τU(ε/10,ε/10)\mathcal{\delta}_{t+1:t+\tau}\sim U(-\varepsilon/10,\varepsilon/10). In the real-world production [5], the forecasting models are usually updated in an online fashion (e.g., per hours). Therefore, we estimate the missing latest traffic states based on previous input data, ~=}φ()\mathbfcal{\tilde{H}}_{t}=g_{\varphi}(\mathbfcal{H}_{t-1}), where gφ()g_{\varphi}(\cdot) is the estimation function parameterized by φ\varphi. For simplicity, we directly obtain φ\varphi from the pre-trained traffic forecasting model fθ()f_{\theta^{\ast}}(\cdot).

With the surrogate traffic state label 𝐘~t+1:t+τ\mathbf{\tilde{Y}}_{t+1:t+\tau}, we derive the time-dependent node saliency (TDNS) for each node as

t=σ((fθ(~𝒯+:),𝒴~+:+τ)𝐗~tT+1:t)p,\mathcal{M}_{t}=\left\|\sigma(\frac{\partial\mathcal{L}(f_{\theta}(\mathbfcal{\tilde{H}}_{t-T+1:t}),\mathbf{\tilde{Y}}_{t+1:t+\tau})}{\partial\mathbf{\tilde{X}}_{t-T+1:t}})\right\|_{p}, (6)

where (fθ(~𝒯+:),𝒴~+:+τ)\mathcal{L}(f_{\theta}(\mathbfcal{\tilde{H}}_{t-T+1:t}),\mathbf{\tilde{Y}}_{t+1:t+\tau}) is the loss function and σ\sigma is the activation function. Intuitively, t\mathcal{M}_{t} reveals the node-wise loss impact with the same degree of perturbations. Note depending on the time step tt, t\mathcal{M}_{t} may vary. A similar idea also has been adopted to identify static pixel saliency for image classification [15].

More in detail, the loss function (fθ(~𝒯+:),𝒴~+:+τ)\mathcal{L}(f_{\theta}(\mathbfcal{\tilde{H}}_{t-T+1:t}),\mathbf{\tilde{Y}}_{t+1:t+\tau}) in Equation 6 is updated by the iterative gradient-based adversarial method [8],

𝐗tT+1:t(i)=clip𝐗tT+1:t,ε(𝐗tT+1:t(i1)+αsign((fθ(𝒯+:()),𝒴~+:+τ))),\mathbf{X^{\prime}}_{t-T+1:t}^{(i)}=\text{clip}_{\mathbf{X^{\prime}}_{t-T+1:t},\varepsilon}(\mathbf{X^{\prime}}_{t-T+1:t}^{(i-1)}+\alpha\text{sign}(\nabla\mathcal{L}(f_{\theta^{\ast}}(\mathbfcal{H^{\prime}}_{t-T+1:t}^{(i-1)}),\mathbf{\tilde{Y}}_{t+1:t+\tau}))), (7)

where 𝒯+:()\mathbfcal{H^{\prime}}_{t-T+1:t}^{(i)} is adversarial traffic states at ii-th iteration, α\alpha is the step size, and clip𝐗tT+1,ε()\text{clip}_{\mathbf{X^{\prime}}_{t-T+1},\varepsilon}(\cdot) is the project operation which clips the spatiotemporal feature with maximum perturbation bound ε\varepsilon. Note 𝒯+:()=~𝒯+:\mathbfcal{H^{\prime}}_{t-T+1:t}^{(0)}=\mathbfcal{\tilde{H}}_{t-T+1:t}.

For each batch of data {(~𝒯+:,𝒴~+:+τ)(|)}j=1γ\left\{(\mathbfcal{\tilde{H}}_{t-T+1:t},\mathbf{\tilde{Y}}_{t+1:t+\tau})_{(j)}\right\}_{j=1}^{\gamma}, the time-dependent node saliency gradient is derived by

𝐠t=1γj{(fθ(~𝒯+:),𝒴~+:+τ)𝐗tT+1:t}j,\mathbf{g}_{t}=\frac{1}{\gamma}\sum_{j}\{\frac{\partial\mathcal{L}(f_{\theta^{\ast}}(\mathbfcal{\tilde{H}}_{t-T+1:t}),\mathbf{\tilde{Y}}_{t+1:t+\tau})}{\partial\mathbf{X^{\prime}}_{t-T+1:t}}\}_{j}, (8)

where γ\gamma is the batch size. We use the RELU activation function to compute the non-negative saliency score for each time step,

t=Relu(𝐠t)2.\mathcal{M}_{t}=\left\|\text{Relu}(\mathbf{g}_{t})\right\|_{2}. (9)

Finally, we obtain the set of victim node StS_{t} based on t\mathcal{M}_{t},

s(i,i),t={1 if viTop(t,k)0 otherwise ,s_{(i,i),t}=\begin{cases}1&\text{ if }v_{i}\in\text{Top}(\mathcal{M}_{t},k)\\ 0&\text{ otherwise },\end{cases} (10)

where s(i,i),ts_{(i,i),t} denotes the ii-th diagonal element of StS_{t}, and Top()\text{Top}(\cdot) is a 0-1 indicator function returning if viv_{i} is the top-kk salient node at time step tt.

3.2 Attack with adversarial traffic state

Based on the time-dependent victim set, we conduct adversarial attacks to spatiotemporal traffic forecasting models. Specifically, we first generate perturbed adversarial traffic features based on gradient descent methods. Take the widely used Projected Gradient Descent (PGD) [8] for illustration, we construct Spatiotemporal Projected Gradient Descent (STPGD) as below,

𝐗tT+1:t(i)=clip𝐗tT+1:t,ε(𝐗tT+1:t(i1)+αsign((fθ(𝒯+:()),𝒴~+:+τ)𝒮)),\mathbf{X^{\prime}}_{t-T+1:t}^{(i)}=\text{clip}_{\mathbf{X^{\prime}}_{t-T+1:t},\varepsilon}(\mathbf{X^{\prime}}_{t-T+1:t}^{(i-1)}+\alpha\text{sign}(\nabla\mathcal{L}(f_{\theta^{\ast}}(\mathbfcal{H^{\prime}}_{t-T+1:t}^{(i-1)}),\mathbf{\tilde{Y}}_{t+1:t+\tau})\cdot S_{t})), (11)

where 𝒯+:()\mathbfcal{H^{\prime}}_{t-T+1:t}^{(i-1)} is the adversarial traffic state at i1i-1-th iteration in the iterative gradient descent, α\alpha is the step size, and clip𝐗tT+1:t,ε()\text{clip}_{\mathbf{X^{\prime}}_{t-T+1:t},\varepsilon}(\cdot) is the operation to bound adversarial features in a ε\varepsilon ball. Note 𝐗t(0)=𝐗~t\mathbf{X^{\prime}}_{t}^{(0)}=\mathbf{\tilde{X}}_{t}. Instead of perturbing all nodes as in vanilla PGD, we only inject perturbations on selected victim nodes in StS_{t}. Similarly, we can generate perturbed adversarial traffic features by extending other gradient based methods, such as MIM [9].

In the testing phase, we can inject the adversarial traffic states 𝒯+:=𝒯+:+𝒯+:\mathbfcal{H^{\prime}}_{t-T+1:t}=\mathbfcal{H}_{t-T+1:t}+\bigtriangleup\mathbfcal{H^{\prime}}_{t-T+1:t} to apply adversarial attack, where +={(𝒳𝒳)𝒮+𝒳,𝒢}𝒯+:\bigtriangleup\mathbfcal{H}_{t}^{\prime}+\mathbfcal{H}_{t}=\left\{(\mathbf{X}_{t}^{\prime}-\mathbf{X}_{t})\cdot S_{t}+\mathbf{X}_{t},\mathcal{G}_{t}\right\}\in\mathbfcal{H^{\prime}}_{t-T+1:t} and ={((𝒳𝒳)𝒮,):𝒮η,(𝒳𝒳)𝒮ε}𝒯+:\bigtriangleup\mathbfcal{H^{\prime}}_{t}=\left\{((\mathbf{X^{\prime}}_{t}-\mathbf{X}_{t})\cdot S_{t},0):\left\|S_{t}\right\|_{0}\leq\eta,\left\|(\mathbf{X^{\prime}}_{t}-\mathbf{X}_{t})\cdot S_{t}\right\|_{p}\leq\varepsilon\right\}\in\bigtriangleup\mathbfcal{H^{\prime}}_{t-T+1:t}. The details of the adversarial spatiotemporal attack framework under the grey-box setting is in algorithm 1.

The overall adversarial spatiotemporal attack can be easily extended to the white-box and black-box settings, which are detailed below.

White-box attack. Since the adversaries can fully access the data and labels under the white-box setting, we directly use the real ground truth traffic states to guide the generation of adversarial traffic states. The detailed algorithm is introduced in Appendix A.1.

Black-box attack. The most restrictive black-box setting assumes limited accessibility to the target model and labels. Therefore, we first employ a surrogate model, which can be learned from the training data or by querying the traffic forecasting service [16, 17]. Then we generate adversarial traffic states based on the surrogate model to attack the targeted traffic forecasting model. Please refer to Appendix A.2 for more details.

We conclude this section with the theoretical upper bound analysis of the proposed adversarial attack strategy. In particular, we demonstrate the attack performance against the spatiotemporal traffic forecasting model is related to the number of chosen victim nodes, the budget of adversarial perturbations, as well as the traffic network topology.

Theorem 1

Let 𝐙(L)=fθ(𝒯+:)\mathbf{Z}^{(L)}=f_{\theta}(\mathbfcal{H}_{t-T+1:t}) and 𝐙(L)=fθ(𝒯+:)\mathbf{Z}^{\prime(L)}=f_{\theta}(\mathbfcal{H^{\prime}}_{t-T+1:t}) be the LL-th layer embeddings of the forecasting model, the upper bound of the adversarial loss satisfies

𝐙(L)𝐙(L)22(λβC)2Lε2η,\left\|\mathbf{Z}^{(L)}-\mathbf{Z^{\prime}}^{(L)}\right\|^{2}_{2}\leq(\lambda\beta C)^{2L}\varepsilon^{2}\eta,

where λ\lambda denotes maximum weight bound in all layers of the forecasting model, β\beta denotes parameter of the activation function in fθ()f_{\theta}(\cdot), CC denotes the maximum degree of 𝒢\mathcal{G}. η\eta and ε\varepsilon are the budget of number of victim nodes and perturbations, respectively.

Proof. Please refer to Appendix B.

Algorithm 1 Adversarial spatiotemporal attack under the grey-box setting
Input: Previous traffic data, pre-trained spatiotemporal model fθ()f_{\theta^{\ast}}(\cdot), pre-trained traffic state prediction model gφ()g_{\varphi}(\cdot), maximum perturbation budget ε\varepsilon, victim node budget η\eta, and iterations KK.
Result: Perturbed Adversarial traffic states 𝒯+:\mathbfcal{H^{\prime}}_{t-T+1:t}.
/* Step 1: Identify time-dependent victim nodes */
1 Estimate current traffic state ~𝒩+:\mathbfcal{\tilde{H}}_{t-N+1:t} by function gφ()g_{\varphi}(\cdot);
2 Construct future traffic state’s surrogate labels 𝐘~t+1:t+τ\mathbf{\tilde{Y}}_{t+1:t+\tau} by Equation 5 ;
3 Compute the time-dependent node saliency t\mathcal{M}_{t} with ~𝒯+:\mathbfcal{\tilde{H}}_{t-T+1:t} and 𝐘~t+1:t+τ\mathbf{\tilde{Y}}_{t+1:t+\tau} by Equation 6-9;
4 Obtain the victim node set StS_{t} by Equations 10 ;
/* Step 2: Attack with adversarial traffic state */
5 Initialize adversarial traffic state 𝒯+:()=~𝒯+:\mathbfcal{H^{\prime}}_{t-T+1:t}^{(0)}=\mathbfcal{\tilde{H}}_{t-T+1:t};
6 for i=1i=1 to KK do
 7 Generate perturbed adversarial features 𝐗(i)tT+1:t\mathbf{{X}^{\prime}}^{(i)}_{t-T+1:t} by Equation 11;
 8 𝒯+:()=((𝒳𝒯+:()𝒳~𝒯+:)𝒮,)\bigtriangleup\mathbfcal{H}^{\prime(i)}_{t-T+1:t}=((\mathbf{X}^{\prime(i)}_{t-T+1:t}-\mathbf{\tilde{X}}_{t-T+1:t})\cdot S_{t},0);
9 end for
10 Return 𝒯+:=𝒯+:+𝒯+:\mathbfcal{H^{\prime}}_{t-T+1:t}=\mathbfcal{H}_{t-T+1:t}+\bigtriangleup\mathbfcal{H^{\prime}}_{t-T+1:t}.

4 Experiments

4.1 Experimental setup

Datasets. We use two popular real-world datasets to demonstrate the effectiveness of the proposed adversarial attack framework. (1) PEMS-BAY [18] traffic dataset is derived from the California Transportation Agencies (CalTrans) Performance Measurement System (PeMS) ranging from January 1, 2017 to May 31, 2017. 325 traffic sensors in the Bay Area collect traffic data every 5 minutes. (2) METR-LA [19] is a traffic speed dataset collected from 207 Los Angeles County roadway sensors. The traffic speed is recorded every 5 minutes and ranges from March 1, 2012 to June 30, 2012. For evaluation, all datasets are chronologically ordered, we take the first 70% for training, the following 10% for validation, and the rest 20% for testing. The statistics of the two datasets are reported in Appendix C.

Baselines. In the current literature, few studies can be directly applied to the real-valued traffic forecasting attack setting. To guarantee the fairness of comparison, we construct two-step baselines as below. For victim node identification, we adopt random selection and use the topology-based methods (i.e., node degree and betweenness centrality [20]) to select victim nodes. We also employ PageRank (PR) [21] as the baseline to decide the set of victim nodes. For adversarial traffic state generation, we adopt two widely used iterative gradient-based methods, PGD [8] and MIM [9], to generate adversarial perturbations. In summary, we construct eight two-step baselines, PGD-Random, PGD-PR, PGD-Centrality, PGD-Degree, MIM-Random, MIM-PR, MIM-Centrality, and MIM-Degree. For instance, PGD-PR indicates first identifying victim nodes with PageRank and then applying adversarial noises with PGD. Depending on the adversarial perturbation method, we compare two variants of our proposed framework, namely STPGD-TDNS and STMIM-TDNS.

Target model. To evaluate the generalization ability of the proposed adversarial attack framework, we adopt the state-of-the-art spatiotemporal traffic forecasting model, GraphWaveNet (Gwnet) [2], as the target model. Evaluation results on more target models are reported in Appendix F.

Evaluation metrics. Our evaluation focus on both the global and local effect of adversarial attacks on spatiotemporal models,

𝔼t𝒯test(fθ(𝒯+:),𝒴+:+τ),\displaystyle\mathbb{E}_{t\in\mathcal{T}_{test}}\mathcal{L}(f_{\theta}(\mathbfcal{H^{\prime}}_{t-T+1:t}),\mathbf{Y}_{t+1:t+\tau}), (12a)
𝔼t𝒯test(fθ(𝒯+:),{θ(𝒯+:)),\displaystyle\mathbb{E}_{t\in\mathcal{T}_{test}}\mathcal{L}(f_{\theta}(\mathbfcal{H^{\prime}}_{t-T+1:t}),f_{\theta}(\mathbfcal{H}_{t-T+1:t})), (12b)

where ()\mathcal{L}(\cdot) is a user-defined loss function. Different from the majority target of adversarial attacks that are classification models (e.g., adversarial accuracy), traffic forecasting is defined as a regression task. Therefore, we adopt Mean Average Error (MAE) [22] and Root Mean Square Error (RMSE) [23] for evaluation. More specifically, we define Global MAE (G-MAE), Local MAE (L-MAE), Global RMSE (G-RMSE), Local RMSE (L-RMSE) to evaluate the effect of adversarial attacks on traffic forecasting. Please refer to Appendix D for detailed definitions of four metrics.

Implementation details. All experiments are implemented with PyTorch and performed on a Linux server with 4 RTX 3090 GPUs.The traffic speed is normalized to [0,1][0,1]. The input length TT and output length τ\tau are set to 1212. We select 10% nodes from the whole nodes as the victim nodes, and ε\varepsilon is set to 0.50.5. The batch size γ\gamma is set to 6464. The iteration KK is set to 55, and the step size α\alpha is set to 0.10.1.

4.2 Overall attack performance

Table 1 reports the overall attack performance of our proposed approach against the original forecasting model and eight baselines with respect to four metrics. Note larger value indicates better attack performance and worse forecasting accuracy. Specifically, we can make the following observations. First, the adversarial attack can significantly degrade the traffic forecasting performance. For example, our approach achieves (67.79%,62.31%)(67.79\%,62.31\%) and (19.88%,14.55%)(19.88\%,14.55\%) global performance degradation compared with the original forecasting results on PeMS-BAY and METR-LA dataset, respectively. Second, our approach achieves the best attack performance against all baselines. In particular, STPGD-TDNS achieves (15.80%,15.39%)(15.80\%,15.39\%) global performance improvement and (23.35%,17.19%)(23.35\%,17.19\%) local performance improvement on the PeMS-BAY dataset. Similarly, STMIM-TDNS achieves (2.44%,2.00%)(2.44\%,2.00\%) global performance improvement and (11.20%,2.70%)(11.20\%,2.70\%) local performance improvement on the METR-LA dataset. Moreover, we observe STPGD-TDNS and STMIM-TDNS, two variants of our framework, respectively achieve the best attack performance on PeMS-BAY and METR-LA datasets, which further validate the superiority of our framework for flexibly integrate different adversarial perturbation methods. Overall, our adversarial attack framework successfully disrupts the traffic forecasting model to make biased predictions.

Table 1: Adversarial attack performance under the grey-box setting.

PeMS-BAY METR-LA G-MAE L-MAE G-RMSE L-RMSE G-MAE L-MAE G-RMSE L-RMSE non-attack 1.975 - 4.0220 - 6.3504 - 11.8424 - PGD-Random 4.9876 3.7431 8.9343 7.8006 7.8947 2.7030 13.2749 5.9501 PGD-PR 4.8599 3.5819 8.8215 7.6727 7.9003 2.7070 13.2669 5.9132 PGD-Centrality 5.1640 3.9585 9.1369 8.0333 7.8554 2.7107 13.3100 5.9422 PGD-Degree 4.9121 3.6675 8.8486 7.7263 7.9011 2.7316 13.3738 6.0661 MIM-Random 5.3645 4.1739 9.7082 8.6825 7.7115 2.3793 13.1724 5.6882 MIM-PR 5.2405 4.0286 9.5902 8.5600 7.7206 2.3774 13.1294 5.6548 MIM-Centrality 5.5321 4.3820 9.9312 8.9331 7.7074 2.4255 13.2233 5.7498 MIM-Degree 5.3500 4.1745 9.5808 8.5573 7.7026 2.3877 13.2570 5.8229 STPGD-TDNS 6.1329 5.1647 10.6723 9.7003 7.7191 2.6534 13.6693 6.6794 STMIM-TDNS 5.6706 4.7010 10.1336 9.1813 7.9381 2.8848 13.8592 6.9885

4.3 Ablation study

Then we conduct ablation study on our adversarial attack framework. Due to page limit, we report the result of STPGD-TDNS on the PeMS-BAY dataset. We consider two variants of our approach: (1) w/o TDNS that randomly choose victim nodes to attack, and (2) w/o STPGD that apply vanilla PGD noise to selected victim nodes. As reported in Table 2, we observe (3.91%,6.28%,2.97%,3.60%)(3.91\%,6.28\%,2.97\%,3.60\%) and (33.41%,52.45%,26.19%,32.97%)(33.41\%,52.45\%,26.19\%,32.97\%) attack performance degradation on four metrics by removing our proposed TDNS and STPGD module, respectively. The above results demonstrate the effectiveness of the two-step framework. Moreover, we observe that the STPGD module plays a more important role in the adversarial spatiotemporal attack.

Table 2: Ablation study on PeMS-BAY.

G-MAE L-MAE G-RMSE L-RMSE non-attack 1.975 - 4.0220 - w/o TDNS 5.9024 4.8595 10.364 9.3635 w/o STPGD 4.5969 3.3876 8.4572 7.2949 STPGD-TDNS 6.1329 5.1647 10.6723 9.7003

4.4 Parameter sensitivity

Refer to caption
Figure 2: Parameter sensitivity on PeMS-BAY.

We further study the parameter sensitivity of the proposed framework, including the number of victim nodes η\eta, the perturbation budget ε\varepsilon, and the batch size γ\gamma. Due to page limit, we report the result of G-RMSE on the PeMS-BAY dataset. We observe similar results by using other metrics and on the METR-LA dataset. Each time we vary a parameter, we set other parameters to their default values.

Effect of η\eta. First, we vary the number of victim nodes from 0%0\% to 40%40\%. As reported in Figure 2 (a), Our approach achieves the best attack performance with a limited victim node budget, and the advantage decrease when the attack can be applied to more nodes.

Effect of ε\varepsilon. Second, we vary the perturbation budget from 0%0\% to 90%90\%. As shown in Figure 2 (b), the G-RMSE first increase and then slightly decrease. This is perhaps because the clip function in Equation 11 weakens the diversity of attack noises.

Effect of γ\gamma. Finally, we vary the batch size from 88 to 128128, as illustrated in Figure 2 (c). We observe the adversarial attack is relatively stable to the batch size. However, too large batch size reduces the attack performance, which may induce over smooth of Equation 8.

4.5 Extended analysis under different attack settings

Table 3 reports the overall attack performance of our proposed approach against the original forecasting model and four PGD-based baselines under the white-box and black-box attack settings. For the white-box attack, since the attacker can fully access the data and model, we re-train the forecasting model without requiring estimating the latest traffic states. For the black-box attack, we adopt STAWNET [12] as the surrogate model. The experimental results are summarized in Table 3. First, we observe adversarial attacks significantly degrade the performance of the traffic forecasting model under both white-box and black-box settings. For examples, our approach achieves ((68.65%,66.12%)CLOSE((68.65\%,66.12\%) and (56.67%,50.78%)(56.67\%,50.78\%) global performance degradation compared with the vanilla forecasting model under white-box and black-box attack. Moreover, our approach consistently achieves the best attack performance against baselines. To be more specific, our approach yield (4.61%,9.13%)(4.61\%,9.13\%) and (1.70%,3.28%)(1.70\%,3.28\%) global performance improvement under the white-box setting and black-box setting, respectively. In addition, we observe higher attack effectiveness under the white-box setting and lower attack effectiveness under the black-box setting compared to the grey-box setting. This makes sense as the white-box setting can fully access the data and label, while the black-box has more restrictive data accessibility and relies on the surrogate model to apply adversarial spatiotemporal attack.

Table 3: Adversarial attack performance on PeMS-BAY under white-box and black-box settings.

White-box Black-box G-MAE L-MAE G-RMSE L-RMSE G-MAE L-MAE G-RMSE L-RMSE non-attack 2.0288 - 4.2476 - 1.9774 - 4.0219 - PGD-Random 6.1477 5.0463 10.9217 9.5163 4.241 2.9738 7.3804 5.99 PGD-PR 6.1586 5.0713 10.7584 9.3405 4.4748 3.2605 7.9037 6.6306 PGD-Centrality 6.1723 5.0823 10.9468 9.5272 4.4859 3.3002 7.8795 6.6045 PGD-Degree 6.1507 5.0495 10.9375 9.5282 4.3577 3.1572 7.6159 6.2971 PGD-TDNS 6.4709 5.4953 12.1764 10.7262 4.5636 3.3543 8.1716 6.9388

4.6 Defense adversarial spatiotemporal attacks

Finally, we study the defense of adversarial spatiotemporal attacks. One primary goal of our study is to help improve the robustness of spatiotemporal forecasting models. Therefore, we propose to incorporate the adversarial training scheme for traffic forecasting models with our adversarial traffic states, denoted by AT-TNDS. We compare it with (1) conventional adversarial training (AT[8] and (2) Mixup [24] with our adversarial traffic states. Note that we also tried other strategies, such as adding L2L_{2} regularization, etc., which fail to defend the adversarial spatiotemporal attack. The other state-of-the-art adversarial training methods, such as TRADE [25], cannot be directly applied in regression tasks. Please refer to Appendix E for more training details.

The results in G-MAE on the PeMS-BAY are reported in Table 4. Overall, we observe AT or Mixup can successfully resist the adversarial spatiotemporal attack, and AT-TDNS that combines the adversarial training scheme with our adversarial traffic states achieves the best defensive performance. The above results indicate the defensibility of adversarial spatiotemporal attacks, which should be further investigated to deliver a more reliable spatiotemporal forecasting service in the future.

Table 4: Performance of defense adversarial spatiotemporal attack on PeMS-BAY. ( Values in parentheses indicate std)

Non-attack PGD-Random PGD-PR PGD-Centrality PGD-Degree Non-defense 2.0288 6.1477 6.1586 6.1723 6.1507 AT 2.1156 2.5436 (0.0249) 2.5539 (0.0375) 2.5660 (0.0281) 2.5394 (0.0279) Mixup 2.3090 2.7482 (0.0126) 2.7573 (0.0241) 2.7501 (0.0088) 2.7788 (0.0234) AT-TDNS 2.0935 2.4695 (0.0036) 2.4463 (0.0075) 2.4549 (0.0023) 2.4474 (0.0069)

5 Related work

Spatiotemporal traffic forecasting. In recent years, the deep learning based traffic forecasting model has been extensively studied due to its superiority in jointly modeling temporal and spatial dependencies [10, 11, 6, 26, 2, 12, 27, 28]. To name a few, STGCN [10] applied graph convolution and gated causal convolution to capture the spatiotemporal information in the traffic domain, ASTGCN [11] proposed a spatial-temporal attention network for capturing dynamic spatiotemporal correlations. As another example, GraphWaveNet [2] adaptively captures latent spatial dependency without requiring prior knowledge of the graph structure. The key objective of the above mentioned models is more accurate traffic forecasting. The vulnerability of spatiotemporal traffic forecasting models remains an under explored problem.

Adversarial attack. Deep neural networks have been proven vulnerable to adversarial examples [8, 14]. As an emerging direction, various adversarial attack strategies on graph-structured data have been proposed, including both target-attack and non-target attack [29, 30]. However, existing efforts on adversarial attacks mainly focus on classification tasks with static label [9, 24]. Only a few works study the vulnerability of GCN based spatiotemporal forecasting models under query-based attack [31] and generate adversarial examples based on evolutionary algorithms [32]. In this paper, we study the gradient based adversarial attack method against spatiotemporal traffic forecasting models, which is model-agnostic and generalizable to various attack settings, i.e., white-box attack, grey-box attack, and black-box attack.

6 Conclusion

This paper showed the vulnerability of spatiotemporal traffic forecasting models under adversarial attacks. We proposed a practical adversarial spatiotemporal attack framework, which is agnostic to forecasting model architectures and is generalizable to various attack settings. To be specific, we first constructed an iterative gradient guided node saliency method to identify a small time-dependent set of victim nodes. Then, we proposed a spatiotemporal gradient descent based scheme to generate real-valued adversarial traffic states by flexibly leveraging various adversarial perturbation methods. The theoretical analysis demonstrated the upper bound of the proposed two-step framework under human imperceptible victim node selection budget and perturbation budget constraints. Finally, extensive experimental results on real-world datasets verify the effectiveness of the proposed framework. The reported results will inspire further studies on the vulnerability of spatiotemporal forecasting models, as well as practical defending strategies for resisting adversarial attacks that can be deployed in real-world ITS systems.

Acknowledgments and Disclosure of Funding

This work is supported by the National Natural Science Foundation of China under Grant No.62102110, and Foshan HKUST Projects (FSUST21-FYTRI01A, FSUST21-FYTRI02A).

References

  • [1] Xu Chen, Junshan Wang, and Kunqing Xie. Trafficstream: A streaming traffic flow forecasting framework based on graph neural networks and continual learning. In Zhi-Hua Zhou, editor, Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, IJCAI 2021, Virtual Event / Montreal, Canada, 19-27 August 2021, pages 3620–3626. ijcai.org, 2021.
  • [2] Zonghan Wu, Shirui Pan, Guodong Long, Jing Jiang, and Chengqi Zhang. Graph wavenet for deep spatial-temporal graph modeling. In Sarit Kraus, editor, Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence, IJCAI 2019, Macao, China, August 10-16, 2019, pages 1907–1913. ijcai.org, 2019.
  • [3] Binbing Liao, Jingqing Zhang, Chao Wu, Douglas McIlwraith, Tong Chen, Shengwen Yang, Yike Guo, and Fei Wu. Deep sequence learning with auxiliary information for traffic prediction. In Yike Guo and Faisal Farooq, editors, Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, KDD 2018, London, UK, August 19-23, 2018, pages 537–546. ACM, 2018.
  • [4] Jing Qiu, Lei Du, Dongwen Zhang, Shen Su, and Zhihong Tian. Nei-tte: Intelligent traffic time estimation based on fine-grained time derivation of road segments for smart city. IEEE Trans. Ind. Informatics, 16(4):2659–2666, 2020.
  • [5] Austin Derrow-Pinion, Jennifer She, David Wong, Oliver Lange, Todd Hester, Luis Perez, Marc Nunkesser, Seongjae Lee, Xueying Guo, Brett Wiltshire, Peter W. Battaglia, Vishal Gupta, Ang Li, Zhongwen Xu, Alvaro Sanchez-Gonzalez, Yujia Li, and Petar Velickovic. ETA prediction with graph neural networks in google maps. In Gianluca Demartini, Guido Zuccon, J. Shane Culpepper, Zi Huang, and Hanghang Tong, editors, CIKM ’21: The 30th ACM International Conference on Information and Knowledge Management, Virtual Event, Queensland, Australia, November 1 - 5, 2021, pages 3767–3776. ACM, 2021.
  • [6] Lei Bai, Lina Yao, Can Li, Xianzhi Wang, and Can Wang. Adaptive graph convolutional recurrent network for traffic forecasting. In Hugo Larochelle, Marc’Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin, editors, Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020.
  • [7] Han Xu, Yao Ma, Haochen Liu, Debayan Deb, Hui Liu, Jiliang Tang, and Anil K. Jain. Adversarial attacks and defenses in images, graphs and text: A review. Int. J. Autom. Comput., 17(2):151–178, 2020.
  • [8] Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net, 2018.
  • [9] Yinpeng Dong, Fangzhou Liao, Tianyu Pang, Hang Su, Jun Zhu, Xiaolin Hu, and Jianguo Li. Boosting adversarial attacks with momentum. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 9185–9193. Computer Vision Foundation / IEEE Computer Society, 2018.
  • [10] Bing Yu, Haoteng Yin, and Zhanxing Zhu. Spatio-temporal graph convolutional networks: A deep learning framework for traffic forecasting. In Jérôme Lang, editor, Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence, IJCAI 2018, July 13-19, 2018, Stockholm, Sweden, pages 3634–3640. ijcai.org, 2018.
  • [11] Shengnan Guo, Youfang Lin, Ning Feng, Chao Song, and Huaiyu Wan. Attention based spatial-temporal graph convolutional networks for traffic flow forecasting. In The Thirty-Third AAAI Conference on Artificial Intelligence, AAAI 2019, The Thirty-First Innovative Applications of Artificial Intelligence Conference, IAAI 2019, The Ninth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2019, Honolulu, Hawaii, USA, January 27 - February 1, 2019, pages 922–929. AAAI Press, 2019.
  • [12] Chenyu Tian and Wai Kin (Victor) Chan. Spatial-temporal attention wavenet: A deep learning framework for traffic prediction considering spatial-temporal dependencies. IET Intelligent Transport Systems, 15(4):549–561, 2021.
  • [13] Junbo Zhang, Yu Zheng, and Dekang Qi. Deep spatio-temporal residual networks for citywide crowd flows prediction. In Satinder Singh and Shaul Markovitch, editors, Proceedings of the Thirty-First AAAI Conference on Artificial Intelligence, February 4-9, 2017, San Francisco, California, USA, pages 1655–1661. AAAI Press, 2017.
  • [14] Ian J. Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In Yoshua Bengio and Yann LeCun, editors, 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015.
  • [15] Karen Simonyan, Andrea Vedaldi, and Andrew Zisserman. Deep inside convolutional networks: Visualising image classification models and saliency maps. In Yoshua Bengio and Yann LeCun, editors, 2nd International Conference on Learning Representations, ICLR 2014, Banff, AB, Canada, April 14-16, 2014, Workshop Track Proceedings, 2014.
  • [16] Haitao Yuan and Guoliang Li. A survey of traffic prediction: from spatio-temporal data to intelligent transportation. Data Science and Engineering, 6(1):63–85, 2021.
  • [17] Yinpeng Dong, Shuyu Cheng, Tianyu Pang, Hang Su, and Jun Zhu. Query-efficient black-box adversarial attacks guided by a transfer-based prior. IEEE Transactions on Pattern Analysis and Machine Intelligence, pages 1–1, 2021.
  • [18] Chao Chen, Karl Petty, Alexander Skabardonis, Pravin Varaiya, and Zhanfeng Jia. Freeway performance measurement system: mining loop detector data. Transportation Research Record, 1748(1):96–102, 2001.
  • [19] Yaguang Li, Rose Yu, Cyrus Shahabi, and Yan Liu. Diffusion convolutional recurrent neural network: Data-driven traffic forecasting. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net, 2018.
  • [20] Ulrik Brandes. A faster algorithm for betweenness centrality. Journal of mathematical sociology, 25(2):163–177, 2001.
  • [21] Lawrence Page, Sergey Brin, Rajeev Motwani, and Terry Winograd. The pagerank citation ranking: Bringing order to the web. Technical report, Stanford InfoLab, 1999.
  • [22] Cort J Willmott and Kenji Matsuura. Advantages of the mean absolute error (MAE) over the root mean square error (RMSE) in assessing average model performance. Climate research, 30(1):79–82, 2005.
  • [23] Tianfeng Chai and Roland R Draxler. Root mean square error (RMSE) or mean absolute error (MAE)?–arguments against avoiding rmse in the literature. Geoscientific model development, 7(3):1247–1250, 2014.
  • [24] Hongyi Zhang, Moustapha Cissé, Yann N. Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net, 2018.
  • [25] Florian Tramer and Dan Boneh. Adversarial training and robustness for multiple perturbations. Advances in Neural Information Processing Systems, 32, 2019.
  • [26] Ling Zhao, Yujiao Song, Chao Zhang, Yu Liu, Pu Wang, Tao Lin, Min Deng, and Haifeng Li. T-gcn: A temporal graph convolutional network for traffic prediction. IEEE Transactions on Intelligent Transportation Systems, 21(9):3848–3858, 2020.
  • [27] Hao Liu, Qiyu Wu, Fuzhen Zhuang, Xinjiang Lu, Dejing Dou, and Hui Xiong. Community-aware multi-task transportation demand prediction. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pages 320–327, 2021.
  • [28] Jindong Han, Hao Liu, Hengshu Zhu, Hui Xiong, and Dejing Dou. Joint air quality and weather prediction based on multi-adversarial spatiotemporal networks. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pages 4081–4089, 2021.
  • [29] Wei Jin, Yaxin Li, Han Xu, Yiqi Wang, Shuiwang Ji, Charu Aggarwal, and Jiliang Tang. Adversarial attacks and defenses on graphs: A review, a tool and empirical studies. arXiv preprint arXiv:2003.00653, 2020.
  • [30] Zijie Zhang, Zeru Zhang, Yang Zhou, Yelong Shen, Ruoming Jin, and Dejing Dou. Adversarial attacks on deep graph matching. Advances in Neural Information Processing Systems, 33:20834–20851, 2020.
  • [31] Lyuyi Zhu, Kairui Feng, Ziyuan Pu, and Wei Ma. Adversarial diffusion attacks on graph-based traffic prediction models. arXiv preprint arXiv:2104.09369, 2021.
  • [32] Fuqiang Liu, Luis Miranda-Moreno, and Lijun Sun. Spatially focused attack against spatiotemporal graph neural networks. arXiv preprint arXiv:2109.04608, 2021.
  • [33] Zonghan Wu, Shirui Pan, Guodong Long, Jing Jiang, Xiaojun Chang, and Chengqi Zhang. Connecting the dots: Multivariate time series forecasting with graph neural networks. In Rajesh Gupta, Yan Liu, Jiliang Tang, and B. Aditya Prakash, editors, KDD ’20: The 26th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, Virtual Event, CA, USA, August 23-27, 2020, pages 753–763. ACM, 2020.

Checklist

  1. 1.

    For all authors…

    1. (a)

      Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]

    2. (b)

      Did you describe the limitations of your work? [Yes]

    3. (c)

      Did you discuss any potential negative societal impacts of your work? [N/A]

    4. (d)

      Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]

  2. 2.

    If you are including theoretical results…

    1. (a)

      Did you state the full set of assumptions of all theoretical results? [Yes]

    2. (b)

      Did you include complete proofs of all theoretical results? [Yes]

  3. 3.

    If you ran experiments…

    1. (a)

      Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes]

    2. (b)

      Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes]

    3. (c)

      Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes]

    4. (d)

      Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes]

  4. 4.

    If you are using existing assets (e.g., code, data, models) or curating/releasing new assets…

    1. (a)

      If your work uses existing assets, did you cite the creators? [Yes]

    2. (b)

      Did you mention the license of the assets? [Yes]

    3. (c)

      Did you include any new assets either in the supplemental material or as a URL? [Yes]

    4. (d)

      Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [Yes]

    5. (e)

      Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [Yes]

  5. 5.

    If you used crowdsourcing or conducted research with human subjects…

    1. (a)

      Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]

    2. (b)

      Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]

    3. (c)

      Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]

Appendix A Adversarial spatiotemporal attack under different settings

A.1 Adversarial spatiotemporal attack under the white-box setting

Since the adversaries can fully access the data and label under the white-box setting, we directly use the real ground truth traffic states to generate the adversarial traffic states, as detailed in algorithm 2.

Algorithm 2 Adversarial spatiotemporal attack under the white-box setting
Input: Previous traffic data, pre-trained spatiotemporal model fθ()f_{\theta^{\ast}}(\cdot), pre-trained traffic state prediction model gφ()g_{\varphi}(\cdot), maximum perturbation budget ε\varepsilon, victim node budget η\eta, and iterations KK.
Result: Perturbed adversarial traffic states 𝒯+:\mathbfcal{H^{\prime}}_{t-T+1:t}.
/* Step 1: Identify time-dependent victim nodes */
1 Compute the time-dependent node saliency t\mathcal{M}_{t} with 𝒯+:\mathbfcal{H}_{t-T+1:t} and 𝐘t+1:t+τ\mathbf{Y}_{t+1:t+\tau} by Equations 6-9;
2 Obtain the victim node set StS_{t} by Equation 10 ;
/* Step 2: Attack with adversarial traffic state */
3 Initialize adversarial traffic state 𝒯+:()=𝒯+:\mathbfcal{H^{\prime}}_{t-T+1:t}^{(0)}=\mathbfcal{H}_{t-T+1:t};
4 for i=1i=1 to KK do
 5 Generate perturbed adversarial features 𝐗(i)tT+1:t\mathbf{{X}^{\prime}}^{(i)}_{t-T+1:t} by Equation 11;
 6 𝒯+:()=((𝒳𝒯+:()𝒳𝒯+:())𝒮,)\bigtriangleup\mathbfcal{H}^{\prime(i)}_{t-T+1:t}=((\mathbf{X}^{\prime(i)}_{t-T+1:t}-\mathbf{X}^{(i)}_{t-T+1:t})\cdot S_{t},0);
7 end for
8 Return 𝒯+:=𝒯+:+𝒯+:\mathbfcal{H^{\prime}}_{t-T+1:t}=\mathbfcal{H}_{t-T+1:t}+\bigtriangleup\mathbfcal{H^{\prime}}_{t-T+1:t}.

A.2 Adversarial spatiotemporal attack under the black-box setting

The most restrictive black-box setting assumes limited accessibility to the target model and labels. Therefore, we first employ a surrogate model, which can be learned on the training data or query the traffic forecasting service [16, 17]. Then we generate adversarial traffic states based on the surrogate model to attack the target model. In details, we use a surrogate model to generate the adversarial traffic states based on algorithm 1, the generated adversarial traffic states can be used to attack the target model.

Appendix B Proof

In this section, we show the details of the proof. First, we recall the assumptions as follows: let the kk-th layer embedding of spatiotemporal traffic models is

𝐙i(k+1)=σ(j𝒩ieij𝐌j(k)),\displaystyle\mathbf{Z}_{i}^{(k+1)}=\sigma(\sum_{j\in\mathcal{N}_{i}}e_{ij}\mathbf{M}_{j}^{(k)}), (13a)

where 𝐙i(k+1)\mathbf{Z}_{i}^{(k+1)} (𝐙(𝟎)=tT+1:t\mathbf{Z^{(0)}}=\mathcal{H}_{t-T+1:t}) represents the embedding of node viv_{i} in k+1k+1-th layer of the spatiotemporal forecasting model. 𝐌i(k)=𝐙i(k)𝐖(k)\mathbf{M}_{i}^{(k)}=\mathbf{Z}_{i}^{(k)}\mathbf{W}^{(k)}, where 𝐖(k)\mathbf{W}^{(k)} denotes the weight matrix for kk-th layer of the forecasting model. σ\sigma is an activation function, such as the sigmoid function, relu function, etc. eije_{ij} is the weight value used to aggregate node jj’s neighbors. 𝒩i\mathcal{N}_{i} represents the index used to keep track of node jj’s neighbors. Let λ\lambda denotes maximum weight bound in all layers of the forecasting model, where maxk𝐖(k)2λ,k{1,,L}\max_{k}\left\|\mathbf{W}^{(k)}\right\|_{2}\leq\lambda,\forall k\in\left\{1,\cdots,L\right\}. We denote that the maximum degree in graph 𝒢\mathcal{G} is CC.

Assumption 1

The activation function σ\sigma used in spatiotemporal traffic forecasting model is locally Lipschitz continuous as,

σ(j𝒩ieij𝐌j(k))σ(j𝒩ieij𝐌j(k))2βj𝒩ieij𝐌j(k)j𝒩ieij𝐌j(k)p,\left\|\sigma(\sum_{j\in\mathcal{N}_{i}}e_{ij}\mathbf{M}_{j}^{(k)})-\sigma(\sum_{j\in\mathcal{N}_{i}}e_{ij}\mathbf{M^{\prime}}_{j}^{(k)})\right\|_{2}\leq\beta\left\|\sum_{j\in\mathcal{N}_{i}}e_{ij}\mathbf{M}_{j}^{(k)}-\sum_{j\in\mathcal{N}_{i}}e_{ij}\mathbf{M^{\prime}}_{j}^{(k)}\right\|_{p}, (14)

where β\beta denotes parameter of the activation function in fθ()f_{\theta}(\cdot).

Proof 1
𝐙(L)𝐙(L)22=i𝐙i(L)𝐙i(L)22\displaystyle\left\|\mathbf{Z}^{(L)}-\mathbf{Z^{\prime}}^{(L)}\right\|^{2}_{2}=\sum_{i}\left\|\mathbf{Z}^{(L)}_{i}-\mathbf{Z^{\prime}}^{(L)}_{i}\right\|^{2}_{2}
β2ij𝒩ieij𝐌j(L1)j𝒩ieij𝐌j(L1)22\displaystyle\leq\beta^{2}\sum_{i}\left\|\sum_{j\in\mathcal{N}_{i}}e_{ij}\mathbf{M}_{j}^{(L-1)}-\sum_{j\in\mathcal{N}_{i}}e_{ij}\mathbf{M^{\prime}}_{j}^{(L-1)}\right\|^{2}_{2}
β2i|𝒩i|j𝒩ieij(𝐌j(L1)𝐌j(L1))22\displaystyle\leq\beta^{2}\sum_{i}|\mathcal{N}_{i}|\sum_{j\in\mathcal{N}_{i}}\left\|e_{ij}(\mathbf{M}_{j}^{(L-1)}-\mathbf{M^{\prime}}_{j}^{(L-1)})\right\|^{2}_{2}
β2Cij𝒩i𝐌j(L1)𝐌j(L1)22\displaystyle\leq\beta^{2}C\sum_{i}\sum_{j\in\mathcal{N}_{i}}\left\|\mathbf{M}_{j}^{(L-1)}-\mathbf{M^{\prime}}_{j}^{(L-1)}\right\|^{2}_{2}
=β2Cj|𝒩j|𝐌j(L1)𝐌j(L1)22\displaystyle=\beta^{2}C\sum_{j}\left|\mathcal{N}_{j}\right|\left\|\mathbf{M}_{j}^{(L-1)}-\mathbf{M^{\prime}}_{j}^{(L-1)}\right\|^{2}_{2}
β2C2j𝐌j(L1)𝐌j(L1)22\displaystyle\leq\beta^{2}C^{2}\sum_{j}\left\|\mathbf{M}_{j}^{(L-1)}-\mathbf{M^{\prime}}_{j}^{(L-1)}\right\|^{2}_{2}
(βCλ)2j𝐙j(L1)𝐙j(L1)22\displaystyle\leq(\beta C\lambda)^{2}\sum_{j}\left\|\mathbf{Z}_{j}^{(L-1)}-\mathbf{Z^{\prime}}_{j}^{(L-1)}\right\|^{2}_{2}
(βCλ)2Li𝐙i(0)𝐙i(0)22\displaystyle\leq(\beta C\lambda)^{2L}\sum_{i}\left\|\mathbf{Z}_{i}^{(0)}-\mathbf{Z^{\prime}}_{i}^{(0)}\right\|^{2}_{2}
=(βCλ)2L(i is the victim node(),(𝒯+:)(),(𝒯+:)22\displaystyle=(\beta C\lambda)^{2L}(\sum_{\text{i is the victim node}}\left\|\mathbfcal{H}_{(i),(t-T+1:t)}-\mathbfcal{H}_{(i),(t-T+1:t)}^{\prime}\right\|_{2}^{2}
+i is not the victim node(),(𝒯+:)(),(𝒯+:)22)\displaystyle+\sum_{\text{i is not the victim node}}\left\|\mathbfcal{H}_{(i),(t-T+1:t)}-\mathbfcal{H}_{(i),(t-T+1:t)}^{\prime}\right\|_{2}^{2})
(βCλ)2Lε2η\displaystyle\leq(\beta C\lambda)^{2L}\varepsilon^{2}\eta

Remarks. Assumption 1 provides a more general activation function assumption. This assumption is met by the ReLU, sigmoid, tanh function [10, 11, 2] etc. We also noticed that [31] also analyzes traffic forecasting loss under query-based attack. Our theorem is different in that we first give the worst performance bound of an adversarial traffic forecasting attack, but [31] does not provide the worst performance bound. Second, our theorem is more general because we do not specify a specific activation function.

Appendix C Data statistics

We conclude the data statistics for two-real world datasets in Table 5.

Table 5: Data statistics
Data Sample Nodes Traffic events
PeMS-BAY 34,272 325 16,937,700
METR-LA 52,116 207 7,094,304

Appendix D Evaluation metric

The Global MAE (G-MAE), Local MAE (L-MAE), Global RMSE (G-RMSE), Local RMSE (L-RMSE) are defined in Equations 16a-17b.

G-MAE=1m×ntfθ(𝒯+:)𝒴+:+τ\displaystyle\text{G-MAE}=\frac{1}{m\times n}\sum_{t}\left\|f_{\theta}(\mathbfcal{H^{\prime}}_{t-T+1:t})-\mathbf{Y}_{t+1:t+\tau}\right\| (16a)
L-MAE=1m×ntfθ(𝒯+:){θ(𝒯+:),\displaystyle\text{L-MAE}=\frac{1}{m\times n}\sum_{t}\left\|f_{\theta}(\mathbfcal{H^{\prime}}_{t-T+1:t})-f_{\theta}(\mathbfcal{H}_{t-T+1:t})\right\|, (16b)
G-RMSE=1m×ntfθ(𝒯+:)𝒴+:+τ2\displaystyle\text{G-RMSE}=\sqrt{\frac{1}{m\times n}\sum_{t}\left\|f_{\theta}(\mathbfcal{H^{\prime}}_{t-T+1:t})-\mathbf{Y}_{t+1:t+\tau}\right\|^{2}} (17a)
L-RMSE=1m×ntfθ(𝒯+:){θ(𝒯+:)2,\displaystyle\text{L-RMSE}=\sqrt{\frac{1}{m\times n}\sum_{t}\left\|f_{\theta}(\mathbfcal{H^{\prime}}_{t-T+1:t})-f_{\theta}(\mathbfcal{H}_{t-T+1:t})\right\|^{2}}, (17b)

where mm represents the number of samples in test sets, and nn denotes the number of nodes.

Appendix E Defense adversarial traffic states

Given a spatiotemporal forecasting model fθ()f_{\theta}(\cdot), the adversarial training in spatiotemporal traffic forecasting is defined as

minθmax𝒯+:t𝒯traint𝒯train(fθ(𝒯+:),𝒴+:+τ),\min_{\theta}\max_{\begin{subarray}{c}\mathbfcal{H}^{\prime}_{t-T+1:t}\\ t\in\mathcal{T}_{train}\end{subarray}}\sum_{t\in\mathcal{T}_{train}}\mathcal{L}(f_{\theta}(\mathbfcal{H}^{\prime}_{t-T+1:t}),\mathbf{Y}_{t+1:t+\tau}), (18)

where ()\mathcal{L}(\cdot) is the loss function measuring the distance between the predicted traffic states and ground truth, and θ\theta is parameters learned during the training stage. 𝒯train\mathcal{T}_{train} denote the set of time steps of all training samples. We use strategies that include (1) adversarial training (AT) [8]. We use adversarial training with the PGD-Random adversarial attack method to generate the adversarial samples under white-box setting. (2) Mixup [24]. We randomly sample the clean and adversarial samples to train the forecasting model. The adversarial sample are also generated by PGD-Random method under white-box setting. (3). We use adversarial sampels generated by our method STPGD-TDNS under white-box setting to train the model.

Appendix F Further experiments

F.1 Experiments on other models

The other spatiotemporal traffic forecasting models are summarized as follows. (1) STGCN [10] applies graph convolution and gated causal convolution to capture the spatiotemporal information in the traffic domain. (2) To overcome the spatiotemporal forecasting problem, ASTGCN [11] presented a spatial-temporal attention method for capturing dynamic spatiotemporal correlations. (3) MTGNN [33] created a self-learned node embedding for forecasting traffic conditions that is also not dependent on a pre-defined graph.

We report the evaluation results on other target models in Tables 6-8. By carefully selecting victim nodes, the attacker can achieve more effective attack performance with less attack budget. In particular, STPGD-TDNS achieves (62.23.80%, 55.86%) global performance improvement and (66.95.35%, 59.25%) local performance improvement on the PeMS-BAY dataset for MTGNN.

Table 6: Grey-box attack on STGCN for PeMS-BAY

G-MAE L-MAE G-RMSE L-RMSE non-attack 2.8324 - 5.1708 - PGD-Random 5.7924 4.0880 9.5659 8.0560 PGD-PR 9.6118 8.1697 15.4945 14.6314 PGD-Centrality 6.9712 5.1407 11.9507 10.7645 PGD-Degree 6.3903 4.3974 11.8196 10.6630 MIM-Random 6.0461 4.4043 9.8926 8.4604 MIM-PR 9.5573 8.1512 15.2504 14.3865 MIM-Centrality 6.9748 5.1906 11.6700 10.4777 MIM-Degree 6.5071 4.5425 11.8073 10.6640 STPGD-TDNS 9.3440 7.8039 5.1708 14.8150 STMIM-TDNS 10.2563 8.7318 5.1708 15.0358

Table 7: Grey-box attack on ASTGCN for PeMS-BAY

G-MAE L-MAE G-RMSE L-RMSE non-attack 2.3581 - 4.9165 - PGD-Random 5.2302 3.1082 11.5757 10.4736 PGD-PR 5.2565 3.1282 11.6177 10.5154 PGD-Centrality 5.2260 3.1101 11.5842 10.4797 PGD-Degree 5.2504 3.1377 11.6332 10.5305 MIM-Random 5.1907 3.0609 11.4680 10.3509 MIM-PR 5.2080 3.0787 11.5024 10.3861 MIM-Centrality 5.1733 3.0569 11.4584 10.3409 MIM-Degree 5.2042 3.0900 11.5236 10.4065 STPGD-TDNS 5.2635 3.1476 11.6880 10.5896 STMIM-TDNS 5.2929 3.1799 11.7534 10.6579

Table 8: Grey-box attack on MTGNN for PeMS-BAY

G-MAE L-MAE G-RMSE L-RMSE non-attack 2.1501 - 4.2637 - PGD-Random 5.4748 4.6839 9.5824 8.7328 PGD-PR 4.7997 3.8990 8.7011 7.7349 PGD-Centrality 5.6504 4.8921 9.6820 8.8529 PGD-Degree 4.9282 4.0396 8.8791 7.9403 MIM-Random 5.7671 4.9483 9.9446 9.1007 MIM-PR 4.8927 3.9385 8.9900 8.0265 MIM-Centrality 5.6832 4.8927 9.8080 8.9533 MIM-Degree 4.9599 4.0260 9.0387 8.0839 STPGD-TDNS 14.9606 14.8017 21.9354 21.7272 STMIM-TDNS 16.0254 15.9020 23.3589 23.1604

F.2 Ablation study under white-box setting

Since selecting a few set as the victim nodes is important to attack traffic forecasting model, we conduct further ablation study to evaluate the method TDNS under the white-box setting. Table 9 reports the overall results on Gwnet under white-box attack.

Table 9: Ablation study under white-box attack on Gwnet for PeMS-BAY

G-MAE L-MAE G-RMSE L-RMSE non-attack 2.0288 - 4.2476 - STPGD-Random 6.1477 5.0463 10.9217 9.5163 STPGD-PR 6.1586 5.0713 10.7584 9.3405 STPGD-Centrality 6.1723 5.0823 10.9468 9.5272 STPGD-Degree 6.1507 5.0495 10.9375 9.5282 STMIM-Random 5.9524 4.8091 10.6488 9.1917 STMIM-PR 5.9311 4.7954 10.4354 8.9565 STMIM-Centrality 5.9159 4.7786 10.5948 9.1180 STMIM-Degree 5.9570 4.8085 10.6692 9.2136 STPGD-TDNS 6.4709 5.4953 12.1764 10.7262 STMIM-TDNS 6.3018 5.2733 11.8618 10.3729

F.3 Experiments at different time intervals

We conduct further experiments at different time intervals, including 5 minutes, 10 minutes, 15 minutes, 30 minutes, and 45 minutes. We report the results at different time intervals compared with other baselines in Tables 11-15. Overall, as the time interval increases, the forecasting and adversarial attack performances decrease, as reported in Table 10.

For example, the G-MAE increases from 3.9458 to 6.1329 from a time interval of 5 minutes to a time interval of 60 minutes, with the attack performance degradation from 75.93% to 67.80%. One possible reason is that as the time interval increases, the forecasting error of the spatiotemporal model will increase. It is more challenging for the adversarial attack methods to estimate the target label to generate effective adversarial examples.

Table 10: Grey-box attack on Gwnet for PeMS-BAY at different minutes interval

5 minutes 10 minutes 15 minutes 30 minutes 45 minutes 60 minutes non-attack 0.9496 1.1367 1.2747 1.6154 1.8872 1.9750 STPGD-TDNS (ours) 3.9458 4.2924 3.6028 4.6629 5.2931 6.1329 performance degradation 75.93 % 73.46 % 64.62 % 65.36 % 64.34 % 67.80 %

Table 11: Grey-box attack on Gwnet for PeMS-BAY on 5 minutes interval

G-MAE L-MAE G-RMSE L-RMSE non-attack 0.9496 1.7694 PGD-Random 3.7926 3.0507 10.1258 9.9924 PGD-PR 3.8226 3.0885 10.1880 10.0526 PGD-Centrality 3.7901 3.0586 10.1208 9.9950 PGD-Degree 3.8302 3.0839 10.1733 10.0395 STPGD-TDNS 3.9458 3.2351 10.7429 10.6116

Table 12: Grey-box attack on Gwnet for PeMS-BAY on 10 minutes interval

G-MAE L-MAE G-RMSE L-RMSE non-attack 1.1367 2.2430 PGD-Random 4.2301 3.3311 10.9604 10.7417 PGD-PR 4.2628 3.3769 11.0127 10.7993 PGD-Centrality 4.2234 3.3378 10.9677 10.7543 PGD-Degree 4.2779 3.3778 11.0364 10.8219 STPGD-TDNS 4.2924 3.4586 11.4178 11.2231

Table 13: Grey-box attack on Gwnet for PeMS-BAY on 15 minutes interval

G-MAE L-MAE G-RMSE L-RMSE non-attack 1.2747 2.5761 PGD-Random 3.6073 2.7355 9.0194 8.6871 PGD-PR 3.6011 2.7540 8.9609 8.6240 PGD-Centrality 3.6004 2.7314 9.0132 8.6853 PGD-Degree 3.6206 2.7510 8.9892 8.6531 STPGD-TDNS 3.6028 2.7798 9.1164 8.7607

Table 14: Grey-box attack on Gwnet for PeMS-BAY on 30 minutes interval

G-MAE L-MAE G-RMSE L-RMSE non-attack 1.6154 3.2933 PGD-Random 3.4294 2.3903 6.9265 6.0358 PGD-PR 3.4214 2.3999 6.8360 5.9331 PGD-Centrality 3.4666 2.4328 7.0459 6.1729 PGD-Degree 3.4190 2.3731 6.8721 5.9837 STPGD-TDNS 4.6629 3.7733 8.9025 8.1430

Table 15: Grey-box attack on Gwnet for PeMS-BAY on 45 minutes interval

G-MAE L-MAE G-RMSE L-RMSE non-attack 1.8872 3.8593 PGD-Random 3.6825 2.4705 7.3557 6.2334 PGD-PR 3.6789 2.4925 7.3180 6.1898 PGD-Centrality 3.6872 2.4897 7.4748 6.3791 PGD-Degree 3.7254 2.5300 7.4270 6.3325 STPGD-TDNS 5.2931 4.3660 9.7466 8.9135