Sensors (Oct 2022)

A Comparative Analysis between Efficient Attention Mechanisms for Traffic Forecasting without Structural Priors

  • Andrei-Cristian Rad,
  • Camelia Lemnaru,
  • Adrian Munteanu

DOI
https://doi.org/10.3390/s22197457
Journal volume & issue
Vol. 22, no. 19
p. 7457

Abstract

Read online

Dot-product attention is a powerful mechanism for capturing contextual information. Models that build on top of it have acclaimed state-of-the-art performance in various domains, ranging from sequence modelling to visual tasks. However, the main bottleneck is the construction of the attention map, which is quadratic with respect to the number of tokens in the sequence. Consequently, efficient alternatives have been developed in parallel, but it was only recently that their performances were compared and contrasted. This study performs a comparative analysis between some efficient attention mechanisms in the context of a purely attention-based spatio-temporal forecasting model used for traffic prediction. Experiments show that these methods can reduce the training times by up to 28% and the inference times by up to 31%, while the performance remains on par with the baseline.

Keywords