ConceptioArchivearXiv CS
arXiv CSopen access

DRIFT: Risk-Constrained Diffusion with Imitation Priors for Mixed-Autonomy Traffic Generation

Unknown · 2026 · arxiv_cs
arXiv CS · Papers · License: Open Access · 2026
Open Source ↗Direct PDF ↓
clouddistributedcomputingparallelcomputing
distributed computing, parallel computing, cloud

IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS

1

DRIFT: Risk-Constrained Diffusion with Imitation Priors for Mixed-Autonomy Traffic Generation

arXiv:2606.16589v1 [cs.DC] 15 Jun 2026

Yaoshen Yu, Minghui Liwang, Senior Member, IEEE, Wenbo Zhu, Xinlei Yi, Senior Member, IEEE, Yiguang Hong, Fellow, IEEE, Yuhan Su, Seyyedali Hosseinalipour, Senior Member, IEEE

Abstract—Future intelligent transportation systems are envisioned to evolve toward a long-term mixed-autonomy paradigm, where human-driven vehicles (HVs) and autonomous vehicles (AVs) coexist within highly coupled traffic ecosystems. Such coexistence introduces pronounced heterogeneity, amplified uncertainty, and increasingly intricate interaction dynamics. In this context, it remains fundamentally challenging to simultaneously capture the heterogeneous behavioral distribution shifts arising from dynamic AV penetration, generate diverse yet executable trajectories under strong inter-vehicle coupling, and conduct reliable closed-loop safety and stability diagnostics for rare but high-impact events. To this end, we present risk-constrained diffusion with imitation priors (DRIFT), a mixed-autonomy traffic generation framework which unifies heterogeneity-aware conditional encoding, conditional diffusion-based executable trajectory generation, and progressive adversarial alignment enhanced by risk-aware long-tail feedback, thereby enabling traffic behaviors to be iteratively generated, filtered, selected, and validated within a closed-loop execution pipeline. In addition, a unified evaluation protocol is developed to jointly characterize safety, efficiency, and closed-loop stability across representative traffic scenarios and AV penetration regimes. Experimental results demonstrate that DRIFT achieves a strong safety-efficiency trade-off in closed-loop mixed-autonomy benchmarks, while further revealing the critical influence of candidate executability, online selection, and long-tail feedback on executable traffic evolution. Index Terms—mixed-autonomy, diffusion model, imitation learning, closed-loop evaluation, long-tail safety

I. I NTRODUCTION

T

HE rapid advancement of artificial intelligence (AI) and automotive engineering has fundamentally reshaped the research landscape of autonomous driving, where traffic-flow simulation and scenario generation have emerged as indispensable tools for the development and validation of nextgeneration autonomous-driving systems. To this end, representative platforms and generators, such as Flow [1], SceneDiffuser [2], TrafficMCTS [3], and Causal Driving Pattern Transfer (CDPT) [4], illustrate how such environments support technological advancement, benchmarking, and closedloop evaluation. Beyond serving as experimental testbeds, these platforms provide a systematic framework for assessing safety, efficiency, robustness, and generalization capabilities Y. Yu ([email protected]), M. Liwang ([email protected]), W. Zhu ([email protected]), X. Yi ([email protected]), and Y. Hong ([email protected]) are with the Department of Control Science and Engineering, the Shanghai Research Institute for Intelligent Autonomous Systems, the State Key Laboratory of Autonomous Intelligent Unmanned Systems, Tongji University, Shanghai, China. S. Hosseinalipour ([email protected]) is with the Department of Electrical Engineering, University at Buffalo-SUNY, USA. Corresponding author: Minghui Liwang.

of autonomous-driving algorithms under diverse traffic conditions, environmental factors, and operational uncertainties. Looking ahead, future intelligent transportation systems will increasingly operate in mixed-autonomy traffic environments where human-driven vehicles (HVs) and autonomous vehicles (AVs) coexist under dynamically changing AV penetration rates [5]–[12]. The resulting traffic ecosystem is characterized by substantial behavioral heterogeneity, strong inter-vehicle coupling, and non-stationary interaction patterns, which significantly complicate both traffic generation and evaluation. In this context, realistic microscopic behaviors are valuable only if they remain executable and induce plausible traffic evolution under closed-loop deployment. Therefore, evaluating a trafficgeneration framework solely through behavioral realism is insufficient. Instead, realism must be assessed jointly with executability, safety, efficiency, and traffic stability, necessitating generation models that are explicitly designed and evaluated within a closed-loop setting. Nevertheless, existing approaches address only subsets of the challenges arising in mixed-autonomy traffic. For example, rule-based and control-theoretic methods can effectively enforce safety and control objectives, but may struggle to scale to highly interactive multi-agent environments with complex behavioral diversity [5], [12], [13]. Data-driven approaches based on behavior cloning and imitation learning improve behavioral realism, yet often regress toward average driving patterns and fail to adequately capture diverse interaction modes [14], [15]. Adversarial imitation learning further enhances distribution matching but may suffer from training instability and limited exposure to rare safety-critical events [16]–[18]. More recently, diffusion-based methods have demonstrated strong capabilities in generating diverse traffic behaviors and trajectories; however, without explicit executability and feasibility considerations, generated trajectories may not remain physically realizable during closed-loop deployment [2], [19]– [21]. As a result, existing studies largely focus on individual aspects of realism, safety, or executability in isolation, while a unified framework that jointly models heterogeneous mixedautonomy behaviors, generates executable traffic evolution, and supports risk-aware closed-loop safety evaluation under one traffic-system protocol remains lacking. A. Core Motivation Motivated by the above limitations, we formulate three tightly coupled research questions (RQs) that define the central objectives of this work.

IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS

• RQ 1: How can traffic-generation models adapt to changing mixtures of HVs and AVs? As the proportion, or penetration, of AVs increases, the composition of traffic fundamentally changes. Specifically, traffic patterns observed in predominantly human-driven environments may differ significantly from those observed when AVs constitute a large fraction of the vehicle population. For example, differences in reaction time, car-following behavior, lane-changing decisions, and cooperation strategies can alter both individual driving behaviors and collective traffic dynamics. Consequently, a model trained under one AV penetration level may fail to generalize to another, resulting in degraded generation quality and unrealistic traffic evolution. Existing studies on mixedautonomy traffic, including flow-based approaches [1], gametheoretic formulations [5], and robust control methods [12], [13], have provided valuable insights into HV–AV interactions, but typically focus on specific penetration settings. Similarly, data-driven methods such as CATF [22], interaction-aware and driving-style-aware trajectory prediction [23], post-interactive trajectory prediction [24], and transformer-based multi-agent reinforcement learning (MARL) [25] improve context and interaction modeling, yet they generally do not explicitly account for how traffic behavior evolves as the composition of HVs and AVs changes. Therefore, a key challenge is to develop a traffic representation that simultaneously captures vehicle-specific characteristics and the global mixed-autonomy composition of the traffic system. To address this challenge, we develop a heterogeneity-aware conditioning mechanism that jointly encodes vehicle type and AV penetration information into a unified traffic representation. • RQ 2: How can generated traffic behaviors remain executable during closed-loop deployment? In many traffic scenarios, particularly at intersections, merges, and other conflictprone regions, multiple driving behaviors may appear reasonable for the same traffic situation. For example, a vehicle may choose to accelerate, yield, change lanes, or maintain its current trajectory depending on the actions of surrounding vehicles. While modern generative models can produce diverse behavior candidates, not all generated behaviors can be safely or physically executed once they are deployed in a closed-loop traffic environment. Specifically, a generated trajectory may appear realistic in isolation yet require infeasible accelerations, violate roadway constraints, create unsafe interactions with neighboring vehicles, or trigger conflicts that lead to unrealistic traffic evolution. Recent studies, including ControlTraj [19], Diff-RNTraj [20], Diffusion-Planner [21], and SceneDiffuser [2], have demonstrated the potential of diffusion-based and planning-oriented generation methods for producing controllable trajectories. Similarly, intent-aware prediction and geometric refinement techniques have improved the feasibility of generated trajectories in autonomous-driving applications [26]. However, these approaches generally focus on trajectory generation itself rather than ensuring that generated behaviors remain executable when interacting with other vehicles in a closed-loop traffic system. Therefore, a key challenge is to jointly account for vehicle dynamics, roadway constraints, and inter-vehicle interactions during behavior candidate generation. To address this challenge, we develop a conditional

2

generative framework that produces multiple behavior candidates and evaluates their executability through feasibilityaware rollout and online candidate selection prior to execution. • RQ 3: How can rare safety-critical events be systematically incorporated into traffic generation and evaluation? In mixedautonomy traffic, the most consequential failures often arise from rare but high-impact events, such as near-collisions, unsafe merges, deadlocks, and traffic instabilities that propagate through the surrounding traffic flow. Although these events occur infrequently, they can significantly affect the safety and reliability of the overall transportation system. Consequently, a realistic traffic-generation framework should not only reproduce common driving behaviors, but also identify, evaluate, and learn from safety-critical situations that emerge during closed-loop execution. Existing adversarial imitation learning (AIL) methods, including PS-TrajGAIL [14], DiffAIL [16], and FS-GAIL [17], improve behavioral distribution matching under challenging conditions, while TrafficMCTS [3], DragTraffic [27], and LD-Scene [28] enhance the generation of safety-critical scenarios and rare events. However, these approaches generally treat risk discovery, behavior generation, and performance evaluation as separate processes. As a result, risks identified during execution are rarely leveraged to influence future behavior candidate selection or trafficlevel assessment. Therefore, a key challenge is to establish a closed-loop mechanism that continuously identifies safetycritical behaviors, prioritizes them during candidate evaluation, and quantifies their impact on overall traffic performance. To address this challenge, we incorporate progressive adversarial alignment and targeted long-tail feedback into the rollout process, enabling risk discovery, candidate reweighting, and traffic-level robustness evaluation within a unified closed-loop framework. B. Novelty and Contribution We develop risk-constrained diffusion with imitation priors (DRIFT), an integrated traffic-generation framework that combines heterogeneity-aware behavior modeling, executable candidate diffusion, and risk-aware closed-loop evaluation for mixed-autonomy traffic systems. The main contributions of this work can be summarized as follows: • Unified formulation for mixed-autonomy traffic generation and evaluation: We formulate a closed-loop mixed-autonomy traffic-generation problem in which HVs and AVs coexist under dynamically varying AV penetration rates. The formulation explicitly captures three fundamental challenges of future mixed-autonomy systems: (i) adapting to changing traffic compositions, (ii) generating executable behaviors under strong inter-vehicle interactions, and (iii) evaluating traffic performance under safety-critical events. • Diffusion-based executable traffic-generation framework: DRIFT integrates heterogeneity-aware conditional encoding (Module A), conditional diffusion-based candidate generation (Module B), and progressive adversarial alignment with longtail feedback (Module C). Operating within a rolling-horizon framework, DRIFT generates multiple candidate behaviors, evaluates their executability, and selects actions for deployment in closed-loop traffic evolution.

IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS

• Risk-aware online candidate-selection mechanism: We develop a recurrent observation-generation-selection-executionfeedback pipeline, where candidate behaviors are evaluated according to behavioral realism, traffic efficiency, safety risk, and execution feasibility. This mechanism bridges offline generative modeling and online traffic evolution, enabling candidatelevel decisions to directly influence traffic-level outcomes. • Comprehensive traffic-level validation. We evaluate DRIFT across representative mixed-autonomy scenarios and AV penetration settings in a closed-loop Flow/SUMO simulation environment. Through comparisons with executable baselines, internal variants, and ablation studies, we assess how heterogeneity-aware conditioning, executable candidate generation, feasibility filtering, long-tail feedback, and online candidate selection affect safety, efficiency, executability, and penetration-wise traffic stability. II. L ITERATURE R EVIEW • Imitation Learning for Trajectory and Driving Behavior Generation. In this work, mixed-autonomy traffic generation is formulated as the generation of executable vehicle control actions that subsequently induce traffic-level trajectory evolution. Under this formulation, imitation learning has emerged as a natural paradigm for learning driving behaviors from observed traffic data. In this domain, early studies such as Flow [1] demonstrated the feasibility of learning-based control in mixed-autonomy environments, while PS-TrajGAIL [14] and Ctx2TrajGen [15] showed that adversarial and contextaware imitation learning can effectively capture realistic trajectory distributions and microscopic driving patterns. Subsequent efforts further improved the modeling of complex traffic interactions through multi-agent imitation learning [29], heterogeneous mixed-traffic coordination [12], and diffusionenhanced adversarial imitation learning frameworks such as DiffAIL [16]. Despite these advances, generating realistic driving behaviors in mixed-autonomy traffic remains fundamentally challenging. This is because future transportation systems must simultaneously account for heterogeneous HV–AV interactions, dynamically changing AV penetration rates, and strong coupling among neighboring vehicles. To address these challenges, recent studies have explored complementary directions, including heterogeneous interaction modeling [5], transformerbased MARL with spatio-temporal fusion [25], interactionaware and driving-style-aware trajectory prediction [23], postinteractive trajectory prediction [24], and robustness-oriented adversarial imitation learning frameworks such as FS-GAIL [17] and GMAIL [18]. While these approaches improve behavioral realism, interaction modeling, or training robustness, they typically address only specific aspects of mixed-autonomy traffic generation. In particular, they rarely account simultaneously for heterogeneous HV–AV behaviors, dynamically varying AV penetration rates, executable behavior generation, and closed-loop traffic evaluation. As a result, a unified imitation-learning-oriented framework that jointly addresses these challenges remains largely underexplored. • Diffusion Models for Traffic Generation. Diffusion models emerged as a powerful paradigm for traffic-scene genera-

3

tion and trajectory prediction due to their ability to capture complex and multi-modal driving behaviors. Existing studies have explored diffusion models from several complementary perspectives. For example, ControlTraj [19] and Diff-RNTraj [20] incorporated roadway topology and network constraints into trajectory generation, while Diffusion-Planner [21] investigated planning-oriented diffusion under closed-loop execution. CDPT [4] further leveraged diffusion-based distillation to transfer driving behaviors across traffic domains. At the scene level, methods such as DiffScene [30], SceneControl [31], SceneDiffuser [2], and LD-Scene [28] demonstrated the effectiveness of diffusion models for controllable traffic generation, safety-critical scenario construction, simulation rollout, and adversarial scenario synthesis. Collectively, these studies highlight the potential of diffusion models for generating diverse and realistic traffic behaviors. More recently, diffusion-based methods have also been extended to controllable generation, trajectory prediction, and heterogeneous traffic modeling. For instance, OGD/ECM guidance [32] focused on controllable trajectory generation, the intention-aware denoising diffusion framework in [33] incorporated driver intentions into trajectory prediction, and CATF [22] improved context-aware prediction in heterogeneous traffic environments. While these approaches improve diversity, controllability, or contextual awareness, they generally focus on generating realistic trajectories or traffic scenes rather than ensuring that generated behaviors remain executable during closed-loop traffic evolution. Furthermore, existing diffusion-based frameworks rarely account simultaneously for heterogeneous HV–AV interactions, dynamically varying AV penetration rates, and traffic-level safety and stability assessment. Consequently, developing diffusion-based trafficgeneration frameworks that jointly address mixed-autonomy heterogeneity, executable behavior generation, and closed-loop evaluation remains an open challenge. • Mixed-Autonomy and Heterogeneous Driving Model. Mixedautonomy traffic research seeks to understand how transportation systems evolve under the coexistence of HVs and AVs. Existing studies have investigated this problem from several system-level perspectives, including cooperative gametheoretic driving [5], robust AV–HV traffic control [13], hybrid-system stability analysis [6], safety-aware mixed-traffic control and learning [7], roadway-capacity analysis under heterogeneous trust assumptions [10], takeover-induced traffic stability [11], and the broader impacts of mixed autonomy on traffic flow, energy consumption, and environmental performance [8], [9]. Collectively, these works provide valuable insights into how mixed-autonomy traffic behaves at the network level and establish important theoretical foundations for traffic control and stability analysis. Complementing these system-level studies, a growing body of data-driven research has focused on modeling individual driving behaviors and vehicle interactions. Examples include transformer-based MARL with spatio-temporal fusion [25], interaction-aware and driving-style-aware trajectory prediction [23], post-interactive trajectory prediction [24], and mixed heterogeneous platoon analysis [34]. These studies have improved the understanding of behavioral diversity, vehicle coordination, and interaction

IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS

dynamics in heterogeneous traffic environments. Despite these advances, there remains a gap between trafficlevel analysis and behavior-level modeling. Specifically, existing approaches often focus on one of two objectives: understanding and optimizing traffic performance at the system level, or modeling realistic vehicle behaviors at the microscopic level. Consequently, they rarely provide a unified framework that simultaneously captures heterogeneous HV– AV behaviors, generates diverse and executable driving actions, and evaluates their impact on traffic safety, efficiency, and stability under closed-loop operation. To bridge this gap, we develop a heterogeneity-aware generative framework that explicitly connects microscopic driving behaviors with macroscopic traffic evolution in mixed-autonomy environments. • Long-Tail Safety and Scenario Generation. Long-tail safety analysis and corner-case generation have become essential components of trustworthy autonomous-driving evaluation. Existing studies have investigated how to identify, generate, and evaluate rare but high-impact traffic events, such as collisions, near-collisions, and other safety-critical driving situations, through dynamic test generation [35], edge-case synthesis [36], corner-case detection [37], and uncertaintyaware out-of-distribution safety assessment [38]. In parallel, TrafficMCTS [3], DragTraffic [27], and LD-Scene [28] have expanded the coverage of safety-critical scenarios through closed-loop search, controllable traffic generation, and adversarial scenario synthesis. Collectively, these efforts have significantly improved the ability to identify and generate rare but safety-critical traffic situations. However, generating hazardous scenarios is only one part of the challenge. In mixed-autonomy traffic systems, rare events such as near-collisions, unsafe merges, deadlocks, and traffic instabilities can propagate through subsequent vehicle interactions and significantly affect overall traffic performance. Consequently, it is important not only to discover such events, but also to evaluate how they influence traffic evolution during closed-loop execution. However, the aforementioned approaches typically focus on identifying or generating safetycritical scenarios, while the discovered risks are rarely incorporated into the subsequent behavior-generation and evaluation process. As a result, risk discovery, traffic generation, and traffic-level assessment often remain disconnected stages of the evaluation pipeline. To address this limitation, we integrate long-tail risk information directly into the training and evaluation process and establish a unified closed-loop framework in which safetycritical events can influence candidate generation, candidate selection, and traffic-level assessment. This enables a more comprehensive evaluation of safety, efficiency, and traffic stability under rare but high-impact events. A compact scope-positioning comparison of representative methods is provided in Appendix D. III. K EY D EFINITIONS AND C ORE M ODELING A. Key Definitions To ground our discussion, in the following, we first enumerate the key definitions used throughout this paper, while key notations are collected in Appendix E.

4

Fig. 1. Illustration of temporal-window definitions in this work. TSs are discrete points separated by ∆t. Given the current RI, we define a local PW Ttplan of future PSs, generate and rank a CS over the PW, execute only the first H exec PSs within the EW Ttexec , and then reach the next RI where the following closed-loop cycle begins.

• Time step (TS): We discretize the traffic evolution into TSs indexed by t ∈ T = {0, 1, . . . , T }. Also, the interval between two adjacent TSs is set by ∆t. • Replanning instant (RI): RIs form a subset of TSs, denoted by T replan ⊆ T . At each RI, the current traffic state is observed and a new closed-loop planning cycle starts. Except for the initial RI, this state is the simulator state obtained after applying the previously selected controls over the preceding EW. • Planning window (PW): Given an RI t, we define a future PW as: Ttplan = {t + 1, t + 2, . . . , t + H plan },

(1)

where Ttplan represents a local future window defined at RI t, and H plan is the number of future discrete steps within each PW. • Planning step (PS): A PS indicates a discrete future step inside PW Ttplan . Specifically, the h-th PS corresponds to TS t + h, while its index satisfies h ∈ {1, . . . , H plan }. • Execution window (EW): After planning, only the first H exec PSs of the PW are executed before the next RI is reached, where H exec ≤ H plan . This defines the EW as: Ttexec = {t + 1, t + 2, . . . , t + H exec }.

(2)

This design balances long-horizon interaction assessment with closed-loop adaptability by evaluating future traffic evolution over an extended horizon while executing only a short segment before incorporating new feedback. • Candidate and candidate set (CS): A candidate consists of an executable control sequence over the PW together with its induced future trajectory. For each active vehicle at an RI, a CS containing K candidates is generated. Candidates are subsequently evaluated according to a selection rule, and the selected candidate is executed over the EW. B. Modeling of Vehicle-Level State and Interaction Let V = {1, . . . , i, . . . , |V|} denote the set of all vehicles. We next define the vehicle-level state and interaction variables used throughout the framework. To distinguish between human-driven and autonomous operation, each vehicle i ∈ V at TS t is associated with a control-authority indicator κit ∈ {HV, AV}, where κit = HV and κit = AV indicate human control and autonomous driving at TS t, respectively. This formulation naturally accommodates mixed-autonomy

IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS

5

traffic as well as transitions between control modes, such as takeover scenarios. For a given TS t, let Ṽt denote the set of active vehicles in the network, where the HV/AV sets and AV penetration rate ρt are defined as: ṼtAV = {i ∈ Ṽt | κit = AV}, ṼtHV = {i ∈ Ṽt | κit = HV},

By construction, ṼtHV and ṼtAV form a disjoint partition of Ṽt at each TS. For a vehicle i ∈ Ṽt , we define its state vector as: (4)

where pix,t and piy,t are planar coordinates, vti denotes the speed, ait represents the longitudinal acceleration, and ψti is the heading angle. To capture temporal driving patterns, we further define the ego-history sequence as: h −1 hit = {xit−ℓ }L ℓ=0 ,

(5)

where Lh denotes the history length. Since vehicle behavior is strongly influenced by surrounding traffic, we define the neighborhood of vehicle i at TS t as: n o Nti = j ∈ Ṽt \ {i} distt (i, j) ≤ rn , (6) where distt (i, j) denotes the proximity distance used for neighborhood screening, and rn is the neighborhood radius. For each neighboring vehicle j ∈ Nti , we construct the relative interaction feature:  i,j i,j i,j i,j ∆xi,j t = ∆px,t , ∆py,t , ∆vt , ∆at , (7) i,j ⊤ ∆ψti,j , THWi,j , t , TTCt i,j j i,j j j i i i where ∆pi,j x,t = px,t −px,t , ∆py,t = py,t −py,t , ∆vt = vt −vt , i,j j i,j j ∆at = at − ait , and ∆ψt = ψt − ψti , which capture relative position, motion, orientation, and safety-related interactions between the two vehicles. In this feature vector, longitudinal safety is represented by the time headway (THW) and timeto-collision (TTC) measures, defined as:

di,j t THWi,j , t = max(vti , ε) and the TTC measure is defined as:   di,j  t , vti > vtj , TTCi,j max(vti − vtj , ε) t =  ∞, vti ≤ vtj ,

nit = {∆xi,j t }j∈Nti .

(10)

C. Modeling of Road Topology and Heterogeneous Local State (3)

ρt = |ṼtAV |/|Ṽt |.

xit = [pix,t , piy,t , vti , ait , ψti ]⊤ ,

the neighborhood interaction information of vehicle i at TS t is represented by:

(8)

The global road network is modeled as a lane-level directed graph, as shown by: G map = (L, E conn , E conf ),

where L is the lane set, E indicates lane connectivity, and E conf captures potential conflict relationships among lanes. Here, a conflict means that two lane movements geometrically overlap, merge, cross, or otherwise require coordinated occupancy, so simultaneous vehicle motion may induce collision risk, unsafe yielding, or merge-interaction constraints. Since each vehicle interacts with only a limited portion of the road network, we construct a vehicle-centered local topological graph for vehicle i at TS t as:   Gtmap,i = Lit , Etconn,i , Etconf,i , (12) where Lit ⊆ L is the set of lanes reachable by vehicle i within the prediction horizon H plan , while Etconn,i and Etconf,i are the corresponding connectivity and conflict edges. This local graph captures the roadway context most relevant to the future motion of vehicle i. To incorporate this information into the learning framework, we use a mapping η(·) to convert the local graph into a fixed-dimensional road-semantic representation, namely the reachable lanes around i together with their connectivity and conflict relations. For notational convenience, we denote this representation by: mit = η(Gtmap,i ),

where ε > 0 is a small constant used to avoid division by zero. Here, vehicle j denotes the interacting lead vehicle of vehicle i, and di,j t represents their lane-aligned spacing. Larger THW and TTC values correspond to larger longitudinal safety margins. Lateral conflicts, merge interactions, and intersectionrelated risks are represented in the main formulation through the conflict-edge set E conf in the lane-level topology graph and the candidate-level rollout diagnostics defined in Section III-D, which enter the feasible candidate set and the later dynamic/topological scoring term. Detailed normalization and implementation choices are provided in Appendix F. Finally,

(13)

which summarizes reachable lanes together with their connectivity and conflict structure. At the traffic level, the collective state of all active vehicles is represented by: Xt = {xit }i∈Ṽt ,

(14)

and the corresponding interaction relationships are described through the dynamic interaction graph: Gtint = (Ṽt , Et ),

(9)

(11)

conn

(15)

where Et = {⟨j, i⟩ | j ∈ Nti , i ∈ Ṽt } is the directed interaction-edge set at TS t. An edge ⟨j, i⟩ indicates that vehicle j belongs to the interaction neighborhood of vehicle i, and its edge feature is ∆xi,j t . Hence, the neighbor-interaction term nit = {∆xi,j t }j∈Nti is the set of edge features incident to vehicle i. Unlike G map and Gtmap,i that characterize roadway topology, Gtint captures vehicle-to-vehicle traffic interactions. Based on the above-defined quantities, we define the heterogeneous local state of vehicle i as:   (16) sit = hit , nit , mit , κit , which serves as the fundamental representation used for behavior generation and decision making in our later discussions.

IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS

6

D. Modeling of Candidate Representation Having defined the heterogeneous local state and the planning/execution horizons, we next introduce the notion of a candidate behavior. In DRIFT, a candidate represents a potential future action sequence for a vehicle together with the traffic trajectory induced by executing those actions. To predict the evolution of a candidate before deployment, we introduce the vehicle-level transition function f (x, u, s), which maps the current vehicle state, control input, and local traffic context to the next predicted state. This transition model is used to roll out candidate behaviors and evaluate their feasibility prior to execution; in implementation, it serves as a candidate-rollout proxy aligned with the Flow/SUMO state variables. In contrast, the scene-level transition function F (·), introduced later in Section III-E and Eq. (25), represents the actual simulator update after a candidate has been selected and executed. At an RI t ∈ T replan , the k-th candidate for vehicle i is represented by an executable control sequence over the PW: plan

i,k H Ui,k t = {ut+h−1 }h=1 ,

k ∈ {1, . . . , K},

(17)

where ui,k t+h−1 denotes the control action applied at the hth PS of candidate k. The rollout operator Rolloutf is the finite-horizon composition of f (·) along the candidate control sequence, initialized and updated as: i bi,k x t = xt ,   i,k i,k i,k bi,k b b x = f x , u , s t+h t+h−1 t+h−1 t+h−1 ,

k=1

(20)

To determine whether a generated candidate can be safely executed, we introduce the topology-induced feasible trajectory set Ω(G map ), which contains trajectories consistent with roadway topology, lane connectivity, road boundaries, and conflict constraints. Let umin /umax and v min /v max denote the i,k admissible control and speed bounds, and let vt+h be the i,k bt+h . For this rolled-out candidate, let speed component of x i,k THWi,k t+h and TTCt+h denote the future THW/TTC values, and we define: THWi,k,min = t TTCi,k,min = t

min

THWi,k t+h ,

min

TTCi,k t+h ,

1≤h≤H plan 1≤h≤H plan

+

where dsafe > 0 is the scenario-specific safety clearance, [z]+ = max(z, 0), and I(·) is the indicator function. Using the admissibility and safety requirements above, we define the feasible CS Ωi,feas , which contains candidates satisfying t control limits, speed limits, roadway-topology and conflictclearance constraints, and minimum THW/TTC safety thresholds throughout the PW. Consequently, each candidate in Ωi,feas is locally physically executable and safety-compliant t with respect to the considered constraints. Specifically, letting δ THW and δ TTC be the corresponding longitudinal safety thresholds, and using ⪯ for elementwise vector inequalities, the feasible CS is defined as: n  i,k i,k Ωi,feas = U , τ ∈ Cti t t t max umin ⪯ ui,k , t+h−1 ⪯ u i,k v min ≤ vt+h ≤ v max ,

(21)

which represent the minimum safety margins encountered by candidate k during rollout. To cover lateral and conflict-zone executability, we use the PW-level lane-topology violation rate rti,k,map and the minimum predicted clearance di,k,min to t

∀h ∈ {1, . . . , H plan },

∀h ∈ {1, . . . , H plan }, o ,

map τ i,k ), t ∈ Ω(G

rti,k,map = 0,

rti,k,col = 0,

THWi,k,min ≥ δ THW , t

1 ≤ h ≤ H plan , (18) i where b si,k t+h−1 is constructed in the same form as st at each rollout step. The operator then returns the predicted states over the PW:   i,k i H plan τ i,k = Rollout x , U = {b xi,k (19) f t t t t+h }h=1 . Thus, a CS for vehicle i at RI t is defined as: n oK i,k Cti = Ui,k . t ,τt

the lane-aligned lead vehicle or any conflict-edge vehicle in Etconf,i . The clearance-based collision/conflict diagnostic is: # "   dsafe − di,k,min i,k,min i,k,col t + I d ≤ 0 , (22) rt = t dsafe

TTCi,k,min ≥ δ TTC t

(23) By construction, Ωi,feas ⊆ Cti . The resulting feasible CS t is then used under closed-loop dynamics specified later in Section III-E. E. Modeling of Closed-Loop Dynamics and State Transitions Given the candidate representation above, we now model how the selected candidate induces closed-loop traffic evolution under receding-horizon execution. At each RI, a CS is generated and evaluated for every active vehicle using the rolled-out trajectories, feasibility conditions, and safety/topology diagnostics defined in Section III-D. After candidate selection, only the portion of the selected candidate contained within the EW is applied to the environment, while the remaining planning horizon is used solely for future-state assessment during candidate evaluation. At the vehicle level, the selected EW segment is represented with the same one-step relation f (·) used for candidate rollout:  xit+h = f xit+h−1 , uit+h−1 , sit+h−1 , 1 ≤ h ≤ H exec , (24) This relation records the per-vehicle state sequence of the executed segment. We define the scene-level transition function F(·) as the simulator-consistent closed-loop environment update: Xt+H exec = F(Xt , Uexec , G map ). (25) t Here, Uexec = {uit+h−1 | i ∈ Ṽt , 1 ≤ h ≤ H exec } t denotes the controls actually executed during the EW, and F(·) represents the resulting scene-level simulator transition. By repeatedly performing traffic-state observation, candidate generation, candidate selection, execution over the EW, and

IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS

7

environment feedback at successive RIs, the framework produces a complete closed-loop traffic rollout. Mathematically, we denote this rollout by:   ζ = Xt , {Cti }i∈Ṽt , k∗t , Uexec , Xt+H exec t∈T replan , (26) t where k∗t = {kti,∗ }i∈Ṽt collects the selected candidate indices for active vehicles at RI t. IV. P ROBLEM F ORMULATION AND D ECOMPOSITION Building on the modeling in Section III, we next formulate the core closed-loop traffic generation problem and then derive tractable subproblems to facilitate its solution. A. Core Closed-Loop Generation Problem

− ω risk Rti,k − ω dyn Dti,k ,

(27)

P0 :

max Θ, k

s.t.

The objective of DRIFT is to generate mixed-autonomy traffic rollouts that simultaneously exhibit realistic driving behaviors, maintain traffic efficiency, satisfy safety requirements, and remain physically executable during closed-loop deployment. As described in Section III-E, traffic evolution is modeled through a receding-horizon process in which candidate behaviors are generated, filtered for feasibility, selected for execution, and subsequently incorporated into the next replanning cycle through environment feedback. Consequently, the quality of the resulting traffic rollout depends not only on the generated candidates themselves, but also on how traffic context is represented, how candidate behaviors are produced, and how the generated behaviors are aligned with realistic and safety-critical traffic patterns. To capture these three functionalities, DRIFT consists of three trainable modules. Module A learns a heterogeneous traffic representation by encoding vehicle history, neighboring interactions, roadway semantics, and control authority. Module B generates candidate control sequences conditioned on the representation learned by Module A. Module C performs risk-aware distribution alignment by encouraging generated behaviors to remain consistent with expert traffic patterns while emphasizing safetycritical and long-tail traffic events. Let Θ = {ϕA , ϕB , ϕC } denote the corresponding trainable parameter sets associated with heterogeneity-aware conditioning, candidate generation, and risk-aware distribution correction, respectively. For each vehicle i at RI t, let kti,∗ denote the candidate selected for execution. Let k = {kti,∗ | t ∈ T replan , i ∈ Ṽt } collect the rollout-level sequence of selected execution indices. Collectively, this sequence of selected candidates determines the resulting closed-loop traffic rollout. Given a parameter set Θ and a candidate-selection policy whose realized rolloutlevel sequence is k, the induced distribution of closed-loop traffic rollouts is denoted by Proll Θ,k , where k corresponds to the executed candidate choices over the rollout, while Pexp denotes the expert driving-behavior distribution used as a realism reference. To evaluate candidate quality during rollout, we assign each candidate a composite score: Jti,k = ω sim Sti,k + ω eff Eti,k

where Sti,k , Eti,k , Rti,k , and Dti,k quantify behavioral consistency with expert driving patterns, traffic-efficiency utility, safety risk, and execution difficulty, respectively. The four weights/coefficients in Eq. (27) are nonnegative and control the relative importance of the score components. Based on these definitions, we formulate our core optimization problem of interest that seeks to maximize the cumulative quality of the selected candidates over the entire rollout while simultaneously encouraging agreement with expert driving behaviors and emphasizing safety-critical traffic situations: Eζ∼Proll 

X

X

Θ,k

i,∗

i,k γ Jt t t

 − β real ∆real − β tail ∆tail ,

t∈T replan i∈Ṽt

kti,∗ ∈ {1, . . . , K},  i,∗ i,∗ i,k i,k , Ut t , τ t t ∈ Ωi,feas t   i,∗ i,kt , sit+h−1 , xit+h = f xit+h−1 , ut+h−1 1 ≤ h ≤ H exec , Xt+H exec = F(Xt , Uexec,∗ , G map ) . t

(28) (28a) (28b)

(28c) (28d)

In P0 , the optimization variables are Θ and k: Θ collects the trainable module parameters learned offline, while k collects the rollout-level selected candidate indices over all RI–vehicle pairs. Here, γ ∈ (0, 1] denotes the discount factor used in the objective of P0 to weight score contributions across successive RIs; γ = 1 assigns equal weight to all RIs, whereas γ < 1 gradually downweights later rollout steps. The construction, normalization, and implementation of the four candidate-score components in Eq. (27) are detailed in Appendix F. The two target penalties in (28) are defined as:    exp ∆real = dreal Proll − ϵreal + , (29) Θ,k , P   tail   tail tail ∆ = CVaRα R (ζ) − ϵ + , (30) where [z]+ = max(z, 0), and coefficients β real , β tail ≥ 0 balance rollout distribution alignment and tail-risk reduction with local candidate utility in (28). We use dreal (·, ·) to measure the discrepancy between the induced rollout distribution and the expert/reference rollout distribution, and ϵreal to describe the desired upper level of discrepancy. Moreover, Rtail (ζ) aggregates rollout-level rare-event risk over the complete closedloop rollout ζ, including safety-risk accumulation, execution violations, and severe events such as collision, deadlock, or unstable traffic degradation; CVaRα (·) denotes conditional value-at-risk, a standard upper-tail risk measure at confidence level α [39], while ϵtail denotes the target upper level of tail i,kti,∗ risk. Also, in (28d), Uexec,∗ = {ut+h−1 | i ∈ Ṽt , 1 ≤ h ≤ t H exec } collects the selected controls executed within the EW. Particularly, constraint (28a) specifies that each selected index must be one of the generated candidates, and (28b) requires the selected candidate to belong to the local feasible set defined in Section III-D, which includes actuation, speed, lanetopology, predicted conflict-clearance, and THW/TTC safety requirements. Constraints (28c) and (28d) impose vehiclelevel and scene-level closed-loop state transitions. The target penalties (29) and (30), which are integrated within the objective function in (28), serve as soft rollout-level objectives

IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS

for distribution alignment and tail-risk control. They guide the finite-sample alignment loss and long-tail feedback introduced later, but they should not be read as closed-form safety guarantees. By contrast, constraints (28a)–(28d) define the operational requirements for selection, feasibility, vehicle-level rollout, and scene-level simulator transition. These constraints apply at every RI t ∈ T replan and for every active vehicle i ∈ Ṽt , so kti,∗ denotes the selected execution index for that specific RI–vehicle pair. B. Hardness Analysis and Problem Decomposition Hardness of P0 . Problem P0 serves as a system-level formulation that captures the overall objectives of DRIFT, including behavioral realism, traffic efficiency, safety, executability, and long-tail robustness. However, these objectives are evaluated at different granularities. Candidate-selection decisions are made locally for individual vehicles at each replanning instant, whereas realism is assessed over complete traffic rollouts and tail risk is measured through the occurrence of rare safety-critical events across many rollouts. Consequently, the optimization variables and objectives are inherently coupled across both local decision-making and long-horizon traffic evolution. This coupling makes direct optimization of P0 impractical. Specifically, the candidate-selection decisions depend on generated candidate sets and real-time traffic feedback, while the realism and tail-risk terms are defined through rollout-level and distribution-level statistics that are estimated from finite training samples. As a result, directly solving P0 would require jointly optimizing continuous model parameters, discrete candidate-selection decisions, simulator-driven state transitions, and rare-event safety objectives within a single stochastic optimization framework. Problem decomposition. To obtain a tractable solution, we decompose P0 into a sequence of subproblems that align with the operational workflow of DRIFT. Specifically, the framework consists of an offline training stage and an online closed-loop inference stage. During offline training, three complementary subproblems are used to learn the parameter blocks in Θ defined in Section IV-A: P1 learns a heterogeneityaware representation that captures vehicle history, traffic interactions, roadway context, and control authority; P2 learns

Fig. 2. Overall workflow of DRIFT, separating offline training from online closed-loop rollout. During offline training, Module A encodes heterogeneous local traffic states into condition vectors, Module B learns executable candidate generation, Module C provides distribution-alignment and long-tail feedback. During online rollout, trained modules are fixed; feasible candidates are scored, selected, executed within the EW, and fed back to the next RI.

8

the conditional candidate-generation mechanism responsible for producing future control sequences and their associated rollouts; and P3 performs risk-aware distribution alignment by refining the generated behaviors using expert-driving information and long-tail safety feedback. During online closedloop execution, the learned modules are fixed: at each RI, a finite CS is generated, infeasible candidates are removed through feasibility filtering, and Psel selects the candidate to be executed, i.e., k ∗ . The selected actions are then applied to the environment, producing the next traffic state and initiating the subsequent replanning cycle. Together, these subproblems shape the induced rollout distribution Proll Θ,k and approximate the representation, generation, selection, and robustness requirements encoded in P0 . In the follwoing, We introduce the subproblems arising from the decomposition and subsequently present their solutions in Section V. We begin by describing the offline representation-learning stage. The objective of P1 is to learn a heterogeneous traffic representation cit = gϕA (sit ), which encodes vehicle history, neighboring interactions, roadway semantics, control authority, and penetration-related information into a compact conditional representation. To this end, we formulate: P1 :

min Lrepr (ϕA ). ϕA

(31)

Unlike the subsequent subproblems, P1 does not generate candidate CSs or traffic rollouts. Instead, it focuses solely on learning informative representations that capture the heterogeneous characteristics of mixed-autonomy traffic. Consequently, execution-related constraints, such as feasibility, safety, and rollout consistency, are not imposed at this stage. Rather, the quality of the learned representation is governed through the representation-learning objective Lrepr , whose specific design is presented in Section V. We next consider the candidate-generation stage. Building upon the heterogeneous representation learned by P1 , the objective of P2 is to generate diverse candidate control sequences and their corresponding future traffic trajectories. To this end, we formulate: P2 :

min Lgen (ϕB )

(32)

s.t.

(32a)

ϕB

(28b), (28c),

The constraint in (32a) captures the feasibility and dynamictransition requirements of the generated candidates. Unlike Psel , which operates during online rollout, P2 is trained offline and does not determine which candidate will ultimately be executed. Instead, its role is to learn a generation mechanism that produces candidate behaviors that are diverse, dynamically consistent, and likely to satisfy the feasibility constraints. Accordingly, the requirements in (28b) and (28c) are enforced through rollout-based training objectives defined in Lgen , which is later concretized in Section V. Finally, we consider the distribution-alignment stage. While P2 learns to generate feasible and diverse candidate behaviors, it does not explicitly ensure that the resulting traffic rollouts remain aligned with expert driving patterns or adequately em-

IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS

9

phasize rare safety-critical events. To address these objectives, we formulate: P3 :

min Lalign,(e) (ϕB , ϕC ). ϕC

(33)

Equation (33) is the finite-sample training objective used for the rollout-level alignment term in (29). For each training pair (t, i), Module C compares the expert trajectory τ i,exp with t K the generated candidates {b τ i,k } through the alignment t k=1 loss Lalign,(e) . The long-tail part is handled separately through candidate-level diagnostics. Specifically, each generated candidate has a safety-risk score Rti,k and a dynamic/topological violation score Dti,k . Candidates with larger Rti,k + Dti,k are assigned larger reweighting coefficients in Module C and therefore receive larger weights in the next Module-B generator update. In this way, the distribution-alignment term in (29) is implemented by Lalign,(e) , while the tail-risk term in (30) is approximated by deterministic reweighting of finite generated candidates according to their candidate-level risk and violation scores. Thus, P3 does not solve the CVaR term in closed form; it provides a finite-sample mechanism that couples expert alignment with deterministic long-tail reweighting for subsequent generator updates. After the learnable modules have produced candidate controls and scoring information, the online closed-loop inference stage resolves the actually executed candidate. For each active vehicle i at RI t, a finite CS is available and infeasible candidates are removed according to Ωi,feas . This yields the t feasible candidate-index set: i,k i,feas Kti,feas = {k | (Ui,k }. t , τ t ) ∈ Ωt

(34)

Because Kti,feas is finite, the online local selection problem can be solved by direct enumeration. For this fixed RI-vehicle pair (t, i), we write k ∗ as a local shorthand for kti,∗ : each feasible candidate is scored according to the value of (27), and the candidate with the largest score is executed. This can be formulated as follows: Psel :

k ∗ = arg max Jti,k s.t.

k i,feas k ∈ Kt .

(35) (35a)

We note that no learnable parameter is updated in Psel ; its input is the generated CS, the feasible subset when nonempty, and the score values, and its output is only the executed index k ∗ for the current RI-vehicle pair. If Kti,feas = ∅, all generated candidates violate at least one condition in Ωi,feas . In this t rare case, the online controller applies a deterministic fallback rather than terminating the rollout. The fallback keeps the nonrelaxed simulator-admissibility checks active, namely executable control bounds, speed bounds, topology consistency, and predicted noncollision/conflict clearance as represented by rti,k,map = 0 and rti,k,col = 0. Among candidates satisfying these checks, it does not use the realism and efficiency rewards Sti,k and Eti,k ; instead, it selects the candidate with the smallest risk–violation score ω risk Rti,k + ω dyn Dti,k , where Rti,k captures longitudinal safety-margin shortfall and Dti,k captures dynamic/topological execution penalties. If no generated candidate satisfies the simulator-admissibility checks,

DRIFT delegates the current EW to the safe-velocity/failsafe action provided by the Flow/SUMO interface, which is computed from the simulator’s car-following and collisionavoidance logic for the current traffic state. This fallback is used only to preserve closed-loop executability under rare infeasible candidate sets and is not treated as an additional learnable module. Together, P1 –P3 make the core closedloop problem trainable, while Psel handles online candidate execution. V. D ESIGN OF DRIFT Hereafter, we detail the components of DRIFT that collectively solve the subproblems formulated in Section IV-B. An overall workflow of DRIFT is summarized in Appendix A. A. Module A: Heterogeneity-Aware Condition Encoding Module A solves P1 by mapping the heterogeneous local state sit into a compact condition vector cit for subsequent candidate generation. Specifically, Module A entails a set of encoders that process the four sources defined in Section III-C: ego history, neighborhood interaction, map semantics, and mixed-autonomy attributes: zih,t = φh (hit ), X i,j zin,t = αt φn (∆xi,j t ), j∈Nti

(36)

zim,t = φm (mit ), zir,t = eκ (κit ) + eρ (ρt ), where the encoders φh (·), φn (·), and φm (·) map the egohistory, neighbor-interaction, and road-semantic inputs into vector representations, respectively, and αti,j is a normalized interaction-attention weight that reflects the relative importance of neighboring vehicle j. The resulting representations from the four information sources are then concatenated and transformed into a unified condition vector:  gϕA (sit ) = MLP [zih,t ; zin,t ; zim,t ; zir,t ] , (37) where MLP denotes a multilayer perceptron. The output cit = gϕA (sit ) serves as the condition representation passed to Module B. To make the learned representation sensitive to mixed-autonomy heterogeneity rather than only local vehicle motion, each training sample (t, i) is assigned a coarse behavioral-interaction tag bit , constructed from the vehicle’s control authority, short-horizon motion characteristics, and local interaction patterns. This tag is used only during representation learning to identify similar and dissimilar training samples as follows: (t′ , j) ∈ Sti,+ ⇐⇒ bjt′ = bit , (t′ , j) ∈ Sti,− ⇐⇒ bjt′ ̸= bit ,

(38)

where (t′ , j) is drawn from the same training pool. Module A is trained using the objective: Lrepr = Lstb + λsep Lsep + λreg ∥ϕA ∥22 ,

(39)

IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS

10

Algorithm 1: Module A Training for HeterogeneityAware Condition Encoding

recover the original control sequence from the noisy sample. Specifically, a neural predictor estimates the injected noise according to:   i,k b (44) ξ d = PredϕB ydi,k , d, cit ,

: training time-vehicle samples {(t, i, sit , bit )}, encoder parameters ϕA Output : updated encoder parameters ϕA Input

repeat sample a mini-batch of time-vehicle samples (t, i) 3 for each time-vehicle sample (t, i) in the mini-batch do 4 compute cit = gϕA (sit ) from the four state branches 5 form Sti,+ and Sti,− according to bit 6 compute the stability and separation losses for this query sample

1

from which the clean control and induced trajectory are reconstructed as:  i,k 1  i,k √ b0i,k = √ yd − 1 − ᾱd b ξd , y ᾱd (45) i,k b U = vec−1 (b yi,k ),

2

7 8

t

aggregate Lrepr and update ϕA by backpropagation until the Module-A stopping criterion is met

Lstb =

1

X

|Sti,+ | ′ (t ,j)∈S i,+

∥cit − cjt′ ∥22 ,

t

Lsep =

1 |Sti,− |

 sep 2 m − ∥cit − cjt′ ∥2 + ,

X

0

and the corresponding trajectory is obtained by rolling the controls forward through the transition model:   i b i,k τb i,k (46) t = Rollout xt , Ut ; f . (40)

(t′ ,j)∈Sti,−

where Lstb encourages samples with similar behavioralinteraction tags to have similar condition representations, while Lsep encourages representations associated with different tags to remain distinguishable under margin msep . Thus, Module A provides a penetration- and interaction-aware condition prior that serves as the input to the executable candidate generator. Its training procedure is summarized in Algorithm 1.

Thus, the diffusion model generates candidate control actions, while the resulting trajectories are obtained through the same rollout mechanism used by the closed-loop system. During training, the reference control sequence is taken from the control library or reconstructed from the expert/reference trajectory under the same transition model. Let wti,k ≥ 1 denote a candidate-specific training weight that controls the contribution of candidate k to the generator loss. It is initialized to one and later replaced by the Module-C long-tail coefficient χi,k t , which increases the influence of safety-critical candidates during training. The generator objective is: Lgen = Lnoise + λfea Lfea ,

B. Module B: Conditional Diffusion Trajectory Generation Module B solves P2 by generating K diverse executable candidates for each RI-vehicle query. Following topologyconstrained diffusion generation [19] and diffusion-based closed-loop planning [21], DRIFT applies diffusion to the candidate control sequence rather than to a purely geometric trajectory, so that the generated samples can be directly rolled out, feasibility-checked, and executed within the recedinghorizon framework. For the k-th candidate, we consider:   y0i,k = vec Ui,k , (41) t plan

i,k H where Ui,k t = {ut+h−1 }h=1 is the candidate control sequence and vec(·) stacks all control inputs into a single vector representation. With diffusion step d = 1, . . . , Ldiff , the forward process follows the standard DDPM form [40], [41]:    √ i,k i,k αd yd−1 , βd I , (42) q ydi,k | yd−1 =N

meaning that the noisy sample at step d is centered at the √ i,k scaled previous sample αd yd−1 , while independent Gaussian noise with variance βd is injected into each dimension. Hence, the forward diffusion process gradually removes information from the original control sequence while accumulating noise with the following closed-form relationship: ydi,k =

ᾱd y0i,k +

1 − ᾱd ξ i,k ,

ᾱd =

d Y

αr ,

(43)

r=1

where αd = 1 − βd and ξ i,k ∼ N (0, I). The reverse process uses the condition representation learned by Module A to

(47)

where the denoising loss is:   2 Lnoise = Ei,t,k,d,ξ wti,k ξ i,k − PredϕB (ydi,k , d, cit ) , 2

(48) is the standard diffusion denoising loss that trains the model to recover the injected noise. In addition, Lfea penalizes generated candidates whose rolled-out trajectories violate the executablecandidate requirements defined in Section IV. For a rolled-out candidate, the topological deviation is defined as: ∆

topo

(τ i,k t )=

1 H plan

plan H X

  map bi,k I x ∈ / Ω t+h t+h ,

(49)

h=1

where Ωmap t+h denotes the map-admissible vehicle-state set at TS t + h induced by G map , including road-boundary consistency, reachable lane membership, lane-connectivity constraints, and conflict-edge occupancy consistency. Thus, ∆topo (τ i,k t ) is the soft training counterpart of the lane-topology violation rate i,k rti,k,map used in the online feasible-set definition. With vt+h i,k,col obtained from rollout and rt measuring predicted collision/conflict exposure, the boundary loss is defined as: i,k max ℓi,k,bd ]+ ∥1 t+h = ∥[ut+h−1 − u

+ ∥[umin − ui,k t+h−1 ]+ ∥1

(50)

i,k i,k + [vt+h − v max ]+ + [v min − vt+h ]+ ,

and the safety-margin loss is: ℓi,k,safe = [δ THW − THWi,k,min ]+ + [δ TTC − TTCi,k,min ]+ t t t (51)

IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS

11

τb i,k be the k-th generated trajectory. To gradually introduce t the adversarial objective during training, we define:  e  λadv,(e) = min 1, warm , (53) E and define the base alignment loss as: "   align L = E(t,i) − log σ Dϑ (τ i,exp , sit ) t

Algorithm 2: Module B Training and Candidate Generation : time-vehicle sample batch {(t, i, sit , xit )}, reference controls or trajectories, cached weights {wti,k }, generator parameters ϕB , frozen encoder ϕA Output : updated generator parameters ϕB

Input

repeat sample a time-vehicle mini-batch 3 for each time-vehicle sample (t, i) in the mini-batch do 4 compute the condition vector cit = gϕA (sit ) 5 for k ← 1 to K do 6 form the clean/reference control vector y0i,k = vec(Ui,k t ) i,k 7 sample (d, ξi,k ), construct ydi,k , and predict b ξd i,k i,k b bt 8 reconstruct Ut and roll it out into τ 9 accumulate the weighted denoising and feasibility losses

1

2

# K  1 X  i,k i  − , log 1 − σ Dϑ (b τ t , st ) K k=1

form Lgen = Lnoise + λfea Lfea update ϕB by backpropagation 12 until the Module-B stopping criterion is met 10

11

as the THW/TTC safety-margin violation penalty. The feasibility objective is then obtained as: " H plan 1 X i,k,bd i,k fea ℓt+h L = Ei,t,k wt H plan h=1 !# col i,k,col + λtopo ∆topo (τ i,k + λsafe ℓi,k,safe t ) + λ rt t

(54)

,

(52) where [·]+ is the positive part. Consequently, Module B learns to generate control sequences that are both diffusion-consistent and executable, while encouraging their rolled-out trajectories to satisfy actuation limits, speed limits, roadway-topology constraints, and THW/TTC safety requirements. During online rollout, K candidates are sampled, rolled out, filtered by Ωi,feas , scored according to (27), and selected through t Psel . This candidate-first mechanism is compatible with postinteraction refinement in trajectory prediction, where multiple interaction-consistent hypotheses are preserved before final selection [24]. Algorithm 2 summarizes the procedure. C. Module C: Progressive Adversarial Imitation with LongTail Risk Enhancement Module C addresses P3 by supplementing the candidate generator with distribution alignment and long-tail risk feedback. Its goal is to encourage generated candidates to remain consistent with expert driving behaviors while increasing attention to rare safety-critical situations. During training, Module C learns a state-conditioned discriminator that distinguishes expert trajectories from generated trajectories under the same traffic context. During inference, the trained discriminator is reused as the behavior-similarity scorer in (27). To accomplish this, Module C compares generated candidate trajectories against expert driving trajectories and gradually introduces an adversarial alignment objective during training. Specifically, let τ i,exp be the expert/reference trajectory and t

where Dϑ (τ , s) is a discriminator network that outputs a realism score indicating how closely trajectory τ resembles expert driving behavior under state s, and σ(·) is the Sigmoid function. This adversarial formulation follows imitation-learning principles [42] and is conceptually related to diffusionenhanced AIL [16]. However, unlike conventional adversarial imitation learning, the discriminator output is ultimately used to evaluate executable candidate trajectories during candidate selection. Module C is trained according to the objective: Lalign,(e) = λadv,(e) Lalign .

(55)

Here, ϕC denotes the complete set of Module-C parameters, while ϑ ⊆ ϕC specifically denotes the discriminator parameters. The warm-up schedule defined by λadv,(e) and E warm only describes the progressive activation of the adversarial loss. To emphasize rare but safety-critical traffic situations and connect candidate-level failures with the rollout-level tail-risk penalty in (30), Module C first computes a deterministic riskaware coefficient: i,k i,k  χi,k , (56) t = 1 + β Rt + D t where Rti,k measures candidate-level safety-risk exposure and Dti,k measures candidate-level dynamic/topological operational difficulty, with the normalized score aggregation detailed in Appendix F. The coefficient χi,k t is not a learnable parameter; it is computed directly from the measured Rti,k and Dti,k for the current generated candidate. Larger values of χi,k t therefore assign greater importance to candidates associated with elevated safety risk or operational difficulty. Using this deterministic coefficient, the corresponding long-tail weighted discrepancy is: " # K 1 X i,k i,k i,exp tail L = E(t,i) χt τb t − τ t . (57) K 1 k=1

Equation (33) remains the objective used to update ϕC through Lalign,(e) . By contrast, Ltail is not used to learn χi,k t or as a second optimizer for ϕC ; it only describes the weighted mismatch induced by the deterministic coefficients in the current minibatch. After each Module-C update, the computed coefficients K {χi,k t }k=1 are cached and used as the next Module-B candidate weights wti,k . Consequently, candidates associated with safetycritical events receive greater emphasis during subsequent generator updates. This stagewise feedback mechanism allows rare but operationally important traffic situations to influence future candidate generation, a motivation similar to that of

IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS

12

Algorithm 3: Module C Stagewise Alignment and Long-Tail Reweighting : expert trajectories {τ i,exp }, generated candidates t i }, fixed generator ϕ , Module-C {b τ i,k }, local states {s B t t parameters ϕC Output : updated Module-C parameters ϕC and cached reweighting coefficients χi,k t Input

repeat advance the epoch counter e and set λadv,(e) = min(1, e/E warm ) 3 for each mini-batch of time-vehicle samples (t, i) do 4 fetch expert and generated trajectories with local state sit 5 for k ← 1 to K do 6 evaluate discriminator realism and candidate risk/violation terms 7 compute χi,k = 1 + β(Rti,k + Dti,k ) t

1

2

8 9 10

update ϕC with Lalign,(e) while keeping ϕB fixed K cache {χi,k t }k=1 for the next Module-B update until the Module-C stopping criterion is met

controllable adversarial scenario generation [28]. During online rollout, Module C performs no adversarial updates. The discriminator output Dϑ contributes to behavior similarity, while Rti,k and Dti,k remain explicit candidate-selection terms in Psel . Algorithm 3 summarizes this procedure. VI. E XPERIMENTS A. Experimental Setup We evaluate DRIFT in closed-loop mixed-autonomy simulation, focusing on three questions: efficiency across AV penetration rates, safety under merging and strong-interaction disturbances, and the contribution of each core module to traffic-level outcomes. All methods are executed in the same Flow/SUMO feedback loop [1], and performance is assessed by induced traffic evolution under executable controls rather than offline trajectory similarity. All experiments follow the settings below. • Experimental platform: All experiments are implemented in Flow/SUMO [1]. At each RI, the controller observes the current traffic state and outputs the next executable action segment. After execution, the environment immediately enters the next HV/AV interaction round, so the evaluation preserves feedback effects such as hard braking, local congestion, disturbance propagation, and merge conflicts. • Traffic scenarios: We consider three Flow/SUMO mixedautonomy benchmark traffic scenarios. Ring follows the closed-road setting widely used for traffic-wave stabilization with AVs [43] and tests disturbance propagation and stable car-following. Figure-eight (F8) is the corresponding Flow benchmark for strong local interaction in a closed network. Merge is the highway-merge benchmark for yield coordination, conflict resolution, and outflow in an open network. These scenarios represent closed-network disturbance propagation, closed-network local conflict, and opennetwork merging; larger urban networks are outside the main experimental claim of this paper. • Real-trajectory datasets: The HV behavioral prior is calibrated from highD [44], rounD [45], exiD [46], and inD

Fig. 3. Representative benchmark scenarios. Blue vehicles denote AVs, gray vehicles denote HVs, and orange regions indicate disturbance, interaction, or merge-conflict areas.

[47]. These datasets cover highway, roundabout, highwayramp, and urban-intersection driving segments, and are used to estimate HV kinematic distributions, local-interaction features, and risk statistics. • AV penetration setting: Closed-loop evaluation is conducted under 6 AV penetration rates, namely 0/20/40/60/80/100%. Each scenario-method-penetration cell is repeated for five closed-loop episodes. Flow-RL is not applicable at 0% penetration because it requires at least one RL-controlled vehicle. • HV behavior extraction and calibration: Rather than replaying recorded trajectories frame by frame, we extract vehicle class, speed, longitudinal acceleration, longitudinal/lateral velocity, THW, TTC, and lane-change indicators from the raw tracks and metadata files. For each scenario s, the calibrated HV prior is represented as: des max zHV s = [v̂s , T̂s , ŝ0,s , âs , b̂s , τ̂s , σ̂s ],

(58)

where ˆ· is statistics calibrated from real trajectories; v des , T , s0 , amax , b, τ , and σ denote desired speed, time headway, minimum spacing, maximum acceleration, comfortable deceleration, reaction delay, and control noise, respectively. Training samples use a history window of length 6 and a future window of length 6 with stride 5. Vehicle type and AV penetration correspond to the control-authority marker and penetration embedding in the formal state definition, while scenario differences are mainly represented by road semantics; an additional scenario identifier is used only for sample construction, bucketing, and experimental logging. • AV behavior generation: AV behavior is not directly sampled as a native category from the real trajectory datasets. Instead, parameterized AV types are generated from the calibrated HV prior with mixed-autonomy and scenariospecific adjustments:  lim v des T s0 zAV s = min(vs , αs v̂s ), αs T̂s , αs ŝ0,s , (59)  b tau sigma αsa âmax σ̂s , ωscoop , s , αs b̂s , αs τ̂s , αs where the α coefficients denote scenario-dependent scaling, vslim is the road speed limit, and ωscoop is the cooperative weight. During online closed-loop execution, HVs follow the calibrated behavioral prior, while controlled AVs read their speed, estimated acceleration, leader headway,

IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS

13

TABLE I AV- PRIOR SCALING RATIOS RELATIVE TO THE CALIBRATED HV PRIOR . H ERE v, T , s0 , a, b, τ , AND σ DENOTE DESIRED SPEED , TIME HEADWAY, MINIMUM GAP, MAXIMUM ACCELERATION , COMFORTABLE DECELERATION , REACTION DELAY, AND CONTROL NOISE . Scen.

v

T

s0

a

b

τ

σ

Ring F8 Merge

1.02 1.03 1.05

0.92 0.95 0.88

0.95 1.00 0.90

1.18 1.15 1.28

1.18 1.20 1.28

0.70 0.72 0.65

0.40 0.42 0.35

TABLE III C ORE IMPLEMENTATION SETTINGS . Item

Implementation detail

Input window

History/future windows of 6 steps with stride 5; online AV state uses 7 local kinematic and safety features. Temporal history branch and context MLP; embedding dimension 48; trained for 20 epochs. Conditional denoising candidate generator with feed-forward backbone; K = 5 executable-control candidates parameterized by speed, spacing, and caution-related attributes; trained with denoising and feasibility losses. Realism/risk scorer with candidate and fusion MLPs; learned score is realism −0.65× risk by default, where risk supervision uses THW, TTC, and lane-change indicators. THW violation: THW < 1.0 s; TTC violation: TTC < 2.0 s; hard braking: acceleration < −6/ − 10/ − 20 m/s2 . Server profiling gives 0.783 ms/action p95 for the executable A/B/C stack at K = 5; end-to-end Flow/SUMO throughput is 6.16–145.19 steps/s across profiled closed-loop cells. A 10-run support matrix covers FollowerStopper, PI, and DRIFT over Ring/F8/Merge and 0/20/40/60/80/100% penetration; it supports paired Wilcoxon/t-test trend checks rather than replacing the adopted 5-run main table. PPO/RLlib baseline trained for 50 iterations; checkpoint 000050 is used for 5-run closed-loop evaluation; 0% penetration is N/A.

Module A Module B

Module C

Safety logs Fig. 4. Closed-loop simulation protocol. Real trajectory data calibrate HV behavior and AV priors; at each RI, DRIFT or a baseline reads the Flow/SUMO state, outputs executable actions, and logs efficiency, safety, and executability metrics.

Runtime check

TABLE II E XPERIMENTAL PROTOCOL AND METRICS .

Robustness check

Item

Setting

Simulation platform Scenarios AV penetration Runs per cell Efficiency metrics Safety diagnostics

Flow + SUMO closed-loop simulation ring, F8, and merge 0/20/40/60/80/100% 5 closed-loop episodes Return ↑, average speed ↑, merge outflow ↑ Collision/deadlock ↓, hard braking ↓, min acceleration ↑, THW/TTC violations ↓

Flow-RL

B. Baselines and Variants THW, TTC, and lane-change state from Flow/SUMO. These variables form a seven-dimensional history feature used by DRIFT to generate candidates, construct the feasible candidate set, score and select candidates, and execute the selected control segment. The AV prior is therefore a bounded synthetic prior for penetration-rate sensitivity rather than an empirical AV-fleet model. The scaling ratios in Table I show that the desiredspeed gain is mild, reaction delay is reduced but nonzero, and control noise remains positive. This keeps the Flow/SUMO experiments reproducible while avoiding unsupported claims about deployed AV behavior. Overall, this setup ensures that real trajectory data are used for behavior calibration and model training, while the main results are obtained from traffic evolution induced by executable closed-loop controls under each penetration setting. Table II summarizes the protocol and metrics, and Table III reports the core implementation settings used for reproduction. In the final implementation, output safety filtering in high-penetration F8 cases is treated as a scenario-specific execution boundary of the feasible set Ωi,feas , while ETA-yield coordination in Merge is treated as a t scenario-specific realization of the merge-conflict-related dynamic/topological cost Dti,k and the online selection problem Psel . They are not additional modules outside DRIFT and are not reported as separate methods.

We compare three groups of methods. The first group contains external baselines that can be directly executed in the Flow/SUMO closed loop. The second group contains DRIFT and simple internal replacements. The third group contains ablation variants used to explain module and mechanism contributions. The detailed settings are as follows. External methods and reproducible baselines: • FollowerStopper: A classical rule-based controller for mixed-autonomy ring-road stabilization [43], used as a Flow-native closed-loop baseline. • PI controller: The PISaturation controller provided by Flow [1], used as a simple feedback-control baseline. It is an executable engineering controller rather than a newly proposed standalone paper method. • IDM: The Intelligent Driver Model car-following controller in Flow [1], included as a supplementary car-following baseline to check whether DRIFT is compared only with weak feedback controls. • Flow-RL: A learning-control baseline constructed from the official RL-controlled vehicle interface in Flow [1]. Since it requires at least one RL-controlled vehicle, the 0% AVpenetration cell is not applicable. • Flow-AIL: An imitation-style learning baseline adapted to the same Flow/SUMO executable interface. It is not a direct reproduction of an external paper codebase; it is included to test the safety–efficiency tradeoff of a learning-based executable controller under the same closed-loop protocol.

IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS

These baselines are selected according to closed-loop executability and protocol consistency. IDM and Flow-AIL are included in the main numerical tables as, respectively, a classical car-following reference and an adapted learningbased reference. ACC, CACC, and MPC-style controllers usually require additional communication topology, prediction models, explicit constraints, and computational-budget assumptions. Recent traffic generation and imitation methods such as SceneDiffuser [2], TrafficMCTS [3], DiffAIL [16], ControlTraj [19], and DragTraffic [27] are highly relevant, but they target simulation initialization, offline trajectory/scene generation, search-based traffic-flow construction, or different information interfaces. Directly mixing them into the main Flow/SUMO mixed-autonomy closed-loop control table would conflate interface adaptation with method comparison. Therefore, the main tables report reproducible controllers and the adapted Flow-AIL baseline under the same feedback interface, while the scope-positioning table in Appendix D, validationset candidate realism, and the stress/selector diagnostics clarify how the broader literature differs in scope and interface. Our method and internal controls: • DRIFT: The full proposed method with Module A, Module B, and Module C. • Simple-A: A variant that replaces Module A with a plain condition encoder while retaining learned Modules B/C, i.e., BC+simple A. • Simple-B: A variant that replaces Module B with a fixed candidate generator while retaining learned Modules A/C, i.e., AC+simple B. • Simple-C: A variant that replaces Module C with a heuristic candidate-selection surrogate while retaining learned Modules A/B, i.e., AB+simple C. Ablation settings: • w/o Module A: Removes the condition-encoding module and keeps only the downstream generation and scoring interfaces needed for closed-loop execution. • w/o Module B: Removes the learned candidate-generation backbone and uses the necessary execution interface to maintain closed-loop rollout. • w/o Module C: Removes the discriminator-based realism score and long-tail feedback provided by Module C, while retaining the basic risk and dynamic-cost terms required by Psel for closed-loop execution. • w/o Penetration Conditioning: Removes AV-penetration conditioning to test cross-penetration adaptation. • Single-Candidate: Degenerates multi-candidate generation into single-candidate execution to test the value of candidate diversity and selection. Internal replacements and strict ablations have different meanings: the former replace one module with a simple counterpart to test whether the learned design is better than a simple substitute, whereas the latter remove the corresponding module position to test whether that position is necessary. Specifically, Simple-A uses a plain non-heterogeneity-aware condition encoder, Simple-B uses a fixed candidate generator rather than learned diffusion sampling, and Simple-C uses a heuristic selection surrogate rather than the learned ModuleC realism/risk-feedback interface. By contrast, w/o Module

14

TABLE IV M ETHOD CATEGORIES , COVERAGE , AND IMPLEMENTATION STATUS . Method

Role

FollowerStopper

Classic rule-based Six penetrations Classic rule-based Six penetrations Official learning 20–100% baseline Classic Six car-following penetrations Adapted imitation Six baseline penetrations Proposed method Six penetrations Strict ablation Six penetrations Internal Six replacement penetrations

PI with saturation Flow-RL IDM Flow-AIL DRIFT w/o A/B/C Simple-A/B/C w/o Pen., Single-Cand.

Mechanism ablation

Coverage

Status Flow-native baseline Flow-native baseline 0% is N/A

Flow-native baseline Supplementary learning baseline Full A+B+C stack Remove one learned module BC+simple A; AC+simple B; AB+simple C Six Disable one penetrations design mechanism

A/B/C removes the corresponding learned module position while retaining only the minimal execution interface needed to keep the simulator rollout comparable. Table IV summarizes the role, coverage, and implementation status of all compared methods. To keep the experimental section consistent with the executable controller, the reported Module B uses the executablecontrol parameterization described in Section V-B: candidate controls are generated in the compact control space, rolled out into finite-horizon trajectory candidates, and then passed to feasibility filtering, risk/dynamic-cost evaluation, Module-C realism scoring, and Psel . Thus, all reported results correspond to executable controls under the same closed-loop interface rather than to offline trajectory samples evaluated only by open-loop similarity. C. Evaluation Metrics and Analysis 1) Metric Definitions: The evaluation metrics cover efficiency, safety, closed-loop executability, and stability diagnostics. Efficiency metrics include episode return, average speed, and Merge outflow. Return reflects the overall closedloop control objective, average speed measures traffic-flow efficiency, and outflow measures throughput in the open merge network. Safety and executability diagnostics include collision/deadlock, hard braking, minimum realized acceleration, THW, and TTC. Closed-loop stability is assessed through penetration-wise smoothness of return/speed/outflow trends together with the episode-level variability reported in Appendix D. Each table cell is aggregated from five closedloop episodes unless otherwise stated, and safety diagnostics are computed from the corresponding emission and safety logs. All tables mark the preferred direction of each metric and bold the best available value under that direction; entries marked by “–” indicate that the metric is not exposed by the corresponding evaluation interface or is not applicable to that scenario.

IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS

15

0.20 117 0.06 162 0.16 36 0.12 19 0.18 78 0.10 26

-109 -106 -97.40 -102 -100.27 -97.40

Efficiency results are interpreted together with safety diagnostics because high short-term speed or outflow may be accompanied by hard braking, extreme deceleration, or simulator safe-speed clipping. We therefore draw conclusions from the joint pattern of return, speed/outflow, TTC risk, hard braking, and minimum acceleration rather than from a single efficiency metric. Additional statistical, sensitivity, latency, selector/feasibility, compact stress-test, and validationset diagnostics are reported in Appendix D. 2) Performance Analysis: Table V gives the core values, and Fig. 5 reports efficiency trends across six AV penetration rates. Fig. 5 shows stable DRIFT trends in Ring and F8, meaning smooth penetration-wise curves with bounded episode variability, while Merge exhibits a clearer safety– efficiency tradeoff. The speed and outflow panels further indicate smooth closed-network behavior: IDM remains most efficient in Ring, Flow-AIL slightly leads in F8 efficiency but with higher close-interaction exposure, and FollowerStopper remains a competitive Merge throughput baseline. Consistent with Table V, higher Merge throughput from some baselines is accompanied by more hard braking, so DRIFT is interpreted as a balanced alternative rather than a pointwise optimum. 3) Safety and Executability Diagnostics: The safety and executability columns in Table V should be read with efficiency. Some baselines obtain higher Merge throughput, but their gains come with more hard braking or stronger extreme deceleration. DRIFT suppresses undesirable candidate actions through feasibility filtering and score-based selection, so its gains do not primarily rely on safe-speed clipping. Specifically, IDM is competitive in Ring, but its F8 and Merge tails are less favorable. Flow-AIL is competitive on efficiency, yet it raises close-interaction exposure in F8 and braking in Merge. DRIFT reduces hard braking in Merge while keeping near-best throughput. 4) Module and Mechanism Analysis: Fig. 6 reports changes relative to full DRIFT for strict module ablations, internal replacements, and mechanism ablations. The detailed tables are in Appendix D. Fig. 6 shows that full DRIFT yields the most favorable aggregate return, speed, and Merge outflow pattern. Module C mainly regularizes the safety tail, while

80 10 0

1.02 0.08 0.08 0.80 0.17 0.16

Not applicable

closed network

closed network

80 10 0

0 0 0 – 0 0

Not applicable

60

FollowerStopper 66.73 14.31 1378 PI 42.85 9.14 726 IDM 66.91 14.36 1328 Flow-RL 52.93 10.77 812 Flow-AIL 67.38 14.48 1380 DRIFT 66.80 14.49 1377

10

2

80 10 0

Merge Merge Merge Merge Merge Merge

1

60

-102 -46.98 -78.39 -72.57 -72.43 -71.01

0 20 40

52 17 16 8 30 22

0 20 40

0.22 0.10 0.18 0.08 0.85 0.64

4

1500 1000 500

0 20 40

0.11 0.03 0.17 0.21 1.05 0.80

80 10 0

0 0 0 – 0 0

60

– – – – – –

15

2

80 10 0

4.72 3.60 5.11 2.87 5.28 5.17

40

60

FollowerStopper 52.64 PI 40.50 IDM 57.05 Flow-RL 21.43 Flow-AIL 58.54 DRIFT 58.38

25

0 20 40

F8 F8 F8 F8 F8 F8

Merge

10

0 20 40

-57.89 -3.80 -0.92 -1.99 -4.80 -0.91

80 10 0

87 0 0 0 0 0

60

0.00 0.00 0.00 0.00 0.00 0.00

F8

80 10 0

1.03 0.00 0.00 0.02 0.00 0.00

60

0 0 0 – 0 0

DRIFT

60

0 20 40

– – – – – –

Flow-RL

50

Outflow

1.59 1.01 2.31 1.56 1.35 2.17

AV pen. (%)

Fig. 5. Efficiency trends across AV penetration rates. Rows report return, average speed, and Merge outflow; columns denote traffic scenarios. Outflow is reported only for Merge.

Return

HB < −6

Merge outflow

w/o A

Strict

FollowerStopper 18.32 PI 11.81 IDM 27.21 Flow-RL 11.59 Flow-AIL 15.02 DRIFT 25.41

Average speed

Ret.↑ Spd.↑ Out.↑ Coll.↓ TTC%↓ THW%↓ HB↓ Worst a ↑

Ring Ring Ring Ring Ring Ring

IDM

20

0 20 40

Return

Ring

w/o B w/o C −5

Mechanism Internal

Scenario Method

PI

60

FollowerStopper

TABLE V M AIN RESULTS WITH SAFETY AND EXECUTABILITY DIAGNOSTICS .

0

−200

0

0

2

Simple-A Simple-B Simple-C −2.5

0.0

−100

0

0

0

−1

2

w/o Pen. Single-Cand. −5

0

−200

0

1

Fig. 6. Ablation and replacement-control deltas relative to full DRIFT.

Modules A and B support adaptation and candidate generation. The internal replacements and mechanism ablations further indicate that simple substitutes do not match full DRIFT, with penetration-aware conditioning, multi-candidate generation, and Psel each making identifiable contributions. Additional evidence in Appendix D covers statistical support, candidate-set size, online latency, selector/feasibility variants, OOD/stress perturbations, Module-C risk-weight sensitivity, and validation-set candidate realism, showing that candidate diversity is useful but not monotonic and that the same safety– efficiency tradeoff persists across auxiliary diagnostics. Taken together, the experiments indicate that DRIFT balances safety and efficiency, external baselines can be competitive on isolated metrics but weaker in braking tails, and Modules A/B/C each affect the final closed-loop behavior. VII. C ONCLUSION This paper presented DRIFT, a risk-constrained closedloop framework for heterogeneous mixed-autonomy traffic generation and evaluation. DRIFT connects heterogeneityaware condition encoding, conditional diffusion-based executable candidate generation, stagewise distribution alignment, long-tail feedback, feasibility filtering, and online candi-

IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS

date selection within a rolling-horizon Flow/SUMO feedback loop. Experiments across Ring, F8, and Merge scenarios with six AV penetration rates show that DRIFT provides a competitive safety–efficiency–executability tradeoff together with smooth penetration-wise behavior rather than uniform dominance on every isolated metric. The ablations, selector/feasibility checks, and compact stress tests further indicate that penetration-aware conditioning, multi-candidate generation, Module-C realism/risk feedback, and multi-term online selection all contribute to the final closed-loop traffic behavior. In future work, we will extend DRIFT to larger and less stylized urban traffic networks, richer route-choice behavior, communication-aware controllers, and localized mixedautonomy datasets. We also plan to study scalable candidate pruning for denser traffic, uncertainty-aware calibration of HV and AV priors, real AV fleet logs when available, and hardware-in-the-loop or field-oriented validation so that executable generation can be assessed under more diverse ITS deployment conditions. R EFERENCES [1] C. Wu, A. R. Kreidieh, K. Parvate, E. Vinitsky, and A. M. Bayen, “Flow: A modular learning framework for mixed autonomy traffic,” IEEE Trans. Robot., vol. 38, no. 2, pp. 1270–1286, Apr. 2022. [2] C.-M. Jiang et al., “SceneDiffuser: Efficient and controllable driving simulation initialization and rollout,” in Proc. Adv. Neural Inf. Process. Syst. (NeurIPS), vol. 37, 2024. [3] Z. Fu, L. Wen, P. Cai, D. Fu, S. Mao, and B. Shi, “TrafficMCTS: A closed-loop traffic flow generation framework with group-based monte carlo tree search,” IEEE Trans. Intell. Transp. Syst., vol. 26, no. 10, pp. 15 453–15 470, Oct. 2025. [4] Y. Chen, J. Sun, J. Fan, and J. Sun, “Transferring causal driving patterns for generalizable traffic simulation with diffusion-based distillation,” in Proc. AAAI Conf. Artif. Intell., vol. 40, 2026, pp. 110–118. [5] S. Fang, P. Hang, C. Wei, Y. Xing, and J. Sun, “Cooperative driving of connected autonomous vehicles in heterogeneous mixed traffic: A game theoretic approach,” IEEE Trans. Intell. Veh., 2024, early access. [6] S. Li, R. Dong, and C. Wu, “Hybrid system stability analysis of multilane mixed-autonomy traffic,” IEEE Trans. Robot., vol. 40, 2024. [7] J. Wang, Y. V. Pant, L. Zhao, M. Antkiewicz, and K. Czarnecki, “Enhancing safety in mixed traffic: Learning-based modeling and efficient control of autonomous and human-driven vehicles,” IEEE Trans. Intell. Transp. Syst., vol. 25, no. 9, pp. 12 784–12 799, Sep. 2024. [8] B.-L. Cen, Y. Xue, K. Zhang, L. Jia, and H.-D. He, “Study on traffic flows with connected vehicles and human-driven vehicles,” Appl. Math. Comput., vol. 490, p. 129182, 2025. [9] Z. Wang, Q. Cheng, P. Liu, W. Yu, J. Wang, and Z. Liu, “Energy and environmental implications of automated vehicles under mixed autonomy traffic environment,” IEEE Trans. Intell. Veh., vol. 10, no. 2, Feb. 2025. [10] Y. Pei, H. Wang, and X. Han, “Analysis of roadway capacity for heterogeneous traffic flows considering the degree of trust of drivers of HVs in CAVs,” Physica A, vol. 639, p. 129693, 2024. [11] C. Wang, W. Ren, C. Xu, N. Zheng, C. Peng, and H. Tong, “Exploring the impact of conditionally automated driving vehicles transferring control to human drivers on the stability of heterogeneous traffic flow,” IEEE Trans. Intell. Veh., vol. 10, no. 2, pp. 912–928, Feb. 2025. [12] D. Wang, W. Li, L. Zhu, and J. Pan, “Learning to control and coordinate mixed traffic through robot vehicles at complex and unsignalized intersections,” Int. J. Robot. Res., 2025. [13] Y. Gong and W.-X. Zhu, “Modeling and robust H inf ty control synthesis of the CAV-HDV heterogeneous traffic system with different car-following modes,” IEEE Trans. Intell. Transp. Syst., vol. 25, no. 10, Oct. 2024. [14] M. Wang, J. Cui, Y. W. Wong, Y. Chang, L. Wu, and J. Jin, “Urban vehicle trajectory generation based on generative adversarial imitation learning,” IEEE Trans. Veh. Technol., vol. 73, no. 12, pp. 18 237–18 249, Dec. 2024.

16

[15] J. Jin, Q. Sun, Y. Ding, Y. Chen, Y. Zhang, X. Wang, and M. Wang, “Ctx2TrajGen: Traffic context-aware microscale vehicle trajectories using generative adversarial imitation learning,” 2025, arXiv:2507.17418. [Online]. Available: https://arxiv.org/abs/2507.17418. [16] B. Wang, G. Wu, T. Pang, Y. Zhang, and Y. Yin, “DiffAIL: Diffusion adversarial imitation learning,” in Proc. AAAI Conf. Artif. Intell., vol. 38, no. 14, 2024, pp. 15 447–15 455. [17] F. Shahabi-Nejad and M. M. Ebadzadeh, “A fast and stable framework for generative adversarial imitation learning,” Eng. Appl. Artif. Intell., vol. 162, p. 112460, 2025. [18] Y.-C. Li, N. Chao, Z. Zhang, F. Zhang, L. Yuan, and Y. Yu, “Generalizable multi-modal adversarial imitation learning for non-stationary dynamics,” IEEE Trans. Pattern Anal. Mach. Intell., vol. 47, no. 7, pp. 5600–5612, Jul. 2025. [19] Y. Zhu, J. J. Q. Yu, X. Zhao, Q. Liu, Y. Ye, W. Chen, Z. Zhang, X. Wei, and Y. Liang, “ControlTraj: Controllable trajectory generation with topology-constrained diffusion model,” in Proc. ACM SIGKDD Conf. Knowl. Discov. Data Mining, Barcelona, Spain, Aug. 2024, pp. 4676–4687. [20] T. Wei, Y. Lin, S. Guo, Y. Lin, Y. Huang, C. Xiang, Y. Bai, and H. Wan, “Diff-RNTraj: A structure-aware diffusion model for road networkconstrained trajectory generation,” 2024, arXiv:2402.07369. [Online]. Available: https://arxiv.org/abs/2402.07369. [21] Y. Zheng, R. Liang, K. Zheng, J. Zheng, L. Mao, J. Li, W. Gu, R. Ai, S. E. Li, X. Zhan, and J. Liu, “Diffusion-based planning for autonomous driving with flexible guidance,” in Proc. Int. Conf. Learn. Represent. (ICLR), 2025. [22] Z. Li, Z. Chen, Y. Li, and C. Xu, “Context-aware trajectory prediction for autonomous driving in heterogeneous environments,” Comput.-Aided Civ. Infrastruct. Eng., vol. 39, no. 1, pp. 120–135, 2024. [23] Q. Zhang, Y. Xing, J. Wang, Z. Fang, Y. Liu, and G. Yin, “Interactionaware and driving style-aware trajectory prediction for heterogeneous vehicles in mixed traffic environment,” IEEE Trans. Intell. Transp. Syst., vol. 26, no. 7, Jul. 2025. [24] Z. Huang, Y. Li, D. Li, Y. Mu, H. Qin, and N. Zheng, “Post-interactive multimodal trajectory prediction for autonomous driving,” Transp. Res. Part C, Emerg. Technol., vol. 179, p. 105271, 2025. [25] R. Li, J. Liu, T. Sun, and T. Xu, “Multi-agent reinforcement learning with transformer-based spatio-temporal fusion for autonomous driving in mixed traffic,” in Proc. IEEE/RSJ Int. Conf. Intell. Robots Syst. (IROS), Hangzhou, China, Oct. 2025, pp. 8283–8289. [26] H.-Y. Kang, J.-G. Lu, M. Wei, Q.-H. Zhang, Z. Zhu, and Y. Wang, “A planning-oriented autonomous driving framework: From image to trajectory with intent-aware prediction,” IEEE Trans. Intell. Transp. Syst., pp. 1–15, 2026. [27] S. Wang, G. Sun, F. Ma, T. Hu, Q. Qin, Y. Song, L. Zhu, and J. Liang, “DragTraffic: Interactive and controllable traffic scene generation for autonomous driving,” in Proc. IEEE/RSJ Int. Conf. Intell. Robots Syst. (IROS), Abu Dhabi, UAE, Oct. 2024, pp. 14 241–14 247. [28] M. Peng, Y. Xie, X. Guo, R. Yao, H. Yang, and J. Ma, “LD-Scene: LLMguided diffusion for controllable generation of adversarial safety-critical driving scenarios,” Transp. Res. Part C, Emerg. Technol., 2026. [29] J. Sun and J. Kim, “Modelling two-dimensional driving behaviours at unsignalised intersection using multi-agent imitation learning,” Transp. Res. Part C, Emerg. Technol., vol. 165, p. 104702, 2024. [30] C. Xu, A. Petiushko, D. Zhao, and B. Li, “DiffScene: Diffusion-based safety-critical scenario generation for autonomous vehicles,” in Proc. AAAI Conf. Artif. Intell., vol. 39, no. 9, 2025, pp. 8797–8805. [31] J. Lu, K. Wong, C. Zhang, S. Suo, and R. Urtasun, “SceneControl: Diffusion for controllable traffic scene generation,” in Proc. IEEE Int. Conf. Robot. Autom. (ICRA), 2024. [32] Y. Wang, C. Tang, L. Sun, S. Rossi, Y. Xie, C. Peng, T. Hannagan, S. Sabatini, N. Poerio, M. Tomizuka, and W. Zhan, “Optimizing diffusion models for joint trajectory prediction and controllable generation,” in Proc. Eur. Conf. Comput. Vis. (ECCV), vol. 15087, 2024, pp. 324– 341. [33] C. Liu, S. He, H. Liu, and J. Chen, “Intention-aware denoising diffusion model for trajectory prediction,” IEEE Trans. Intell. Transp. Syst., vol. 26, no. 5, pp. 5915–5930, May 2025. [34] W. Ren, J. Liu, J. Wang, L. Zhao, and Y. Du, “Traffic flow impact of mixed heterogeneous platoons on highways: An approach combining driving simulation and microscopic traffic simulation,” Physica A, vol. 643, p. 129803, 2024. [35] L. Jia, D. Yang, Y. Ren, C. Qian, Q. Feng, B. Sun, and Z. Wang, “A dynamic test scenario generation method for autonomous vehicles based on conditional generative adversarial imitation learning,” Accid. Anal. Prev., vol. 194, p. 107279, 2024.

IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS

[36] S. Jing, Y. Zhao, X. Zhao, F. Hui, and A. J. Khattak, “An efficient high-risk lane-changing scenario edge cases generation method for autonomous vehicle safety testing,” IEEE Trans. Intell. Veh., vol. 10, no. 1, pp. 459–471, Jan. 2025. [37] C. Schicktanz and K. Gimm, “Detection and analysis of corner case scenarios at a signalized urban intersection,” Accid. Anal. Prev., vol. 210, p. 107838, 2025. [38] K. Wang, Q. Ma, C. Shen, and J. Lu, “Application of uncertainty to out-of-distribution detection for autonomous driving perception safety,” IEEE Trans. Intell. Transp. Syst., vol. 26, no. 8, pp. 11 276–11 293, Aug. 2025. [39] R. T. Rockafellar and S. Uryasev, “Optimization of conditional valueat-risk,” J. Risk, vol. 2, no. 3, pp. 21–41, 2000. [40] J. Ho, A. Jain, and P. Abbeel, “Denoising diffusion probabilistic models,” in Proc. Adv. Neural Inf. Process. Syst. (NeurIPS), vol. 33, 2020, pp. 6840–6851. [41] A. Q. Nichol and P. Dhariwal, “Improved denoising diffusion probabilistic models,” in Proc. Int. Conf. Mach. Learn. (ICML), 2021, pp. 8162–8171. [42] J. Ho and S. Ermon, “Generative adversarial imitation learning,” in Proc. Adv. Neural Inf. Process. Syst. (NeurIPS), vol. 29, 2016, pp. 4565–4573. [43] R. E. Stern, S. Cui, R. Bhadani, M. L. Delle Monache, M. Bunting, M. Churchill, R. Haulcy, N. Hamilton, B. Piccoli, F. Wu, H. Pohlmann, J. Sprinkle, B. Seibold, and D. B. Work, “Dissipation of stop-and-go waves via control of autonomous vehicles: Field experiments,” Transp. Res. Part C, Emerg. Technol., vol. 89, pp. 205–221, Apr. 2018. [44] R. Krajewski, J. Bock, L. Kloeker, and L. Eckstein, “The highd dataset: A drone dataset of naturalistic vehicle trajectories on german highways for validation of highly automated driving systems,” in Proc. IEEE Int. Conf. Intell. Transp. Syst. (ITSC), 2018, pp. 2118–2125. [45] R. Krajewski, T. Moers, J. Bock, L. Vater, and L. Eckstein, “The round dataset: A drone dataset of road user trajectories at roundabouts in germany,” in Proc. IEEE Int. Conf. Intell. Transp. Syst. (ITSC), 2020, pp. 1–6. [46] T. Moers, L. Vater, R. Krajewski, J. Bock, A. Zlocki, and L. Eckstein, “The exid dataset: A real-world trajectory dataset of highly interactive highway scenarios in germany,” in Proc. IEEE Intell. Vehicles Symp. (IV), 2022, pp. 958–964. [47] J. Bock, R. Krajewski, T. Moers, S. Runde, L. Vater, and L. Eckstein, “The ind dataset: A drone dataset of naturalistic road user trajectories at german intersections,” in Proc. IEEE Intell. Vehicles Symp. (IV), 2020, pp. 1929–1934.

17

IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS

18

A PPENDIX A OVERALL W ORKFLOW OF DRIFT

TABLE VI E XECUTABLE SCORING AND IMPLEMENTATION PARAMETERS .

This appendix gives the operational workflow of DRIFT omitted from the compact overview in Section V. Algorithm 4 summarizes the offline stagewise training procedure and the online closed-loop inference procedure. Algorithm 4: Overall training and inference workflow of DRIFT : training time-vehicle samples {(t, i, sit )}, scenario library, replanning set T replan , horizons H plan and H exec , initial parameters ϕA , ϕB , ϕC Output : trained parameters ϕA , ϕB , ϕC and an online closed-loop decision policy

Item

Value / setting

Number of candidates Target speed Nominal safe headway Default TTC guard Merge TTC guard Module-C risk weight Sensitivity values

K=5 v des = 20.0 m/s 10.0 m 2.0 s 2.8 s λrisk = 0.65 λrisk ∈ {0.35, 0.65, 0.95}

Heuristic score

0.90e+0.95p+0.60s−wrisk r−wttc q ttc −wgap q gap − q conf − wacc q acc (wrisk , wttc , wgap , wacc ) = (1.25, 1.10, 0.90, 0.08) (wrisk , wttc , wgap , wacc ) = (1.45, 1.30, 1.05, 0.11) q conf = 0.04 when the conflict-zone guard is active 1.10 in general; 0.65 in calibrated Merge; 0.55 under the full-penetration guard

Input

// Offline stagewise training repeat 2 sample a time-vehicle mini-batch {(t, i)} from the training pool 3 update ϕA with the Module-A representation objective on the sampled mini-batch 4 freeze the updated encoder and update ϕB with the Module-B denoising and feasibility objectives 5 freeze ϕB and update ϕC with the progressively activated alignment objective 6 compute long-tail coefficients χi,k from Module C and set the t next Module-B weights wti,k ← χi,k t 7 until the stopping criterion is met 1

// Online closed-loop inference for each RI t ∈ T replan do 9 construct the current traffic state Xt and identify the active vehicle set Ṽt 10 for each active vehicle i ∈ Ṽt do 11 form the heterogeneous local state sit 12 encode the condition vector cit = gϕA (sit ) 13 generate K candidates via Module B and roll them out into candidate trajectories 14 form Kti,feas from Ωi,feas and evaluate {Jti,k }k∈Ki,feas t 8

15

when the set is nonempty select k∗ = arg maxk∈Ki,feas Jti,k , or apply the

t

t

16 17

deterministic fallback in Section IV-B if Kti,feas = ∅ execute the first H exec PSs of the selected candidate collect environmental feedback and advance the system to the next RI

A PPENDIX B I MPLEMENTATION D ETAILS This appendix records the implementation settings that are independent of the final numerical results. Time-vehicle samples are constructed from the naturalistic trajectory datasets used for representation and generator training, with a history length of Lh = 6 and a future/control horizon of six discrete steps. The Module-A encoder uses a temporal history branch and a feed-forward context branch; in the implementation used for this manuscript, the feature dimension is 7, the context dimension is 6, the hidden dimension is 96, and the condition embedding dimension is 48. The coarse grouping task uses 13 behavioral-interaction tags. The stability and separation terms in the representation objective are implemented with training-script weights 0.1 and 0.1, respectively, with margin msep = 1.0, batch size 256, Adam optimizer, learning rate 10−3 , weight decay 10−5 , and 20 training epochs.

Default penalties Full-penetration guard Merge conflict penalty Learned-score weight Training seed Module-A epochs Module-B epochs Module-C epochs Feasibility regularization

42 20 30 20 λfea = 0.1

Module B generates K = 5 candidates per RI-vehicle query using a compact executable-control parameterization with speed, spacing, and caution-related attributes. The conditional denoising backbone is implemented with feed-forward layers of hidden dimension 160, batch size 256, Adam optimizer, learning rate 10−3 , weight decay 10−5 , and 30 training epochs. The feasibility regularization weight is set to λfea = 0.1 in the implementation. Module C uses the same condition embedding dimension, a hidden dimension of 160, a realism head and a risk head, batch size 256, Adam optimizer, learning rate 5 × 10−4 , weight decay 10−5 , and 20 training epochs. During online inference, the learned Module-C score uses realism minus λrisk times risk, with the default and sensitivity settings reported in Table VI. In Table VI, e, p, s, r, q ttc , q gap , q conf , and q acc denote the normalized efficiency, progress, safety-margin, risk, TTCviolation, close-gap, conflict, and smoothness terms, respectively. The score-component weights in Eq. (27) and Appendix F are paper-level grouping weights used to define the score components; their operational effect is realized by the executable controller coefficients in Table VI. The conceptual β and E warm in Section V-C describe the stagewise reweighting and progressive alignment schedule; in the reported executable implementation, their effect is represented by the fixed Module-C training stage and the runtime riskweight sweep, rather than by an additional independent grid. The A/B/C stages are trained for fixed epoch budgets with validation-loss monitoring, and the best available checkpoint is used for closed-loop evaluation. All random shuffling of training shards uses a fixed seed of 42 unless otherwise stated. The external naturalistic trajectory datasets used for calibration are publicly available from their original providers. To support reproducibility, the processed experiment scripts, configurations, and lightweight result tables can be made available upon publication or reasonable request, subject to dataset-provider terms and project release constraints.

IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS

PI

Ring

Flow-RL

F8 200

0

0 20 40 60 80 10 0

0

0 20 40 60 80 10 0

0

TABLE VIII S TATISTICAL SUPPORT FOR THE MAIN RESULTS . Merge

100

200

DRIFT

0 20 40 60 80 10 0

HB count (<-6 m/s2)

FollowerStopper

AV pen. (%)

AV pen. (%)

AV pen. (%)

Fig. 7. Hard-braking diagnostics.

0

Ring

PI

Flow-RL

F8

0

Method

Ring Ring Ring Ring F8 F8 F8 F8 Merge Merge Merge Merge

FS PI Flow-RL DRIFT FS PI Flow-RL DRIFT FS PI Flow-RL DRIFT

0

−100

0 20 40 60 80 10 0

0 20 40 60 80 10 0

−100

AV pen. (%)

AV pen. (%)

AV pen. (%)

Fig. 8. Minimum realized acceleration diagnostics.

A PPENDIX C S COPE AND L IMITATIONS The reported validation focuses on stylized Flow/SUMO benchmark scenarios rather than city-scale traffic networks. The HV prior is calibrated from public naturalistic trajectory datasets, whereas AV behavior is represented by controlled synthetic priors and scenario-specific scaling rather than real AV fleet logs. The long-tail mechanism is a candidate-level surrogate for risk-aware feedback and should not be interpreted as a formal safety guarantee. Online selection cost can also increase with the number of active vehicles, generated candidates, and scenario-specific feasibility checks. A PPENDIX D S UPPLEMENTARY R ESULTS

Ret. ↑

Variant

P OSITIONING OF REPRESENTATIVE METHODS . Method

CL HV/AV Ctrl. Risk Flow/SUMO

SceneDiffuser [2] TrafficMCTS [3] DiffAIL [16] ControlTraj [19] CDPT [4] DRIFT

✓ ✓ ◦ × ◦ ✓

◦ ✓ ◦ × ◦ ✓

HB/run ↓ 17.4 ± 1.6 0.0 ± 0.0 0.0 ± 0.0 0.0 ± 0.0 10.3 ± 1.9 3.3 ± 0.2 1.5 ± 1.1 4.4 ± 1.2 23.4 ± 13.8 32.4 ± 1.6 3.7 ± 3.2 5.3 ± 2.5

× × × × × ✓

Figs. 7 and 8 provide compact bar summaries of hard braking and minimum realized acceleration. Table IX reports the detailed module and mechanism values. Table X shows that candidate diversity helps in F8 but is not monotonic in Merge. At high demand, larger K can degrade

Spd. ↑

Out. ↑ Min a ↑

HB ↓

DRIFT

50.20

7.28

1377.0

-97.4

16.2

Strict Strict Strict

w/o A w/o B w/o C

49.30 44.68 47.88

7.08 6.05 6.93

1280.0 1029.0 1239.0

-100.3 -95.4 -100.8

18.6 15.2 17.8

Replace Replace Replace

Simple-A Simple-B Simple-C

49.24 45.46 49.21

7.09 6.85 7.07

1315.0 1254.0 1301.0

-100.2 -101.9 -100.2

17.2 17.1 18.6

Mechanism Mechanism

w/o Pen. Single-Cand.

44.35 43.56

6.04 5.96

1013.0 1015.0

-96.3 -96.4

17.2 15.2

TABLE X S ENSITIVITY TO CANDIDATE - SET SIZE . Scen./p

Cand.

Ret. ↑

Spd. ↑

Out. ↑

Min a ↑

TTC% ↓

F8/80 F8/80 F8/80 F8/80 F8/100 F8/100 F8/100 F8/100 Merge/80 Merge/80 Merge/80 Merge/80 Merge/100 Merge/100 Merge/100 Merge/100

K=1 K=3 K=5 K = 10 K=1 K=3 K=5 K = 10 K=1 K=3 K=5 K = 10 K=1 K=3 K=5 K = 10

53.7 54.2 59.9 60.4 53.5 61.0 61.1 60.9 63.9 66.9 67.4 70.2 70.5 71.2 67.6 64.7

4.61 4.65 5.41 5.47 4.55 5.56 5.58 5.56 14.04 14.75 14.89 15.31 15.54 15.52 14.83 14.34

– – – – – – – – 1242 1422 1404 1410 1404 1374 1290 1188

-29.7 -20.6 -17.4 -16.0 -21.0 -11.4 -11.4 -13.2 -81.8 -75.8 -74.8 -55.2 -75.4 -53.9 -77.9 -74.8

1.56 1.70 1.57 1.48 1.50 1.31 1.26 1.28 2.07 0.06 0.07 0.01 0.59 1.14 2.50 3.31

TABLE XI O NLINE INFERENCE LATENCY IN MS / ACTION . Component

TABLE VII

◦ × × ◦ × ✓

Out. ↑

Full

This appendix reports auxiliary diagnostics referenced in Section VI-C. Table VII gives a compact scope positioning of representative methods; ✓, ◦, and × denote full, partial, and no support, respectively.

× ◦ × × × ✓

Spd. ↑

18.32 ± 0.22 1.59 ± 0.02 – 11.81 ± 0.00 1.01 ± 0.00 – 11.59 ± 0.41 1.56 ± 0.06 – 25.41 ± 0.02 2.17 ± 0.00 – 52.64 ± 1.97 4.72 ± 0.19 – 40.50 ± 0.03 3.60 ± 0.00 – 21.43 ± 0.68 2.87 ± 0.08 – 58.38 ± 0.39 5.17 ± 0.02 – 66.73 ± 3.49 14.31 ± 0.69 1378 ± 84.9 42.85 ± 0.79 9.14 ± 0.15 726.0 ± 26.2 52.93 ± 4.31 10.77 ± 0.89 812.4 ± 69.9 66.80 ± 3.45 14.49 ± 0.55 1377 ± 63.9

TABLE IX D ETAILED ABLATIONS AND REPLACEMENT CONTROLS .

Merge Group

−50

Ret. ↑

Scen.

DRIFT

0 20 40 60 80 10 0

Min. accel. (m/s2)

FollowerStopper

19

Module A encoding Module B generation (K=5) Module C scoring (K=5) A/B/C total (K=5) Module C scoring (K=1) Module C scoring (K=3) Module C scoring (K=10)

Mean (ms)↓ P95 (ms)↓ P99 (ms)↓ Max (ms)↓ 0.3855 0.0624 0.2849 0.7906 0.1303 0.2731 0.2574

0.4002 0.0707 0.2567 0.7832 0.1415 0.2437 0.2846

0.4317 0.0776 0.2929 0.9220 0.1499 0.2676 0.3055

23.6892 0.2543 78.6622 110.6572 0.2199 92.5336 3.0063

TTC and outflow, so K = 5 is used as a practical default. Table XI reports the corresponding online latency. Table XII separates the effects of the online selector and the feasibility filter. In F8, single-term selection weakens efficiency, while in Merge, removing feasibility can improve short-term throughput at the cost of tail braking. Tables XIII and XIV report the compact OOD/stress results.

IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS

20

TABLE XII S ELECTOR AND FEASIBILITY DELTAS AT HIGH PENETRATION . Scen.

Variant

∆Ret.

∆Spd.

∆Out.

∆Min a ∆HB10

F8 F8 F8 F8 Merge Merge Merge Merge

Eff. only No feas. Realism only Risk only Eff. only No feas. Realism only Risk only

-0.18 0.05 -5.31 -5.15 2.44 0.87 1.57 1.33

0.00 0.00 -0.76 -0.75 0.46 -0.19 0.18 0.05

– – – – 75.0 30.0 -6.0 -33.0

-8.59 -4.74 -7.69 -1.29 -5.63 -28.26 -3.33 2.09

0.0 0.0 0.0 0.0 0.5 13.5 2.5 0.5

TABLE XIII OOD/ STRESS PERTURBATION SETTINGS . Profile

Perturbation setting

Aggressive HV

v des × 1.10, T × 0.82, s0 × 0.85, amax × 1.18, b × 1.05, τ × 1.10, σ × 1.25. τ × 1.55, σ × 1.15; other HV prior terms remain at the calibrated setting. v des × 1.04, T × 0.92, σ × 1.15; highway inflow 2400 veh/h and ramp inflow 180 veh/h.

Reaction delay Merge demand

Symbol

Meaning

t, T , T T replan Ttplan Ttexec ∆t V = {1, . . . , i, . . . , |V|} Ṽt , ṼtHV , ṼtAV ρt κit xit Xt sit hit , nit , mit Lh Nti

TS index, TS index set, and final TS index set of RIs local planning window defined at the current RI local EW defined at the current RI simulation step size set of all vehicles

∆xi,j t

interaction feature of vehicle j relative to vehicle i

i,j THWi,j t , TTCt

interaction headway and collision-time features

THWi,k,min t

minimum THW of candidate k over the PW

TTCi,k,min t

minimum TTC of candidate k over the PW

di,k,min , dsafe t

minimum predicted longitudinal/conflict-zone clearance and safety clearance lane-topology violation rate and predicted collision/conflict penalty lane-topology graph with connectivity and conflict edges trajectory feasible set induced by G map

TABLE XIV C OMPACT OOD/ STRESS ROBUSTNESS SUMMARY.

rti,k,map , rti,k,col

Method

R-rk ↓ S-rk ↓

Ret.

Spd.

TTC% HB10 ↓ Min a H-rk ↓ ↓ ↑

G map

Flow-AIL IDM DRIFT

1.58 2.17 2.25

65.6 63.6 60.3

10.39 10.35 9.50

0.87 0.15 2.74

1.50 2.25 2.25

10.7 9.7 9.2

-119.0 -114.6 -111.2

1.83 1.92 1.67

TABLE XV S ENSITIVITY TO THE M ODULE -C RUNTIME RISK WEIGHT. Scen.

C setting

Ret. ↑

Spd. ↑

Out. ↑

60.5 60.5 60.1 60.8 67.2 65.6 65.4 66.1

5.50 5.49 5.43 5.54 14.89 14.54 14.61 14.59

– – – – 1368 1314 1335 1308

risk

λ = .35 λrisk = .65 λrisk = .95 w/o C λrisk = .35 λrisk = .65 λrisk = .95 w/o C

F8 F8 F8 F8 Merge Merge Merge Merge

-14.8 -14.9 -15.6 -45.0 -71.8 -74.7 -75.2 -76.9

1.53 1.44 1.51 1.61 0.91 1.64 1.14 1.35

TABLE XVI VALIDATION - SET EXECUTABLE - CANDIDATE DIAGNOSTICS . Candidate Learned K = 1 Learned K = 3 Learned K = 5 Fixed K = 5 Selected K = 5

Samp. 2.36M 2.36M 2.36M 2.36M 2.36M

Fit ↓ 1.228 0.910 0.094 0.595 0.095

∆µ ↓ 0.576 – 0.041 0.270 0.042

∆σ ↓ 0.042 – 0.018 0.030 0.025

SW ↓ 0.570 – 0.044 0.306 0.044

Ω(G map ) Ωi,feas t P0 , P1 , P2 , P3 Gtint η(·) H plan , H exec , K

Min a ↑ TTC% ↓

Role first cand. best-of-K best-of-K template Psel

Table XV shows that Module C mainly controls the safety tail. In F8, w/o C is slightly more efficient but substantially worse in minimum acceleration. Table XVI evaluates executable-candidate coverage rather than offline ADE/FDE prediction. A PPENDIX E K EY N OTATIONS This appendix summarizes the core symbols used in the system model for convenient cross-referencing.

in-network vehicle set and its HV/AV partitions AV penetration rate at TS t control-authority marker of vehicle i at TS t state vector of vehicle i joint system state heterogeneous local state of vehicle i ego history, neighbor interaction, and map semantics history-window length interaction neighborhood of vehicle i

Ui,k t τ i,k t

Ui,k , τ i,k t t

local feasible CS used in the candidate-selection subproblem unified problem and its three subproblems vehicle interaction graph mapping that extracts local semantic context from topology planning-window length, EW length, and candidate number the k-th candidate executable control sequence of vehicle i trajectory induced by rolling out Ui,k t selected control sequence and its induced trajectory

ui,k t+h−1 min max

executable control input at the h-th PS of candidate k

u , u , v min , v max uit H exec exec,∗ Uexec t , Ut f (·) F (·)

control-input and speed bounds actual executed control of vehicle i EW length (in PSs) of each replanning period executed control set and selected executed-control set vehicle-level one-step transition mapping closed-loop environment state-transition mapping

Jti,k

integrated score of candidate k

Sti,k , Eti,k

behavior-similarity term and efficiency term

Rti,k , Dti,k

risk term and violation-cost term

ω sim , ω eff , ω risk , ω dyn ∆real , ∆tail β real , β tail kti,∗

weights of the score terms rollout-level realism and tail-risk target penalties weights of the realism and tail-risk target penalties candidate index selected for execution for vehicle i at RI t local shorthand for kti,∗ in a fixed RI-vehicle pair rollout-level sequence of selected execution indices long-term reward discount factor trainable parameter-block collection {ϕA , ϕB , ϕC } learnable parameter blocks of Modules A, B, and C; Module C is implemented through the discriminator block ϑ and the cached long-tail reweighting state coarse behavioral tag used for positive/negative grouping in Module A branch-specific features in Module A branch encoders for history, interaction, and map-semantics streams heterogeneous embeddings and interaction-attention weight condition vector from Module A

k∗ k γ Θ ϕA , ϕB , ϕC bit zih,t , zin,t , zim,t , zir,t φh (·), φn (·), φm (·) eκ (·), eρ (·), αi,j t cit

IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS

Lrepr , Lstb , Lsep i,k y0i,k , yd

b i,k , τ b i,k U t t diff

, βd , αd , ᾱd

i,k

, PredϕB (·)

L ξ

Lgen , Lnoise , Lfea , λfea wti,k , λsafe , λcol λsep , λreg , msep ε Sti,+ , Sti,− λtopo , ∆topo (·), Ωmap t gϕA (·), PredϕB (·) τ i,exp t Dϑ (·), ϑ, σ(·) χi,k t ,β λadv,(e) , e, E warm Lalign,(e) , Lalign , Ltail

21

representation-learning objective, intra-class compactness term, and inter-class separation term vectorized candidate control sequence and its dth noisy state reconstructed control sequence and induced trajectory of candidate k diffusion steps, noise schedule, signal-preservation coefficient, and accumulated preservation coefficient Gaussian noise and Module B noise predictor

where:

generator objective, denoising loss, feasibility loss, and the feasibility weight candidate training weight, safety-margin weight, and conflict penalty weight separability weight, regularization weight, and margin small constant used to avoid division by zero in THW/TTC computation positive/negative sets of time-vehicle sample (t, i) topological-feasibility weight, PW-level topology-deviation rate, and map-admissible state set condition encoder and conditional denoising predictor

In these expressions, αv , αwait ≥ 0 are weighting coefficients for the average-speed reward and waiting-time penalty, respectively; v̄ti,k is the mean speed of candidate k over the prediction horizon; v ref > 0 is a reference speed used for normalization; rti,k,wait is the low-speed occupancy ratio; and v th is the waiting-speed threshold.

expert reference trajectory Module C discriminator, discriminator-parameter block, and Sigmoid mapping long-tail reweighting coefficient and gain adversarial warm-up weight, epoch, and warm-up length progressive alignment loss, base alignment loss, and long-tail weighted discrepancy

A PPENDIX F D ETAILED D EFINITIONS OF C LOSED -L OOP S CORING T ERMS This appendix gives one normalized implementation of the score terms in Eq. (27) using the candidate-level quantities defined in the main text. For ease of weighted aggregation, all terms are normalized or clipped to comparable ranges before aggregation. Here, k ∈ {1, . . . , K} denotes the candidate index, and k ∗ denotes the execution index obtained by score maximization. The terms below specify the componentlevel aggregation, while Appendix B reports the executable coefficients used in the experiments. Thus, the αlabel symbols in this appendix should be interpreted as score-component grouping weights, and their operational effect is realized through the normalized online selector coefficients reported in Appendix B.

v̄ti,k = rti,k,wait =

H plan

h=1 plan H X

1

i,k vt+h ,

H plan

(62)   i,k I vt+h < v th .

h=1

C. Safety Risk Term The safety-risk term is defined as: Rti,k = αthw rti,k,thw

(63)

+ αttc rti,k,ttc ,

where the risk thresholds are defined consistently with Section III-D. Accordingly, the THW- and TTC-based penalties use the same thresholds δ THW and δ TTC as those in the local feasible candidate set Ωi,feas : t ! δ THW − THWi,k,min i,k,thw t , (64) rt = max 0, δ THW ! δ TTC − TTCi,k,min i,k,ttc t rt = max 0, . (65) δ TTC Here, THWi,k,min and TTCi,k,min are the candidate-level t t minimum safety indicators defined in Section III-D. The coefficients αthw , αttc ≥ 0 weight the THW- and TTC-based risk contributions, respectively. The two normalized penalties rti,k,thw and rti,k,ttc become active only when the candidate violates the corresponding safety threshold. D. Dynamic and Topology Violation Cost The dynamic/topological violation cost is defined as: Dti,k = αacc rti,k,acc

A. Behavior Similarity Term The behavior-similarity term is defined as:    i Sti,k = σ Dϑ τ i,k , s , t t

plan H X

1

+ αmap rti,k,map

(66)

+ αcol rti,k,col ,

(60) where:

where Dϑ (·) denotes the discriminator scoring function and σ(·) is the Sigmoid mapping. B. Efficiency Term The efficiency term is defined as: v̄ i,k Eti,k = αv tref v − αwait rti,k,wait ,

(61)

rti,k,acc =

1 H plan − 1

plan H X

h=2

i,k ui,k t+h−1 − ut+h−2

2

, 2

(67)

rti,k,map and rti,k,col are the topology and predicted conflict penalties introduced in Section III-D. In the executable implementation, the predicted conflict penalty uses: !   dsafe − di,k,min i,k,min i,k,col t rt = max 0, + I d ≤ 0 , (68) t dsafe where di,k,min and dsafe follow the main-text definitions. t Thus, the term is activated before an actual simulator collision occurs, using the predicted candidate occupancy and

IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS

leader/conflict geometry. The weights αacc , αmap , αcol ≥ 0 balance smoothness, topology consistency, and collision avoidance, respectively.

22

Record · ID 280161 · SHA-256 0e4896bfab31b6ca
Retrieved via Conceptio — every document is proof-bundled with source, license, and retrieval metadata.