ICML2026

Lightweight and Interpretable Transformer via Unrolling of Mixed Graph Algorithms for Traffic Forecast

Ji Qi, Mingxiao Liu, VIET THUC, Yuzhe Li, Zhuoshi Pan, Gene Cheung, Hong Zhao

Abstract

Unlike conventional "black-box" transformers with classical self-attention mechanisms, we build a lightweight and interpretable transformer-like neural network by unrolling a mixed-graph-based optimization algorithm to forecast traffic with spatial and temporal dimensions. We construct two graphs: an undirected graph Gu\mathcal{G}^u capturing spatial correlations across geography, and a directed graph Gd\mathcal{G}^d capturing sequential relationships over time. We predict future samples of signal x\mathbf{x}, assuming it is "smooth" with respect to both Gu\mathcal{G}^u and Gd\mathcal{G}^d, where we design new 2\ell_2- and 1\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 Gu\mathcal{G}^u and Gd\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. Code: https://github.com/SingularityUndefined/Unrolling-GSP-STForecast.