Manuscript Offprint
arXiv:2610.36981GNN-Guided Network Reduction for Centralized Urban Traffic Routing
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We consider the centralized traffic routing (CTR) problem, where a central planner assigns routes to origin-destination (OD) vehicle flows to minimize congestion-dependent segment cost. Prior work formulates CTR efficiently as a mixed-integer linear program (MILP), but scaling this formulation to the full road network is computationally prohibitive within an operational time budget. Bounded Routes and Smart Routes speed up optimization using precomputed reduced networks; however, these methods do not account for vehicle information within each OD flow. Motivated by this gap, we propose a learning-based urban network reduction approach. A dedicated graph neural network (GNN) first scores road segments for each OD flow using the road network and vehicle-flow information. Highly ranked segments are then incorporated into complete OD routes, and the original segment-flow MILP is solved on the resulting reduced road network. The GNN thus guides the reduction of the road network, while the solver enforces feasibility and determines the routing. Experiments on four real urban networks – Prague-Dejvice, London, New York, and Sydney – show that the proposed approach achieves the smallest relative objective difference to the 30-second full-graph reference in every city under both traffic regimes. Averaged across cities, this difference is more than six times lower than that of the best competing method. Moreover, traffic simulation results show that the optimization gains of the proposed method lead to more efficient routing, with the highest
*Corresponding author
Email address: antonni1@fel.cvut.cz (Nikolai Antonov) aggregate arrival rate and a competitive trip duration per arrival percentage point.
Keywords: centralized traffic routing, traffic assignment, mixed-integer linear programming, graph neural networks, machine learning for combinatorial optimization, network reduction
1. Introduction
Traffic congestion in urban road networks imposes substantial economic (Serok et al., 2022; Gañan-Cardenas et al., 2024; Gunjo et al., 2024) and environmental (Khreis et al., 2024) costs, making urban traffic management a core objective for intelligent transportation systems. Unlike decentralized navigation, in which each driver selects a route independently, centralized traffic routing (CTR) jointly assigns routes to all vehicles simultaneously. Such coordination can reduce travel time, as studied both theoretically (Cominetti et al., 2024) and using real mobility data (Monnot et al., 2022). In an operational setting, drivers submit their destinations and receive coordinated routes from a central planner. At each planning step (episode), the planner processes the current set of requests and must compute routes jointly for all vehicles on a large road network within a short operational time budget, which poses a challenging computational task.
Our prior work introduced a segment-flow mixed-integer linear programming (MILP) formulation for CTR and showed its advantages over planning-based approaches (Nyporko et al., 2025, 2026). Despite the demonstrated efficiency, solving this MILP within a short time budget becomes increasingly difficult as the road network and the number of vehicle flows grow. A common way to accelerate solving in this case is to reduce the road network before optimization. Prominent fixed-reduction methods – Bounded Routes (BR) and Smart Routes (SR) (Švadlenka et al., 2023) – precompute a pool of routes for each origin-destination (OD) pair and use the union of their segments as a reduced network across episodes. However, this creates a trade-off: conservative reduction may leave the MILP size close to the full-graph formulation, whereas aggressive pruning can remove valuable alternatives needed for low-cost routing.
Since historical traffic data reveal regularities in road congestion (Wang et al., 2015), we come up with the idea of tackling CTR using a data-driven approach. In particular, we propose an urban network reduction guided by a machine learning model that evaluates the road segments based not only on the network structure, but also on the information about OD vehicle flows. For each episode, a dedicated graph neural network (GNN) scores segments separately for every OD flow and ranks them by predicted relevance for routing. Rather than predicting final routes or exact segment flows, these rankings guide the construction of an episode-specific reduced network, which is then used to restrict the original segment-flow MILP. Thus, the GNN accelerates solving without taking over the optimization model's role: it identifies promising parts of the road network, while the solver enforces model feasibility and determines the final routing.
We evaluate the proposed approach on real road network topologies from Prague-Dejvice, London, New York, and Sydney, using scenarios with different numbers of OD flows and two traffic regimes. On these scenarios, we first compare our GNN-guided reduction with fixed-reduction baselines in terms of solution quality and runtime under the short operational solver budget of 10 seconds. To assess the contribution of learned ranking, we also test the same reduction procedure with non-learned ranking alternatives. In these comparisons, solution quality is measured relative to a 30-second run of the CTR MILP on the full road network, using the full episode length. Finally, we examine whether the differences observed at the optimization level carry over to traffic by replaying the resulting routes in the simulator of urban mobility (SUMO) (Alvarez Lopez et al., 2018) and measuring arrival rate and trip duration relative to the achieved arrival rate.
Our contributions are as follows:
• A ranking-guided network reduction for CTR. We propose an algorithm that uses per-flow segment rankings to construct a reduced road network for each CTR episode. By connecting selected segments through complete OD paths and locally expanding their union, the algorithm reduces the number of routing variables in the original segment-flow MILP.
• A dedicated GNN for learning flow-specific segment rankings. To guide the road network reduction, we introduce a GNN that combines the full MILP representation, road-network characteristics, and current OD flows to rank segments separately for each flow. The model learns segment orderings from labelled routing solutions rather than predicting exact vehicle counts or final routes, while the solver determines the final routing and enforces feasibility. For each city and traffic regime, a single trained model generalizes to unseen scenarios with different numbers of OD flows.
• The best solution quality under a short solver budget. We evaluate the resulting GNN-guided reduction on four real urban road networks, comparing it with fixed-reduction baselines and with the same procedure using non-learned rankings. The proposed GNN-guided network reduction approach achieves the best solution quality in terms of the smallest mean relative objective difference compared to other methods in every city and traffic regime.
• Route recovery and simulation-level validation. To transform MILP solutions into individual vehicle routes, we present a dedicated route-recovery procedure and then evaluate the recovered routes in SUMO under different shares of rerouted vehicles to assess whether the optimization gains lead to improved traffic outcomes. Under the considered stress-test scenarios, our proposed approach yields the highest overall arrival rate across cities in both traffic regimes and remains competitive in trip duration relative to the achieved arrival rate.
The remainder of the paper is organized as follows. Section 2 reviews centralized traffic routing, network reduction, and learning-assisted optimization. Section 3 formulates the considered CTR problem as a MILP with turn restrictions. Section 4 describes the fixed reduction baselines and our proposed ranking-guided reduction framework, including GNN-based segment ranking and route recovery. Section 5 presents the experimental setup and evaluates scalability, ranking quality, and performance in optimization and microscopic simulation. Section 6 concludes the work.
2.1. Decentralized, partially centralized, and centralized routing
When drivers choose routes independently, the resulting traffic pattern corresponds to a user equilibrium, which is generally less efficient than the system-optimal routing selected by a central planner (Roughgarden and Tardos, 2002). The relative difference between decentralized and system-optimal routing tends to be most pronounced at intermediate traffic levels (Colini-Baldeschi et al., 2020), while empirical studies on real road networks show that uncoordinated drivers can experience considerably longer travel times (Youn et al., 2008; Zhang et al., 2018). Thus, decentralized routing cannot generally be expected to achieve system-optimal performance.
Several partially centralized approaches aim to adjust the behavior of decentralized systems. Information-based approaches improve drivers' visibility of road network conditions through real-time guidance and navigation apps, so that selfish routing avoids overused roads (Bagabaldo et al., 2024). Incentive-based approaches modify route choice through congestion pricing (Maheshwari et al., 2024) or controlled information release (Ambrogio et al., 2024), aligning selfish best-response with the system optimum. Compliance-aware approaches design system-optimal recommendations that remain effective when only a fraction of drivers follow them (Yun et al., 2024). Thus, partial centralization can narrow the gap between decentralized and centralized routing, but its effectiveness depends on how drivers respond to information, incentives, and route recommendations.
Unlike partially centralized approaches, a centralized planner jointly assigns routes to all vehicles to minimize the total travel cost across the road network (Morandi, 2024). This requires accounting for their interactions and the resulting congestion. However, the optimization problem becomes increasingly difficult as the road network and traffic volumes grow (Chrpa and Vallati, 2023), while practical applications require high-quality solutions within limited computation time. Thus, centralized routing directly targets system-optimal performance, but at a substantial computational cost. The following subsection reviews the main CTR formulations and solution approaches developed for this setting.
2.2. CTR formulations and static mixed-integer optimization
CTR is commonly studied within the framework of static traffic assignment, where routes are computed for a given number of vehicles traveling between specified origins and destinations. A representative formulation is the segment-flow MILP of Nyporko et al. (2025), which assigns integer vehicle flows to road segments and minimizes a congestion-dependent objective. Related formulations adapt the system-optimal model to practical requirements. For example, Jahn et al. (2005) introduce user constraints that limit how much longer an assigned route may be than the shortest route available to that user, while Angelelli et al. (2021) use a piecewise-linear approximation to obtain a linear formulation. A broader overview of static traffic assignment formulations is provided by Morandi (2024). Thus, static CTR formulations can combine system-wide optimization with practical user-level requirements. However, the works reviewed above primarily contribute by introducing new CTR formulations or extending existing ones, while our work addresses a complementary computational question: how to reduce the road network to solve a given segment-flow MILP more efficiently.
Dynamic traffic assignment (DTA) extends the static setting by modeling how traffic flows and travel times evolve over time. Existing system-optimal approaches include link-based formulations (Long and Szeto, 2019), path-based formulations (Zhang and Qian, 2020), and models combining routing with traffic flow control (Como et al., 2016). Unlike these approaches, our formulation solves each episode as a static routing problem, while microscopic simulation is used only to evaluate the resulting routes; therefore, DTA lies outside the scope of this paper.
A separate line of work addresses centralized routing through automated planning. Chrpa et al. (2019) formulate CTR as a planning problem in which the generated plan defines a congestion-mitigating routing for all vehicles. This framework was evaluated in microscopic traffic simulation (Vallati and Chrpa, 2020) and later extended to hybrid and real-time settings (Vallati et al., 2021). Our previous research (Nyporko et al., 2025) compared the planning-based methods with a segment-flow MILP and found that the MILP outperformed them in scalability and microscopic simulation performance. We therefore continue to study CTR through the mixed-integer segment-flow formulation.
2.3. Road network reduction for mixed-integer CTR
The main obstacle to solving CTR through mixed-integer programming is the limited scalability of the resulting MILP model. Existing approaches address this issue either by accelerating the solver (Zhang et al., 2023) or by reducing the instance size. The latter strategy is commonly implemented through route-based preprocessing that constructs a reduced road network before optimization (Švadlenka et al., 2023). Prominent methods in this line of work include Bounded Routes (BR) and Smart Routes (SR) (Švadlenka et al., 2023), forming a part of a broader framework for intelligent urban traffic routing (Švadlenka and Chrpa, 2023). BR enumerates routes whose lengths are bounded relative to the shortest route, while SR additionally clusters their segment sets using the Jaccard distance and retains only representative alternatives. Our work also follows this general direction and focuses on reducing the road network before solving the MILP rather than modifying the solver itself.
A key limitation of BR and SR is that the reduced road network remains fixed across episodes (Švadlenka et al., 2023). However, the contribution of individual segments to routing quality depends on the OD flows in the current episode: a segment that is unnecessary in one episode may provide an important routing alternative in another. Road network vulnerability studies show that the impact of segment disruptions on total travel cost depends on traffic volumes and congestion, while network structure alone may not identify the most critical segments (Chen et al., 2012; Gauthier et al., 2018). Our previous experiments similarly found that the stronger pruning of SR produced longer simulated trip durations than BR, indicating that removing too many alternatives can introduce a significant suboptimality (Nyporko et al., 2025). Thus, fixed preprocessing creates a trade-off between reducing the MILP and preserving routes that may be useful in the current episode.
2.4. Learning-assisted optimization for CTR
Combinatorial optimization is known to incorporate machine learning as heuristics for computationally hard problems (Bengio et al., 2021; Angioni et al., 2025). In traffic routing, learned models can use information about the OD flows in the current episode to provide better routing decisions. For example, reinforcement learning approaches produce routing policies for a given set of OD flows: their training can be guided by the method of successive averages (Wang et al., 2025), or by teacher policies derived from physics-based traffic flow models (Ke et al., 2025). Other methods use surrogate models to approximate traffic flows (Lassen et al., 2025) or estimate congestion caused by road renovations (Bosch et al., 2025). However, the routes predicted by a learned model may violate the constraints of the original problem unless feasibility is enforced separately. A useful alternative is to use machine learning for guidance, for example, to identify informative variable subsets that simplify mixed-integer optimization (Dilkina et al., 2009; Ferber et al., 2022) or to select heuristics for modifying vehicle routes during a search (Johnn et al., 2024). These directions suggest using learning to guide the optimization rather than to predict the final routing directly.
Following this idea, machine learning has been applied to reduce the problem size in crew rostering (Quesnel et al., 2022) and electric bus scheduling (Gerbaux et al., 2025). Quesnel et al. (2022) use a neural network to rank pairings for each crew member and retain the most promising ones for generating schedules within a branch-and-price algorithm. In a transportation setting, Gerbaux et al. (2025) combine GNN-based and greedy arc selection to construct reduced problems within a column-generation heuristic. In both cases, learning identifies a smaller set of promising elements, while the downstream optimization procedure constructs the final solution. However, both approaches are tailored to their specific scheduling problems and the corresponding column-generation or branch-and-price frameworks. Our approach follows the same general principle but applies learned reduction directly to the variables of the segment-flow CTR MILP. It combines neural scoring of graph elements (Joshi et al., 2019) with learning-assisted mixed-integer reduction (Liu et al., 2024). Before optimization, the GNN processes the complete MILP instance, including its variables, constraints, objective, and current OD vehicle flows, and scores every flow-segment variable . The scores though do not constitute a solution; they just estimate which routing variables should be retained. The subsequent ranking-guided procedure converts them into flow-specific segment sets, after which the original MILP is constructed and solved on the reduced network.
3. Problem formulation
We consider a centralized traffic routing problem on a congested urban road network. The goal is to jointly assign routes to all vehicles while minimizing congestion-dependent travel cost. The formulation builds on our previous segment-flow MILP (Nyporko et al., 2025). It retains the aggregate OD-flow representation and tiered segment costs, while adding constraints that enforce the turn restrictions.
3.1. Network, OD flows, and congestion model
The road network is modeled as a directed graph , where V is the set of junctions and R is the set of directed road segments. A single segment aggregates the lanes and parallel roadways connecting the same two junctions in the same direction, so at most one segment connects any ordered pair of nodes. We therefore identify each with its endpoint pair and write for the segment from to . Each segment has a length and an estimated travel time . For , let and denote the outgoing and incoming segments at .
Some junctions are assumed to have turn restrictions. Let denote the set of such junctions. For each , let denote the allowed turns through . A pair means that vehicles on segment may continue through onto segment . We write for the collection of turn restrictions. Junctions outside allow all turn pairs.
A CTR instance is specified by a set of OD vehicle flows, which we call an episode or, equivalently, a problem instance. Within an episode, each flow represents a group of identical vehicles traveling from origin to destination , where denotes the number of vehicles in the group. The set contains the road segments available for routing flow . Similar to Nyporko et al. (2025), we adopt a static, episode-level CTR setting in which every episode is solved independently of the others, the segment costs are not updated as traffic conditions change, and traffic is modeled at the level of aggregate OD flows rather than individual vehicle trajectories.
Each road segment is associated with a load , defined as the number of vehicles routed through this segment. There is no hard restriction on the segment capacity (any number of vehicles may traverse it); instead, the segment cost increases with its load according to a piecewise-linear function with upward jumps at the tier thresholds. Let denote the set of congestion tiers. For the first tiers, denotes the upper load threshold, with , while the final tier extends to . Each tier has a unit cost , with . The active tier is determined by the segment load:
For a given load , the segment cost is defined as , and the total cost of an episode is given by .
3.2. MILP formulation
Decision variables. Table 1 summarizes the decision variables.
Table 1: Decision variables of the CTR MILP.
| Variable | Domain | Description |
|---|---|---|
| Number of vehicles of flow assigned to segment | ||
| Number of vehicles of flow continuing from segment to segment through an allowed turn | ||
| Load on segment | ||
| Cost contribution of segment | ||
| Indicator that tier is active on segment |
We introduce three groups of variables: routing variables for segments , segment variables , , for segments , and turn-flow variables for allowed turns at junctions other than the origin and destination of flow .
Constraints. Let denote the total number of vehicles in the episode. Since the load on any segment cannot exceed , we use for the upper bound of the final congestion tier and for the cost linearization.
- Flow is conserved at each node:
- No flow enters an origin and none leaves a destination:
- The load on each segment is the total number of vehicles routed through it:
- Exactly one congestion tier is selected for each segment:
• The segment load must satisfy the bounds of the selected tier:
(6)
At an exact threshold, either adjacent tier is feasible; since unit costs increase and is minimized, the lower-cost tier is selected.
• The segment cost is linearized using the selected tier:
- At junctions with turn restrictions, the per-turn flows reproduce the incoming and outgoing segment flows:
We remark that imposing integrality on is unnecessary at this stage, as it could make the formulation harder to solve. For fixed integer segment flows from a feasible MILP solution, the turn-flow constraints at each restricted junction can be represented as a maximum-flow problem on a bipartite network whose capacities are given by integers . Hence, an integer assignment to the variables exists and can be recovered in polynomial time, as described in Section 4.4.
Objective. The objective minimizes the total segment cost:
(a) Fixed

(b) Episode-specific

Figure 1: Fixed and episode-specific network reduction. Boxes show states, while arrow labels show operations. (a) The fixed procedure constructs the flow-specific segment sets independently of the current episode. (b) Our approach predicts per-flow segment scores and constructs these sets for the current episode. Both approaches use the same segment-flow MILP.
4. Solution Methodology
This section presents our GNN-guided network reduction approach and the fixed-reduction methods used for comparison. In every case, the goal is to restrict the segment-flow MILP by replacing the set available to each flow with a flow-specific segment set ; the formulation in Section 3.2 then includes routing variables and associated constraints only for segments in . We use the term reduced network to refer to the resulting collection . However, the presented approaches differ in how the flow-specific segment sets are obtained. Section 4.1 describes fixed reduction methods, which construct without using any information about the vehicles in the current episode. Section 4.2 introduces our algorithm, which constructs from per-flow segment scores provided by a ranking oracle. Section 4.3 describes the proposed GNN approach for predicting the segment scores. Finally, Section 4.4 explains how a segment-flow solution is converted into individual vehicle routes. Figure 1 illustrates the fixed reductions in panel (a) and our proposed approach in panel (b).
4.1. Fixed reduction methods
The fixed reduction scheme is illustrated in Figure 1(a). For each OD pair, the procedure generates a set of routes whose combined segments define the allowed set – once constructed, these sets remain unchanged across episodes. The approaches presented below represent different levels of pruning aggressiveness, from no pruning on the full graph to retaining only one shortest path for each OD pair.
Full graph (FG). FG applies no network reduction and sets for every flow. The MILP is therefore solved on the complete road network, retaining all routing variables of the original formulation without prior segment removal. This yields the largest and most computationally demanding model among the evaluated approaches. We therefore use FG as the reference for measuring the objective quality of the reduced approaches.
Bounded Routes. For each OD pair, the BR approach (Švadlenka et al., 2023) precomputes a large pool of candidate routes. An A* search enumerates routes whose length lies within a factor c > 1 of the shortest route, using the shortest-path length to the destination as the heuristic while respecting the allowed turns at each expansion. Every segment appearing in at least one enumerated route is then retained, and the union of these segments for the OD pair defines . BR thus discards segments absent from all selected routes while preserving several routing alternatives for each OD pair.
Smart Routes. The SR approach (Švadlenka et al., 2023) starts from the BR route pool and removes near-duplicate routes. DBSCAN clusters all available routes based on the Jaccard distance between their segment sets. Within each cluster, SR retains the shortest route, while routes classified as noise are likewise preserved as distinct alternatives. The corresponding is then the union of the segments of the selected routes. Thus, SR preserves structurally distinct alternatives while eliminating routes that traverse largely overlapping segment sets, typically yielding a smaller flow-specific segment set than BR.
Shortest Path (SP). The SP approach retains only the shortest route satisfying the turn restrictions for each OD pair. Thus, SP represents the most aggressive fixed reduction considered in the evaluation, eliminating all alternative routing choices for each OD pair. Unlike BR and SR, it requires neither route enumeration nor clustering. As the extreme case of network reduction, SP provides a useful baseline for assessing the trade-off between model size and the loss of routing flexibility. In particular, comparison with less restrictive reductions indicates how much solution quality is affected when each OD pair is confined to a single predefined route.
We emphasize that the fixed approaches described above ignore the information about the vehicles in the current instance, and all episodes use the same flow-specific segment sets. Our approach, introduced next, instead adapts to each CTR instance using both the information about the road network and the OD flows in the current episode.
4.2. Ranking-guided network reduction
The proposed approach is illustrated in Figure 1(b) and summarized in Algorithm 1. For each OD flow i, a ranking oracle assigns a score to every segment r, taking into account both the road network and the OD flow information in the current episode. The resulting scores therefore make the reduction specific to the current CTR episode. Given these scores, the procedure selects a limited set of ranked segments and constructs complete OD routes containing them. The union of these routes is then expanded locally to retain nearby routing alternatives. Once the procedure is finished, the original segment-flow MILP is solved on the union of all retained segments, with each flow i restricted to its corresponding segment set .
Step 1: Initializing the route pool. For each OD flow i, we first initialize the pool of routes with the shortest (by length) path which satisfies the turn restrictions. We compute it using Dijkstra's algorithm, tracking both the current and previous junctions to enforce the turn restrictions. This route is retained regardless of the ranking, ensuring that at least one complete OD route remains available even if no additional ones are constructed.
Step 2: Constructing OD routes using segment rankings. We start by considering the first segments in the ranking and perform a further selection among them. For each candidate, we search for a shortest (by estimated travel time) OD path that passes through this segment. We use forward and reverse Dijkstra searches from the origin and destination, respectively, reusing their results for all candidates of the same OD pair. A segment is selected only when we find a path that respects the turn restrictions, contains no repeated junctions, and has travel time at most . Here, is the shortest estimated travel time between the origin and destination without requiring the route to pass through the segment. Only the segments that do not fail this check proceed to the second phase. The routes found are stored separately in a pool , but are not yet added to .
In the second phase, we construct routes through the selected segments, starting with those ranked highest. Segments that are already included in at
Algorithm 1 Ranking-guided network reduction
Require: CTR instance , per-flow segment scores , rank cutoff , detour factor
Ensure: Flow-specific segment sets
▷ In Step 2, means no route passing the checks was obtained.
1: for all flows do
Step 1: Initializing the route pool
2:
3:
Step 2: Constructing OD routes using segment rankings
▷ Phase 1: Segment selection
4:
5:
6: for all in ranking order do
7:
8: if then
9:
10: end if
11: end for
12:
▷ Phase 2: Route construction
13:
14: for all in increasing order of do
15: if then
16:
17: if then
18:
19: end if
20:
21:
22: end if
23: end for
Step 3: Constructing the flow-specific segment set
24:
25:
26: end for
27: return least one route of are skipped. We first convert the ranking positions of the segments into values : the highest-ranked segment receives 0, and the lowest-ranked segment receives 1. Using these values as costs, we connect the origin to the start of the selected segment and its end to the destination through minimum-cost routes. Together with the selected segment, these form a complete OD route. If this route passes the same checks as in the first phase, we add it to ; otherwise, we add the route through this segment stored in during the first phase.
Step 3: Constructing the flow-specific segment set. Once the pool of routes is constructed, we combine all segments used by these routes into a set . We then expand this set by adding neighbouring segments that can directly precede or follow at least one segment in without violating the turn restrictions. We denote the resulting set by . We then prune , removing segments that are unreachable from the origin or from which the destination cannot be reached within this network. The remaining segments form the final set available for routing flow i.
Optimization on the reduced network. Once the flow-specific segment sets are obtained, their union defines the reduced segment set of the original segment-flow MILP, with each flow restricted to its corresponding . Variables are therefore created only for segments , while the flow conservation and turn restrictions retain their original form. All other parts of the formulation remain unchanged. We note that the solver may combine segments in into any routing allowed by the original constraints so the search space is not restricted to the routes in .
We remark that the reduction procedure does not depend on how the segment rankings are obtained. In this work, we propose to generate them using the GNN described in the following subsection.
4.3. GNN-based segment ranking
To obtain the segment rankings, we use a GNN that processes the full MILP instance before network reduction. The model is trained on FG solutions, where the number of vehicles on each segment determines the segment ordering for the corresponding flow (segments used by more vehicles rank higher). We next describe the construction and training of the GNN in detail.
GATv2 message passing (4 layers)

Figure 2: GNN segment ranking model. The current CTR MILP instance is represented by variable, constraint, and objective nodes connected through six directed relation types. Node features combine MILP (blue), road network (green), and OD-flow (orange) information. Four GATv2 layers perform message passing (purple), after which a readout head assigns a raw score to each routing variable . These scores are ranked separately within each OD flow and passed to the network reduction procedure.
Representation of the problem instance. The full MILP instance is represented as the heterogeneous graph shown in Figure 2. Following Gasse et al. (2019), each MILP variable and constraint is represented by a separate node. We additionally introduce a single objective node, resulting in three node types: variables, constraints, and objective. A variable node and a constraint node are connected if the variable has a nonzero coefficient in that constraint, and the coefficient is used as the edge attribute. Every variable and constraint node is also connected to the objective node; variable-objective edges carry the corresponding linear objective coefficients. All three connection types are represented in both directions, resulting in six directed relation types. Since the graph size is not fixed, the same GNN can process instances with different numbers of OD flows.
Node features. The graph is augmented with node features that describe the current CTR instance from three perspectives: its MILP representation, fixed characteristics of the transportation network, and the OD flows in the current episode. The complete set of features for each node type is reported in Table 2. MILP-related features encode the variables and constraints and their role in the formulation, using information such as variable bounds, linear objective coefficients, constraint coefficients, and right-hand sides. Network features capture the physical and routing properties of individual segments, including
Table 2: Node features used in the GNN representation.
| Node type | Features |
|---|---|
| Variable (77) | variable type, linear objective coefficient, and bounds; routing, network, and OD-flow features for ; turn context for ; segment features for , , and , with additional tier-specific features for |
| Constraint (44) | constraint type, right-hand side, and sense; flow and OD context, segment and OD-flow features, congestion-tier information, and turn connectivity according to the constraint type |
| Objective (1) | a single bias feature |
travel characteristics, capacity, shortest-path position, and allowed turns. OD-flow features reflect the episode-specific use of the network, including flow sizes, flow-size-to-capacity ratios, and the sizes of other flows competing for the same segments.
Message passing and training. The features of each node type are first projected into a common hidden space. Four message-passing layers then apply a separate GATv2 convolution (Brody et al., 2022) to each of the six directed relation types, using the corresponding edge attributes. The resulting messages are aggregated and combined with the previous node representation through a residual connection, followed by layer normalization, LeakyReLU, and dropout. A two-layer readout assigns a scalar score to every variable node, while only scores associated with routing variables are retained as . The model is trained using FG solutions, with normalized segment usage defining the target ordering within each flow. For a sampled pair with , the loss is softplus(), which penalizes incorrect ordering and gives more weight to larger differences in segment usage.
4.4. Route recovery
Any solution returned by the CTR MILP must still be converted into individual vehicle routes. Nyporko et al. (2025) extract the solution using a DFS-based algorithm. However, the turn restrictions considered here require a different procedure. We therefore propose the route recovery procedure summarized in Algorithm 2.
Algorithm 2 Route recovery with turn restrictions
Require: MILP solution
Ensure: Vehicle routes
1: for all
2: for all flows with do
3: for all do
4: if some , , is fractional then
5:
6: end if
7: end for
8: ;
▷ DFS uses positive residual flows and never repeats a segment.
▷ Backtrack over routes and vehicle counts if needed.
9: while do
10:
11: Choose supported by the residual flows along
12: Add copies of to ; subtract from and along
13: end while
14: Discard any residual circulations
15: end for
16: return
As noted in Section 3.2, an integrality requirement is not imposed on the turn-flow variables . The solver may return integer values for them, but it is not required to do so. If a given assignment is fractional at some restricted junction, we replace it with an integer one. For each flow and junction , we formulate a maximum-flow problem: the nodes represent incoming and outgoing segments; we additionally introduce a source and a sink. We then connect the source to the incoming segments and the outgoing segments to the sink, adding arcs between segments only for allowed turns. The capacities of the arcs adjacent to the source and sink equal the corresponding values. Since all capacities are integer, the integrality property of maximum flow guarantees an integer solution. We remark that maximum flow can be solved in polynomial time.
Once an integer solution is available for all restricted junctions, we reconstruct the routes for each flow i. Initially, the residual flows equal the solution values on segments and on turns. A depth-first search finds a feasible OD route with no repeated segments using only positive residual flows. After assigning vehicles to the route, we subtract their number from the residual flows on its segments and turns and repeat the search using the updated values. The procedure continues until routes have been assigned to all vehicles. Any remaining flow forms circulations that carry no vehicles between the origin and the destination and is discarded.
5. Experimental Evaluation
This section evaluates the proposed approach from four complementary perspectives. We first study how the considered CTR MILP scales with the number of OD flows and identify the settings in which it becomes difficult to solve within the operational budget, while additional computation can still improve the solution quality (Section 5.2). Next, we assess how accurately the GNN ranks segments (Section 5.3) and then compare the proposed approach with the other methods in terms of objective quality and runtime (Section 5.4). Finally, we replay the obtained routes in a microscopic traffic simulator to assess how differences in the optimization translate into traffic outcomes (Section 5.5).
5.1. Experimental setup
Road networks. The experiments are carried out on four real urban road networks – Prague-Dejvice, London, New York, and Sydney – spanning a range of sizes and topologies. Table 3 reports their number of junctions, directed segments, and junctions with turn restrictions, together with the total segment length. The same rule is used for determining congestion-dependent segment costs in all four networks. Similar to Ekström et al. (2012) and Angelelli et al. (2021), who use piecewise-linear approximations of congestion-dependent travel times, we represent each segment cost by ten tiers with quadratic threshold offsets and a fourth-power cost progression. To define its segment-specific thresholds, let denote the number of lanes represented by segment , and let be the length of lane . Using an average vehicle spacing of 5 metres, we define the nominal segment capacity as . The congestion thresholds are set relative to this capacity. The first nine tiers have finite upper thresholds , , while the tenth tier is unbounded. We next define the cost associated with each tier. The base cost is the expected traversal time of a lightly loaded segment. This time combines the travel time along the
Table 3: Topology of the four test cities.
| City | |V| | |R| | |T| | Length (km) |
|---|---|---|---|---|
| Dejvice | 95 | 183 | 5 | 15.1 |
| London | 308 | 645 | 65 | 40.7 |
| New York | 212 | 453 | 9 | 51.8 |
| Sydney | 441 | 1058 | 20 | 106.4 |
segment with the expected traffic-light delay at its downstream junction. We denote it by and set . The remaining finite-tier costs are , , with .
Evaluation scenarios. We retain the scenario structure used in Nyporko et al. (2025) and extend it to four cities and a wider range of OD flows. Each scenario reflects one hour of peak-period traffic and consists of 120 episodes of length seconds. Each episode contains OD flows. How the number of vehicles in each flow evolves over the hour depends on the traffic regime. We consider two traffic regimes for each city: static and increasing. In the static regime, each flow independently follows either a constant or an increasing traffic pattern with equal probability; in the increasing regime, all flows follow the increasing traffic pattern. Both patterns are described below.
For a flow with a constant traffic pattern, the rate is randomly selected from a discrete set spanning 0.10–0.67 vehicles per second. With seconds, this corresponds to vehicles per episode, obtained by rounding . For city , this number is scaled as , where is the city-specific scaling factor. Since is fixed, the number of vehicles remains constant throughout the one-hour scenario.
For a flow with an increasing traffic pattern, one rate triple is randomly selected and used over three consecutive 20-minute periods, indexed by . These rates lie between 0.10 and 0.44 vehicles per second. For each episode in period , the number of vehicles is sampled independently as . Thus, the number of vehicles varies across episodes, while its expected value increases in three stages over the hour. The same city-specific scaling is then applied to positive values of .
We use ten scenarios per experiment for every (city, mode, ) combination; microscopic simulation reuses the final evaluation scenarios. The scaling factor equals 0.80, 0.72, 0.67, and 1.07 for Prague-Dejvice, London, New York, and Sydney, respectively. In the optimization comparison, all methods receive a 10-second operational solver budget. A separate 30-second FG run provides a reference solution for each episode and allows us to assess the benefit of additional computation. This longer budget matches the episode length but is not proposed for operational use, since preparing the optimization problem, recovering routes, and communicating them to vehicles also require time.
Compared methods. The evaluation includes all methods introduced in Section 4.1 (FG, the fixed reduction methods SP, BR, and SR) as well as three ranking oracles that use the procedure described in Section 4.2: GNN, linear programming (LP), and Random. The proposed GNN oracle ranks the segments of each flow using its predicted scores, as described in Section 4.3. The LP oracle instead uses the fractional values obtained from the continuous relaxation of the FG, while Random uses a random segment permutation for each flow. All three oracles – GNN, LP, and Random – use the same and , calibrated from the GNN training and validation data as described in Section 5.4.
To assess the reliability of conclusions about differences between methods, we perform a statistical analysis of the obtained results. For each evaluated metric and traffic regime, we compare GNN with the best of the other methods using the All cities results, pairing their outcomes on the same scenarios. We construct 95% confidence intervals using bootstrap and test the significance of differences using a two-sided paired randomization test. Since the best other method is selected from several alternatives rather than specified in advance, we apply Holm's correction to the p-values to reduce the risk of falsely declaring differences significant.
Implementation details. The implementation is done in Python 3.13 and uses Gurobi 13.0.2, PyTorch Geometric, and SUMO v1.27.1 (Alvarez Lopez et al., 2018). The code and data are available in a public repository. BR uses a pool of at most 100 routes per OD pair and ; SR applies DBSCAN with and a minimum of two samples. The GNN uses a hidden dimension of 128, four attention heads, and a dropout rate of 0.1. All experiments run
The repository link will be provided after review.
on a NixOS server with an AMD EPYC 9124 processor (64 cores), 384 GB of RAM, and one NVIDIA L40S GPU with 48 GB of memory.
5.2. Scalability of the MILP formulation
This series of experiments studies how the considered CTR MILP scales as the number of OD flows increases. We are interested in the intermediate range of OD flows where the operational 10-second budget is often insufficient to approach an optimum, but extending the solver budget to 30 seconds still leads to substantially better results. This is the range where the solver can benefit the most from the proposed learned reduction: the problem is already nontrivial, so the solver cannot handle it within the operational budget; however, the improvement under the longer budget indicates that high-quality solutions remain attainable, motivating the use of these instances for GNN training. To identify the targeted intermediate range for each road network and traffic regime, we vary the number of origin-destination pairs, considering .
We use two metrics to characterize the solver’s performance under both the operational and extended time budgets. The first is the fraction of episodes for which FG obtains a feasible solution with a primal–dual gap of at most 1%. The gap is defined as , where is the best feasible objective value found and is the proven lower bound. The second metric we use is the fraction of episodes for which FG obtains any feasible solution, regardless of its gap. Figure 3 demonstrates the results.
Discussion. We first analyze the relation between the solid and dashed curves, which report, respectively, the fractions of episodes in which FG obtains a solution with a primal–dual gap of at most 1% and any feasible solution. We make two observations. First, the values of at which the curves begin to decline broadly follow network size: Prague-Dejvice starts to decrease only at large , London and New York do so in the middle range, while Sydney becomes computationally hard already at small . Second, the distance between the solid and dashed curves shows whether the main difficulty lies in improving an already found solution or finding a feasible solution at all. In Prague-Dejvice, a feasible solution is found in almost every episode (a minimum of 99.75%) over the entire evaluated range, so the decrease of the solid curves mainly reflects the increasing difficulty of reaching a small primal-dual gap. London and New York show a two-stage trend: the solid curves decrease first while feasible solutions are still found in most episodes.

London – Static
Prague-Dejvice – Increasing

London – Increasing

New York – Static

New York – Increasing

Sydney – Static

Sydney – Increasing


Figure 3: FG scalability. Solid: gap ≤ 1%; dashed: feasible solution; shading: selected .
For Sydney, the distance between the curves is the smallest, so finding a feasible solution becomes almost as difficult as obtaining a high-quality one, and feasibility itself quickly becomes computationally hard even for moderate numbers of OD flows.
We next identify the settings in which the problem is hard to tackle within the operational 10-second budget, but extending the solver budget to 30 seconds can still improve the solution. The shaded regions in Figure 3 mark the corresponding ranges of five consecutive values selected for each city and traffic regime. We place each region around the point where the 10-second solid curve starts to decline while the 30-second curve remains substantially higher. This is the regime in which the proposed reduction can provide the clearest benefit: the full formulation is already difficult to solve within the operational budget, but the longer runs show that high-quality solutions remain attainable. The selected ranges are 28–32 and 31–35 for Prague-Dejvice, 7–11 and 10–14 for London, 12–16 for both New York modes, and 5–9 and 6–10 for Sydney, with the static regime listed first. These city-specific ranges are used in all subsequent experiments.
5.3. GNN training results
This series of experiments demonstrates the ability of the proposed GNN to learn the flow-specific segment ordering. We train a separate GNN model (with the same architecture but different learned weights) for each city and traffic regime. Each model is trained jointly on the five corresponding values selected in the previous scalability experiment, using ten scenarios (1200 episodes) for each value. For every , eight complete scenarios are used for training and two for validation. To obtain high-quality labels, we solve FG with a 300-second time limit and retain every episode for which a feasible solution is found. All labelling runs produced a feasible solution, yielding 6000 labelled MILP instances per model. The problem representation, target ordering, and training loss are described in Section 4.3. Training uses Adam with learning rate , weight decay , batch size 8, and a cosine learning rate schedule for at most 50 epochs. Early stopping is applied with a patience of five epochs.
We evaluate ranking quality using pairwise accuracy and top-K recall. For each flow, we sample 128 segment pairs with different target values and weight them as defined in Section 4.3. A sampled pair with is correctly ordered when . Pairwise accuracy is thus defined as the weighted fraction of correctly ordered pairs. The second metric, top-K recall, considers

Figure 4: GNN validation ranking performance in the static (S) and increasing (I) regimes; bar labels show cumulative recall.
the segments used by a flow i in the labelled solution. It measures the fraction of such segments that appear among the K highest-scoring segments for that flow. We report the mean top-K recall across flows and validation episodes for . For model selection, validation pairwise accuracy is computed separately for each , and the model with the highest mean across the five values is retained.
Discussion. Figure 4 shows that all eight models learn the target ordering consistently, with pairwise accuracy ranging from 92.0% to 96.1% and comparable between the two traffic regimes within each city. The Prague-Dejvice models achieve the highest accuracy, consistent with this network being the smallest of all four. The lowest values occur for Sydney, which is the largest studied network, and London, where a lower accuracy may also reflect its specific topology. Overall, the accuracy remains above 92% across all cities and traffic regimes, with a spread of only about four percentage points, indicating that the GNN learns reliably and preserves the relative segment-usage ordering irrespective of network size or traffic intensity.
Similarly to pairwise accuracy, top-K recall also exposes several differences among the city networks. In Prague-Dejvice, the top 50 positions already recover more than 99.5% of the labelled segments. New York reaches 95.9–96.9% at K = 100 and almost 100% at K = 200; London reaches only 80.4–82.4% at K = 100 but approximately 99.5% at K = 200, while Sydney reaches 90.9–94.4% at K = 200. Thus, even the cities with comparable total road lengths can require different prefix sizes – for example, London has a shorter total road length than New York but more segments and turn-restricted junctions, and requires a larger K to achieve comparable recall. As the required prefix sizes notably differ across the networks, the results support calibrating separately for each city and traffic regime.
5.4. Optimization-level evaluation
This experiment evaluates whether the proposed approach outperforms other methods on the considered CTR MILP under the operational 10-second solver budget. For each city and traffic regime, we evaluate five values selected in Section 5.2, using ten test scenarios (1200 episodes per method) for each value. The reduction parameter is calibrated independently for each (city, mode, ) combination. To determine it, we first weight each ranked segment by the fraction of vehicles routed through it in the labelled solution; we then choose as the smallest number of top-ranked segments containing 90% of the total weight in the GNN validation data. The detour factor is the maximum of 2.0 and the 99th percentile of route travel times in the training solutions relative to the shortest travel time for the same OD pair. The SP routing provides a feasible initial solution for every instance. A separate run of FG with a 30-second time limit, denoted , provides a reference solution for each episode.
We evaluate each method in terms of its relative objective difference from and runtime. The difference is defined as , where is the best objective value found by the evaluated method and is the corresponding best objective value found by . We report the average difference across all episodes for each city and traffic regime. As for runtime, the total time includes computing the scores (where applicable) and constructing the reduced network, as well as constructing and solving the MILP. The one-time loading of a GNN model is excluded. We also separately report the Gurobi time spent for solving the MILP. For each of the two runtime metrics, we remove the lowest and highest 10% of values and average the remainder.
Discussion. Table 4 shows that GNN obtains the smallest average relative objective difference from across all four city networks and both traffic regimes. The advantage ranges from a small margin on the small and moderate-sized networks (Prague-Dejvice static, London increasing) to larger values
Table 4: Optimization-level evaluation results.
| Mean relative objective difference to (%) | |||||||
|---|---|---|---|---|---|---|---|
| City | FG | GNN | LP | Random | SR | BR | SP |
| Static regime | |||||||
| Prague-Dejvice | 1.14 | 1.12 | 142.00 | 4.52 | 40.34 | 23.85 | 422.96 |
| London | 1.68 | 0.54 | 3.85 | 1.17 | 309.25 | 201.56 | 545.60 |
| New York | 106.53 | 0.67 | 16.48 | 4.50 | 67.10 | 5.12 | 545.35 |
| Sydney | 31.06 | 0.24 | 118.94 | 6.34 | 43.51 | 11.51 | 341.89 |
| All cities | 35.10 | 0.64 | 70.32 | 4.13 | 115.05 | 60.51 | 463.95 |
| Increasing regime | |||||||
| Prague-Dejvice | 2.85 | 2.06 | 250.26 | 6.53 | 39.86 | 22.19 | 658.67 |
| London | 3.09 | 1.22 | 1.25 | 1.27 | 245.14 | 174.18 | 517.71 |
| New York | 87.15 | -1.24 | 45.30 | 4.23 | 56.56 | 3.91 | 508.18 |
| Sydney | 49.10 | -0.61 | 88.51 | 8.78 | 38.15 | 9.35 | 299.07 |
| All cities | 35.55 | 0.36 | 96.33 | 5.20 | 94.93 | 52.41 | 495.91 |
| Runtime over all test episodes | |||||||
| Method | FG | GNN | LP | Random | SR | BR | SP |
| Solve time (s) | 9.08 | 4.88 | 3.02 | 6.99 | 0.42 | 0.99 | < 0.01 |
| Total time (s) | 9.60 | 8.43 | 4.24 | 7.63 | 0.52 | 1.13 | 0.05 |
on the bigger and computationally harder networks (New York and Sydney, in both settings). A particularly strong result is the negative difference achieved by GNN in the increasing regime for New York and Sydney: the GNN-reduced model, under a 10-second budget, finds better solutions than , which is given a three-times longer, 30-second budget – it indicates that the GNN-based reduction is highly informative and can yield substantial time savings. We further note that every GNN run returned at least one feasible solution improving on the SP initialization. We note in addition that the is tightly bounded in most of the episodes: its primal-dual gap is no more than in of static and of increasing-regime episodes. Thus, the mean certified gaps of GNN, computed using the full-graph lower bounds from , are and , respectively.
Several observations arise when comparing the proposed GNN-based ranking with its Random and LP ablations. First, the comparison with Random shows the proposed network-reduction procedure remains useful regardless of the predicting oracle: Random, indeed, performs substantially better than the fixed reduction methods in nearly all cases and even improves on the 10-second FG runs for the large city networks. However, the GNN-based ranking plays a significant role: for all cities it reduces the mean relative objective difference compared with Random, the best other method in both regimes, by 3.49 and 4.85 percentage points in the static and increasing regimes, respectively. Both differences are statistically significant (Holm-adjusted ). Moreover, in cases of New York and Sydney (increasing regime) the GNN even surpasses the baseline. We also note that, despite using the same ranking prefix budget, GNN retains only 45% of the flow-segment pairs available in FG, compared with 61% for Random, which is reflected in a lower solving time of 4.88 s versus 6.99 s; a part of Random's performance can therefore be attributed to its larger reduced network, which increases the chance of containing a good solution. Finally, the comparison of GNN with the LP ablation shows GNN's clear dominance; the values obtained by LP indicate that the fractional primal values of its relaxation provide little useful ranking information for the subsequent integer optimization (in contrast to Dilkina et al. (2009), Section 2.4).
5.5. Microscopic simulation evaluation
The final experiment examines how improvements observed at the optimization level translate into traffic outcomes in a microscopic simulation. For every method, we recover vehicle routes from each episode’s MILP solution obtained in Section 5.4 and replay the resulting assignments in SUMO (Alvarez Lopez et al., 2018). For each (city, mode, ) combination, all methods use the same scenarios, vehicle departure times, and SUMO settings.
Since the traffic state depends on factors beyond the initial routes, an important question is how to formulate a valid experiment demonstrating how an optimization result leads to simulated traffic performance. For example, without rerouting, vehicles cannot respond to conditions arising during simulation (e.g., accidents, queues, and delays), so initial routes alone cannot realistically determine the outcome. Conversely, frequent route updates repeatedly overwrite the initial routing, so the experiment rather measures the adaptation to current traffic rather than the influence of the initial routes. We therefore use the following procedure: we define the share p of rerouted vehicles and run each method on every scenario for . SUMO updates the routes of the selected vehicles every 30 seconds, matching the episode length. The results are then averaged over p as defined below.
We consider a one-hour simulation horizon, matching the period covered by the 120 routing episodes. Although only a share of dispatched vehicles complete their trips within this window, extending the horizon further would increasingly reflect the network’s natural clearance after dispatch ends, as queues dissipate and delayed trips complete regardless of routing quality. This keeps the comparison focused on differences between methods rather than generic post-dispatch dynamics.
We evaluate traffic performance using the arrival rate and the average trip duration. The arrival rate is the percentage of dispatched vehicles that reach their destination within the one-hour operational horizon, and the average trip duration is computed over completed trips. Since duration is conditional on arrival, we instead report the ratio , in seconds per percentage point (s/pp) of arrival. We average both metrics over the eleven rerouting shares:
We make two remarks on the interpretation of the simulation results. First, the evaluation scenarios are intended as traffic stress tests rather than representations of typical traffic conditions. We deliberately impose high traffic loads: each OD pair accounts for an average of about 500–900 vehicles over the hour, while the average total number of vehicles per scenario (given the selected numbers of OD pairs) is about 21000, 6300, 7700, and 6400 for Prague-Dejvice, London, New York, and Sydney, respectively. Such loads, combined with the one-hour simulation horizon, are expected to lead to low arrival rates, and the resulting SUMO values should therefore not be interpreted as estimates of normal city traffic performance; instead, they provide a basis for comparing the routing methods under the same difficult conditions. Second, the individual results of the methods should be interpreted within the limitations of the experiment. The proposed MILP aims to minimize tiered segment costs, whereas the simulation metrics depend on vehicle interactions, departure times, rerouting, queues, and other traffic conditions that the optimization does not model directly, so an exact correspondence between the two should not be expected. Nevertheless, the experiment is intended to show that the optimization-level gains of the proposed method remain beneficial overall under the simulation settings.
Table 5: Microscopic simulation across rerouting shares. Cells report average arrival (%) / duration-to-arrival (s/pp); metric bests are bold.
| Method | Prague-Dejvice | London | New York | Sydney | All cities |
|---|---|---|---|---|---|
| Static regime | |||||
| FG | 1.11/401.0 | 16.29/47.1 | 2.37/589.6 | 17.45/43.8 | 5.98/130.4 |
| GNN | 1.17/407.6 | 15.83/48.9 | 2.44/585.2 | 17.89/43.6 | 6.02/131.8 |
| LP | 1.21/518.2 | 15.94/48.6 | 2.81/571.3 | 12.24/85.5 | 5.27/177.0 |
| Random | 0.89/514.8 | 16.20/47.1 | 2.66/509.8 | 17.18/46.2 | 5.87/136.1 |
| SR | 0.45/691.9 | 10.63/99.8 | 1.75/987.4 | 15.36/54.4 | 4.40/216.2 |
| BR | 0.46/678.5 | 13.46/68.6 | 2.56/593.7 | 16.74/48.2 | 5.17/172.2 |
| SP | 0.46/605.7 | 9.64/116.4 | 1.06/1586.5 | 11.43/62.8 | 3.54/255.5 |
| Increasing regime | |||||
| FG | 0.84/482.5 | 13.81/54.7 | 2.59/533.6 | 16.53/43.7 | 5.81/130.4 |
| GNN | 0.97/454.7 | 13.80/54.9 | 2.64/513.1 | 18.04/40.1 | 6.12/123.2 |
| LP | 1.45/441.4 | 13.76/55.2 | 3.25/493.6 | 13.09/70.6 | 5.67/155.8 |
| Random | 0.93/472.6 | 13.86/54.2 | 2.89/458.1 | 16.13/48.7 | 5.85/133.7 |
| SR | 0.49/659.6 | 9.81/99.4 | 2.12/782.8 | 15.25/51.8 | 4.68/191.4 |
| BR | 0.49/635.7 | 11.78/75.3 | 2.86/492.9 | 16.85/44.9 | 5.39/155.7 |
| SP | 0.50/519.3 | 8.32/129.5 | 1.40/1165.9 | 11.47/57.8 | 3.71/230.0 |
Discussion. We first analyze how well the optimization-level results lead to the microscopic traffic performance in general. Table 5 shows that the ordering from Section 5.4 is not maintained precisely across separate methods, but rather preserves a clear difference between groups of methods: FG and the ranking-based approaches demonstrate stronger simulation results, while the fixed reduction methods SR, BR, and SP tend to give lower arrival rates and larger duration-to-arrival ratios. In particular, GNN and LP obtain higher arrival rates in the All cities results than every fixed reduction in both traffic regimes.
Among the individual methods, GNN demonstrates the strongest overall performance across cities: it shows the best arrival rate in both traffic regimes, while also ranking first in the increasing regime by and second in the static regime by the same metric. We remark that the differences are statistically significant only for the increasing regime for both arrival rate (the best other method is Random) and duration-to-arrival ratio (the best other method is
FG), with Holm-adjusted for both comparisons. The GNN's performance is also reflected across individual cities: it stays among the top-three methods in most city/regime combinations – five of eight by arrival rate and six of eight by . In addition, the GNN performs remarkably in Sydney, where it achieves the highest arrival rate (17.89% static, 18.04% increasing) together with the lowest duration-to-arrival ratio in both the static (43.6 s/pp) and increasing (40.1 s/pp) regimes. Thus, the results confirm that GNN's stronger optimization-level performance also translates into stronger overall simulation performance across cities.
6. Conclusion
This paper addressed the computational difficulty of solving the CTR MILP over an urban road network within short operational time budgets. We proposed a network reduction procedure that exploits not only the topology of the road network but also information about the vehicles present in the current episode. A dedicated GNN ranks road segments separately for each OD flow, and the highest-ranked segments are retained to form a reduced network for solving the segment-flow MILP. The trained GNN thus narrows the search space available to optimization without predicting the routing itself, while the MILP ensures feasibility and determines the final routing under the same objective.
Unlike fixed reductions, which reuse the same reduced road network across all episodes, the proposed method constructs a separate reduced network for every episode: highly ranked segments are incorporated into complete origin-destination paths, and a local expansion adds neighboring segments. Since the construction is agnostic to the source of the segment scores, it can also use other rankings, e.g., those obtained from the linear programming relaxation of the considered MILP or even from a random ordering. This allows us to separate the contribution of the reduction procedure from that of the learned ranking.
We evaluated the proposed approach on four real urban road-network topologies under two traffic regimes. The scalability experiment identified ranges of OD flows pairs where the full-graph formulation is difficult to solve within the operational budget, but additional solver time yields substantially better solutions. Thus, these ranges provide both a motivation for network reduction and suitable training instances for the GNN. Across the eight trained models, the validation accuracy ranges from 92.0% to 96.1%. Within each city and traffic regime, the same model remains effective across five consecutive problem sizes and previously unseen scenarios. At the optimization level, GNN achieves the smallest relative objective difference from the 30-second full-graph reference in every city and traffic regime, averaging at 0.4–0.6% across cities. The comparison with fixed reduction methods shows that the proposed reduction procedure improves solution quality already on its own; nevertheless, among the methods using this procedure, GNN demonstrates a noticeable advantage over both Random and LP, confirming the substantial contribution of the learned ranking. The final experiment, which evaluates how the optimization results translate into simulation performance, shows that GNN also obtains the highest average arrival rate in both traffic regimes.
An important limitation concerns the connection between the optimization model and traffic simulation. The considered MILP represents congestion through tiered segment costs, whereas SUMO additionally models traffic lights, queues, interactions between vehicles, lane changes, and rerouting over time. The optimization model therefore captures only a limited part of the resulting traffic dynamics. Although the simulation experiment shows that the gains observed at the optimization level remain useful under the considered simulation settings, it does not establish that every improvement in the MILP objective necessarily improves traffic performance. A natural direction for future work is to make the approach more responsive to the current traffic situation by incorporating information about traffic lights, queues, and observed travel times and by updating the ranking and routing as traffic conditions change. This would bring the optimization model closer to real-time traffic management while retaining the feasibility guarantees of the MILP.
Acknowledgements
This research is supported by Czech Science Foundation (project no. 23-05575S and 25-18003S), by the European Union under the OP JAK project ROBOPROX (reg. no. CZ.02.01.01/00/22_008/0004590), and by the Grant Agency of the Czech Technical University (project no. SGS26/188/OHK3/3T/37 and project no. SGS25/144/OHK3/3T/13).
References
Alvarez Lopez, P., Behrisch, M., Bieker-Walz, L., Erdmann, J., Flötteröd, Y.P., Hilbrich, R., Lücken, L., Rummel, J., Wagner, P., Wießner, E., 2018.
Microscopic traffic simulation using SUMO, in: The 21st IEEE International Conference on Intelligent Transportation Systems, IEEE. pp. 2575–2582. doi:10.1109/ITSC.2018.8569938.
Ambrogio, A., Cianfanelli, L., Como, G., 2024. Information design for congestion minimization in transportation networks. IFAC-PapersOnLine 58, 181–185. URL: http://dx.doi.org/10.1016/j.ifacol.2025.01.177, doi:10.1016/j.ifacol.2025.01.177.
Angelelli, E., Morandi, V., Savelsbergh, M., Speranza, M., 2021. System optimal routing of traffic flows with user constraints using linear programming. European Journal of Operational Research 293, 863–879. URL: http://dx.doi.org/10.1016/j.ejor.2020.12.043, doi:10.1016/j.ejor.2020.12.043.
Angioni, D., Archetti, C., Speranza, M.G., 2025. Neural combinatorial optimization: A tutorial. Computers & Operations Research 182, 107102. URL: https://doi.org/10.1016/j.cor.2025.107102, doi:10.1016/j.cor.2025.107102.
Bagabaldo, A.R., Gan, Q., Bayen, A.M., González, M.C., 2024. Impact of navigation apps on congestion and spread dynamics on a transportation network. Data Science for Transportation 6, 12. URL: http://dx.doi.org/10.1007/s42421-024-00099-w, doi:10.1007/s42421-024-00099-w.
Bengio, Y., Lodi, A., Prouvost, A., 2021. Machine learning for combinatorial optimization: A methodological tour d'horizon. European Journal of Operational Research 290, 405–421. URL: http://dx.doi.org/10.1016/j.ejor.2020.07.063, doi:10.1016/j.ejor.2020.07.063.
Bosch, R., van Heeswijk, W., Rogetzer, P., Mes, M., 2025. Machine learning predictions for traffic equilibria in road renovation scheduling. URL: https://arxiv.org/abs/2506.05933, doi:10.48550/ARXIV.2506.05933.
Brody, S., Alon, U., Yahav, E., 2022. How attentive are graph attention networks?, in: International Conference on Learning Representations (ICLR). URL: https://openreview.net/forum?id=F72ximsx7C1.
Chen, B.Y., Lam, W.H., Sumalee, A., Li, Q., Li, Z.C., 2012. Vulnerability analysis for large-scale and congested road networks with demand uncertainty. Transportation Research Part A: Policy and Practice 46, 501–516. URL: http://dx.doi.org/10.1016/j.tra.2011.11.018, doi:10.1016/j.tra.2011.11.018.
Chrpa, L., Vallati, M., 2023. Centralised vehicle routing for optimising urban traffic: A scalability perspective, in: 2023 IEEE Intelligent Vehicles Symposium (IV), IEEE. pp. 1–6. URL: http://dx.doi.org/10.1109/IV55152.2023.10186707, doi:10.1109/iv55152.2023.10186707.
Chrpa, L., Vallati, M., Parkinson, S., 2019. Exploiting automated planning for efficient centralized vehicle routing and mitigating congestion in urban road networks, in: Proceedings of the 34th ACM/SIGAPP Symposium on Applied Computing (SAC 2019), Association for Computing Machinery. pp. 191–194. doi:10.1145/3297280.3297539.
Colini-Baldeschi, R., Cominetti, R., Mertikopoulos, P., Scarsini, M., 2020. When is selfish routing bad? the price of anarchy in light and heavy traffic. Operations Research 68, 411–434. URL: http://dx.doi.org/10.1287/opre.2019.1894, doi:10.1287/opre.2019.1894.
Cominetti, R., Dose, V., Scarsini, M., 2024. The price of anarchy in routing games as a function of the demand. Mathematical Programming 203, 531–558. URL: http://dx.doi.org/10.1007/s10107-021-01701-7, doi:10.1007/s10107-021-01701-7.
Como, G., Lovisari, E., Savla, K., 2016. Convexity and robustness of dynamic traffic assignment and freeway network control. Transportation Research Part B: Methodological 91, 446–465. URL: http://dx.doi.org/10.1016/j.trb.2016.06.007, doi:10.1016/j.trb.2016.06.007.
Dilkina, B., Gomes, C.P., Malitsky, Y., Sabharwal, A., Sellmann, M., 2009. Backdoors to combinatorial optimization: Feasibility and optimality, in: Integration of AI and OR Techniques in Constraint Programming for Combinatorial Optimization Problems. Springer Berlin Heidelberg, pp. 56–70. doi:10.1007/978-3-642-01929-6_6.
Ekström, J., Sumalee, A., Lo, H.K., 2012. Optimizing toll locations and levels using a mixed integer linear approximation approach. Transportation Research Part B: Methodological 46, 834–854. URL: http://dx.doi.org/10.1016/j.trb.2012.02.006, doi:10.1016/j.trb.2012.02.006.
Ferber, A., Song, J., Dilkina, B., Yue, Y., 2022. Learning pseudo-backdoors for mixed integer programs, in: Schaus, P. (Ed.), Integration of Constraint Programming, Artificial Intelligence, and Operations Research, Springer, Cham. pp. 91–102. URL: https://link.springer.com/chapter/10.1007/978-3-031-08011-1_8, doi:10.1007/978-3-031-08011-1_8.
Gañan-Cardenas, E., Rios-Echeverri, D.C., Ballesteros, J.R., Branch-Bedoya, J.W., 2024. Estimating traffic congestion cost uncertainty using a bootstrap scheme. Transportation Research Part D: Transport and Environment 136, 104462. URL: http://dx.doi.org/10.1016/j.trd.2024.104462, doi:10.1016/j.trd.2024.104462.
Gasse, M., Chételat, D., Ferroni, N., Charlin, L., Lodi, A., 2019. Exact combinatorial optimization with graph convolutional neural networks, in: Advances in Neural Information Processing Systems. URL: https://papers.neurips.cc/paper_files/paper/2019/hash/d14c2267d848abeb81fd590f371d39bd-Abstract.html.
Gauthier, P., Furno, A., El Faouzi, N.E., 2018. Road network resilience: How to identify critical links subject to day-to-day disruptions. Transportation Research Record: Journal of the Transportation Research Board 2672, 54–65. URL: http://dx.doi.org/10.1177/0361198118792115, doi:10.1177/0361198118792115.
Gerbaux, J., Desaulniers, G., Cappart, Q., 2025. A machine-learning-based column generation heuristic for electric bus scheduling. Computers & Operations Research 173, 106848. URL: https://doi.org/10.1016/j.cor.2024.106848, doi:10.1016/j.cor.2024.106848.
Gunjo, S.B., Guta, D.D., Damene, S., 2024. Modeling the economic cost of congestion in Addis Ababa City, Ethiopia. Environmental Systems Research 13, 16. URL: http://dx.doi.org/10.1186/s40068-024-00344-9, doi:10.1186/s40068-024-00344-9.
Jahn, O., Möhring, R.H., Schulz, A.S., Stier-Moses, N.E., 2005. System-optimal routing of traffic flows with user constraints in networks with congestion. Operations Research 53, 600–616. URL: http://dx.doi.org/10.1287/opre.1040.0197, doi:10.1287/opre.1040.0197.
Johnn, S.N., Darvariu, V.A., Handl, J., Kalcsics, J., 2024. A graph reinforcement learning framework for neural adaptive large neighbourhood search. Computers & Operations Research 172, 106791. URL: https://doi.org/10.1016/j.cor.2024.106791, doi:10.1016/j.cor.2024.106791.
Joshi, C.K., Laurent, T., Bresson, X., 2019. An efficient graph convolutional network technique for the travelling salesman problem. URL: https://arxiv.org/abs/1906.01227, doi:10.48550/ARXIV.1906.01227. arXiv:1906.01227.
Ke, Z., Zou, Q., Liu, J., Qian, S., 2025. Real-time system optimal traffic routing under uncertainties — can physics models boost reinforcement learning? Transportation Research Part C: Emerging Technologies 173, 105040. URL: http://dx.doi.org/10.1016/j.trc.2025.105040, doi:10.1016/j.trc.2025.105040.
Khreis, H., Williams, H., Abdollahpour, S.S., van den Bosch, M., Mudu, P., Tainio, M., Poom, A., Sohrabi, S., Hankey, S., 2024. The nexus of transportation, the built environment, air pollution and health. Cities & Health, 1–20URL: http://dx.doi.org/10.1080/23748834.2024.2376389, doi:10.1080/23748834.2024.2376389.
Lassen, O.B., Agriesti, S., Eldafrawi, M., Gammelli, D., Cantelmo, G., Gentile, G., Pereira, F.C., 2025. Learning traffic flows: Graph neural networks for metamodeling traffic assignment. URL: https://arxiv.org/abs/2505.11230, doi:10.48550/ARXIV.2505.11230.
Liu, C., Dong, Z., Ma, H., Luo, W., Li, X., Pang, B., Zeng, J., Yan, J., 2024. L2P-MIP: Learning to presolve for mixed integer programming, in: The Twelfth International Conference on Learning Representations. URL: https://openreview.net/forum?id=McfYbKnpT8.
Long, J., Szeto, W.Y., 2019. Link-based system optimum dynamic traffic assignment problems in general networks. Operations Research 67, 167–182. URL: http://dx.doi.org/10.1287/opre.2018.1775, doi:10.1287/opre.2018.1775.
Maheshwari, C., Kulkarni, K., Pai, D., Yang, J., Wu, M., Sastry, S., 2024. Congestion pricing for efficiency and equity: Theory and applications to the San Francisco Bay Area. URL: https://arxiv.org/abs/2401.16844, doi:10.48550/ARXIV.2401.16844.
Monnot, B., Benita, F., Piliouras, G., 2022. Routing games in the wild: Efficiency, equilibration, regret, and a price of anarchy bound via long division. ACM Transactions on Economics and Computation 10, 1–26. URL: http://dx.doi.org/10.1145/3512747, doi:10.1145/3512747.
Morandi, V., 2024. Bridging the user equilibrium and the system optimum in static traffic assignment: a review. 4OR 22, 89–119. URL: http://dx.doi.org/10.1007/s10288-023-00540-w, doi:10.1007/s10288-023-00540-w.
Nyporko, A., Švadlenka, M., Antonov, N., Rohaninejad, M., Chrpa, L., 2025. Centralised urban traffic routing using mixed-integer programming, in: Proceedings of the 17th International Conference on Agents and Artificial Intelligence - Volume 2: ICAART, INSTICC. SciTePress. pp. 176–187. doi:10.5220/0013137100003890.
Nyporko, A., Švadlenka, M., Antonov, N., Rohaninejad, M., Chrpa, L., 2026. Multicommodity flow based centralized traffic routing, in: van den Herik, H.J., Rocha, A.P., Steels, L. (Eds.), Agents and Artificial Intelligence, Springer, Cham. pp. 40–64. doi:10.1007/978-3-032-25032-2_3.
Quesnel, F., Wu, A., Desaulniers, G., Soumis, F., 2022. Deep-learning-based partial pricing in a branch-and-price algorithm for personalized crew rostering. Computers & Operations Research 138, 105554. URL: https://doi.org/10.1016/j.cor.2021.105554, doi:10.1016/j.cor.2021.105554.
Roughgarden, T., Tardos, É., 2002. How bad is selfish routing? Journal of the ACM 49, 236–259. URL: http://dx.doi.org/10.1145/506147.506153, doi:10.1145/506147.506153.
Serok, N., Havlin, S., Blumenfeld Lieberthal, E., 2022. Identification, cost evaluation, and prioritization of urban traffic congestions and their origin. Scientific Reports 12, 13026. URL: http://dx.doi.org/10.1038/s41598-022-17404-8, doi:10.1038/s41598-022-17404-8.
Švadlenka, M., Chrpa, L., 2023. Towards a framework for intelligent urban traffic routing. The International FLAIRS Conference Proceedings 36. URL:
http://dx.doi.org/10.32473/flairs.36.133321, doi:10.32473/flairs.36.133321.
Švadlenka, M., Chrpa, L., Vallati, M., 2023. Improving the scalability of automated planning-based vehicle routing via smart routes identification, in: 2023 8th International Conference on Models and Technologies for Intelligent Transportation Systems (MT-ITS), IEEE. pp. 1–6. URL: http://dx.doi.org/10.1109/MT-ITS56129.2023.10241639, doi:10.1109/mt-its56129.2023.10241639.
Vallati, M., Chrpa, L., 2020. Reducing traffic congestion in urban areas via real-time re-routing: A simulation study, in: AI 2020: Advances in Artificial Intelligence. Springer International Publishing, pp. 69–81. URL: http://dx.doi.org/10.1007/978-3-030-64984-5_6, doi:10.1007/978-3-030-64984-5_6.
Vallati, M., Scala, E., Chrpa, L., 2021. A hybrid automated planning approach for urban real-time routing of connected vehicles, in: 2021 IEEE International Intelligent Transportation Systems Conference (ITSC), IEEE. pp. 3821–3826. URL: http://dx.doi.org/10.1109/ITSC48978.2021.9564838, doi:10.1109/itsc48978.2021.9564838.
Wang, J., Mao, Y., Li, J., Xiong, Z., Wang, W.X., 2015. Predictability of road traffic and congestion in urban areas. PLOS ONE 10, e0121825. URL: http://dx.doi.org/10.1371/journal.pone.0121825, doi:10.1371/journal.pone.0121825.
Wang, L., Duan, P., Lyu, C., Ma, Z., 2025. Reinforcement learning-based sequential route recommendation for system-optimal traffic assignment. URL: https://arxiv.org/abs/2505.20889, doi:10.48550/ARXIV.2505.20889.
Youn, H., Gastner, M.T., Jeong, H., 2008. Price of anarchy in transportation networks: Efficiency and optimality control. Physical Review Letters 101, 128701. URL: http://dx.doi.org/10.1103/PhysRevLett.101.128701, doi:10.1103/physrevlett.101.128701.
Yun, H., Kim, E.j., Ham, S.W., Kim, D.K., 2024. Navigating the non-compliance effects on system optimal route guidance using reinforcement learning. Transportation Research Part C: Emerging Technologies 165,
- URL: http://dx.doi.org/10.1016/j.trc.2024.104721, doi:10.1016/j.trc.2024.104721.
Zhang, J., Pourazarm, S., Cassandras, C.G., Paschalidis, I.C., 2018. The price of anarchy in transportation networks: Data-driven evaluation and reduction strategies. Proceedings of the IEEE 106, 538–553. URL: http://dx.doi.org/10.1109/JPROC.2018.2790405, doi:10.1109/jproc.2018.2790405.
Zhang, K., Zhang, H., Cheng, Q., Chen, X., Wang, Z., Liu, Z., 2023. A customized two-stage parallel computing algorithm for solving the combined modal split and traffic assignment problem. Computers & Operations Research 154, 106193. URL: http://dx.doi.org/10.1016/j.cor.2023.106193, doi:10.1016/j.cor.2023.106193.
Zhang, P., Qian, S., 2020. Path-based system optimal dynamic traffic assignment: A subgradient approach. Transportation Research Part B: Methodological 134, 41–63. URL: http://dx.doi.org/10.1016/j.trb.2020.02.004, doi:10.1016/j.trb.2020.02.004.