arXiv:2610.35070eess.SYOct 2026

Manuscript Offprint

arXiv:2610.35070

Joint Dynamic Lane Reversal and Variable Speed Limit Control: A Graphormer-Based Approach

Hamed Araab, Abbas Ahmadi, Mohammad Hossein Basiri

Hamed Araab

Department of Industrial Engineering

and Management Systems

Amirkabir University of Technology

(Tehran Polytechnic)

Tehran, Iran

hamedaarab@aut.ac.ir

Abbas Ahmadi

Department of Industrial Engineering

and Management Systems

Amirkabir University of Technology

(Tehran Polytechnic)

Tehran, Iran

abbas.ahmadi@aut.ac.ir

Mohammad Hossein Basiri

Department of Electrical Engineering

Amirkabir University of Technology

(Tehran Polytechnic)

Tehran, Iran

basiri@aut.ac.ir

Abstract—Connected and automated vehicles could allow reassigning lane directions and speed limits on every road frequently, but the benefit hinges on how traffic reroutes, and one-way roads can isolate junctions. We formulate network-wide dynamic lane allocation and directional speed limit control with one-way roads, lane clearing before each reversal, and a navigable graph kept strongly connected at all times. An action-resolution algorithm grounded in graph orientation theory admits a proposal closing a direction only if the network stays strongly connected and otherwise relaxes or reverts it, keeping all junctions mutually reachable within the model, even during clearing. All road controllers share one transformer whose attention, Global Endpoint Relation-Aware Spatio-Temporal Self-Attention (GERASTSA), spans all road-time tokens, biased by the endpoint relations between roads. It is pretrained on action-conditioned traffic forecasting and fine-tuned with per-road proximal policy optimization under a mixed reward that also credits neighboring roads and the network. On a 6×66 \times 6 grid with commuter rush hours, the learned policy makes about two thirds of roads one-way in the peak direction and cuts daily delay by 90% against the initial configuration held fixed and by 85% against a tuned two-way load balancer. Restricted to two-way roads at test time, it gains only about as much as this balancer, whereas its learned speed limits add delay. Pretraining roughly halves the updates needed to surpass the fixed configuration. Of the ablations, only removing the relational bias or the spatial embedding clearly matters, multiplying delay about fivefold.

Index Terms—Dynamic lane reversal, Variable speed limits, Reinforcement learning, Graphormer, Connected and automated vehicles, Network-wide traffic control

I. INTRODUCTION

Urban traffic demand is directionally unbalanced. In the morning, commuters travel from residential areas toward commercial ones, and in the evening they return, so that the lanes leading in one direction are congested while those leading in the other are lightly used. The lane directions of most roads, however, are fixed. Reversible lanes and contraflow operations relax this restriction by assigning lanes to the direction that needs them [1], [2], and variable speed limits (VSLs) regulate how traffic uses the capacity that a road offers [3]. In practice, both are usually deployed on individual corridors, where reversible lanes typically follow preset schedules and VSLs react to local conditions. Connected and automated vehicles (CAVs) change this picture: they can be informed of a new lane direction or speed limit immediately and, if they comply with it reliably, make it conceivable to reconfigure every road of a network at short intervals in response to current traffic [4], [5].

Reconfiguring a network, rather than a corridor, raises two difficulties. The first is that the effect of a change in capacity depends on how traffic redistributes across the network. Braess's paradox shows that even adding capacity can lengthen travel times [6], and assigning more lanes to one direction of a road necessarily takes them from the other, so the traffic it sheds can burden the surrounding roads. This motivates deciding lane allocations with the whole network in view and, because speed limits shape how traffic uses the capacity that an allocation provides, deciding them together with the speed limits. The second difficulty is reachability. Assigning all lanes of a road to a single direction turns it into a one-way road, which can concentrate capacity where it is needed most but can also cut junctions off from each other. Robbins' theorem [7] settles when every road of a network can be made one-way with all junctions still mutually reachable, but only for an orientation that never changes. We require a dynamic controller to preserve reachability at every time step, including while a reversal is in progress: before traffic may enter a lane in its new direction, the vehicles still traveling in its old direction must leave, and until they have, the lane serves neither direction [1].

Prior work addresses parts of this problem. Dynamic lane reversal has been formulated as an optimization problem over a given or forecast demand, solved with integer and bi-level programs or within dynamic traffic assignment [4], [5], [8], [9]. Reinforcement learning (RL) has been used to allocate lanes without a model of the demand, in experiments that keep at least one lane in each direction of every road [10]. Lane or road-width reallocation has been integrated with flow and speed control, but through model-based optimization on freeways and motorways [11], [12]. To our knowledge, no prior work learns a policy that jointly sets lane allocations and speed limits on every road of a general network while permitting one-way roads and guaranteeing that every junction remains reachable from every other.

We address this gap with a formulation that separates what a controller may propose from what takes effect. Every road has a road controller that proposes, at every decision step, how many of its lanes serve each direction and a speed limit for each direction, bounded above by the nominal speed limit. All proposals pass through action resolution, which accepts those that would close a direction one at a time, in random order, only as long as the network stays strongly connected, and otherwise relaxes them to keep one lane open or, on single-lane roads, reverts them. Together with a per-road restriction that keeps both directions of every bridge road open and an explicit model of lane clearing, this guarantees strong connectivity at every time step, including during the clearing that precedes a reversal. Like a shield in safe RL [13], action resolution thus lets the learned policy explore any admissible action without ever cutting a junction off from the rest of the network.

Because the traffic regulated by the controllers couples the whole network, we realize all road controllers with a single transformer [14] whose tokens are road-time pairs. Its attention mechanism, Global Endpoint Relation-Aware Spatio-Temporal Self-Attention (GERASTSA), attends jointly over space and time and, in the spirit of graph transformers [15], biases attention by the endpoint relations between roads. We pretrain the model on a self-supervised task native to the domain, forecasting the traffic of every road conditioned on the lane allocations and speed limits that take effect in between, and fine-tune it with proximal policy optimization (PPO) [16] applied per road. Each road optimizes a mixed reward that combines its own reward with those of its neighbors and of the whole network, so that the objective of a road also reflects the cost that its becoming one-way imposes on the roads that absorb its traffic.

Our contributions are as follows.

• We formulate network-wide dynamic lane allocation and directional speed limit control with one-way roads, explicit lane clearing, and a strong-connectivity requirement on the navigable graph (Section III).

• We give an action-resolution algorithm, grounded in graph orientation theory, that enforces this requirement at every time step while leaving per-road admissibility to the action space, and show that it does so (Section III-E, Proposition 1).

• We propose the GERASTSA transformer, a single model for all road controllers whose attention is biased by the endpoint relations between roads, including the directions in which adjacent roads meet, and whose embeddings encode the junction degrees of every road and the position of every time step within the window (Section IV).

• We train it by pretraining on action-conditioned traffic forecasting and fine-tuning with per-road PPO under a mixed reward (Section V), and evaluate the learned policy on a grid network with commuter rush hours against a baseline without a policy and a heuristic that keeps every road two-way, against fine-tuning without pretraining, against restrictions of its actions at test time, and against ablations of the components of the GERASTSA transformer (Section VI).

The remainder of the paper is organized as follows. Section II reviews related work on lane reversal, VSLs, integrated and learning-based traffic control, and spatio-temporal and graph attention. Section III formulates the control problem and action resolution, Section IV presents the GERASTSA transformer, and Section V describes the environment, pretraining, and fine-tuning. Section VI reports the results, Section VII discusses them, and Section VIII concludes.

References (49)