RiskTraf: Risk-Extrapolated Residual Learning for Multi-Variate Traffic Flow Prediction

Guangyu Wang, Zhidan Liu
8/21/2026
cs.LGcs.AI

Official code: Guangyu4/RiskTraf (1 star, Python, MIT, last commit 2026-08-26).

Abstract

Traffic sensors commonly record flow, speed, and occupancy, but standard traffic flow forecasting benchmarks and models rarely exploit all three raw measurements reliably. Although speed and occupancy provide sensor-native traffic-state information beyond flow alone, existing releases often omit these variables, replace them with proxies, or contain logically inconsistent records.

Show full abstract

Moreover, direct empirical risk minimization over three-variable inputs may exploit regime-dependent shortcuts, as the relationships among flow, speed, and occupancy vary substantially between free-flow and congested states. We introduce \textbf{PEMSB-3V}, a public benchmark suite that preserves raw flow, speed, and occupancy measurements from PeMS detectors for flow prediction. We also propose \textbf{RiskTraf}, a model-agnostic risk-extrapolated residual plug-in. For each trained spatio-temporal backbone, RiskTraf freezes the selected checkpoint and learns a lightweight zero-start residual head from historical speed and occupancy. The residual head constructs ordered traffic-risk environments and optimizes horizon-wise flow corrections with a risk extrapolation objective, thereby mitigating regime-specific shortcut correlations without modifying the backbone. Extensive experiments demonstrate that RiskTraf consistently improves diverse forecasting backbones and outperforms debiasing and distribution-shift adaptation methods. Our code and benchmark are available at https://github.com/Guangyu4/RiskTraf.

View on arXivView PDF

Code Implementations(1)

Guangyu4/RiskTrafOfficial100%
MIT

[CIKM 2026] RiskTraf: Risk-Extrapolated Residual Learning for Multi-Variate Traffic Flow Prediction

10PythonAug 26, 20263 months agoMIT

Similar Papers

Cite this paper

@article{wang2026risktraf,
  title  = {RiskTraf: Risk-Extrapolated Residual Learning for Multi-Variate Traffic Flow Prediction},
  author = {Guangyu Wang and Zhidan Liu},
  year   = {2026},
  eprint = {2608.20656},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.20656v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.20656.svg)](https://codeofpaper.com/paper/2608.20656)

Discussion