Papers
Topics
Authors
Recent
Search
2000 character limit reached

RoadDiff: Two-Stage Diffusion for Traffic Inference

Updated 4 July 2026
  • RoadDiff is a two-stage framework that transforms coarse road-level observations into fine-grained lane-level traffic states using spatio-temporal graph generation.
  • The method leverages a Road-Lane Correlation Autoencoder-Decoder to capture static and dynamic dependencies between road and lane data via graph convolution and attention mechanisms.
  • A Lane Diffusion Module refines initial estimates by simulating uncertainty and applying constraint-aware denoising based on physical traffic laws (speed average and flow sum).

Searching arXiv for the specific RoadDiff paper and closely related diffusion-for-road/traffic works to ground the article. RoadDiff is a two-stage framework for Fine-grained Road Traffic Inference (FRTI), a task that infers lane-level traffic states from road-level traffic observations together with road and lane topology. It formulates FRTI as the first spatio-temporal graph node generation problem, because the model must generate a finer node set—lane nodes—from a coarser road graph while respecting traffic-state constraints. The framework combines a Road-Lane Correlation Autoencoder-Decoder with a Lane Diffusion Module, and it is evaluated on six datasets covering speed and flow under both regular and irregular lane configurations (Li et al., 25 Jul 2025).

1. Fine-grained Road Traffic Inference as graph node generation

The problem addressed by RoadDiff is motivated by the disparity between the availability of road-level traffic data and the operational need for lane-level traffic information in applications such as autonomous driving, lane-change guidance, dynamic lane allocation, traffic signal control, fleet routing, and precise congestion management. Road-level measurements only describe an aggregate state of a road segment, whereas many downstream decisions are lane-specific. The paper identifies three main difficulties: coarse-to-fine information loss, because road observations omit lane heterogeneity; irregular lane topology, because road segments can have different numbers of lanes; and different physical constraints for different traffic states, because speed and flow obey different aggregation laws (Li et al., 25 Jul 2025).

Formally, the road network is modeled as an undirected graph

GR=(VR,ER,AR),G^R = (V^R, E^R, A^R),

where VRV^R are road-segment nodes and AR∈RI×IA^R \in \mathbb{R}^{I \times I} is the static road adjacency matrix. The lane network is likewise modeled as

GL=(VL,EL,AL),G^L = (V^L, E^L, A^L),

where each lane node li,jl_{i,j} is the jj-th lane segment belonging to road segment rir_i, and

N=∑i=1IJiN = \sum_{i=1}^{I} J_i

is the total number of lane nodes. The lane adjacency captures four directions—up, down, left, right—to represent along-road and cross-lane connectivity. Over a time window TT, the task is to infer

XL={X1L,X2L,…,XTL}X^L = \{X_1^L, X_2^L, \ldots, X_T^L\}

from

VRV^R0

with the overall mapping written as

VRV^R1

The physical constraints are central. For speed, the road state equals the average of lane states: VRV^R2 For flow, the road state equals the sum of lane states: VRV^R3 This makes FRTI not merely a fine-grained generation problem, but a constrained generation problem under traffic physics.

2. Road-Lane Correlation Autoencoder-Decoder

The first stage of RoadDiff is the Road-Lane Correlation Autoencoder-Decoder, which produces an initial lane-level inference from road-level inputs. It is not presented as a VAE-style probabilistic autoencoder; rather, it is a deterministic encoder-decoder that learns road spatio-temporal features and maps them into lane representations. The encoder combines static graph convolution, dynamic graph attention, temporal attention, and MLP-based temporal aggregation, while the decoder expands road representations to lane representations and restores lane-level spatio-temporal structure (Li et al., 25 Jul 2025).

For static road-level spatial modeling, the encoder applies graph convolution: VRV^R4 To capture dynamic spatial dependency beyond fixed topology, it adds graph attention: VRV^R5 The final spatial representation is a weighted combination of static and dynamic components: VRV^R6

Temporal modeling is then introduced through an attention score

VRV^R7

normalized as

VRV^R8

These weights aggregate previous-step features: VRV^R9 and the encoder collapses the time window into a hidden road representation

AR∈RI×IA^R \in \mathbb{R}^{I \times I}0

The decoder maps each road hidden vector to multiple lane nodes by

AR∈RI×IA^R \in \mathbb{R}^{I \times I}1

It then applies lane-level static and dynamic aggregation: AR∈RI×IA^R \in \mathbb{R}^{I \times I}2 followed by lane temporal restoration

AR∈RI×IA^R \in \mathbb{R}^{I \times I}3

and final initial lane output

AR∈RI×IA^R \in \mathbb{R}^{I \times I}4

This stage learns road-road correlations, lane-lane correlations, road-lane correspondence, and temporal traffic dependencies. A plausible implication is that the first stage provides a structured coarse estimate whose errors are then treated as a diffusion-refinement problem rather than as a purely direct decoding problem.

3. Lane Diffusion Module and constraint-aware denoising

The second stage, the Lane Diffusion Module, refines the initial lane information AR∈RI×IA^R \in \mathbb{R}^{I \times I}5. Its role is to simulate uncertainty in lane generation, learn the lane-state distribution, refine initial lane estimates, and enforce road-lane physical constraints during denoising. The paper frames diffusion as advantageous over plain VAE-style generation because it avoids posterior collapse and yields better sample quality and robustness (Li et al., 25 Jul 2025).

The forward process is explicitly road-conditioned: AR∈RI×IA^R \in \mathbb{R}^{I \times I}6 with sampling equation

AR∈RI×IA^R \in \mathbb{R}^{I \times I}7

Unlike a vanilla DDPM, the noising process injects road information at each step through AR∈RI×IA^R \in \mathbb{R}^{I \times I}8.

The reverse process is parameterized as

AR∈RI×IA^R \in \mathbb{R}^{I \times I}9

with noise prediction

GL=(VL,EL,AL),G^L = (V^L, E^L, A^L),0

Conceptually, reverse denoising removes uncertainty while re-aligning lane estimates with road-level conditions.

Constraint-guided refinement is applied by gradient correction: GL=(VL,EL,AL),G^L = (V^L, E^L, A^L),1 For speed,

GL=(VL,EL,AL),G^L = (V^L, E^L, A^L),2

and for flow,

GL=(VL,EL,AL),G^L = (V^L, E^L, A^L),3

The training objective combines KL, reconstruction, and constraint terms: GL=(VL,EL,AL),G^L = (V^L, E^L, A^L),4 where

GL=(VL,EL,AL),G^L = (V^L, E^L, A^L),5

and

GL=(VL,EL,AL),G^L = (V^L, E^L, A^L),6

This makes the diffusion module simultaneously a denoiser, a distribution learner, and a physics-consistency mechanism.

4. Datasets, baselines, and reported performance

RoadDiff is evaluated on six tasks derived from three paired road-lane datasets: PeMS Speed, PeMS Flow, PeMS_F Speed, PeMS_F Flow, HuaNan Speed, and HuaNan Flow. PeMS is a regular 5-lane freeway dataset from the Santa Ana Freeway, Los Angeles; PeMS_F uses irregular lane counts GL=(VL,EL,AL),G^L = (V^L, E^L, A^L),7 from the same source; HuaNan is an urban expressway dataset from the South China Expressway, Guangzhou. The paper compares RoadDiff with 17 adapted baselines spanning a Physics baseline, FUFI image-style fine-grained inference models such as UrbanFM and CUFAR, encoder-decoder baselines such as DCRNN and MegaCRN, and spatio-temporal graph baselines such as STGCN, MTGNN, GraphWaveNet, AGCRN, and STGODE (Li et al., 25 Jul 2025).

The evaluation metrics are MAE, RMSE, and MAPE, all lower-is-better. The paper states that RoadDiff is best across all reported benchmarks. It also notes that graph models are the strongest baseline family, whereas FUFI/grid methods degrade sharply on irregular lane topology, particularly on PeMS_F. The following table collects representative RoadDiff results.

Dataset/task Window RoadDiff result
PeMS Speed 3 MAE 7.04, RMSE 9.22, MAPE 21.47%
PeMS Flow 6 MAE 14.42, RMSE 23.68, MAPE 16.15%
PeMS_F Speed 6 MAE 6.94, RMSE 9.10, MAPE 21.36%
PeMS_F Flow 6 MAE 14.83, RMSE 24.56, MAPE 16.28%
HuaNan Speed 6 MAE 3.11, RMSE 4.40, MAPE 10.21%
HuaNan Flow 3 MAE 4.83, RMSE 7.85, MAPE 71.97%

Several result patterns are emphasized. On PeMS speed, RoadDiff reports MAE 7.04, RMSE 9.22, MAPE 21.47% at window 3, while MTGNN at window 1 reports MAE 10.87, RMSE 13.94, MAPE 39.12%, and the Physics baseline at window 1 reports MAE 11.47, RMSE 14.78, MAPE 50.78%. The paper interprets this as roughly a 40% error reduction relative to the best-performing baseline for speed. On irregular-lane PeMS_F speed, RoadDiff reports MAE 6.95, RMSE 9.11, MAPE 21.54% at window 3, while GraphWaveNet at window 1 reports MAE 9.72, RMSE 13.13, MAPE 32.61%. On HuaNan speed, RoadDiff reaches MAE 3.12, RMSE 4.41, MAPE 10.24% at window 3.

The ablations remove the Lane Diffusion Module (w/o D), graph attention (w/o GA), MLP attention mechanisms (w/o MA), or replace the Road-Lane Correlation Autoencoder-Decoder with a linear layer (r/w L). The paper reports that removing any component significantly degrades performance, and that the Lane Diffusion Module is the most critical component in many settings. Sensitivity studies over diffusion steps further show that too few steps underfit denoising and too many can overfit or become inefficient. For example, on PeMS speed, 5 steps give 8.62 / 11.29 / 26.30%, 10 steps give 7.04 / 9.22 / 21.47%, 20 steps give 7.19 / 11.50 / 21.91%, and 30 steps give 7.87 / 10.30 / 23.99%. The paper therefore characterizes the best settings as generally around 10–20 steps, though some flow tasks benefit from 30.

5. Position within diffusion research on road and traffic domains

RoadDiff belongs to a broader diffusion-based literature on structured road-domain generation, but its target object is distinctive: it generates lane-level traffic states on a lane graph from road-level traffic states on a road graph. This distinguishes it from diffusion models for road layout generation, traffic-scenario generation, trajectory generation, or end-to-end driving. DiffRoad generates realistic, diverse, and controllable 3D road scenarios and converts them into OpenDRIVE for simulator use (Zhou et al., 2024). Path Diffuser is a two-stage, map-conditioned diffusion simulator that generates agent initializations and trajectories from map context alone, using Frenet-frame motion primitive candidates to improve road compliance (Lee et al., 29 Sep 2025). Diff-RNTraj generates road network-constrained trajectories in a hybrid representation GL=(VL,EL,AL),G^L = (V^L, E^L, A^L),8, where each point consists of a road segment and a moving ratio (Wei et al., 2024). DiffAD reformulates end-to-end autonomous driving as conditional image generation over a unified BEV latent (Wang et al., 15 Mar 2025), while DualDiff+ is a dual-branch conditional diffusion model for driving-scene image and video generation with occupancy-derived perspective-aligned control (Yang et al., 5 Mar 2025).

The methodological overlap is that all of these systems use diffusion to model structured objects in road-adjacent domains. The substantive difference is that RoadDiff is not a scene synthesizer, map generator, or trajectory generator. Its core object is a spatio-temporal graph node expansion from roads to lanes under speed-average and flow-sum constraints. This suggests that the most original aspect of RoadDiff is not diffusion in isolation, but the combination of diffusion with a road-to-lane graph transformation problem.

6. Assumptions, limitations, and outlook

RoadDiff assumes that road and lane topology are known, that road-to-lane correspondence is known, that road speed is approximated by the average of lane speeds, that road flow is the sum of lane flows, and that temporal dependencies can be inferred from a recent fixed window. It also assumes that lane adjacency can be captured by up/down/left/right relationships. These assumptions make the problem well posed, but they also delimit the method’s scope (Li et al., 25 Jul 2025).

Several limitations are explicit or strongly implied. The paper states that future work will improve diffusion efficiency and computational performance and extend graph diffusion ideas to other spatio-temporal graph generation problems. It does not provide runtime or latency comparisons, and the exact train/validation/test split is not clearly documented in the provided description. No robustness experiments under missing or noisy road sensors are reported, and no explicit uncertainty-calibration metrics are given. Another empirically visible limitation is that flow MAPE remains high on HuaNan across methods, including RoadDiff; the reported 71.97% at window 3 indicates that flow inference remains harder than speed inference in that setting.

Even with those caveats, the reported evidence indicates a coherent explanation for the model’s performance. The first stage captures graph-structured spatio-temporal dependencies and cross-granularity road-lane correspondence; the second stage performs uncertainty-aware diffusion refinement under explicit physical constraints. This suggests that RoadDiff’s significance lies less in introducing diffusion to traffic forecasting per se than in defining a new graph-generation problem and showing that diffusion can be used as a refinement mechanism for constrained fine-grained traffic inference.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to RoadDiff.