Manuscript Offprint
arXiv:2610.35070Joint Dynamic Lane Reversal and Variable Speed Limit Control: A Graphormer-Based Approach
Hamed Araab
Department of Industrial Engineering
and Management Systems
Amirkabir University of Technology
(Tehran Polytechnic)
Tehran, Iran
Abbas Ahmadi
Department of Industrial Engineering
and Management Systems
Amirkabir University of Technology
(Tehran Polytechnic)
Tehran, Iran
Mohammad Hossein Basiri
Department of Electrical Engineering
Amirkabir University of Technology
(Tehran Polytechnic)
Tehran, Iran
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 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.
A. Lane Reversal and Contraflow
Reversible lanes and contraflow operations match road capacity to directionally unbalanced demand, both for recurring commuter peaks and for emergency evacuation [1], [2]. In practice, they follow fixed schedules or are activated for planned events [1]. At the network level, the choice of which roads to reverse has been formulated as an optimization problem, chiefly for evacuation, where the configuration is held for the duration of the event [17].
CAVs have motivated dynamic lane reversal, in which lane directions follow the traffic as it evolves. [4] compute lane configurations that maximize network flow with integer linear and bi-level programs, and examine how directional imbalance and the granularity of reallocation affect the benefit. [8] extend a system-optimal dynamic traffic assignment model based on the cell transmission model (CTM) so that it also determines lane directions at fine space-time resolution. [5] develop a CTM for dynamic lane reversal with autonomous vehicles and derive a heuristic from an analysis of a single link, which they apply to city networks. [9] optimize lane reversal together with the routes and schedules of individual vehicles as an integer program, solved with a distributed algorithm based on the alternating direction method of multipliers. For freeways, [18] model reversible lanes macroscopically and operate them with a logic-based controller and with model predictive control (MPC). [19] choose the locations, operating times, and installation modes of reversible lanes with a minimum-cost maximum-flow formulation that accounts for risk and economic costs.
These approaches optimize against a demand that is given or forecast in advance. [10] instead learn lane allocations with RL: local agents propose lane-direction changes, which are coordinated through a graph of dependencies between roads derived from vehicle paths, and connected vehicles are rerouted in response to the new configuration. In their experiments, every road keeps at least one lane in each direction. We likewise learn a policy that maps the observed state of the network to lane allocations, but we allow roads to become one-way whenever the network remains strongly connected, and we model the clearing of lanes explicitly, so that a reversal takes effect only once traffic allows.
Allowing roads to become one-way raises the question of reachability between junctions. Robbins’ theorem [7] characterizes the graphs that admit a strongly connected orientation; it extends to mixed multigraphs [20], and such orientations can be computed in linear time [21]. These results concern a single, static orientation. We use them to guarantee that an admissible initial configuration exists and combine them with action resolution so that strong connectivity is preserved at every time step while lane allocations change.
B. Variable Speed Limits
VSLs lower the posted speed in response to traffic conditions to delay the onset of congestion, dampen shock waves, and improve safety [3]. [22] found from field data that advisory variable speed signs barely changed capacity but stabilized traffic, and derived a control policy that postpones congestion on a freeway section. MPC coordinates speed limits with ramp metering through a macroscopic traffic model [23], whereas the SPECIALIST algorithm derives speed-limit interventions from shock-wave theory to resolve traffic waves [24]; its field test on a Dutch freeway confirmed its effect on shock waves but also showed that it was less effective for other types of congestion [25].
RL avoids the need for an explicit traffic model in the controller, although the policy is usually trained in simulation. [26] formulate dynamic speed limit control on a network with stochastic demand and supply as a Markov decision process, and evaluate it on the Sioux Falls network in terms of throughput, delay, and emissions. On freeways, [27] learn speed limits with Q-learning to relieve congestion at a recurrent bottleneck, [28] learn lane-specific speed limits with a deep actor-critic algorithm in a setting with CAVs, and [29] represent the freeway as a graph of road topology, occupancy, and speed to assign speed limits per lane and location. We set speed limits on every road and direction of an urban network and decide them jointly with lane allocations.
C. Integrated Control
Lane reversal has also been integrated with other traffic controls. [11] combine dynamic lane reversal with traffic-flow control on a motorway network: a multilane CTM and a mixed-integer linear program, solved within MPC, determine the lane directions and the control actions communicated to autonomous vehicles. For lane-free traffic of CAVs on bidirectional freeways, [12] integrate internal boundary control, which shifts the road width assigned to each direction, with ramp metering and VSLs, and minimize the total time spent with a quadratic program over an extended CTM. These studies indicate that, on freeways and motorways, reallocating directional capacity and regulating flow can complement each other. They rely on optimization over a macroscopic traffic model and consider freeway or motorway settings with continuous width or bidirectional roads, whereas we consider a general road network with integer lane counts, one-way roads, and an explicit requirement on directed reachability.
D. Learning-Based Network Traffic Control
Network-wide traffic control with RL has been studied most extensively for traffic signals. Every intersection typically acts as an agent, and the agents must cooperate because their decisions affect each other's traffic. [30] let agents share information with their neighbors and discount the rewards of distant agents, [31] let each intersection aggregate the states of its neighbors with graph attention, and [32] share a single graph-convolutional policy across all intersections, which transfers without retraining to road networks and traffic conditions not seen in training, including the 3,971 signals of Manhattan. Like the last, our model shares its parameters across all roads and is not tied to the size of the network (Section IV), and our mixed reward adapts the reward discounting of [30] (Section V-C1).
More broadly, independent and multi-agent variants of PPO, in which agents with shared parameters optimize their own clipped objectives, perform strongly on cooperative benchmarks [33], [34]. We adopt this per-agent treatment, but whereas the policy of each agent acts on a local observation in these methods, ours observes the whole network through a single transformer, as does our critic. Invalid action masking removes inadmissible discrete actions from the policy [35], and shielding replaces unsafe actions with safe ones before they reach the environment [13]; we use the former for per-road admissibility and the latter, in the form of action resolution, for the network-wide connectivity requirement.
Finally, self-supervised objectives can make RL more data-efficient, either as auxiliary tasks trained alongside the policy [36] or as a pretraining stage that learns representations, including models of the environment dynamics, before fine-tuning [37]. Our pretraining follows the latter approach with action-conditioned traffic forecasting, a task native to the traffic domain (Section V-B).
E. Spatio-Temporal and Graph Attention
Traffic forecasting models capture spatial dependencies on the road network together with temporal dynamics, originally by combining graph convolutions with recurrent or convolutional sequence models [38], [39]. Attention-based models have since become prominent. GMAN stacks blocks of spatial and temporal attention in an encoder–decoder architecture [40], and PDFformer applies spatial self-attention with graph masks for short- and long-range dependencies and accounts for the delay with which traffic propagates between locations [41]. Unlike these models, which attend over space and time in separate steps, our model attends jointly over all road–time pairs of a window (Section IV).
The transformer [14] is permutation-equivariant and therefore needs structural information to be injected. Relative position representations add learned terms for clipped relative distances to the attention computation [42], and Graphormer adds a learnable bias indexed by the shortest-path distance between two nodes to the attention scores and a degree-based centrality encoding to the node features [15]. Our attention follows this design on the controller graph but refines the relations between adjacent roads by the directions in which both flow into their shared junction, and our spatial embedding refines the degree encoding by direction, since both distinctions bear on how traffic passes from one road to the next. The choice of graph matters: intersection adjacency [31], shared vehicle paths [10], and adjacency between controlled roads encode different relationships. We use the last, which matches our decision variables, and keep it separate from the navigable graph, which describes the movements that remain physically available.
F. Positioning
In summary, prior work has controlled lane directions dynamically, learned lane allocations with RL, and integrated lane or road-width reallocation with flow and speed control through model-based optimization. As noted in Section I, however, to our knowledge none of it combines these elements in a learned policy for general networks with one-way roads and guaranteed strong connectivity. Our approach does so through action resolution grounded in graph orientation theory and a single Graphormer-style transformer for all road controllers.
III. PROBLEM FORMULATION
A. Road Graphs
Robbins’ theorem [7] states that a connected undirected graph admits a strongly connected orientation, that is, a direction for every edge such that every vertex can reach every other vertex, if and only if the graph has no bridge, an edge whose removal disconnects it. Operating every road as a one-way road is such an orientation, so, with reachability judged between junctions, the theorem characterizes exactly when a road network can run entirely on one-way roads with every junction still reachable from every other. Roads, however, consist of lanes, and a road with two or more lanes can serve both directions at once. We build on this observation: the lanes of each road may be split between its two directions, and roads that would otherwise violate the conditions of the theorem are required to have enough lanes for such a split.
We model the road infrastructure as the infrastructure graph G, a simple undirected graph whose vertices are a finite set of junctions J and whose edges are roads R, each road being an unordered pair of distinct junctions. The network has at least one road, and each road has total lanes. Fig. 1 (a) shows an example.
A cut is a nonempty proper subset of junctions, and is the set of all cuts. The cut-set of a cut consists of the roads with exactly one endpoint in .
Requiring every cut-set to be nonempty is equivalent to requiring G to be connected.
A bridge road is a road that forms the entire cut-set of some cut, and is the set of bridge roads.
In line with Robbins’ theorem, we assume that every bridge road has at least two lanes so that it can carry traffic in both directions at once, which a single-lane road cannot do.
Traffic on a road flows in one of two directions, . We fix a reference ordering of the endpoints of every road, marked by the superscripts – and +: traveling from its first endpoint to its second endpoint is forward, and the opposite is backward. The orientation map sends a road and a direction to the corresponding arc, an ordered pair of junctions. Throughout, an arc is an oriented road, and applied to a set denotes the set of images.
with fixed ordering ;
We consider a horizon of steps, with time steps and decision steps , the time steps at which the controllers act. A superscript marks the value of a quantity at time step . At time step , road has open lanes usable in direction , defined in (10). The arcs with at least one open lane form the navigable arc set , which defines the navigable graph on the junctions (Fig. 1 (b)).
(7)
We require that drivers be able to travel between any two junctions at every time step, that is, that the navigable graph be strongly connected. An arc set has this property exactly when, for every cut , it contains an arc from to its complement . Because the complement of a cut is again a cut, the same condition also guarantees an arc into every cut. We collect all strongly connected arc sets in and require the navigable arc set to belong to at every time step.
(8)
At t = 0, this strong-connectivity requirement is an assumption on the initial configuration; at later time steps, it must be maintained by action resolution (Section III-E). The assumptions on G in (3) and (5) ensure that the requirement can be met. By Robbins' theorem, the roads within each

(a) Infrastructure graph G

(b) Navigable graph

(c) Controller graph
Fig. 1. An example network with junctions and roads. (a) Each stroke is one lane. Road (heavy) is the only bridge road, , so it has at least two lanes, and strong connectivity requires it to keep at least one open lane in each direction. (b) A strongly connected navigable arc set : arrows show the navigable arcs (solid: forward; dashed: backward), with one stroke per open lane ; most roads are one-way, yet is strongly connected. (c) One road controller per road; controllers of roads that share a junction are neighbors.
connected component of G without its bridge roads, which has no bridges, admit a strongly connected orientation, and opening both directions of every bridge road, which is possible because it has at least two lanes, joins these components into a strongly connected whole. Equivalently, treating every bridge road as a pair of opposite arcs and every other road as an undirected edge yields a mixed graph in which no undirected edge is a bridge, which admits a strongly connected orientation by the extension of Robbins' theorem to mixed multigraphs [20]; such an orientation, and hence an admissible initial configuration, can be found in linear time [21]. Moreover, S is closed under supersets: opening additional arcs never breaks strong connectivity, a fact we rely on during action resolution.
B. Controller Graph
Every road is governed by a road controller that decides the road's lane allocation and speed limits. Two roads that share a junction exchange traffic directly, so their controllers are neighbors. The resulting coupling structure is the controller graph, the line graph of the infrastructure graph: its vertices are the roads, and its edges join pairs of roads with a common endpoint (Fig. 1 (c)).
The controller graph describes how roads are coupled directly through traffic, not which controllers may share information; in our model (Section IV), every controller draws on the state of the whole network. The strong-connectivity requirement in (8), by contrast, couples all roads at once and cannot be checked within any single neighborhood, so it is enforced during action resolution (Section III-E).
C. Lane Allocations and Speed Limits
The lanes of a road are allocated between its two directions, and we describe an allocation by the number of lanes assigned to the forward direction; the remaining lanes are assigned to the backward direction, as in reversible-lane and contraflow operations [1] and dynamic lane reversal [5]. At time step t,

Fig. 2. Clearing two lanes of a road with (lane 1, the first forward lane, at the bottom). When the target lanes drop below the active lanes , lanes are closed to both directions (dark grey) while vehicles traveling in their old direction leave them. Clearing is atomic: once it completes, all of these lanes open at once to the backward direction (hatched; forward lanes are tinted) and . The open lanes below each state need not sum to while the road is clearing.
road has active lanes and target lanes, both counted in the forward direction, and every road starts at its target, . Whenever the two differ, the lanes in between must be cleared before they can change direction: they are closed in both directions until the vehicles traveling in their old direction have left, so that vehicles in the new direction can safely enter, as in the operation of reversible lanes in practice [1]. The open lanes in a direction are therefore those assigned to it by both the active and the target lanes, and the forward and backward open lanes need not sum to . The roads with lanes being cleared are the clearing roads . Clearing is atomic: once it completes, all clearing lanes of the road open at once in their new direction, and the active lanes become equal to the target lanes. Fig. 2 illustrates this process.
Each road controller also sets a speed limit for each direction of its road. The nominal speed limit is the speed limit set by traffic engineers based on safety, road geometry, zoning, and similar considerations. It is an upper bound: the controller may lower the speed limit to regulate traffic, as in VSL control [3], [23], but never raise it beyond the nominal value, so the posted speed never exceeds the value that traffic engineers set for the road. From below, speed limits are bounded by a common crawl speed , which every nominal speed limit exceeds. We parametrize the active speed limit by the active normalized speed limit , which interpolates linearly between the crawl speed at 0 and the nominal speed limit at 1; initially, every active speed limit is nominal.
Since the crawl speed is strictly positive, lowering a speed limit slows the traffic in a direction but never stops it; traffic in a direction can only be stopped by closing all of its lanes. Vehicles on clearing lanes still travel in their old direction and remain subject to its active speed limit until they leave.
D. Joint Action
At every decision step, the road controllers jointly select an action consisting of proposed lanes , one forward lane count per road, and proposed normalized speed limits , one per road and direction. The action space is the product of the admissible proposals for lanes and speed limits.
Admissible proposed lanes are defined per road. A clearing road is locked to its target: its only admissible proposal is its target lanes, so a road cannot be retargeted until its clearing completes. A bridge road that is not clearing must keep at least one lane in each direction, which excludes the extreme proposals 0 and . Every other road may propose any allocation, including one that assigns all of its lanes to a single direction.
Admissible proposed normalized speed limits are defined per road and direction. A direction with open lanes may receive any proposed normalized speed limit in , whereas the proposed normalized speed limit of a direction without open lanes is frozen at its active normalized speed limit, since no vehicle can enter that direction.
Every admissible set in (13) and (14) is nonempty; for bridge roads that are not clearing, this relies on from (5). Hence for all .
Admissibility is a per-road property and does not depend on the proposals of other roads. In particular, the action space encodes the strong-connectivity requirement in (8), which couples all roads, only through the bridge-road restriction. A closing proposal of a bridge road would always be rejected, so excluding it from the action space leaves less to action resolution and makes the effect of an action more predictable. All other actions that would violate the requirement are filtered during action resolution.
E. Action Resolution
Proposed lanes do not take effect immediately: an accepted proposal becomes the road's next target lanes, and the road then clears toward them. A new target closes the lanes on which it disagrees with the active lanes at once, but these lanes reopen in their new direction only once clearing completes, at a time determined by traffic. We therefore assess proposals in the state before clearing completes, which has the fewest open lanes; completing clearing can only add to them. To this end, we consider a profile n of target lanes, with for road r. The prospective open lanes are the open lanes of road r in direction d if its target lanes were while its current active lanes remained;
in particular, by (10), . The prospective navigable arc set contains the arcs that would have at least one open lane.
Finally, for a road with at least two lanes, the relaxation function maps each extreme allocation, 0 or , to the nearest allocation that leaves one lane in the opposite direction.
We call a road’s proposal closing if it would close a direction that is currently open, that is, if but for some direction . An open forward direction implies , so it closes only for the proposal 0; likewise, an open backward direction implies , so it closes only for the proposal . Hence every closing proposal is extreme, . By (13), neither a clearing road nor a bridge road ever proposes closing: the former proposes its target lanes, whose prospective open lanes are its open lanes, and the latter cannot propose 0 or . A non-closing proposal keeps every open direction open and therefore never removes an arc from the prospective navigable arc set. Algorithm 1 exploits this: it accepts all non-closing proposals at once, then considers the closing roads one at a time in uniformly random order, tentatively accepting each proposal and rejecting it if the prospective navigable arc set would leave S. A rejected proposal is relaxed rather than discarded: a road with at least two lanes adopts the relaxed proposal , which keeps one lane in the direction the proposal would have closed, whereas a single-lane road reverts to its current target lanes. The algorithm builds the next target lanes in place, starting from the current target lanes . The random order prevents any road from being systematically favored when closing proposals conflict, and it makes the transition from one time step to the next stochastic, together with traffic. Algorithm 1 is a shield [13] in the sense of Section II-D.
Closing proposals conflict when each keeps the network strongly connected on its own but not together with the others, which is why they are checked one at a time against the proposals already accepted. Suppose, unlike in Fig. 1 (b), that every road of the left cycle of the example network has both directions open and is not clearing, and that proposes , all of its lanes forward from to , and proposes 0, all of its lanes backward from to , while all other roads propose their target lanes. Either closing proposal alone leaves the network strongly connected, but together they leave no arc from the cut to its complement. Whichever of the two comes first in the random order is accepted, and the other is relaxed to one lane in each direction.
Proposed normalized speed limits are always accepted and become the next active normalized speed limits. Each road then either keeps its current active lanes or completes clearing, in which case its next active lanes are its next target lanes; which of the two occurs is determined by traffic, not by the
Algorithm 1 Resolution of lane proposals at decision step .
Input: active lanes , target lanes , proposed lanes
Output: next target lanes
1: start from the target lanes:
2: start with an empty list of closing roads
3: for each road do
4: if for all then
5: accept the non-closing proposal:
6: else
7: append r to the list of closing roads
8: shuffle the closing roads uniformly at random
9: for each closing road r, in shuffled order, do
10: tentatively accept the proposal:
11: if then
12: if then
13: relax the proposal:
14: else
15: revert to the target lanes:
16: return

Fig. 3. One decision step. The policy of the road controllers proposes an action , consisting of proposed lanes and proposed normalized speed limits for every road. Action resolution rejects closing proposals that would break strong connectivity, relaxing them on multi-lane roads and reverting them on single-lane roads, yielding the next target lanes ; proposed normalized speed limits are always accepted and become the next active normalized speed limits . The traffic network applies the resulting active speed limits immediately, and each clearing road completes clearing once its clearing lanes are empty.
controllers (Fig. 3).
(18)
Proposition 1: If , then for all , and the navigable arc set stays in between consecutive time steps, for any admissible actions , any order of the closing roads in Algorithm 1, and any times at which clearing completes.
Proof: We show that the requirement carries over from time step , where , to time step and to the period in between, in two stages.
First, the prospective navigable arc set remains in throughout Algorithm 1. Initially, it equals
S, because for every road and direction. Accepting a non-closing proposal leaves the arc set unchanged: it keeps every open direction open, and no proposal opens a closed direction before clearing completes. A closing proposal is kept only if the arc set stays in S. When a closing proposal is rejected, reverting restores the road's open lanes, and therefore the preceding arc set in S. Relaxing restores the preceding arc set as well, because the relaxed proposal is neither 0 nor and is therefore not closing. Hence, once the algorithm returns, .
Second, the next navigable arc set contains : by (18), a road that does not complete clearing has exactly its prospective open lanes at the next time step, whereas a road that completes clearing opens all of its clearing lanes, which only adds open lanes. Since is closed under supersets, . The same holds between the two time steps: the next target lanes and next active speed limits take effect immediately, so the open lanes in that period are at least the prospective ones, and the navigable arc set stays in throughout. Induction on completes the proof.
IV. PROPOSED ARCHITECTURE
The road controllers share a single centralized model, a transformer [14]. The name of its attention mechanism, Global Endpoint Relation-Aware Spatio-Temporal Self-Attention (GERASTSA), lists its properties. It is global: every token may attend to every road at its own and every earlier time step, not only to its neighbors in the controller graph. It is endpoint relation-aware: a learned bias, selected by how two roads are related through their endpoints, is added to every attention score, in the spirit of relation-aware attention [42] and graph transformers [15]. It is spatio-temporal: its tokens are road-time pairs, so space and time are attended to jointly, and the GERASTSA transformer adds a spatial embedding of every road and a temporal embedding of every window position to the projected input. The controller of a road is the shared model read out at that road's tokens: the regressor of Section V-B and the heads of Section V-C act on the per-road outputs.
The graphs and are those of Section III. The model processes the roads in the order of a fixed bijective road indexing , with road index for road . Its hyperparameters are the input, output, model, and feedforward widths , , , and ; the numbers of heads, each of head width , and of layers; the maximum window length ; the maximum relation distance ; the maximum junction degree ; and the stabilizer of layer normalization.
Bold symbols are learnable, tensor indices start at 1, and, just as (t) marks time step t, the superscripts [n] and mark layer n and sample k. A product with a matrix, as in , acts on the last axis; swaps the last two axes, and a product of two tensors, as in , multiplies their last two axes for every index of the leading axes. A tensor added to one of higher order is repeated along the missing axes, and Softmax acts on the last axis, with . Layer normalization LN [43] and the SwiGLU feedforward network FFN [44], with biases in all its linear maps, act on every token separately and receive their hyperparameters after a semicolon.
A. GERASTSA Block
A GERASTSA block is the attention mechanism on its own. Its input consists of samples of window positions, ordered from past to present, with one token per sample , position , and road index . An attention mask allows (0) or forbids attention between tokens of the same sample, and every token must be allowed to attend to some token.
Within a sample, attention runs over all WR tokens. The token index map flattens window positions and road indices, and the head-feature index map places the features of each head within the model width.
Roads are related through their endpoints. The head junction is the junction into which road carries traffic in direction . The hop set holds the roads reached from by hops in , and the hop distance is the fewest hops that reach ; it is finite because is connected, as is.
The relation function maps every ordered pair of roads to a relation in the relation set K. A road has the self relation

Fig. 4. Relations on the controller graph of the example network, with (heavy border: ; shaded: roads adjacent to ; white: roads at hop distance at least 2). Roads adjacent to , with , are told apart by the directions in which the two roads flow into their shared junction, e.g. , with , flows into forward while flows into it backward. Each relation selects the learned relational bias of every head .
to itself. Two adjacent roads share exactly one junction, since is simple, and their adjacency relation is the unique pair of directions in which both flow into it; for instance, (fwd, bwd) means that flows into the shared junction forward and backward. Any other pair has the hop distance, capped at , as its distance relation, much like the shortest-path spatial encoding of graph transformers [15] and the clipped relative distances of [42], so . The relation index enumerates the relations, and the relation index matrix holds the relation indices of all pairs of road indices (Fig. 4).
where ;
bijective;
Every token is projected to a query, a key, and a value.
The projections are split into the H heads and flattened into token sequences.
Each head learns one relational bias per relation, collected in . The bias depends only on the roads of two tokens, so a relation is treated alike at every time lag; temporal order enters only through the mask and the temporal embedding of Section IV-B. Bias and mask are flattened like the tokens.
The attention scores add the relational bias, shared by all samples, and the mask, shared by all heads, to the scaled dot products of queries and keys [14]. By (20), the attention weights are well defined, and they vanish exactly where the mask forbids attention.
Merging the heads
and a learnable output projection
yield the output of the block (Fig. 5). The symbols of the data flow in (20) to (29) are local to the block.
B. GERASTSA Transformer
The GERASTSA transformer maps histories of the network to one output vector per sample, road, and window position. Sample ends at a time step and holds the input features, defined in Section V, of all roads at the last time steps up to , ordered from past to present.
The samples are left-padded with zeros to the longest window length W, so that their last time steps align at position W.

Fig. 5. The GERASTSA block. Queries, keys, and values are split into H heads and flattened over the WR road-time tokens of each sample. The relational bias is gathered from the learned table through the relation index matrix and shared across all window positions and samples, and the flattened mask forbids attention as specified by M, which in the transformer is the mask of (32).
Position w of sample k is valid if , in which case it holds time step , and padding otherwise.
The symbols of the data flow in (30) to (37) are local to the transformer.
The attention mask is causal: a token may attend to all roads at the valid positions up to its own. It may also attend to its own position, so that padding tokens satisfy (20).
The junction degree is the number of roads that meet at the head junction of road r in direction d. The spatial embedding of a road sums, over both directions, the rows that its junction degrees, capped at , select from the learnable tables , a directional variant of the degree-based centrality encoding of [15].
The temporal embedding gives position w row of the learnable table , a row determined by how many time steps w precedes the last time step. The last time step thus always receives row , however much its sample is padded.
A linear map lifts the input to the model width, and the temporal and spatial embeddings are added at every road and every position, respectively.
The transformer stacks N pre-norm layers [45], each wrapping a GERASTSA block and a feedforward network in residual connections, and is the residual stream halfway through layer n.
A final layer normalization and a linear map produce the output (Fig. 6).
Valid tokens never attend to padding tokens, every operation acts on each sample or token separately, and the temporal embedding is aligned to the last time step. Hence, the outputs of a sample at its valid positions are those it would receive if processed alone, regardless of padding and of the other samples; the outputs at padding positions are ignored.
No parameter belongs to a particular road: the same weights act on the tokens of all roads, which the model tells apart only by their input features, , and . Re-indexing the roads therefore permutes the outputs accordingly, and the output of each road does not depend on . Since no parameter shape depends on R or on G, the model can also be applied to other road networks, although our experiments use a single one.

Fig. 6. The GERASTSA transformer. The histories are left-padded to the longest window length , and the mask of (32) is built from their window lengths . The embedded input passes through pre-norm layers, each mapping to with a GERASTSA block and a SwiGLU feedforward network in residual connections; a final layer normalization and a linear map produce the output .
V. EXPERIMENTAL DESIGN
A. Environment
We simulate traffic with a vectorized mesoscopic traffic simulator that runs a batch of environments in parallel. Each environment simulates a sequence of episodes, single runs of the problem over the time steps , and starts the next one automatically once an episode reaches the horizon T. All vehicles are homogeneous CAVs that exchange information with the road infrastructure through vehicle-to-infrastructure communication. The simulator implements the problem of Section III: it applies the joint action of the road controllers, resolves the lane proposals with Algorithm 1, and completes the clearing of a road once the vehicles on its clearing lanes have left.
Our network is a grid of junctions with 60 roads between horizontally and vertically adjacent junctions, every road oriented forward eastward or southward. The roads of each row and column have 2, 4, or 6 lanes, with nominal speed limits of 40, 60, and 70 km/h, respectively, so that 30 roads have two lanes, 20 four, and 10 six, 200 lanes in total. The blocks lengthen from 300 to 350 m near the north-west corner to 650 m near the south-east corner. Every road of the grid lies on a cycle, so the network has no bridge roads and the bridge indicator of Table II is zero throughout; we keep the feature so that the model applies to other networks. A commercial zone occupies the north-west corner of the grid and a residential zone the south-east corner, and on top of a background demand, the commutes between them cause a morning rush hour toward the commercial zone, peaking at 08:00, and an evening rush hour back, peaking at 17:30. An episode simulates one day, from midnight to midnight, with a decision step every 600 s, so . In fine-tuning and evaluation, every episode starts with the lanes of each road split evenly between its two directions and every speed limit nominal.
Road has length , and each of its lanes holds at most vehicles, its per-lane capacity; the hyperparameter bounds the total lanes of every road. Table I lists this and all other hyperparameters of our experiments. The simulator describes the traffic in each direction of a road by three quantities, computed over the active lanes of the direction. The congestion is the number of vehicles on the most-occupied active lane, and the density the mean number of vehicles per active lane, both relative to . The normalized velocity is the mean velocity of the vehicles divided by the nominal speed limit. All three are 0 for a direction without active lanes, and the normalized velocity is 1 for a direction with active lanes but no vehicles, which flows freely.
Vehicles route themselves with knowledge of the current traffic: the cost of a route accounts for the congestion and the mean velocity of every road direction along it. Whenever a vehicle reaches a junction, it checks two conditions and, if either holds, reroutes from that junction along an optimal route; otherwise, it keeps its route. The first is that the next road of its remaining route has no open lane in the direction of the route, as when that direction has been closed. The second is that an optimal route costs less than times the remaining route, where is the rerouting threshold. We chose the threshold arbitrarily; it only keeps vehicles from oscillating between routes of nearly equal cost. The first condition never strands a vehicle: since the navigable graph is strongly connected at every time step (Proposition 1), a vehicle that must reroute because a direction has been closed always has a route to the junction of its destination.
Every road is described by the 18 input features of Table II. The five features in the first four rows are static, and the others change over time. Per-direction features are listed forward first. The target and active lanes enter once each, since their backward counterparts are minus the forward ones.
Concatenating the features yields the feature vector , so the input width of Section IV is . A sample ends at a decision step or, for the bootstrap value of Section V-C3, at the final time step , and its time steps (Section IV-B) lie within its episode.
TABLE I HYPERPARAMETERS OF THE EXPERIMENTS.
| Symbol | Hyperparameter | Value |
|---|---|---|
| Environment | ||
| Maximum total lanes | 6 | |
| Rerouting threshold | 0.1 | |
| GERASTSA transformer | ||
| Output width | 128 | |
| Model width | 128 | |
| Feedforward width | 176 | |
| Heads | 8 | |
| Layers | 4 | |
| Maximum window length | 16 | |
| Maximum relation distance | 6 | |
| Maximum junction degree | 6 | |
| Layer-normalization stabilizer | ||
| Pretraining | ||
| Horizon set | ||
| Reward | ||
| Trip credit | 600 s | |
| Own weight | 0 | |
| Neighbor weight | 0.3 | |
| Network weight | 0.7 | |
| Policy | ||
| Minimum speed standard deviation | 0.05 | |
| Maximum speed standard deviation | 0.25 | |
| PPO | ||
| Discount factor | 0.993 | |
| GAE parameter | 0.95 | |
| Clipping parameter | 0.2 | |
| Value coefficient | 0.5 | |
| Lane entropy coefficient | ||
| Speed entropy coefficient | ||
TABLE II INPUT FEATURES OF ROAD AT TIME STEP .
| Feature | Value | Count |
|---|---|---|
| Road length | 1 | |
| Total lanes | 1 | |
| Nominal speed limit | 2 | |
| Bridge indicator | 1 | |
| Congestion | 2 | |
| Density | 2 | |
| Normalized velocity | 2 | |
| Active normalized speed limit | 2 | |
| Open lanes | 2 | |
| Target lanes | 1 | |
| Active lanes | 1 | |
| Clearing indicator | 1 |
B. Pretraining
Pretraining is a self-supervised, multi-horizon forecasting task. From the history of the network, the model forecasts the congestion, density, and normalized velocity of every road and direction several steps ahead. As in spatio-temporal traffic forecasting [38], [39], the task encourages the model to learn how traffic propagates through the network; unlike there, it also encourages the model to learn how traffic responds to lane allocations and speed limits.
The data come from episodes simulated under a random behavior policy. Each episode starts from randomly drawn target lanes, one-way roads included, that satisfy the strong-connectivity requirement in (8), with active lanes equal to target lanes and every active normalized speed limit nominal. At randomly chosen decision steps, a road proposes a random admissible lane count, random normalized speed limits for its open directions, or both; otherwise, it proposes its current target lanes and active normalized speed limits, which leaves them unchanged. Action resolution (Section III-E) processes every proposal, so the data also cover rejected and relaxed proposals.
The encoder is a GERASTSA transformer with 561,600 parameters that receives the 18 features; its maximum window length spans 150 min of history, so a sample with a full window has road-time tokens. We write for its output at road and the last window position of a sample ending at time step . Only this position serves as the forecast origin, as in fine-tuning: in every layer, its tokens attend to all roads at all valid positions of the window, so the stacked layers can gather the spatial and temporal information of the whole window there.
For every horizon in the horizon set , a per-road regressor reg forecasts the forecast quantities , the three traffic quantities of Section V-A in both directions of road . Following the direct strategy of multi-step forecasting [46], it forecasts each horizon separately rather than feeding its own forecasts back, and it does so as a residual on the current values. Besides the encoder output, it receives the one-hot horizon indicator and the action context , which lists the normalized target lanes and the active normalized speed limits of road at the time steps , padded with zeros to the longest horizon. These result from the actions at the decision steps after action resolution, so the forecasts are conditioned on the actions that take effect in between. A paired superscript marks a quantity of the forecast from time step at horizon . Encoder and regressor are trained jointly to minimize the mean squared error over the six forecast quantities and over all samples of a batch, roads, and horizons whose forecast time step lies within the same episode.
After pretraining, the regressor is discarded, and the encoder initializes the fine-tuning.
C. Fine-Tuning
Fine-tuning is an RL task in which the model learns to propose lane counts and normalized speed limits that maximize the return.
- Reward: Over decision step , road completes trips and accrues the delay : the time spent by vehicles waiting for admission at the road and the time lost by vehicles traveling on it below its nominal speed limit. Its reward credits each completed trip with and charges the delay. The reward that the road optimizes, its mixed reward , combines its own reward, the mean reward of its neighbors in the controller graph, and the mean reward of the whole network with nonnegative weights , , and that sum to 1. It resembles the spatially discounted rewards of multi-agent traffic signal control [30], which weight the reward of every agent by a power of its distance, but it keeps a fixed share for the whole network.
Because roads may become one-way, we keep the own weight close to zero. Closing a direction sheds its traffic onto other roads: the road's own reward can rise, since fewer vehicles travel on it and accrue delay there, while the network as a whole can lose. With a large own weight, a road could profit from this, which could push the policy toward one-way roads. Weighting the neighbors and the network makes a road bear part of the cost of the traffic it sheds. In our experiments, (Table I), so a road's own reward still enters its mixed reward, but only through the network mean, with weight , since does not contain r.
- Policy and Value Networks: The actor and the critic are separate networks, each consisting of a GERASTSA transformer and per-road heads, and both transformers are initialized from the pretrained encoder. The heads act on the outputs at the last time step of a sample (Section V-A). The critic has a value head that yields the value of road . The actor has a lane head and, per direction, two speed heads.
The lane head outputs one logit for every lane count from 0 to , the proposed target lanes of the forward direction; the backward direction receives the remaining lanes. Since is a fixed hyperparameter, the lane head has a fixed output size, independent of the road and the network. Lane counts outside the admissible set of (13) are masked out of the softmax, as in invalid action masking [35], which yields the lane distribution over the admissible lane counts.
The speed heads of direction output a mean offset and a scale logit. The proposed normalized speed limit follows the speed distribution , the truncation to of a normal distribution whose mean is 1 plus the offset and whose standard deviation the sigmoid of the scale logit places between the bounds and . Since the offsets of the untrained speed heads are close to zero, shifting the mean by 1 keeps speed limits close to nominal early in fine-tuning, which is meant to stabilize its first updates.
During fine-tuning, the proposed lanes and normalized speed limits are sampled from these distributions; during execution, the modes are taken. By (14), a direction without open lanes keeps its active normalized speed limit, so its speed heads are ignored. The log-probability of the action of road thus sums the log-probabilities of its proposed lanes and of the proposed normalized speed limits of its open directions only.
- Per-Road PPO: We train actor and critic with PPO [16], applied per road. As in independent and multi-agent PPO [33], [34], every road acts as an agent with its own probability ratio and its own advantages, while all roads share the parameters. Unlike in these methods, our actor observes the whole network (Section II-D).
Each update collects a rollout of a fixed number of consecutive decision steps from every environment. A rollout may span the end of one episode and the start of the next. The advantages follow truncated generalized advantage estimation (GAE) [16], [47], computed from the mixed rewards of the road and its values under the critic that collected the data, with discount factor and GAE parameter . A rollout ends at its last decision step and at the last decision step of every episode it contains; there, the recursion stops and bootstraps from the critic's value at the next time step. Since traffic continues beyond the horizon, the end of an episode is a time-limit truncation rather than a termination [48]. The discount factor gives an effective horizon of about decision steps, roughly one day. The return estimates add the values back to the advantages.
The probability ratio compares the probability of the action of road r under the current policy with that under the policy that collected the data.
It enters the clipped surrogate objective through the helper function , which clips it with the clipping parameter , and the critic regresses the return estimates through the squared error ; both average over the decision steps of a minibatch and all roads.
As in PPO, the combined objective adds the mean entropies and of the lane and speed distributions as a bonus [49], the latter over open directions only, and weights the terms with the coefficients , , and . The objective is maximized.
As the networks are separate, trains only the critic, and the other terms train only the actor.
VI. RESULTS
We evaluate every policy on 32 days, 8 episodes for each of 4 seeds not used in training. A seed and an episode index determine the demand, which is therefore the same under every policy, so that comparisons between policies are paired by day. The learned policies take the modes of their distributions (Section V-C2). We report the return, the reward summed over all roads and decision steps of a day, in vehicle-hours (veh·h), so that each completed trip counts as s of avoided delay; its two components, the delay and the number of completed trips; the mean travel time of a trip from its request to its arrival and the mean admission wait it spends at its origin road; and the number of closing proposals that action resolution rejects. As a safeguard that is not part of the problem of Section III, the simulator removes every vehicle that has queued for 600 s, since a gridlocked lane could otherwise block clearing for the rest of the day; we report these removals as well. Values are means and standard errors over the 32 days, and changes against a reference are means and standard errors of the paired differences.
All variants share the same data and schedule. Pretraining runs for 30,000 steps of 32 samples on 3,584 days simulated under the behavior policy of Section V-B, and its validation error is measured on 512 further days. Fine-tuning runs for 100 PPO updates, each of which collects 8 decision steps from each of 1,024 environments, about 5,700 days in total. Before the first update, the environments run under the baseline of Section VI-B for up to one day, so that their clocks are spread uniformly over the day. Every 10 updates, the greedy policy, which takes the modes, is evaluated on 8 further days with fixed demand, which yields the learning curves below; their reference is the baseline on the same days. Each variant is trained once with the same seed, so the standard errors reflect the variation across evaluation days but not across training runs.
A. Effect of Pretraining
Fig. 7 compares fine-tuning from the pretrained encoder with fine-tuning from an untrained, randomly initialized one, under otherwise identical settings. The pretrained encoder forecasts the traffic quantities with a validation MSE of 0.0143, which is 59%, 70%, and 77% below that of persistence, the forecast that nothing changes, at the horizons of 10, 30, and 60 min.
Panel (b) of Fig. 7 must be read with the warm-up in mind. When fine-tuning starts, each environment is in the middle of a day that began under the baseline, and a day spans 18 updates, so a training episode that ends at update was controlled by the baseline until about 8k decision steps before midnight and, after that, by the early policy, whose untrained heads still propose almost at random. The return of the training episodes thus stays at the level of the baseline while the policy controls only the quiet night, up to update 4, and falls in two steps as the policy takes over the evening rush hour, at updates 5 and 6, and the morning rush hour, at updates 12 to 14: its random reallocations cost little at night but cause queues and gridlock under heavy demand. Between the two steps, the return lies near zero, and from update 14 to 18, it bottoms out at about -9,000 veh·h with the pretrained encoder and -10,000 veh·h with the untrained one. This transient stems from the staggered start, not from a collapse of the policy, and the greedy policy shows no such dip (Fig. 7 (a)). Until about update 15, the two curves nearly coincide, since most of each finished day was controlled by the baseline after an identical warm-up, and the actor's encoder stays frozen during the first two updates, the first of which trains only the critic. From update 18 on, panel (b) tracks learning, but under sampled actions and with a lag of about 9 updates, since an episode that ends at update k was controlled by the policies of updates k-17 to k. The run with the pretrained encoder recovers past the reference line of the baseline at update 47, and the run with the untrained encoder at update 86; since the training episodes have other demand than the days of that line, these crossings are approximate.
The greedy policy shows the same gap earlier (Fig. 7 (a)). With the pretrained encoder, it surpasses the baseline, which attains about 14,500 veh·h on the same days, from update 20 on and varies only between 16,976 and 17,656 veh·h from update 30; with the untrained encoder, it first surpasses the baseline at update 50 and varies between 12,007 and 16,983 veh·h from update 30. On the evaluation days, the final policy from the pretrained encoder attains a return of 17,653 veh·h against 17,112 veh·h from the untrained encoder, which falls short by , and it incurs 374 veh·h of delay against 911 veh·h (Table III). Pretraining thus roughly halves the number of updates needed to surpass the baseline and, after 100 updates, leaves less than half the delay.
B. Learned Policy
The baseline holds the initial configuration of every episode throughout the day: every road keeps its lanes split evenly between its two directions, and every speed limit stays nominal. Table III lists the metrics of all policies. Against the baseline,
(a) Greedy policy on the evaluation days

(b) Training episodes
Fig. 7. Return against the PPO update when fine-tuning from the pretrained encoder and from an untrained one. (a) Greedy policy on the 8 days evaluated during fine-tuning (shaded: standard error). (b) Mean return of the training episodes that end in each update, under sampled actions; until update 18 (shaded), these episodes began under the baseline of the warm-up, and the drops at updates 5 and 6 and at updates 12 to 14 mark the policy taking over the evening and the morning rush hour. Dotted: mean return of the baseline on the days of (a).
the learned policy raises the return by and reduces the delay by , from 3,565 to 374 veh-h per day. The mean travel time falls from 5.20 to 3.52 min, by 32%, and the mean admission wait from 25 to 3 s. The learned policy completes 583 more trips per day, 0.5% more, exactly as many as the safeguard removes from gridlocked queues under the baseline, and never under the learned policy, so the gain in return stems almost entirely from the delay.
As a second baseline, the two-way load balancer reallocates lanes in response to the observed traffic but never makes a road one-way. At each decision step, it takes as the load of each direction of a road its density times its active lanes, i.e., its vehicles in units of , averaged over the last few decision steps. Unless the road is clearing or carries fewer vehicles than a threshold, it proposes to split the lanes in proportion to the loads of the two directions, rounded and kept between 1 and , whenever this split differs from the current target lanes by at least half a lane plus a margin; every speed limit stays nominal. A grid search on 32 days drawn from the seed of fine-tuning, not from the evaluation seeds, chose the averaging window among 1, 3, and 6 decision steps, the margin among 0, 0.25, and 0.5 lanes, and the threshold among 0.01, 0.05, and 0.1 times , for the highest mean return. The load balancer raises the return by and reduces the delay by against the fixed configuration, to 2,524 veh-h, but the safeguard still removes 535 vehicles per day, and the mean admission wait rises from 25 to 39 s. The learned policy attains a 14.5% higher return than the load balancer, with 85% less delay.
Fig. 8 shows how these differences arise over the day. Under the baseline, 99% of the delay accrues in the two rush hours, between 06:00 and 11:00 and between 15:00 and 21:00. The delay per decision step peaks at 194 veh-h around 08:30 and at 347 veh-h around 18:10, and the vehicles on the network peak at 1,658 and 2,532 at the same times. Under the learned policy, the delay per decision step never exceeds 19 veh-h, and the vehicles on the network peak at about 900 in both rush hours, while more trips are completed per decision step near the peaks: the network discharges its demand as it arrives.
Fig. 9 shows where congestion builds up. Under the baseline at 08:00, the directions toward the commercial zone in the north-west are more congested than those away from it, 0.16 against 0.07 on average, and the most congested direction, at 0.995, is the westbound road at the residential corner in the south-east, where morning trips enter the network. At 17:30, congestion is heavier and lies in the directions away from the commercial zone, 0.26 against 0.08 on average, with 20 of them above 0.3. It is highest on the roads leaving the commercial corner, up to 0.77, and on roads near the residential corner, up to 0.73. The learned policy opens on average 155 of the 200 lanes of the network toward the commercial zone at 08:00 and 159 away from it at 17:30, and 30 and 35 roads, respectively, are one-way in the peak direction on all evaluation days. No direction then exceeds a congestion of 0.19.
Over the day, the learned policy makes about 40 of the 60 roads one-way during each rush hour and almost none around midday, when only the background demand remains (Fig. 8(d)). It hardly lowers speed limits during the rush hours, where the mean normalized speed limit stays above 0.96, and lowers them slightly after each rush hour, to about 0.92 to 0.93 (Fig. 8(e)). Action resolution rejects 161 of its closing proposals per day, at most about 5 per decision step (Fig. 8(f)). Of these, 89 fall between midnight and 05:00, when the policy also keeps up to 34 roads one-way with almost no traffic, and 54 fall between 06:30 and 09:30, at the onset of the morning rush hour; between 16:00 and 19:30, only 4 are rejected.
C. Restricted Policies
To see which actions the gain rests on, we evaluate the final full model with part of its control withheld at test time, without retraining. Under lane-only control, the policy proposes the lane allocations, and every speed limit stays nominal; under speed-only control, it sets the speed limits, and every road keeps its initial lane allocation. Under two-way control, the policy may not close a direction: in the relaxed variant, each of its proposals of 0 or is replaced by its relaxed proposal as in (17), and in the masked variant, these two allocations are excluded from the lane distribution before its mode is taken. Two-way control is evaluated both with the policy's speed limits and with nominal ones. These evaluations show what
TABLE III
PERFORMANCE ON THE 32 EVALUATION DAYS: MEANS AND STANDARD ERRORS OVER THE DAYS, WITH CHANGES IN RETURN PAIRED BY DAY. LOAD BALANCER: THE HEURISTIC BASELINE OF SECTION VI-B; FULL MODEL: THE LEARNED POLICY; UNTRAINED ENCODER: THE FULL MODEL FINE-TUNED WITHOUT PRETRAINING; THE SIX ROWS FROM LANE-ONLY ON: THE FULL MODEL RESTRICTED AT TEST TIME (SECTION VI-C); THE LAST FIVE ROWS: THE ABLATIONS (SECTION VI-D). REMOVED: VEHICLES REMOVED FROM GRIDLOCKED QUEUES BY THE SAFEGUARD; REJECTED: CLOSING PROPOSALS REJECTED BY ACTION RESOLUTION, BOTH PER DAY.
| Policy | Return | Return change (%)vs. baseline | vs. full model | Delay(veh-h) | Trips | Travel time(min) | Adm. wait(s) | Removed | Rejected |
|---|---|---|---|---|---|---|---|---|---|
| Baseline | 0 | ||||||||
| Load balancer | 0 | ||||||||
| Full model | 0 | ||||||||
| Untrained encoder | |||||||||
| Lane-only | 0 | ||||||||
| Speed-only | 0 | ||||||||
| Two-way relaxed | 0 | ||||||||
| Two-way masked | 0 | ||||||||
| Two-way relaxed, lane-only | 0 | ||||||||
| Two-way masked, lane-only | 0 | ||||||||
| No relational bias | |||||||||
| Collapsed relations | |||||||||
| No spatial embedding | |||||||||
| Undirected spatial emb. | |||||||||
| No temporal embedding |
the trained policy retains under each restriction, not what a policy trained under it could reach.
Lane-only control does better than the full model: it raises the return by and reduces the delay by , from 374 to 174 veh-h per day. Speed-only control does worse than the baseline, lowering the return by and raising the delay by . Under two-way control, too, the policy's speed limits lower the return: with them, the relaxed and the masked variant raise the return against the baseline by and , and with nominal speed limits by and . All four two-way variants thus fall far short of the of the full model and bracket the of the load balancer; they leave between 2,368 and 2,843 veh-h of delay, and the safeguard removes between 475 and 499 vehicles per day.
D. Ablations
Each ablation removes one component of the GERASTSA transformer (Section IV) and is pretrained and fine-tuned in the same way as the full model. Fig. 10 compares their learning curves and pretraining errors with those of the full model, and Table III their final performance.
-
No relational bias: is dropped from the attention scores in (27), so attention is not informed by any relation between roads, and roads are told apart only by their input features and the spatial embedding.
-
Collapsed relations: the four adjacency relations in are collapsed into a single 1-hop relation, so that and the bias depends on the hop distance alone, no longer on the directions in which adjacent roads flow into their shared junction.
-
No spatial embedding: is dropped from (35), so the junction degrees of a road no longer enter the model
directly, and roads are told apart only by their input features and the relational bias.
-
Undirected spatial embedding: instead of embedding the junction degree of a road in each direction through the directional tables of (33), the spatial embedding selects a single row by the total degree of the road, the number of roads that meet it at either endpoint, i.e., its degree in the controller graph . It thus no longer tells how these roads are split between the two head junctions of the road.
-
No temporal embedding: is dropped from (35), so temporal order enters only through the causal mask of (32).
All ablations still improve on the baseline, by 12.4% to 21.9% in return, but they fall into two groups. Removing the relational bias or the spatial embedding lowers the return by and against the full model and multiplies the delay by about 4.7 and 5.0, to 1,742 and 1,862 veh-h. Both variants leave vehicles in gridlocked queues, 159 and 87 per day, and have far more closing proposals rejected, 670 and 560 per day against 161. Their greedy policies stay below that of the full model at every evaluation from update 30 on. Without the relational bias, the encoder also forecasts worst, with a validation MSE 7.9% above that of the full model, whereas without the spatial embedding, it forecasts as well as the full model (Fig. 10 (b)).
The other three ablations, collapsed relations, the undirected spatial embedding, and no temporal embedding, end within about 1% of the full model in return, at , , and , but their final policies incur 1.5, 1.4, and 1.5 times its delay, 547, 516, and 552 against 374 veh-h per day. Across the evaluation days, these differences far exceed their standard errors, but with one training run
Baseline Learned policy
(a) Delay per step (veh-h)

(b) Completed trips per step
(d) One-way roads
(c) Vehicles on the network
(e) Mean normalized speed limit
(f) Rejected proposals per step
Time of day (h)
Time of day (h)
Time of day (h)
Fig. 8. Metrics per decision step over the day under the baseline and the learned policy, averaged over the 32 evaluation days: (a) delay, (b) completed trips, (c) vehicles on the network, (d) one-way roads, (e) mean normalized speed limit over all roads and directions, and (f) closing proposals rejected by action resolution. Dotted verticals mark 08:00 and 17:30, the times shown in Fig. 9.
(a) Baseline, 08:00
C
(b) Learned policy, 08:00
C

(c) Baseline, 17:30
C
(d) Learned policy, 17:30
C
Open lanes
1
2
4
6
Fig. 9. Congestion and open lanes of every road and direction at 08:00 and 17:30 under the baseline and the learned policy, averaged over the 32 evaluation days. Each direction of a road is drawn on its right-hand side, with its luminance giving the congestion and its width the open lanes, so that a one-way road shows a single stroke. North is up; C and R mark the corners of the commercial and the residential zone.
per variant, they also depend on when training stopped: from update 30 on, the greedy return of the full model varies by 680 veh-h, about 4%, more than these variants lose at the end. Over these earlier evaluations, the three variants differ. Without the temporal embedding, the greedy return lies below that of the full model at 6 of the 8 evaluations, by 1.0% on average, and the forecasting error lies above it at every validation from step 1,000 on, ending 2.1% higher (Fig. 10 (b)). With collapsed relations, by contrast, the greedy return exceeds that of the full model at 7 of the 8 evaluations, by 1.2% on average, and with the undirected spatial embedding at 5 of them, and both variants forecast as well as the full model, within about 0.5%. The final evaluation thus suggests that all three components reduce delay, but only for the temporal embedding do the earlier evaluations and pretraining agree.
VII. Discussion
Pretraining likely helps because the forecasting task asks the encoder for what both the actor and the critic need: how the congestion, density, and velocity of every road will evolve over the next hour, given the lane allocations and speed limits that take effect in between. The forecasts of a road depend on the roads that feed and drain it, so to forecast well, the encoder must represent how traffic propagates through the network and
Full model
- - Collapsed relations
Undirected spatial embedding
Baseline
No relational bias
No spatial embedding
No temporal embedding
(a) Fine-tuning: greedy policy on the evaluation days

(b) Pretraining: forecasting error

Pretraining step
Fig. 10. Ablations of the GERASTSA transformer against the full model. (a) Return of the greedy policy against the PPO update on the 8 days evaluated during fine-tuning (shaded: standard error); dotted: mean return of the baseline on the same days. (b) Validation MSE of pretraining against the pretraining step.
how it responds when a direction is closed or slowed, and it forecasts far better than persistence, with errors 59% to 77% below it. In fine-tuning, by contrast, an action reaches the reward only indirectly and late: closing a direction diverts the traffic headed for it at once, but its lanes open in the other direction only once clearing completes, queues build and spill back over several decision steps, and with , the mixed reward of a road is dominated by the actions of other roads. Learning the same representation from this signal alone is slow, as the untrained encoder shows: it needed about twice as many updates to surpass the baseline and left more than twice the delay after 100 updates. The initial dip of the training episodes is alike in both runs (Fig. 7 (b)) and says nothing about the encoders: it is a transient of the staggered start, during which the actor's encoder is frozen or has barely been trained. Both runs used the same fine-tuning schedule, which was chosen for a pretrained encoder: it freezes the encoders during the first updates and then trains them at a lower learning rate than the heads. A schedule tuned for random initialization might narrow the gap.
The learned policy beats the baseline by reallocating lanes in tidal flow. During each rush hour, it assigns most lanes to the peak direction and makes about two thirds of the roads one-way in that direction, and around midday, when demand is balanced, it returns to two-way roads. It thereby raises the capacity in the peak direction by more than half, to 155 and 159 of the 200 lanes instead of 100, which keeps queues from forming at the roads where trips enter the network and on the roads near the two zones, and from spilling back into gridlock. The policy learned this pattern from the reward alone; neither the behavior policy of pretraining nor the initial configuration suggests it. Rerouting makes it workable: a vehicle whose next direction closes takes another route, which strong connectivity guarantees to exist (Proposition 1), and the mean travel time still falls by a third despite such detours. One-way roads appear to be essential to this gain. Half of the roads of our grid have only two lanes, which a controller that keeps every road two-way cannot reallocate at all, and on the other roads, such a controller can open at most lanes in one direction, at most 140 of the 200 lanes in all. Within these bounds, the load balancer and the two-way restrictions of the policy leave six to eight times the delay of the learned policy, and none of them prevents gridlock. A policy trained for two-way roads might do better than the restricted one, but it would face the same bounds.
The learned speed limits, by contrast, cost return. Holding them nominal at test time removes more than half of the remaining delay, and applied to the initial configuration, they increase its delay. The delay charges every vehicle for the time it loses below the nominal speed limit, so a lower speed limit costs delay on its own road and pays off only if it prevents more delay elsewhere. In our simulator, moreover, a lane discharges at a rate that a lower speed limit can only reduce, and its capacity does not drop under congestion, so the mechanisms by which VSLs delay the onset of congestion and dampen shock waves on freeways [3] have no counterpart. The policy keeps its speed limits close to nominal, but even the small reductions in Fig. 8 (e) cost more than they save. Why fine-tuning did not remove them is not clear from our runs; possibly, the delay that a speed limit causes on its own road enters the mixed reward of that road only with the weight (Section V-C1), which is small against the variation contributed by all other roads. Whether learned speed limits can contribute to joint control thus remains open; answering it would need a simulator with the congestion mechanisms on which VSLs act.
Action resolution, finally, rarely has to intervene during the evening rush hour: between 16:00 and 19:30, only 4 proposals are rejected, although the policy keeps 35 to 40 roads one-way around the peak, so it largely proposes closings that keep the network strongly connected. Most rejections occur when it switches many roads to one-way at once, at the onset of the morning rush hour, and at night, when lane allocations hardly affect the reward and the policy keeps up to 34 of the 60 roads one-way and proposes conflicting closings at no cost. Since every road of our grid has at least two lanes, a rejected proposal is always relaxed to the nearest allocation that keeps one lane open, which costs the policy little and may explain why it does not avoid such proposals entirely.
Among the components of attention, the relational bias matters most. Without it, attention is global but blind to which roads are adjacent: every road is related to every other in the same way, and the model must infer which roads exchange traffic from correlations in their features. This variant forecasts worst of all, and its policy incurs almost five times the delay of the full model and has four times as many closing proposals rejected, which suggests that without relations, the actor can tell neither where shed traffic goes nor which closings conflict. Telling apart the directions in which adjacent roads meet, by contrast, helped less clearly: collapsing the four adjacency relations into one left the forecasting error unchanged, and although the resulting final policy incurs 1.5 times the delay of the full model, this variant did better than the full model at most earlier evaluations. A possible reason is the uniform orientation of our grid, in which every road runs forward eastward or southward. The forward and backward features of adjacent roads then refer to the same compass directions, so the model may learn from their traffic which directions of adjacent roads queue together, and thus how spillback propagates through a shared junction, without being told. Randomizing the reference ordering of the endpoints of every road in each episode would remove this shortcut and leave the endpoint relations as the only indication of how the directions of adjacent roads connect, so training both the full model and the variant with collapsed relations under such randomization and comparing them would measure the contribution of the endpoint relations. Since the orientation of a real network is arbitrary, such randomization is also a natural step toward transfer to other networks, and irregular networks, on which the hop distance says less about how two roads interact, would test the endpoint relations further.
The spatial embedding matters for control but not for forecasting: without it, the forecasting error is unchanged, but the policy incurs five times the delay of the full model and has 3.5 times as many closing proposals rejected. The junction degrees carry information that attention cannot easily recover, since attention averages over the attended tokens with weights that sum to one and therefore cannot directly count the roads at a junction, even with the relational bias; Graphormer likewise complements attention with a degree-based centrality encoding [15]. For forecasting, the number of roads at a junction matters little once the traffic on them is observed, but for control, it bears on which closings keep the network strongly connected: a junction with few roads has few alternatives for entering and leaving it, so it is easily cut off. The evidence on how the adjacent roads are split between the two ends of a road is mixed as well: with the undirected embedding, the final policy incurs 1.4 times the delay of the full model, yet the variant led the full model at 5 of the 8 earlier evaluations. On our grid, the total degree already identifies whether a road touches a corner, lies on the boundary, leads into the interior, or lies within it, so the undirected embedding loses only which of its ends lies toward the boundary. The temporal embedding, finally, shows the most consistent benefit of the three, if a small one: without it, the forecasting error is higher throughout pretraining, the greedy return is lower at most evaluations, and the final policy incurs 1.5 times the delay of the full model and has 2.4 times as many closing proposals rejected. The benefit is possibly small because the causal mask already conveys temporal order: tokens at different positions attend to different numbers of positions, from which the stacked layers can infer how recent a position is, and the traffic of a road changes gradually over a window, so the order of its time steps can largely be read from their content. Repeating this ablation with a mask without causality, that is, comparing the model with and without the temporal embedding when every token of both may attend to all valid positions of its window, would isolate the temporal embedding. Since every window ends at its decision step and only its last position is read out, such a mask would use no information from the future, and without the temporal embedding, the model would then see the earlier time steps of a window, apart from the last one at which it is read out, as an unordered set, so this comparison would measure all the temporal order that the embedding provides.
Our evaluation has several limitations. It uses a single synthetic network with one demand pattern, a grid with two rush hours between opposite corners, which suits the tidal pattern that the policy learned. Each variant was trained once, so differences of about 1% in return between variants, even with 1.5 times the delay, cannot be firmly attributed to the architecture; several training seeds per variant would be needed. Of our two baselines, the fixed configuration ignores the traffic, and the load balancer responds to it but keeps every road two-way; a schedule that makes roads one-way toward the commercial zone in the morning and away from it in the evening would show how much of the gain requires a policy that responds to the observed traffic. All vehicles are homogeneous CAVs that comply fully and route themselves with knowledge of the current traffic, so mixed traffic and partial compliance are not modeled. The mesoscopic simulator has no signals or turning conflicts at junctions and no capacity drop, which limits what VSLs can achieve, and its gridlock safeguard removes vehicles that would otherwise keep accruing delay, which flatters the baseline. Finally, attention over all road-time tokens grows quadratically with the number of roads: our 60 roads give 960 tokens per sample, and a city network with thousands of roads would need sparser attention, for example restricted to a hop neighborhood or factorized over space and time. In our implementation, the relational bias alone doubles the time of a pretraining step, 0.21 against 0.11 s. Since no parameter of the model depends on the network (Section IV), the most direct extension is to train on several networks and test transfer to unseen ones, including real road networks.
VIII. Conclusion
We formulated 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, and gave an action-resolution algorithm that keeps every junction reachable from every other at every time step, for any admissible actions and however long clearing takes. All road controllers share a single GERASTSA transformer, pretrained on action-conditioned traffic forecasting and fine-tuned with per-road PPO under a mixed reward. On a grid with commuter rush hours, the learned policy reallocated lanes in tidal flow, making about two thirds of the roads one-way in the peak direction during each rush hour. It reduced the daily delay by 90% and the mean travel time by 32% against holding the initial configuration with nominal speed limits, and the delay by 85% against a tuned load balancer that keeps every road two-way. Restricted to two-way roads at test time, the policy gained only about as much as the load balancer, which suggests that its gain rests on one-way roads, whereas its learned speed limits cost return: holding them nominal more than halved its delay. Pretraining roughly halved the number of updates needed to surpass the fixed configuration and left less than half the delay of fine-tuning from random initialization. The relational bias and the spatial embedding mattered most, as removing either multiplied the delay by about five. Removing the endpoint relations, the direction of the spatial embedding, or the temporal embedding left the final policies with 1.4 to 1.5 times the delay, an effect that the earlier evaluations and pretraining corroborate only for the temporal embedding. The most promising direction for future work is to train the model on several networks, with the orientation of their roads randomized in each episode, and evaluate it on unseen ones, real road networks included, which its network-independent parameters permit. Two ablations, each repeated under a changed condition and with several training seeds, would measure the contributions of the endpoint relations and the temporal embedding: collapsing the endpoint relations with the orientation of the roads randomized in each episode, and removing the temporal embedding with a mask without causality. A schedule of one-way roads as a further baseline would show how much of the gain requires a learned policy, and a simulator with capacity drop whether learned speed limits can contribute at all.
ACKNOWLEDGMENTS
The authors thank Kaggle for free access to GPUs, which supported the experiments of this work.
During the preparation of this work, the authors used Claude and ChatGPT to improve manuscript clarity, check notational consistency, and assist with programming. The authors reviewed and edited all AI-assisted content and take full responsibility for the content of this publication.
REFERENCES
[1] Transportation Research Board and National Academies of Sciences, Engineering, and Medicine, Convertible Roadways and Lanes. Washington, DC: The National Academies Press, 2004. [Online]. Available: https://nap.nationalacademies.org/catalog/23331/convertible-roadways-and-lanes
[2] B. Wolshon, ““One-Way-Out”: Contraflow Freeway Operation for Hurricane Evacuation,” Natural Hazards Review, vol. 2, no. 3, pp. 105–112, 2001. [Online]. Available: https://ascelibrary.org/doi/abs/10.1061/%28ASCE%291527-6988%282001%292%3A3%28105%29
[3] X.-Y. Lu and S. E. Shladover, “Review of Variable Speed Limits and Advisories: Theory, Algorithms, and Practice,” Transportation Research Record, vol. 2423, no. 1, pp. 15–23, 2014. [Online]. Available: https://doi.org/10.3141/2423-03
[4] M. Hausknecht, T.-C. Au, P. Stone, D. Fajardo, and T. Waller, “Dynamic lane reversal in traffic management,” in 2011 14th International IEEE Conference on Intelligent Transportation Systems (ITSC), 2011, pp. 1929–1934.
[5] M. W. Levin and S. D. Boyles, “A cell transmission model for dynamic lane reversal with autonomous vehicles,” Transportation Research Part C: Emerging Technologies, vol. 68, pp. 126–143, 2016. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S0968090X16000772
[6] D. Braess, A. Nagurney, and T. Wakolbinger, “On a Paradox of Traffic Planning,” Transportation Science, vol. 39, no. 4, pp. 446–450, Nov. 2005. [Online]. Available: https://doi.org/10.1287/trsc.1050.0127
[7] H. E. Robbins, “A Theorem on Graphs, with an Application to a Problem of Traffic Control,” The American Mathematical Monthly, vol. 46, no. 5, pp. 281–283, 1939. [Online]. Available: http://www.jstor.org/stable/2303897
[8] M. Duell, M. W. Levin, S. D. Boyles, and S. T. Waller, “Impact of Autonomous Vehicles on Traffic Management: Case of Dynamic Lane Reversal,” Transportation Research Record, vol. 2567, no. 1, pp. 87–94, 2016. [Online]. Available: https://doi.org/10.3141/2567-10
[9] K.-F. Chu, A. Y. S. Lam, and V. O. K. Li, “Dynamic Lane Reversal Routing and Scheduling for Connected and Autonomous Vehicles: Formulation and Distributed Algorithm,” IEEE Transactions on Intelligent Transportation Systems, vol. 21, no. 6, pp. 2557–2570, 2020.
[10] U. Gunarathna, H. Xie, E. Tanin, S. Karunasekera, and R. Borovica-Gajic, “Real-time Road Network Optimization with Coordinated Reinforcement Learning,” ACM Trans. Intell. Syst. Technol., vol. 14, no. 4, Jul. 2023. [Online]. Available: https://doi.org/10.1145/3603379
[11] S. Chen, H. Wang, and Q. Meng, “An Optimal Dynamic Lane Reversal and Traffic Control Strategy for Autonomous Vehicles,” IEEE Transactions on Intelligent Transportation Systems, vol. 23, no. 4, pp. 3804–3815, 2022.
[12] F. Jin et al., “Optimal integrated control of internal boundaries, ramp inflows, and variable speed limits for lane-free traffic of connected automated vehicles on freeways,” Transportation Research Part C: Emerging Technologies, vol. 189, p. 105728, 2026. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S0968090X26002160
[13] M. Alshiekh, R. Bloem, R. Ehlers, B. Könighofer, S. Niekum, and U. Topcu, “Safe Reinforcement Learning via Shielding,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 32, no. 1, 2018. [Online]. Available: https://doi.org/10.1609/aaai.v32i1.11797
[14] A. Vaswani et al., “Attention is all you need,” in Proceedings of the 31st International Conference on Neural Information Processing Systems, ser. NIPS’17. Red Hook, NY, USA: Curran Associates Inc., 2017, pp. 6000–6010.
[15] C. Ying et al., “Do Transformers Really Perform Badly for Graph Representation?” in Advances in Neural Information Processing Systems, M. Ranzato, A. Beygelzimer, Y. Dauphin, P. S. Liang, and J. Wortman Vaughan, Eds., vol. 34. Curran Associates, Inc., 2021, pp. 28 877–28 888. [Online]. Available: https://proceedings.neurips.cc/paper_files/paper/2021/file/f1c1592588411002af340cbaedd6fc33-Paper.pdf
[16] J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov, "Proximal Policy Optimization Algorithms," 2017. [Online]. Available: https://arxiv.org/abs/1707.06347
[17] S. Kim, S. Shekhar, and M. Min, “Contraflow Transportation Network Reconfiguration for Evacuation Route Planning,” IEEE Transactions on Knowledge and Data Engineering, vol. 20, no. 8, pp. 1115–1129, 2008.
[18] J. R. D. Frejo, I. Papamichail, M. Papageorgiou, and E. F. Camacho, "Macroscopic Modeling and Control of Reversible Lanes on Freeways," IEEE Transactions on Intelligent Transportation Systems, vol. 17, no. 4, pp. 948–959, 2016.
[19] T. Li, N. Wang, M. Zhang, and Z. He, “Dynamic reversible lane optimization in autonomous driving environments: Balancing efficiency and safety,” Journal of Industrial and Management Optimization, vol. 20, no. 3, pp. 901–925, 2024. [Online]. Available: https://www.aimsciences.org/article/id/64ef047789e5d06909db2257
[20] F. Boesch and R. Tindell, “Robbins’s Theorem for Mixed Multigraphs,” The American Mathematical Monthly, vol. 87, no. 9, pp. 716–719, 1980. [Online]. Available: https://doi.org/10.1080/00029890.1980.11995131
[21] F. R. K. Chung, M. R. Garey, and R. E. Tarjan, “Strongly connected orientations of mixed multigraphs,” Networks, vol. 15, no. 4, pp. 477–484, 1985. [Online]. Available: https://onlinelibrary.wiley.com/doi/abs/10.1002/net.3230150409
[22] S. Smulders, “Control of freeway traffic flow by variable speed signs,” Transportation Research Part B: Methodological, vol. 24, no. 2, pp. 111–132, 1990. [Online]. Available: https://www.sciencedirect.com/science/article/pii/019126159090023R
[23] A. Hegyi, B. De Schutter, and H. Hellendoorn, “Model predictive control for optimal coordination of ramp metering and variable speed limits,” Transportation Research Part C: Emerging Technologies, vol. 13, no. 3, pp. 185–209, 2005. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S0968090X05000264
[24] A. Hegyi, S. P. Hoogendoorn, M. Schreuder, H. Stoelhorst, and F. Viti, "SPECIALIST: A dynamic speed limit control algorithm based on shock wave theory," in 2008 11th International IEEE Conference on Intelligent Transportation Systems, 2008, pp. 827–832.
[25] A. Hegyi and S. P. Hoogendoorn, “Dynamic speed limit control to resolve shock waves on freeways - Field test results of the SPECIALIST algorithm,” in 13th International IEEE Conference on Intelligent Transportation Systems, 2010, pp. 519–524.
[26] F. Zhu and S. V. Ukkusuri, “Accounting for dynamic speed limit control in a stochastic traffic environment: A reinforcement learning approach,” Transportation Research Part C: Emerging Technologies, vol. 41, pp. 30–47, 2014. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S0968090X1400028X
[27] Z. Li, P. Liu, C. Xu, H. Duan, and W. Wang, “Reinforcement Learning-Based Variable Speed Limit Control Strategy to Reduce Traffic Congestion at Freeway Recurrent Bottlenecks,” IEEE Transactions on Intelligent Transportation Systems, vol. 18, no. 11, pp. 3204–3217, 2017.
[28] Y. Wu, H. Tan, L. Qin, and B. Ran, “Differential variable speed limits control for freeway recurrent bottlenecks via deep actor-critic algorithm,” Transportation Research Part C: Emerging Technologies, vol. 117, p. 102649, 2020. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S0968090X20305647
[29] J. Yang, P. Wang, F. Golpayegani, and S. Wang, “DVS-RG: Differential Variable Speed Limits Control using Deep Reinforcement Learning with Graph State Representation,” 2024. [Online]. Available: https://arxiv.org/abs/2405.09163
[30] T. Chu, J. Wang, L. Codecà, and Z. Li, “Multi-Agent Deep Reinforcement Learning for Large-Scale Traffic Signal Control,” IEEE Transactions on Intelligent Transportation Systems, vol. 21, no. 3, pp. 1086–1095, 2020.
[31] H. Wei et al., “CoLight: Learning Network-level Cooperation for Traffic Signal Control,” in Proceedings of the 28th ACM International Conference on Information and Knowledge Management, ser. CIKM '19. New York, NY, USA: Association for Computing Machinery, 2019, pp. 1913–1922. [Online]. Available: https://doi.org/10.1145/3357384.3357902
[32] F.-X. Devailly, D. Larocque, and L. Charlin, “IG-RL: Inductive Graph Reinforcement Learning for Massive-Scale Traffic Signal Control,” IEEE Transactions on Intelligent Transportation Systems, vol. 23, no. 7, pp. 7496–7507, 2022.
[33] C. Schroeder de Witt et al., “Is Independent Learning All You Need in the StarCraft Multi-Agent Challenge?” 2020. [Online]. Available: https://arxiv.org/abs/2011.09533
[34] C. Yu et al., “The surprising effectiveness of PPO in cooperative multi-agent games,” in Proceedings of the 36th International Conference on
Neural Information Processing Systems, ser. NIPS '22. Red Hook, NY, USA: Curran Associates Inc., 2022.
[35] S. Huang and S. Ontañón, “A Closer Look at Invalid Action Masking in Policy Gradient Algorithms,” The International FLAIRS Conference Proceedings, vol. 35, May 2022. [Online]. Available: https://journals.flvc.org/FLAIRS/article/view/130584
[36] M. Jaderberg et al., “Reinforcement Learning with Unsupervised Auxiliary Tasks,” in International Conference on Learning Representations, 2017. [Online]. Available: https://openreview.net/forum?id=SJ6yPD5xg
[37] M. Schwarzer et al., “Pretraining representations for data-efficient reinforcement learning,” in Proceedings of the 35th International Conference on Neural Information Processing Systems, ser. NIPS '21. Red Hook, NY, USA: Curran Associates Inc., 2021.
[38] Y. Li, R. Yu, C. Shahabi, and Y. Liu, “Diffusion Convolutional Recurrent Neural Network: Data-Driven Traffic Forecasting,” in International Conference on Learning Representations, 2018. [Online]. Available: https://openreview.net/forum?id=SJiHXGWAZ
[39] B. Yu, H. Yin, and Z. Zhu, “Spatio-Temporal Graph Convolutional Networks: A Deep Learning Framework for Traffic Forecasting,” in Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence, IJCAI-18. International Joint Conferences on Artificial Intelligence Organization, Jul. 2018, pp. 3634–3640. [Online]. Available: https://doi.org/10.24963/ijcai.2018/505
[40] C. Zheng, X. Fan, C. Wang, and J. Qi, “GMAN: A Graph Multi-Attention Network for Traffic Prediction,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 34, no. 01, 2020, pp. 1234–1241. [Online]. Available: https://doi.org/10.1609/aaai.v34i01.5477
[41] J. Jiang, C. Han, W. X. Zhao, and J. Wang, “PDFformer: Propagation Delay-Aware Dynamic Long-Range Transformer for Traffic Flow Prediction,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 37, no. 4, 2023, pp. 4365–4373. [Online]. Available: https://doi.org/10.1609/aaai.v37i4.25556
[42] P. Shaw, J. Uszkoreit, and A. Vaswani, “Self-Attention with Relative Position Representations,” in Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers), M. Walker, H. Ji, and A. Stent, Eds. New Orleans, Louisiana: Association for Computational Linguistics, Jun. 2018, pp. 464–468. [Online]. Available: https://aclanthology.org/N18-2074/
[43] J. L. Ba, J. R. Kiros, and G. E. Hinton, "Layer Normalization," 2016. [Online]. Available: https://arxiv.org/abs/1607.06450
[44] N. Shazeer, “GLU Variants Improve Transformer,” 2020. [Online]. Available: https://arxiv.org/abs/2002.05202
[45] R. Xiong et al., “On Layer Normalization in the Transformer Architecture,” in Proceedings of the 37th International Conference on Machine Learning, ser. Proceedings of Machine Learning Research, H. Daumé III and A. Singh, Eds., vol. 119. PMLR, Jul. 2020, pp. 10524–10533. [Online]. Available: https://proceedings.mlr.press/v119/xiong20b.html
[46] S. Ben Taieb, G. Bontempi, A. F. Atiya, and A. Sorjamaa, “A review and comparison of strategies for multi-step ahead time series forecasting based on the NN5 forecasting competition,” Expert Systems with Applications, vol. 39, no. 8, pp. 7067–7083, 2012. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S0957417412000528
[47] J. Schulman, P. Moritz, S. Levine, M. I. Jordan, and P. Abbeel, “High-Dimensional Continuous Control Using Generalized Advantage Estimation,” in 4th International Conference on Learning Representations, ICLR 2016, San Juan, Puerto Rico, May 2-4, 2016, Conference Track Proceedings, Y. Bengio and Y. LeCun, Eds., 2016. [Online]. Available: https://doi.org/10.48550/arXiv.1506.02438
[48] F. Pardo, A. Tavakoli, V. Levdik, and P. Kormushev, “Time Limits in Reinforcement Learning,” in Proceedings of the 35th International Conference on Machine Learning, ser. Proceedings of Machine Learning Research, J. Dy and A. Krause, Eds., vol. 80. PMLR, Jul. 2018, pp. 4045–4054. [Online]. Available: https://proceedings.mlr.press/v80/pardo18a.html
[49] V. Mnih et al., “Asynchronous Methods for Deep Reinforcement Learning,” in Proceedings of The 33rd International Conference on Machine Learning, ser. Proceedings of Machine Learning Research, M. F. Balcan and K. Q. Weinberger, Eds., vol. 48. New York, New York, USA: PMLR, Jun. 2016, pp. 1928–1937. [Online]. Available: https://proceedings.mlr.press/v48/mnih16.html