Local Truncation Error-Guided Neural ODEs for Large Scale Traffic Forecasting

Xiao Zhang, Yafei Li, Ruixiang Wang, Wei Wei, Shuo He, Mingliang XuarXiv 2026

TL;DR

Neural Ordinary Differential Equations (ODEs) are excellent at modeling smooth, continuous physical systems but fail catastrophically when hitting sudden, discrete anomalies like traffic jams. LTE-ODE solves this by turning numerical integration error—traditionally treated as a nuisance to eliminate—into an unsupervised spotlight that dynamically activates a discrete compensation branch exactly when and where a traffic shock occurs.

What Problem Does This Paper Address?

Real-world spatiotemporal systems, like large-scale traffic networks, possess a tricky "dual nature." On one hand, they follow continuous, predictable macroscopic rhythms (daily rush hours). On the other hand, they are plagued by discrete, highly unpredictable microscopic shocks (accidents or sudden weather shifts).

Continuous-time models like Neural ODEs are mathematically elegant and handle irregular time steps well, but they suffer from a fatal flaw: they are bound by strict smoothness constraints (Lipschitz continuity). When faced with sudden anomalies, standard Neural ODEs suffer from severe "over-smoothing," failing to capture the sharp, branching trajectories of sudden congestion.

Recent physics-informed methods try to fix this by penalizing numerical integration errors to force the model back onto a smooth path. However, the authors mathematically demonstrate that this rigid regularization triggers severe gradient conflicts, leading to "attention collapse"—effectively blinding the model to anomalies.

Methods

The authors introduce Local Truncation Error-Guided Neural ODEs (LTE-ODE), which embraces numerical error rather than penalizing it.

Figure 1: The overall framework of the proposed LTE-ODE. (Left) Input & Initialization: The input data X is projected via Winput and concatenated with node embeddings Enode to form initial dual-stream states. (Middle) Continuous-Discrete Evolution Loop: Over S steps, a dual-solver (Euler and RK2) evaluates the continuous vector field fθ. The numerical discrepancy between them yields the Local Truncation Error (LTE) Et, which generates a spatial attention mask Mt. This mask dynamically activates the discrete shock compensator gϕ to inject high-frequency momentum into the continuous trajectory. (Right) Prediction: Evolved features are concatenated and passed through a regression layer. Key Take-away: The LTE serves as an unsupervised, physics-informed bridgeit gracefully maintains pure continuous ODE evolution in smooth traffic regions while force- fully activating discrete compensations specifically at nodes experiencing abrupt shocks.

Key components of the architecture include:

  • Embedded Dual-Solver Backbone: During forward propagation, the model runs a first-order coarse estimation (Euler method) and a second-order refined estimation (Runge-Kutta 2) in parallel. Because RK2 inherently shares intermediate states with the Euler step, this dual-solver setup costs zero additional Neural Function Evaluations (NFEs).
  • Local Truncation Error (LTE) as a Gate: The mathematical discrepancy between these two solvers defines the LTE. A large LTE indicates that the traffic state is violently deviating from the smooth manifold (i.e., a shock point).
  • Spatial Attention Mask: The LTE is mapped via a Sigmoid function into a dynamic spatial attention mask ($M_t$).
  • Discrete Shock Compensation: In stable traffic regions, the error drops to zero, and the model behaves like a pure, high-precision continuous ODE. In anomaly zones, the mask activates a discrete feature compensation branch ($g_\phi$) that injects high-frequency momentum, allowing the model to break free from standard ODE constraints.
  • The "No-Regularization" Paradigm: The network is optimized purely end-to-end using task loss (Mean Absolute Error). Without rigid manifold penalties, the optimizer is free to amplify numerical errors at shock points to fully trigger the discrete compensator.

Datasets

The model was evaluated on four widely used, large-scale public spatiotemporal traffic benchmarks:

  • PEMS07
  • PEMS08
  • CA (California)
  • England

No new benchmarks were introduced in this paper.

Key Insights and Ideas

  • Error is a Feature, Not a Bug: The core "aha moment" is flipping the script on traditional physics-informed ML. Instead of treating numerical integration error as noise to minimize, LTE-ODE repurposes it as a high-fidelity, unsupervised forward inductive bias for anomaly detection.
  • The Pathology of Regularization: The paper introduces the Attention Collapse Theorem. It proves that forcing integration errors to zero creates an orthogonal gradient conflict. The optimizer compromises by collapsing the attention mask to a uniform 0.5 across all nodes, turning a selective anomaly detector into uninformative spatial noise.
  • Exploiting Spatial Sparsity: Because traffic accidents and sudden bottlenecks are localized and sparse, the heavy discrete compensation branch is only executed on a tiny subset of anomalous nodes, keeping the architecture highly scalable.

Key Results

Predictive Performance

LTE-ODE achieves state-of-the-art performance across nearly all metrics on the evaluated datasets. Crucially, it demonstrates substantial reductions in Root Mean Squared Error (RMSE)—for instance, scoring 28.89 on the massive CA dataset compared to competing baselines. Because RMSE heavily penalizes large variance errors, this highlights the model's unique capability to accurately capture sudden, high-amplitude traffic shocks.

Computational Efficiency

Despite running a dual-solver mechanism, LTE-ODE sits comfortably on the Pareto optimal frontier for efficiency. Compared to computationally heavy Transformer architectures (like PDFormer and UniST) which suffer from quadratic complexity, LTE-ODE yields up to a 4× to 10× speedup in inference times on massive graph datasets like CA.

Figure 2: Performance Comparison of Training and Inference Time.

Deployment Flexibility

Ablation studies on integration steps show a U-shaped performance curve, with 4 steps being optimal. However, the authors demonstrate that the integration step can be used as a strategic tuning knob: shallow integration (1 or 2 steps) drastically cuts FLOPs for resource-constrained edge devices (like roadside sensors) while maintaining highly competitive baseline performance.

Limitations and Future Work

Not discussed in detail in the provided text.

Summary updated

Abstract

Spatiotemporal forecasting in physical systems, such as large-scale traffic networks, requires modeling a dual dynamic: continuous macroscopic rhythms and discrete, unpredictable microscopic shocks. While Neural Ordinary Differential Equations (ODEs) excel at capturing smooth evolution, their inherent Lipschitz continuity constraints inevitably cause severe over-smoothing when confronting abrupt anomalies. Recent physics-informed methods attempt to bypass this by penalizing numerical integration errors to enforce manifold smoothness. However, we mathematically reveal that such rigid regularization inherently triggers gradient conflicts and ``attention collapse,'' stripping the model of its sensitivity to anomalies. To resolve this continuity-shock dilemma, we propose Local Truncation Error-Guided Neural ODEs (LTE-ODE). Rather than treating numerical error as a nuisance to be eliminated, we innovatively repurpose the Local Truncation Error (LTE) as an unsupervised forward inductive bias. By mapping the LTE into a dynamic spatial attention mask, our architecture gracefully preserves high-precision continuous ODE evolution in stable regions, while adaptively triggering a discrete compensation branch exclusively at shock points. Trained purely end-to-end without manifold penalties, LTE-ODE achieves state-of-the-art performance on multiple large-scale benchmarks, exhibiting exceptional robustness against highly non-linear fluctuations. Furthermore, our ablation on integration steps demonstrates high deployment flexibility, allowing the model to seamlessly adapt to varying hardware memory constraints in real-world applications.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
PEMS08LTE-ODERMSE22.15Averaged over the 12 forecasting horizons.
Source quote
L178: LTE-ODE │ 14.56 │ 9.41 │ 22.15 │ 2.95 │ 4.27 │ 6.25 │ 20.20 │ 8.61 │ 31.98 │ 18.73 │ 13.53 │ 28.89
EnglandLTE-ODERMSE6.25Averaged over the 12 forecasting horizons.
Source quote
L178: LTE-ODE │ 14.56 │ 9.41 │ 22.15 │ 2.95 │ 4.27 │ 6.25 │ 20.20 │ 8.61 │ 31.98 │ 18.73 │ 13.53 │ 28.89
PEMS07LTE-ODERMSE31.98Averaged over the 12 forecasting horizons.
Source quote
L178: LTE-ODE │ 14.56 │ 9.41 │ 22.15 │ 2.95 │ 4.27 │ 6.25 │ 20.20 │ 8.61 │ 31.98 │ 18.73 │ 13.53 │ 28.89
CALTE-ODERMSE28.89-2.1 vs baselineAveraged over the 12 forecasting horizons.
Source quote
L178: LTE-ODE │ 14.56 │ 9.41 │ 22.15 │ 2.95 │ 4.27 │ 6.25 │ 20.20 │ 8.61 │ 31.98 │ 18.73 │ 13.53 │ 28.89
Reported baseline / comparator measurements (1)
BenchmarkMethodMetricScoreProtocol / Evidence
CAGSNet baselineRMSE30.99Averaged over the 12 forecasting horizons; best baseline RMSE on CA, as indicated by th…
Source quote
L177: GSNet │ 14.76 │ 9.48 │ 22.52 │ 3.20 │ 4.82 │ 6.60 │ 20.70 │ 8.77 │ 32.66 │ 19.76 │ 14.39 │ 30.99
BibTeX
@misc{zhang2026local,
  author = {Xiao Zhang and Yafei Li and Ruixiang Wang and Wei Wei and Shuo He and Mingliang Xu},
  title = {{Local Truncation Error-Guided Neural ODEs for Large Scale Traffic Forecasting}},
  year = {2026},
  eprint = {2605.03386},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.03386},
}
Figure