Lightweight and Interpretable Transformer via Mixed Graph Algorithm Unrolling for Traffic Forecast
About
Unlike conventional "black-box" transformers with classical self-attention mechanism, we build a lightweight and interpretable transformer-like neural net by unrolling a mixed-graph-based optimization algorithm to forecast traffic with spatial and temporal dimensions. We construct two graphs: an undirected graph $\mathcal{G}^u$ capturing spatial correlations across geography, and a directed graph $\mathcal{G}^d$ capturing sequential relationships over time. We predict future samples of signal $\mathbf{x}$, assuming it is "smooth" with respect to both $\mathcal{G}^u$ and $\mathcal{G}^d$, where we design new $\ell_2$ and $\ell_1$-norm variational terms to quantify and promote signal smoothness (low-frequency reconstruction) on a directed graph. We design an iterative algorithm based on alternating direction method of multipliers (ADMM), and unroll it into a feed-forward network for data-driven parameter learning. We periodically insert graph learning modules for $\mathcal{G}^u$ and $\mathcal{G}^d$ that play the role of self-attention. Experiments show that our unrolled networks achieve competitive traffic forecast performance as state-of-the-art prediction schemes, while reducing parameter counts drastically.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Traffic Forecasting | METR-LA | MAE5.35 | 415 | |
| Traffic Forecasting | PeMS08 | RMSE25.92 | 266 | |
| Traffic Forecasting | PeMS03 | MAE16.36 | 68 | |
| Traffic speed forecasting | METR-LA 30 min (test) | MAE4.05 | 29 | |
| Traffic Forecasting | PEMS03 60 minutes (test) | RMSE26.96 | 26 | |
| Traffic speed forecasting | METR-LA 60 min (test) | MAE5.27 | 20 | |
| Traffic Forecasting | PEMS03 30 minutes (test) | RMSE25.05 | 13 | |
| Traffic Forecasting | METR-LA 120 minutes (test) | RMSE15.19 | 13 | |
| Traffic Forecasting | PEMS03 120 minutes (test) | RMSE34.06 | 13 |