Papers › Online Test-Time Adaptation of Spatial-Temporal Traffic Flow Forecasting

Online Test-Time Adaptation of Spatial-Temporal Traffic Flow Forecasting

8 Jan 2024arXiv:2401.04148archive 2025-07-28

Pengxin Guo, Pengrong Jin, Ziyue Li, Lei Bai, Yu Zhang

Accurate spatial-temporal traffic flow forecasting is crucial in aiding traffic managers in implementing control measures and assisting drivers in selecting optimal travel routes. Traditional deep-learning based methods for traffic flow forecasting typically rely on historical data to train their models, which are then used to make predictions on future data. However, the performance of the trained model usually degrades due to the temporal drift between the historical and future data. To make the model trained on historical data better adapt to future data in a fully online manner, this paper conducts the first study of the online test-time adaptation techniques for spatial-temporal traffic flow forecasting problems. To this end, we propose an Adaptive Double Correction by Series Decomposition (ADCSD) method, which first decomposes the output of the trained model into seasonal and trend-cyclical parts and then corrects them by two separate modules during the testing phase using the latest observed data entry by entry. In the proposed ADCSD method, instead of fine-tuning the whole trained model during the testing phase, a lite network is attached after the trained model, and only the lite network is fine-tuned in the testing process each time a data entry is observed. Moreover, to satisfy that different time series variables may have different levels of temporal drift, two adaptive vectors are adopted to provide different weights for different time series variables. Extensive experiments on four real-world traffic flow forecasting datasets demonstrate the effectiveness of the proposed ADCSD method. The code is available at https://github.com/Pengxin-Guo/ADCSD.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2401.04148")

Code

Syntology Ran 8 of 9 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 8 ran with no contract checked.

By repository: official repository: 9 samples from 1 repository, 8 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

pengxin-guo/adcsd officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

9 samples harvested; 8 ran; 0 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

8ran
1unverified

Licence: 9 of the 9 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from pengxin-guo/adcsd. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

log_cosh_loss pengxin-guo/adcsd/libcity/model/loss.py official repository ran fingerprinted no licence file found · pointer only · 8b1fe12a843654ca · report
mae pengxin-guo/adcsd/libcity/evaluator/eval_funcs.py official repository ran fingerprinted no licence file found · pointer only · adfbb8bc32262202 · report
masked_mae_loss pengxin-guo/adcsd/libcity/model/loss.py official repository ran fingerprinted no licence file found · pointer only · 2a82a90d91ced4b6 · report
masked_mae_torch pengxin-guo/adcsd/libcity/model/loss.py official repository ran no licence file found · pointer only · addcdb338a54bba0 · report
mse pengxin-guo/adcsd/libcity/evaluator/eval_funcs.py official repository ran fingerprinted no licence file found · pointer only · a57096075ed5bfb9 · report
rmse pengxin-guo/adcsd/libcity/evaluator/eval_funcs.py official repository ran fingerprinted no licence file found · pointer only · d43c793b0819b516 · report
sort_confidence_ids pengxin-guo/adcsd/libcity/evaluator/utils.py official repository ran no licence file found · pointer only · 1fca944cc6ee41b8 · report
transfer_data pengxin-guo/adcsd/libcity/evaluator/utils.py official repository ran no licence file found · pointer only · 57277243f9a05725 · report
evaluate_model pengxin-guo/adcsd/libcity/evaluator/utils.py official repository unverified no licence file found · pointer only · 9b199ea651c27032 · report

Tasks

Test-time AdaptationTraffic Prediction

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Traffic Prediction NYCTaxi ADCSD MAE @ in 16.987 #5 of 5 Archive leaderboard report
Traffic Prediction NYCTaxi ADCSD MAE @ out 14.595 #5 of 5 Archive leaderboard report
Traffic Prediction PeMS07 ADCSD MAE@1h 19.62 #8 of 17 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections