暂无图片
暂无图片
暂无图片
暂无图片
暂无图片
Do We Really Need Graph Neural Networks for Traffic Forecasting.pdf
217
12页
0次
2023-10-19
50墨值下载
Do We Really Need Graph Neural Networks for Traffic Forecasting?
Xu Liu
1
Yuxuan Liang
1
Chao Huang
2
Hengchang Hu
1
Yushi Cao
3
Bryan Hooi
1
Roger Zimmermann
1
Abstract
Spatio-temporal graph neural networks (STGNN)
have become the most popular solution to traf-
fic forecasting. While successful, they rely on
the message passing scheme of GNNs to estab-
lish spatial dependencies between nodes, and
thus inevitably inherit GNNs’ notorious ineffi-
ciency. Given these facts, in this paper, we pro-
pose an embarrassingly simple yet remarkably
effective spatio-temporal learning approach, en-
titled SimST. Specifically, SimST approximates
the efficacies of GNNs by two spatial learning
techniques, which respectively model local and
global spatial correlations. Moreover, SimST can
be used alongside various temporal models and
involves a tailored training strategy. We conduct
experiments on five traffic benchmarks to assess
the capability of SimST in terms of efficiency and
effectiveness. Empirical results show that SimST
improves the prediction throughput by up to 39
times compared to more sophisticated STGNNs
while attaining comparable performance, which
indicates that GNNs are not the only option for
spatial modeling in traffic forecasting.
1. Introduction
In recent years, urban traffic forecasting has emerged as
one of the most important components of Intelligent Trans-
portation Systems. Given historical traffic observations
(e.g., traffic speed, flow) collected from sensors on road
networks, the task focuses on predicting future traffic trends
for each sensor, which provides insights for improving ur-
ban planning and traffic management (Zheng et al., 2014).
Spatio-Temporal Graph Neural Networks (STGNNs) have
become the de facto most popular tool for traffic forecasting,
in which sequential models such as Temporal Convolution
Networks (TCNs) or Recurrent Neural Networks (RNNs)
1
National University of Singapore
2
University of Hong
Kong
3
Nanyang Technological University. Correspondence
to: Xu Liu
<
liuxu@comp.nus.edu.sg
>
, Yuxuan Liang
<yuxliang@outlook.com>.
Preprint. Under review.
are applied for modeling temporal dependencies (Yu et al.,
2018; Pan et al., 2019; Wu et al., 2020; Lan et al., 2022), and
Graph Neural Networks (GNNs) (Kipf & Welling, 2017;
Defferrard et al., 2016) are utilized to capture spatial corre-
lations among different locations.
After revisiting the STGNNs proposed in recent years, we
find that they mostly focus on enhancing the spatial learn-
ing modules (i.e., GNNs) with either complex aggregation
rules or sophisticated layers to improve predictive perfor-
mance. While successful, we note that they rely heavily on
GNNs for performing the message passing step and thus
inevitably inherit GNNs’ notorious inefficiencies, especially
when the graphs are large or with dense connections (Chen
et al., 2021a; Zhang et al., 2022). As a concrete example,
the commonly used adaptive adjacency matrix is built by
matrix multiplication of two node embedding tables, pro-
ducing a fully-connected graph (Wu et al., 2019; Bai et al.,
2020; Han et al., 2021). During feature aggregation, such a
fully-connected structure leads to quadratic computational
complexity w.r.t. the number of sensors. Consequently, the
scalability challenges of GNNs hinder the deployment of
STGNNs in large-scale and real-time traffic forecasting sys-
tems that are latency-bound and require fast inference.
Although there are plenty of efforts in the graph domain to
improve the efficiency of GNNs, such as via graph simpli-
fication (Hamilton et al., 2017; Chen et al., 2018; Chiang
et al., 2019; Zeng et al., 2020; Zheng et al., 2020b), the
related studies in STGNNs are still scarce to the best of our
knowledge, as such simplification usually leads to informa-
tion loss and performance degradation (Wu et al., 2020).
Given these facts and inspired by recent progress in elim-
inating GNNs for node classification (Zhang et al., 2022;
Tian et al., 2022), we may ask:
can we remove GNNs to
trim down the explosive complexity while still remaining
competitive in traffic forecasting accuracy?
Present Work
To answer this question, we first demon-
strate the functionalities of GNNs as follows. The superior
performance of GNNs stems from its structure-aware ex-
ploitation of graphs: (1) for each node in the graph, a single
GNN layer is used to first aggregate features from nodes’
neighbors and then transform the aggregated representations
via a feed-forward network, and (2) by stacking multiple
layers, the hidden representations of nodes receive messages
from long-distance neighbors.
arXiv:2301.12603v1 [cs.LG] 30 Jan 2023
Do We Really Need Graph Neural Networks for Traffic Forecasting?
In this work, we propose two spatial learning modules to
approximate the above efficacies of GNNs without requiring
message passing, reducing the time complexity to linear.
(1) Local Proximity Modeling. We take a local view and
fragment the traffic network to build an ego-graph for each
node, which is constructed by incorporating historical obser-
vations of the node’s neighbors. Then an MLP is applied to
transform the observations to the hidden states at each time
step. (2) Global Correlation Learning. Inspired by recom-
mender systems that learn user embeddings to reflect user
behavioral similarities (He et al., 2017; Zhang et al., 2019),
we propose to use sensor embeddings to represent sensors’
inherent properties and collaboratively capture spatial rela-
tionships between arbitrary sensor pairs in a data-driven
manner. Compared with stacking a number of GNN layers
to enlarge the receptive field and build long-range spatial de-
pendencies, our module sets up direct connections between
nodes and thereby learns the global correlations.
In practice, GNNs can be used alongside various temporal
models, such as GRU (Chung et al., 2014), WaveNet (Oord
et al., 2016), and Transformer (Vaswani et al., 2017), for
spatio-temporal learning. Analogously, we empirically find
that our proposed spatial modules are agnostic to the tempo-
ral encoders and work in a plug-and-play manner. Moreover,
we devise a new training strategy for SimST to further boost
performance, which increases sample diversity during batch
formation and enhances generalization.
Integrating the above components, we propose a
Sim
ple
yet effective
S
patio-
T
emporal learning approach termed
SimST
, which trims the quadratic cost and performs on par
with STGNNs in empirical studies. Our contributions are
summarized as follows.
We for the first time demonstrate that GNNs are not the
only choice for spatial modeling in traffic forecasting, by
presenting a simple yet admirable method called SimST.
Despite its simplicity, SimST achieves remarkable empir-
ical results in terms of throughput and accuracy against
sophisticated state-of-the-art STGNNs: SimST is signifi-
cantly more efficient than baselines, with up to
39×
higher
inference throughput, while performing on par with them.
We conduct ablation and case studies to promote a better
understanding of our method and motivate future research
to rethink the importance of GNNs in traffic forecasting.
2. Related Work
Traffic forecasting is a crucial application in smart city ef-
forts. In recent years, STGNNs have become the most
widely used tools for predicting traffic (Cao et al., 2020;
Liu et al., 2022b; Chen et al., 2021b; 2022). Generally,
they integrate GNNs with either RNNs or TCNs to capture
the spatial and temporal dependencies in traffic data. For
example, DCRNN (Li et al., 2018) considered traffic flow
as a diffusion process and combined a novel diffusion con-
volution with GRU. Other efforts (Pan et al., 2019; Fang
et al., 2021; Liu et al., 2022a) were also based on RNNs.
To improve training speed and enjoy parallel computation,
plenty of works (Wu et al., 2019; 2020; Li & Zhu, 2021)
replaced RNNs with dilated causal convolution.
A fundamental problem for using GNNs in traffic model-
ing is how to establish a graph structure. The mainstream
approach to define such structures is using either a prede-
fined and sparse matrix constructed from the road network
distances between sensors (Yu et al., 2018; Li et al., 2018;
Song et al., 2020), or an adaptive and dense matrix that
records the pairwise relationships between nodes (Wu et al.,
2019; Bai et al., 2020; Han et al., 2021; Choi et al., 2022).
However, researchers have noted that the predefined matrix
is heuristic and does not reflect the genuine dependencies
between nodes, which degrades model performance (Wu
et al., 2019; Bai et al., 2020). Models applying the adaptive
matrix generally achieve superior performance. Though
successful, the adaptive matrix discards the sparsity of the
graph and incurs a quadratic computational cost, making it
hard to deploy for latency-constrained or large-scale traffic
applications. Other methods that use attention mechanisms
for spatial learning (Zheng et al., 2020a) also suffer from
quadratic time complexity. In this study, we propose SimST
to alleviate the inefficiency issue by eliminating the ineffi-
cient GNN component in the model.
3. Preliminary
Traffic Forecasting
Let
G = (V, E)
represent a directed
sensor graph with
|V|
nodes and
|E|
edges, and
X
T
R
|VT ×F
denote the features of all nodes from time step 1
to
T
, where
F
is the feature dimension. The features usu-
ally consist of a target attribute (e.g., traffic speed) and other
auxiliary information, such as time of day (Wu et al., 2019).
Following common settings (Li et al., 2018; Wu et al., 2019),
a weighted adjacency matrix
A R
|V|×|V|
is applied to de-
scribe the graph topology, where
A
ij
= exp(
dist(v
i
,v
j
)
2
s
2
)
if
dist(v
i
, v
j
) 6 r
else
A
ij
= 0
,
dist(v
i
, v
j
)
denotes the
road network distance between sensors
v
i
and
v
j
,
s
is the
standard deviation of distances, and
r
is a threshold for spar-
sity (Shuman et al., 2013). The non-zero entries in
A
form
the set of edges in E.
In traffic forecasting, we aim to learn a neural network
Θ
to predict the target attribute in future
T
f
steps based on
T
h
historical observations over the sensor graph:
G, X
T
h
Θ
ˆ
Y
T
f
(1)
where
X
T
h
R
|VT
h
×F
indicates the observations and
ˆ
Y
T
f
R
|VT
f
×1
is the predictions. A prediction loss, e.g.,
of 12
50墨值下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜