CST MTGNN for METR-LA
This model predicts the next hour of traffic speed at 207 road sensors using
the preceding hour of measurements. The CST variant uses one
CSTLinear to generate MTGNN's sensor graph scores. Its fixed Chart is
built from public sensor coordinates.
Three-seed results with shared sensor coordinates
CST had lower test MAE in all three seeds when both models received the same sensor coordinates. Averaged across seeds, MAE fell by 5.5% across all 12 forecast steps and by 7.6% at 60 minutes.
| Forecast horizon | MTGNN + coordinates | CST + coordinates | MAE reduction | Seeds favoring CST |
|---|---|---|---|---|
| 15 min | 2.919 | 2.803 | 4.0% | 3/3 |
| 30 min | 3.347 | 3.180 | 5.0% | 3/3 |
| 60 min | 3.861 | 3.568 | 7.6% | 3/3 |
| All 12 steps | 3.306 | 3.125 | 5.5% | 3/3 |
The test MAE is in miles per hour (lower is better). Here is the all-step MAE for each pair.
| Seed | MTGNN + coordinates | CST + coordinates | MAE reduction |
|---|---|---|---|
| 17 | 3.332 | 3.130 | 6.1% |
| 29 | 3.281 | 3.121 | 4.9% |
| 43 | 3.305 | 3.123 | 5.5% |
MTGNN concatenates the scaled coordinates to its learned sensor ID embeddings. CST uses the same locations in its fixed Chart. Each pair shares the initial weights outside the graph generator, batch order, and data split. Both models trained from scratch for 100 epochs on an RTX 4090, with batch size 64 and checkpoint selection by validation MAE. The CST graph uses 512 Atoms, with an initial Atom learning rate of 0.0048. The graph parameter count fell from 20,000 to 3,072, and mean training time rose from 10.2 to 11.2 minutes per run.

The lines show the mean validation MAE across the three seeds. The shaded areas span the minimum and maximum at each epoch.
Per-seed results (CSV) · Summary (JSON)
PEMS-BAY feed outage and delay evaluation
A separate PEMS-BAY experiment used 325 sensors and the validation-selected checkpoints from 100-epoch runs for seeds 17, 29, and 43. On 10,412 held-out forecast windows, CST had lower overall MAE than coordinate-aware MTGNN in all three seeds for every tested outage and delay scenario. The downloadable Safetensors at the root of this repository are the METR-LA checkpoints. The PEMS-BAY checkpoint collection contains all six PEMS-BAY weights and inference instructions.
The table reports three-seed mean MAE in miles per hour across all 12 five-minute forecast steps, with the number of paired seeds favoring CST in parentheses.
| Feed condition | MTGNN + coordinates | CST | Overall MAE reduction | Affected-sensor MAE reduction |
|---|---|---|---|---|
| No injected fault | 1.744 | 1.585 | 9.1% (3/3) | — |
| Regional outage, 30 min | 1.749 | 1.589 | 9.2% (3/3) | 11.4% (3/3) |
| Regional outage, 120 min | 1.823 | 1.658 | 9.0% (3/3) | 7.2% (3/3) |
| Regional delay, 15 min | 1.780 | 1.610 | 9.6% (3/3) | 11.7% (3/3) |
| Network-wide delay, 5 min | 1.904 | 1.681 | 11.7% (3/3) | 11.7% (3/3) |
| Network-wide delay, 15 min | 2.151 | 1.865 | 13.3% (3/3) | 13.3% (3/3) |
| Network-wide delay, 30 min | 2.537 | 2.201 | 13.2% (3/3) | 13.2% (3/3) |
| 120 min regional outage + 15 min network-wide delay | 2.233 | 1.946 | 12.9% (3/3) | 12.9% (3/3) |
For each six-hour block, we used one sampled sensor and its 32 nearest neighbors for the regional faults. Both models received the same synthetic outages and delivery delays while the original forecast targets were kept. Missing inputs use the latest valid reading in the preceding hour, with the training mean for gaps before the first valid reading. Among sensors affected by a two-hour outage, CST lowered MAE from 3.338 to 3.099 mph. With network-wide delay of 15 and 30 minutes, CST lowered 60-minute-ahead MAE by 17.5% and 18.0%.

Dots show the relative reduction in the three-seed mean MAE. Bars span the three seed-pair reductions.
Feed evaluation by seed · Metrics by horizon and checkpoint hashes · 100-epoch validation curves · 100-epoch results by seed · Evaluation protocol and reproduction
Initial comparison for the published checkpoints
The downloadable Safetensors are the two checkpoints from the initial seed-17 comparison shown here. The three-seed experiment results and validation curves are linked above.
| Model | 15-minute MAE | 30-minute MAE | 60-minute MAE | All-horizon MAE | Graph parameters |
|---|---|---|---|---|---|
| MTGNN | 2.938 | 3.401 | 3.960 | 3.355 | 19,840 |
| CST MTGNN | 2.809 | 3.190 | 3.573 | 3.132 | 3,072 |
MAE is measured in miles per hour with missing targets excluded. Both variants were trained for 100 epochs from random initialization with seed 17. Evaluation uses the best checkpoint by validation MAE. The METR-LA CSV is divided chronologically into 23,967 train, 3,417 validation, and 6,843 test forecast windows with non-overlapping target timestamps across the splits.

Run a held-out forecast
The GitHub repository includes training, evaluation and a CLI for CPU or CUDA. The CLI downloads the model configuration and Safetensors weights on its first run.
git clone https://github.com/takumiecd/cst-mtgnn-metr-la.git
cd cst-mtgnn-metr-la
python -m pip install -r requirements.txt
mkdir -p data
curl -fL 'https://zenodo.org/records/5146275/files/METR-LA.csv?download=1' -o data/METR-LA.csv
python infer.py data/METR-LA.csv --test-index 0 --sensor 773869 --variant cst
The example returns 12 predicted and observed values at five-minute intervals.
Use --variant baseline to compare the same window and --device cuda for GPU
inference. The weights refer to the 207 sensor IDs in config.json.