Abstract
Vehicle repositioning is essential for improving efficiency and service quality in ride-sharing platforms, yet existing approaches typically optimize proxy rewards that fail to reflect human-centered preferences such as wait time, service coverage, and unnecessary empty travel. We propose the first two-stage Bilevel Reinforcement Learning (RL) from Human Feedback (RLHF) framework for preference-aligned vehicle repositioning. In Stage 1, a value-based Deep Q-Network (DQN)-RLHF warm start learns an initial preference-aligned reward model and stable reference policy, mitigating the reward-model drift and cold-start instability that arise when applying on-policy RLHF directly. In Stage 2, a Kullback–Leibler (KL)-regularized Proximal Policy Optimization (PPO)-RLHF algorithm, equipped with action masking, behavioral-cloning anchoring, and alternating forward–reverse KL, fine-tunes the repositioning policy using either Large Language Model (LLM)-generated or rubric-based preference labels. We develop and compare two coordination schemes, pure alternating (PPO-Alternating) and k-step alternating (PPO-k-step), demonstrating that both yield consistent improvements across all tested arrival scales. Empirically, our framework reduces wait time and empty-mile ratio while improving served rate, without inducing trade-offs or reducing platform profit. These results show that human preference alignment can be stably and effectively incorporated into large-scale ride-sharing repositioning.
1. Introduction
1.1. Motivation
Vehicle repositioning is essential for improving reliability and efficiency in Mobility-on-Demand (MoD) systems, as it enables platforms to reduce wait times, increase service availability, and respond to spatial demand variations [1,2]. In ride-sharing settings, effective repositioning must balance several human-centric performance metrics, such as wait time, served rate, and empty-mile ratio (abbreviated as ‘empty ratio’ or ‘empty’ in some figures or tables), which naturally interact and often conflict.
Prior research has explored algorithms for improving matching efficiency or dispatching decisions [3,4], and Reinforcement Learning (RL)-based repositioning methods have shown promise [5,6,7]. However, these approaches rely on manually designed proxy rewards that do not explicitly reflect human-preferred trade-offs. As a result, policies may optimize operational metrics while neglecting factors that matter to riders or operators. Previous work such as [8] has also applied RL to urban transportation systems to reduce congestion and travel time. They develop multi-agent Deep Reinforcement Learning controllers for urban traffic lights that coordinate signal phases across multiple intersections. Their Proximal Policy Optimization and Deep Q-Network-based models significantly reduce travel time and traffic congestion compared to traditional methods, which indicates that RL can directly optimize congestion in urban mobility systems. In this work, we focus instead on ride-sharing repositioning, where the platform must jointly balance waiting time, served rate, and empty miles under stochastic demand.
Meanwhile, Reinforcement Learning from Human Feedback (RLHF) has emerged as a powerful framework for aligning policies with preference data, but it has seen limited application in transportation domains. Integrating preference learning into repositioning requires both (i) learning a reward model that captures human-valued outcomes, and (ii) optimizing a repositioning policy using that learned reward while ensuring stable behavior in a many-to-many movement environment.
Motivated by these needs, we develop a two-stage bilevel RLHF framework for preference-aligned ride-sharing repositioning. A value-based Deep Q-Network (DQN)-RLHF warm start produces initial preference-aligned reward weights and a reasonable starting policy, and a Kullback–Leibler (KL)-regularized Proximal Policy Optimization (PPO)-RLHF stage refines the policy using either Large Language Model (LLM)-assisted or rubric-based preference labels. With action masking and First-In-First-Out (FIFO)-based matching incorporated into training, the proposed approach enables repositioning decisions that jointly improve wait time, served rate, and empty-mile ratio across a range of arrival scales. Beyond these general sectors, our proposed method is motivated to address the under-emphasis on human-centered experiences in prior repositioning research. Additionally, the proposed method applies an on-policy RLHF framework in a many-to-many movement environment while avoiding high variance and unstable training via a two-stage design under KL-regularized PPO with action masking.
1.2. Related Work
1.2.1. Reinforcement Learning and Optimization for Ride-Sharing Repositioning
Vehicle repositioning is central to improving the performance of Mobility-on-Demand (MoD) systems, enabling platforms to reduce wait times, increase service coverage, and better utilize limited fleets. Classical studies demonstrate the value of optimized vehicle movement and demand-aware routing [1,2].
Matching-based dispatch algorithms such as the Hungarian assignment [3] and online bipartite matching [4] efficiently pair vehicles and passengers, but they operate in a one-to-one setting and do not directly address the many-to-many movement decisions required for repositioning. Rebalancing strategies using zone-based heuristics or predictive control further improve availability [9,10], and large-scale industrial systems often rely on combinatorial dispatching [11].
Reinforcement Learning (RL) methods have been increasingly applied to repositioning [5,6,7,12], typically optimizing handcrafted proxy rewards designed to approximate service quality or operational efficiency. However, these proxy rewards often fail to represent nuanced human-centric trade-offs, such as balancing wait time against empty miles or preserving fairness across regions. To our knowledge, no prior work has incorporated explicit human preference alignment into the repositioning objective.
1.2.2. Reinforcement Learning from Human Feedback (RLHF)
RLHF has emerged as a powerful framework for aligning decision-making policies with human judgments. Standard RLHF pipelines learn a reward model from pairwise preference data, often using Bradley–Terry formulations [13], and then optimize a policy using RL methods such as PPO [14]. More recently, bi-level RLHF frameworks such as [15,16,17] explicitly alternate between reward-model updates and policy optimization, supporting both round-based and k-step update schedules. While these methods establish general-purpose RLHF templates, prior work has not explored their application to ride-sharing or vehicle repositioning, where decisions must be made on spatial networks, under many-to-many movement constraints, and with operational baselines such as FIFO.
1.2.3. Stabilization Techniques for Policy Optimization
Stable RL optimization is essential in structured decision-making problems. Action masking has been shown to improve feasibility and reduce undesirable behavior by restricting actions to contextually valid subsets [18]. Behavioral cloning (BC) and imitation-based regularization [19,20] provide additional stability by anchoring learning toward a reference behavior, particularly valuable during early training.
Proximal Policy Optimization (PPO) [14] has become the standard RL algorithm within RLHF due to its clipped objective and KL-based trust region control. KL regularization helps keep the updated policy close to a reference [21], and alternating between reverse and forward KL can further stabilize training [22,23]. Adaptive KL coefficients and temperature scaling [24] adjust regularization strength dynamically, mitigating instability in optimization.
Value-based warm starts, such as those provided by Double DQN [25], are known to reduce overestimation and improve sample efficiency. However, their role as initialization mechanisms in RLHF pipelines, particularly for repositioning, has received limited attention. Our work introduces a two-stage RLHF formulation where a DQN-RLHF warm start produces preference-aligned reward estimates and a stable reference policy, which are then refined by PPO-RLHF under masking and imitation-based stabilizers.
1.3. Contributions
This paper introduces the first preference-aligned vehicle repositioning framework based on a two-stage bilevel RLHF design. Our contributions are summarized as follows:
- Two-stage RLHF framework for ride-sharing repositioning. We propose a value-based DQN-RLHF warm start followed by an on-policy PPO-RLHF refinement stage integrating action masking and imitation anchoring to coordinate multiple vehicles, prevent over-clustering and ensure operationally feasible repositioning in a many-to-many ride-sharing environment. This design stabilizes preference learning and provides a reliable reference policy for subsequent optimization.
- Preference-aligned reward learning for repositioning. Human preferences, obtained via LLM-assisted or rubric-based labeling, are incorporated through a Bradley–Terry model, enabling repositioning decisions that reflect wait time, served rate, and empty-mile trade-offs rather than handcrafted proxy rewards.
- Consistent empirical gains across demand regimes. Across multiple arrival scales, our two PPO-RLHF policies (PPO-Alternating and PPO-k-step) yield consistent improvements in wait time, served rate, and empty-mile ratio without sacrificing platform performance when comparing to no-reposition and classical baseline (heuristic).
1.4. Organization
The remainder of this paper is organized as follows: Section 2 presents the problem formulation, including the environment setup, the FleetEnvironment, and the optimization objective. Section 3 describes the proposed two-stage bilevel RLHF framework, detailing the action masking strategy, preference fitting, regularization components, and the two coordination schemes. Section 4 outlines the simulation setup and reports the evaluation results, including ablation studies demonstrating the effectiveness of the proposed method. Section 5 concludes the paper and discusses potential directions for future research. Additional notation and supplementary figures are provided in the Appendix A, Appendix B, Appendix C, Appendix D and Appendix E.
2. Problem Formulation
We consider a ride-sharing system consisting of an order matcher that assigns passenger requests to vehicles and a repositioning policy that moves idle vehicles across a spatial grid. The interaction between these components determines service quality, vehicle efficiency, and overall system performance. Figure 1 illustrates the grid environment and an example trajectory that includes repositioning, pickup, and drop-off movement. Shaded blocks represent demand zones 1–3. Zones 1–3 are three example zones in order to illustrate repositioning and pickup/dropoff trips. Zone 1 is a 4 × 4 central block in the middle of the grid. Zones 2 and 3 are two smaller 2 × 2 regions located near opposite corners of the grid. The simulator itself generates requests on the full grid according to the Poisson–diurnal model without any special zone-specific differences. The dashed blue line indicates a repositioning move, and the red arrows show one served request (pickup and drop-off).
Figure 1.
Illustration of the grid-based ride-sharing environment. Shaded cells denote demand zones for illustrating the repositioning example. The dashed blue path represents an idle vehicle repositioning move, while red arrows indicate a served request consisting of pickup and drop-off travel.
The simulation takes place on a grid G with time step s, cell size km, and horizon steps (10 h). A fleet of single-capacity vehicles operates on this grid. Passenger requests arrive according to a Poisson process whose rate is modulated by a diurnal function, creating realistic temporal demand variation. To simulate different request levels, we use a diurnal function with two peaks around the morning and evening periods and relatively lower intensity in the middle of the day. Internally, the simulator scales the Poisson arrival rate up during the peaks and down during off-peak times, so that the instantaneous request intensity varies between roughly 0.6 and 2.2 on a normalized scale, with the busiest times being a bit more than twice as busy as the quietest period. The spatial distribution of demand is homogeneous across the grid. At each step t, the total number of new requests is drawn from the time-varying Poisson process, and each request independently samples an origin and a destination uniformly over the 10 × 10 grid. Arrival-scale parameters represent different load regimes and are used throughout the evaluation.
With cells, the vehicle density is
representing a medium-load operating environment. When scaling the grid size (e.g., ), the fleet size is increased proportionally (e.g., ) in order to maintain the same density. Conversely, varying the density at a fixed grid size (e.g., on ) enables controlled experiments on operational capacity. The 0.5 km cell resolution and area approximate a small urban district. These default settings provide a reproducible medium-scale environment; scalability experiments vary the grid size and fleet density accordingly.
Each request is defined by its origin, destination, and arrival time. Newly generated requests enter a queue, and a FIFO–nearest matching rule assigns requests to feasible idle vehicles subject to both a maximum-wait threshold and a radius bound . This rule reflects operational practice and avoids over-concentration of vehicles. Ablation experiments additionally evaluate alternative matching rules, including greedy insertion and random assignment.
Vehicles move on the grid using Manhattan distance [26]. Idle vehicles follow repositioning decisions from a learned policy, while vehicles with assigned passengers follow precomputed shortest paths for pickup and drop-off. At each step, the environment updates vehicle states, request queues, travel statistics, and performance metrics such as served rate, wait time, cruising time, and empty miles.
The system is modeled as a discounted episodic Markov Decision Process (MDP)
In the ride-sharing repositioning problem, relocation decisions have long-term effects on vehicle availability and request coverage over time steps. A high discount factor makes the agent care about rewards many steps in the future, so it values the long-term effects of repositioning vehicles toward demand instead of only improving the immediate match. A state encodes (i) the spatial distribution and occupancy of vehicles, (ii) request queues across grid cells, (iii) time-of-day indicators, and (iv) a short-term pickup heatmap summarizing recent demand patterns. Each idle vehicle selects an action
corresponding to dwelling or moving one cell north, south, west, or east. State transitions result from the combined effects of vehicle motion, order assignment, and service completion.
The goal is to learn a repositioning policy that reflects human preferences over key service metrics rather than relying on handcrafted proxy rewards. Each trajectory is summarized by a feature vector
The served rate is defined as the fraction of requests that are successfully served, the empty-mile ratio is the fraction of vehicle-miles traveled without passengers over the total vehicle-miles, the cruising hours measure the total time that vehicles spend idling while waiting for requests, and the movement cost aggregates the distance traveled by repositioning moves. Together, these four features summarize each trajectory in terms of service quality (served rate), passenger experience (cruising hours), and operational efficiency (empty-mile ratio and movement cost).
Pairwise preference comparisons over trajectories are fitted using a Bradley–Terry model, producing preference weights w that define a shaped per-step reward,
The scalars , , , and are the preference weights learned by the Bradley–Terry model. Intuitively, a larger increases the value of trajectories that serve more requests, whereas larger and penalize unnecessary empty travel and long cruising time. The reward term plays the role of an operational regularizer on repositioning distance. At each upper-level update, the preference model produces an updated per-step reward . This provides a connection between human preferences at the trajectory level and the per-step reward used by the lower-level RL algorithms.
The resulting trajectory-level reward is
The preference-aligned policy optimization problem is
where the expectation is taken over trajectories generated by policy under the environment dynamics. To promote stable learning, particularly during early training when the reward model is still being refined, we incorporate an imitation regularizer that encourages to remain close to a reference policy obtained from the Stage-1 warm start.
During the PPO-RLHF stage, policy optimization proceeds through a KL-regularized objective of the form
where is an adaptive coefficient automatically tuned to maintain a target KL divergence between the current policy and the reference policy, following standard practice in RLHF [14,21]. This KL term prevents rapid policy drift, stabilizes optimization, and ensures that preference-updated rewards do not induce abrupt, undesirable behavior.
Our simulation relies on the following modeling assumptions:
- 1.
- Customer requests follow a Poisson process with a fixed diurnal function on a 10 × 10 grid.
- 2.
- Travel time between two cells is proportional to the Manhattan distance [26] with a constant speed (no congestion model).
- 3.
- All vehicles are homogeneous and centrally controlled. Drivers always follow the repositioning decisions.
- 4.
- The preference model evaluates policies only through three metrics: wait time, served rate, and empty-mile ratio.
Let be the total number of generated requests in a period and be the number of requests that are successfully served. Served rate (dimensionless) is defined as
Wait time (minutes) is defined as
where we record the number of simulation steps between request creation and pickup for each served request with a step length of s.
Empty-mile ratio (dimensionless) is defined as
In Equation (11), VMT = , where and denote the total empty and loaded distances traveled by all vehicles in an episode.
3. Two-Stage Bilevel RLHF Framework
This section presents the proposed two-stage bilevel RLHF framework for preference-aligned vehicle repositioning. The framework consists of a value-based warm start stage based on Double DQN and a policy-gradient stage based on PPO with KL regularization. Both stages interact with a learned preference-based reward model, which is updated from pairwise trajectory comparisons.
The two stages are tightly coupled rather than independent. Stage 1 learns an initial preference-aligned reward model and a stable reference policy using a Double DQN RLHF procedure with FIFO-nearest matching. Stage 2 starts from and the learned reward model from Stage 1 in the initial round. Later on, it uses the reward model from the previous round and fine-tunes a stochastic policy via PPO-RLHF with action masking and KL regularization. Overall, Stage 1 shapes the reward model and provides a safe starting point, while Stage 2 performs policy improvement under KL regularization starting from the initial model learned by Stage 1. Two coordination schemes are considered: a purely alternating outer loop and a k-step style alternating loop.
Figure 2 summarizes the two-stage bilevel RLHF framework. Requests generated by FleetEnv (Matcher + reposition) are used to train a Behavioral Cloning policy at first and then the guidance method (DQN-RLHF). After obtaining the initial weight and reward function, the main method (PPO-RLHF) produces on-policy trajectories. These trajectory preferences are labeled through a combination of an offline rubric and LLM assistance. Then, they will enter the lower-level loop to complete reward model training and optimization. The main method follows either a purely alternating scheme (rollout → labeling → training/optimization) or a k-step alternating scheme (training/optimization → rollout → labeling).
Figure 2.
Overview of the proposed two-stage bilevel RLHF framework. Stage 1 uses DQN-RLHF to learn a preference-aligned reward model and a stable reference policy. Stage 2 fine-tunes the repositioning policy via PPO-RLHF with action masking and KL regularization, using either purely alternating or k-step coordination between reward-model updates and policy optimization.
3.1. Action Masking
At each decision step, an idle vehicle at grid location may move toward a target location or remain in place. The Manhattan distance between these locations is
Two distance thresholds are used to restrict the available actions: and . For a state s and corresponding distance to the nearest relevant target (for example, a demand hotspot or previously chosen goal), the feasible action set is defined as
where st = stay, 1-step = move one step toward target, and = moves that decrease distance.
For each state–action pair we define a mask
which is added to the action logits before the softmax. The resulting masked policy is
Action masking ensures that invalid or operationally undesirable movements have zero probability, reduces oscillatory behavior, and suppresses unnecessary empty travel. To maintain exploration within the feasible set, we define a masked entropy term
which is added to the PPO objective with an entropy coefficient in Stage 2.
3.2. Preference-Based Reward Learning
The preference model operates at the upper level of the bilevel RLHF framework. At each round K, the current policy is used to generate pairs of trajectories . Each trajectory is summarized by a feature vector capturing key service metrics, such as wait time, served rate, and empty-mile ratio. For a trajectory pair, the feature difference is
Here, denote the differences in average wait time, served rate, and empty-mile ratio between trajectories A preference label is assigned to each pair using either rubric-based rules or LLM-assisted comparisons, where indicates that is preferred to . The preference probability is modeled by a Bradley–Terry formulation [13],
where is the logistic function and is the trajectory-level score produced by a reward network with parameters .
Given a batch of N labeled pairs, the Bradley–Terry loss [13] is
where are optional importance weights. Minimizing yields an updated parameter vector , which is mapped to a normalized weight vector and induces a shaped per-step reward
The corresponding trajectory-level reward is which is then used by the lower-level RL algorithm in both stages, determining whether the algorithm prioritizes serving more requests while reducing waiting time and empty travel at each step through the shaped reward .
3.3. Stage 1: DQN-RLHF Warm Start
The first stage uses a Double DQN agent trained with the preference-aligned shaped reward and action masking. This stage serves two purposes. First, it learns a stable value-based repositioning policy in the many-to-many environment. Second, it produces a preference-aligned reward model that can be used to warm-start the PPO stage. Algorithm 1 summarizes the Stage-1 DQN-RLHF warm start procedure, including trajectory pairs generation, preference fitting, reward model, reference policy, weight updates, and Q-networks.
Let denote the online Q network and the target network. At state , the agent selects an action using an -greedy policy over , and observes reward and next state . The target action is
The one-step target is
where is the episode termination indicator. The temporal-difference error is . A Huber loss [27] is used to stabilize training, and the DQN objective is
An additional imitation term can be included to nudge the DQN policy toward a simple baseline policy (for example, a rule that moves vehicles toward high-demand regions), with loss . The total loss is
and the target parameters are updated via
After several rounds of alternation between preference fitting and DQN updates, Stage 1 outputs a reference policy derived from and a reward model with parameters (or equivalently ), which are used to initialize Stage 2.
| Algorithm 1 Stage 1: DQN-RLHF Warm Start |
|
3.4. Stage 2: PPO-RLHF with KL Regularization
Stage 2 starts from the reference policy and the initial reward model learned in Stage 1. The goal is to refine a stochastic policy under the preference-aligned reward while maintaining stability via KL regularization and action masking.
3.4.1. PPO Objective
Let denote the value function. For each transition, the advantage estimate is
which is standardized to to reduce variance. The PPO importance ratio is defined using the masked policy,
The clipped PPO loss is
The value-function loss is
where is the return computed from the shaped rewards, and the entropy regularization term using masked entropy is
The combined PPO loss is
3.4.2. KL Regularization
To prevent large deviations from the reference policy, we add a KL regularizer between the current policy and a fixed reference policy . The KL divergence is computed using unmasked action distributions obtained via temperature-scaled softmax,
for mini-batch observations , where controls the sharpness of the distributions.
The forward and reverse KL divergences are
An alternating schedule switches between forward and reverse KL every fixed number of steps. Early in training, reverse KL promotes exploration, while forward KL later in training encourages convergence toward the reference policy.
The KL regularization loss is
where is adapted to maintain a target KL level by increasing when the observed KL exceeds and decreasing when it falls significantly below this threshold. The total Stage 2 loss is
3.4.3. Alternating Coordination Schemes
The bilevel nature of PPO-RLHF allows different coordination schemes between the upper-level reward updates and the lower-level policy updates. We consider two schemes.
PPO-Alternating
In the purely alternating scheme, training proceeds in outer rounds indexed by K. At round K, the algorithm achieves the following:
- 1.
- Fixes the current policy and generates trajectory pairs using action masking.
- 2.
- Updates the reward model to obtain weights and shaped rewards by minimizing .
- 3.
- Fixes and optimizes the policy using PPO with KL regularization and action masking, yielding an updated policy .
The reference policy used in KL regularization is updated once per round, typically by setting . In practice, a small number of outer rounds (for example, two) suffices. The overall training loop is summarized in Algorithm 2.
| Algorithm 2 PPO-Alternating Bilevel RLHF |
|
PPO-k-Step
Algorithm 3 indicates the PPO-k-step procedures. In the k-step alternating scheme, preference learning and policy optimization are interleaved more frequently. Each training round is partitioned into chunks indexed by . Within chunk c, the algorithm achieves the following:
- 1.
- Fixes the reward model from the previous update and reference policy .
- 2.
- Performs several PPO update steps using this fixed reward model and KL regularization, yielding an updated policy .
- 3.
- Uses to generate new trajectory pairs and updates the reward model to obtain .
Compared with PPO-Alternating, PPO-k-step refreshes both the reward model and the reference policy more frequently, which can reduce lag between preference learning and policy behavior, at the cost of increased sensitivity to short-term fluctuations.
| Algorithm 3 k-step Bilevel PPO-RLHF |
|
Both coordination schemes share the same building blocks: preference fitting at the upper level, PPO-RLHF with action masking and KL regularization at the lower level, and an adaptive KL coefficient that keeps the policy close to a reference behavior while still allowing exploration.
4. Simulation and Evaluation
This section evaluates the proposed two-stage bilevel RLHF framework across a variety of demand conditions, labeling modes, and fleet configurations. Our experiments are designed to answer five questions: (i) how the two PPO-RLHF methods perform across arrival scales relative to no-repositioning and the classical baseline (heuristic), (ii) whether LLM-assisted and offline rubric-based labeling yield consistent improvements, (iii) how performance changes with increased fleet density, (iv) whether the two PPO variants differ meaningfully in practice, and (v) whether the DQN-RLHF warm start is necessary.
4.1. Experimental Setup
All experiments take place in a grid with cell size, a fleet of single-capacity vehicles (unless otherwise stated), and episode length at s. Vehicles execute actions in under action masking. Order arrivals follow a Poisson process whose rate is scaled by a diurnal multiplier to simulate morning and evening peaks.
To explore different demand regimes, we vary the arrival scale , . The request rejection radius is set to 6 km for lower scales (0.60, 0.75) and increased to km for to accommodate higher demand. To avoid over-concentration during repositioning, only a fraction of vehicles are allowed to move; this fraction increases gradually from at low scales to at scale .
Preference models use both offline rubric-based labeling and LLM-assisted labeling. In all runs we use 256 trajectory pairs per upper-level update and six rollouts per training epoch. KL regularization begins at with a target value of . Reported confidence intervals correspond to CIs,
In addition to 95% CIs, we also conduct Wilcoxon signed-rank tests. Both PPO-based policies are trained to improve over the no-repositioning baseline, so we test a directional hypothesis that they do not perform worse than no rep. Table 1 shows that their average performance is slightly better than no rep, which is consistent with this hypothesis. We therefore report one-sided Wilcoxon signed-rank tests (and also provide the corresponding two-sided p-values for completeness). Detailed discussion is in Appendix E Table A4.
Table 1.
Performance comparison across arrival scales under LLM-assisted preference labeling. Reported metrics include average wait time, empty-mile ratio, and served rate. Values are shown with 95% confidence intervals.
We compare four methods: no-reposition (baseline), heuristic (classical baseline), PPO-Alternating, and PPO-k-step.
4.2. Results Across Arrival Scales
We first examine how policy performance varies with demand level under LLM-assisted labeling on a fleet of 90 vehicles. Lower arrival scales correspond to lighter workloads, where vehicles are more likely to be located near pickup points. As a result, wait time and empty-mile ratio are naturally lower, and the served rate is close to one. As demand increases, vehicles must travel farther to reach requests, which increases wait and empty-mile ratios and lowers the served rate. At the highest scale (), the system becomes nearly saturated, and both PPO methods reduce repositioning frequency to maintain feasibility, which incidentally lowers the empty-mile ratio.
Table 1 and Figure 3, Figure 4 and Figure 5 show that both PPO methods offer small but consistent improvements over no-reposition in all three metrics across all arrival scales. Confidence intervals for PPO-Alternating and PPO-k-step are tighter than those for the baseline, indicating more stable behavior under preference-aligned training. Importantly, improvements do not come at the expense of trade-offs among the three sectors; both PPO methods jointly reduce wait and empty-mile ratio while maintaining or slightly improving served rate.
Figure 3.
Average passenger wait time across arrival scales under LLM-assisted preference labeling.
Figure 4.
Served rate across arrival scales under LLM-assisted preference labeling.
Figure 5.
Empty-mile ratio across arrival scales under LLM-assisted preference labeling.
Besides the no-reposition baseline, we also compare it with the classical baseline heuristic. We implement a hand-crafted repositioning policy that greedily chases recent demand. At each decision step, the policy collects the most frequent K = 3 recent pickup cells from the simulator log and treats them as temporary demand hotspots. It then selects idle vehicles that are closest to these hotspots and moves roughly 30 % of them one grid step toward the corresponding target cell if their Manhattan distance is larger than two, with all other vehicles remaining idle. The results are reported in Table 1. Across all arrival scales except , the heuristic achieves the lowest average wait time and the highest served rate but results in a higher empty-mile ratio than no rep, which indicates the heuristic baseline is making trade-offs among the three sectors. In contrast, both PPO-Alternating and PPO-k-Step keep wait time and served rate very close to the heuristic while maintaining some empty-mile ratio improvements against the no-reposition baseline, which demonstrates that the PPO-RLHF policies avoid trade-offs and provide a more balanced solution across wait time, empty-mile ratio, and served rate.
Figure A7 and Figure A8 analyze the spatial behavior of the learned policies under arrival scale . Even though passenger requests are generated with a spatially homogeneous distribution over the 10 × 10 grid, the PPO-RLHF policies learn to avoid over-concentration. The heat maps show a higher occupancy near the middle of the service area and gradually lower density towards the corners, reflecting how the policies coordinate vehicles under the action constraints to balance coverage and travel distance.
4.3. Effect of Labeling Mode
We next compare LLM-assisted labeling against offline rubric-based labeling for all three policies. Both modes outperform no-reposition across arrival scales and metrics, confirming the robustness of the preference-fitting procedure. Figure 6 shows the wait time comparison: after aligning scales by horizontal normalization, both labeling modes exhibit nearly identical trends with small absolute differences. Similar consistency holds for served rate and empty ratio, demonstrating that the choice of labeling mode does not qualitatively affect conclusions.
Figure 6.
Comparison of PPO-k-step performance under LLM-assisted and offline rubric-based preference labeling.
4.4. Increased Fleet Density
To assess robustness to larger fleets, we increase vehicle count from 90 to 110 and run five seeds under moderate (0.85) and high (1.0) demand. Increasing fleet density reduces wait time and increases served rate, as more vehicles remain idle and can be dispatched quickly. At moderate demand, the empty-mile ratio decreases as more vehicles dwell waiting for requests. At high demand, however, additional vehicles create more opportunities for repositioning and slightly increase the empty ratio.
Table A2 and Figure 7 show that both PPO policies continue to outperform no-reposition at with LLM-assisted labeling. The magnitude of improvement is similar to the setting, indicating scalability of the RLHF methods.
Figure 7.
Policy performance under two fleet sizes with LLM-assisted preference labeling.
4.5. Comparing PPO-Alternating and PPO-k-Step
Across all experiments, PPO-Alternating and PPO-k-step produce remarkably similar performance. For wait time under LLM labeling, the paired difference
oscillates around zero, and their confidence intervals almost perfectly overlap. Under offline labeling, PPO-Alternating achieves slightly lower wait times and empty-mile ratios, though the differences remain small. Served-rate differences are negligible across all settings.
Figure 8, Figure 9 and Figure 10 confirm that both algorithms track nearly identical Pareto-efficient performance curves across demand levels. In summary, the two variants behave comparably in practice, with PPO-Alternating exhibiting marginal advantages under offline labeling.
Figure 8.
Comparison of average passenger wait time for PPO-k-step and PPO-Alternating across arrival scales under LLM-assisted preference labeling.
Figure 9.
Comparison of empty-mile ratio for PPO-k-step and PPO-Alternating across arrival scales under LLM-assisted preference labeling.
Figure 10.
Comparison of served rate across arrival scales for PPO-k-step and PPO-Alternating under LLM-assisted preference labeling.
4.6. Ablation: Removing the Warm Start
We evaluate both PPO variants without the DQN-RLHF warm start at using ten seeds. Although both achieve comparable served rates to no-reposition, they exhibit higher wait times and empty-mile ratios: their wait time increases (1.864–1.869 vs. 1.859) and empty-mile ratios rise (0.25383–0.25386 vs. 0.2528) (Table A3). The results highlight the coupling between the two stages: without the Stage 1 warm start, the Stage 2 PPO-RLHF optimization no longer benefits from a well-aligned reference policy and reward. This supports the hypothesis that the warm start reduces noise in the preference-fitting stage and provides a better initialization for PPO-RLHF, stabilizing learning and reducing variance.
4.7. Training Dynamics
Figure 11 illustrates the evolution of KL divergence and the adaptive regularization coefficient for PPO-k-step over six epochs. The KL divergence decreases steadily from to in epoch 1 and remains within throughout training, while saturates at its cap when tighter regularization is required. This behavior shows that adaptive KL regularization effectively controls policy drift under frequent reward-model updates, ensuring stable bilevel optimization.
Figure 11.
KL divergence and adaptive regularization coefficient during PPO-k-step training (6 epochs).
Figure 12 shows analogous stabilization behavior for the PPO-Alternating scheme. In round 1, KL decreases steadily from to under strong regularization. Round 2 begins with a small KL increase following the reward-model update, after which KL decays smoothly to . Together, Figure 11 and Figure 12 demonstrate that both coordination schemes maintain controlled policy updates despite differing reward–policy synchronization schedules.
Figure 12.
KL divergence between the current and reference policies and the adaptive regularization coefficient during PPO-Alternating training (2 rounds, 8 epochs each).
For DQN-RLHF, Figure 13 reports the reward-model training loss, which decreases from to over four epochs with only a minor rebound at epoch 5. This indicates stable convergence of the preference model and supports the role of the warm start in producing smooth, informative rewards for subsequent PPO-RLHF training.
Figure 13.
Training loss of the preference-based reward model during the DQN-RLHF warm start stage.
Additionally, we record the wall-clock training time of each method to quantify computational cost. On a single CPU-only machine (24 GB RAM), the DQN-RLHF requires 0.28 h, while our two PPO-RLHF policies are more expensive: PPO-Alternating requires 1.95 h and PPO-k-step requires 2.32 h under LLM-assisted labeling for one full run.
4.8. Economic Considerations
We evaluate the economic implications of the proposed policies. Under offline labeling, both PPO methods yield higher profits than the no-reposition baseline (Figure 14). Under LLM-assisted labeling, PPO policies outperform no-reposition at moderate and high arrival scales, but not at the lightest scales ( and ), where the economic signal is weak due to the abundance of idle vehicles (Figure 15). Overall, RLHF-based repositioning offers both service quality and economic benefits under realistic load conditions.
Figure 14.
Platform profit across arrival scales under offline rubric-based preference labeling for all policies.
Figure 15.
Platform profit across arrival scales under LLM-assisted preference labeling for all policies.
4.9. Limitations
Our simulation abstracts away several real-world factors such as traffic congestion, speed limits, driver cancellations, pricing dynamics, and weather. The reward model uses a linear Bradley–Terry structure that may not capture nonlinear regional or temporal effects. We apply a single weight vector across the entire episode, ignoring spatial and temporal heterogeneity. Preference noise remains a concern due to the limited number of labeled pairs. Additionally, our experiment lacks comparisons against strong state-of-the-art RL-based algorithms. Since the experiment is mainly a simulation environment, it may face challenges when converting to real-world scenarios. Finally, the alternating KL schedule may introduce sensitivity to hyperparameters.
4.10. Discussion and Summary
Despite these simplifications stated in the previous subsection, the empirical results provide the following practical takeaways:
- (i)
- Role of the warm start: The DQN-RLHF warm start is beneficial under medium and high arrival scales, where it stabilizes the reference policy and reduces variance via providing a starting reward model, as confirmed by the ablation in Section 4.6.
- (ii)
- Alternating vs. k-step: In our experiment, the two PPO-RLHF variants have similar performance and deliver almost identical Pareto fronts. Both PPO-RLHF versions show a small gain over the no-reposition baseline.
- (iii)
- Labeling modes and cost: Both LLM-assisted and offline rubric labeling achieve similar results in wait time, served rate and empty-mile ratio, but the offline rubric does not generate API cost at the expense of reduced flexibility.
5. Conclusions and Future Work
We proposed a two-stage bilevel RLHF framework for preference-aligned ride-sharing repositioning. Stage 1 (DQN-RLHF) provides a warm start policy and a stabilized reward model, while Stage 2 (PPO-RLHF) fine-tunes the policy using action masking and alternating KL regularization under both purely alternating and k-step schemes. Across all arrival scales, both PPO variants deliver consistent improvements in wait time, served rate, and empty-mile ratio compared with no repositioning, under both LLM-assisted and offline labeling. These gains persist under increased fleet density, and economic evaluations show no trade-off between aligning with preferences and maintaining profit. The results demonstrate that bilevel RLHF offers a stable and effective approach for incorporating human preferences into large-scale fleet control.
Extending the experiments toward large-scale, real-world repositioning settings is an important future work. This requires modeling additional operational factors such as traffic congestion, speed limits, driver cancellations, and weather. Another important direction is to incorporate full implementations of state-of-the-art (SOTA) RL-based repositioning algorithms into our simulator in order to provide more comprehensive comparisons against our proposed baselines.
Author Contributions
Conceptualization, R.L. and V.A.; methodology, R.L. and V.A.; software, R.L.; formal analysis, R.L.; investigation, R.L.; writing—original draft preparation, R.L.; writing—review and editing, V.A.; supervision, V.A. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
Data sharing is not applicable.
Conflicts of Interest
The authors declare no conflicts of interest.
Appendix A. Notation Chart
Table A1.
Notation.
Appendix B. Further Evaluation Results: Offline Preference Labeling Results
Figure A1, Figure A2 and Figure A3 report policy performance across arrival scales under offline rubric-based preference labeling. Consistent with the main-text results under LLM-assisted labeling, both PPO-based methods outperform the no-reposition baseline in terms of wait time, empty-mile ratio, and served rate across all demand regimes. Importantly, improvements remain joint across metrics, indicating that preference alignment does not induce trade-offs between service quality and vehicle efficiency.
Figure A1.
Wait time across arrival scales under offline rubric-based preference labeling.
Figure A2.
Empty-mile ratio across arrival scales under offline rubric-based preference labeling.
Figure A3.
Served rate across arrival scales under offline rubric-based preference labeling.
Figure A4, Figure A5 and Figure A6 provide a direct comparison between PPO-Alternating and PPO-k-Step under offline labeling. The curves closely overlap across all arrival scales, demonstrating that both coordination schemes achieve nearly identical Pareto-efficient performance. PPO-Alternating exhibits marginally lower wait time and empty-mile ratio in some regimes, though the differences remain small and within confidence intervals.
Figure A4.
Comparison of average passenger wait time for PPO-k-Step and PPO-Alternating across arrival scales under offline rubric-based preference labeling.
Figure A5.
Comparison of empty-mile ratio for PPO-k-Step and PPO-Alternating across arrival scales under offline rubric-based preference labeling.
Figure A6.
Comparison of served rate across arrival scales for PPO-k-Step and PPO-Alternating under offline rubric-based preference labeling.
Table A2 and Table A3 provide a performance comparison across two arrival scales under larger vehicle density with LLM-assisted preference labeling and the ablation results when removing DQN warm start. Both tables report metrics including average wait time, empty-mile ratio, and served rate. Values are shown with 95% confidence intervals.
Table A2.
Performance comparison across two arrival scales under LLM-assisted preference labeling with 110 vehicles. Reported metrics include average wait time, empty-mile ratio, and served rate. Values are shown with 95% confidence intervals.
Table A3.
Performance comparison under the ablation setting (removing DQN warm start) at arrival scale 0.75. Reported metrics include average wait time, empty-mile ratio, and served rate. Values are shown with 95% confidence intervals.
Appendix C. LLM Prompts and Offline Rubric
We collect pairwise preferences between two repositioning policies, A and B, for each episode. For each policy, we compare three metrics over the entire episode: (i) wait time, (ii) empty-mile ratio, and (iii) served rate.
Appendix C.1. LLM-Based Preference Labeling
For LLM-based labeling, we query a Large Language Model with a structured prompt. The prompt describes the ride-sharing setting with the goal of choosing the policy that is better for passengers: “Decision rule (in order):
- (i)
- Minimize wait_time (lower is better).
- (ii)
- If wait_time is equal within 1 × 10−6, prefer higher served.
- (iii)
- If still equal, prefer lower empty_miles.
- (iv)
- Only output “TIE” if all three metrics are equal within 1 × 10−6.
Option A: wait_time = Aw, empty_ratio = Ax, served = Asv
Option B: wait_time = Bw, empty_ratio = Bx, served = Bsv
Return STRICT JSON only: “choice”: “A” | “B” | “TIE””
Appendix C.2. Offline Rubric
We also implement an offline rule that mirrors the same rubric in closed form. Given the aggregated metrics for A and B, the code compares the two policies in exactly the same decision order as above: It first selects the policy with a smaller average pickup waiting time; if the difference is below a small tolerance (1 × 10−6), it selects the policy with a higher served rate; if this is also tied, it selects the policy with a smaller empty miles; and if all three quantities coincide within the tolerance, the pair is marked as a tie.
Appendix D. Spatial Distribution of Vehicles
To understand how the learned policies position the fleet over the grid, we generate vehicle density heat maps for PPO-Alternating and PPO-kStep at arrival scale lambda = 0.75 (Figure A7 and Figure A8). For every policy, we run 10 independent random seeds and follow the same environment setup used in our main experiment. For each cell we count how often it is occupied across all steps, vehicles, and seeds, then normalize by the total number of logged positions. The resulting normalized occupancy is visualized as a vehicle density heat map. These heat maps highlight how the two PPO-RLHF policies spread the fleet across the service area at .
Figure A7.
Heat map for vehicle spatial distribution of PPO-Alternating under arrival scale 0.75.
Figure A8.
Heat map for vehicle spatial distribution of PPO-k-Step under arrival scale 0.75.
Appendix E. Wilcoxon Signed-Rank Test Results
Table A4 summarizes the Wilcoxon signed-rank tests comparing PPO-RLHF to the no-reposition baseline for .
Table A4.
Wilcoxon signed-rank tests comparing PPO-RLHF policies to the no-reposition baseline across arrival scales under LLM-assisted preference labeling. Reported are two-sided and one-sided p-values (: PPO-RLHF improves over no-reposition).
For average wait time, the one-sided p-values are 0.0313 (no_rep vs. PPO-Alternating) and 0.0625 (no_rep vs. PPO-k-step), which provides evidence that PPO-Alternating reduces wait time compared to no-reposition and weak evidence of improvement for PPO-k-step.
For empty-mile ratio, the one-sided p-values are 0.1562 for both, which indicates the PPO-RLHF methods achieve slightly lower empty-mile ratios on average, but the differences are not statistically significant at the 5% level.
For served rate, the one-sided p-values (0.2188 for both comparisons) are also well above 0.05, indicating that there are no significant improvements in served rate.
Overall, the Wilcoxon tests confirm that PPO-RLHF policies have slight improvement against the no-reposition baseline and offer evidence of improved wait time without statistically significant degradation in the other metrics.
References
- Alonso-Mora, J.; Samaranayake, S.; Wallar, A.; Frazzoli, E.; Rus, D. On-demand high-capacity ride-sharing via dynamic trip-vehicle assignment. Proc. Natl. Acad. Sci. USA 2017, 114, 201611675. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Itf. Shared Mobility: Innovation for Liveable Cities; International Transport Forum Policy Papers 21; OECD Publishing: Paris, France, 2016. [Google Scholar]
- Kuhn, H.W. The Hungarian method for the assignment problem. Nav. Res. Logist. Q. 1955, 2, 83–97. [Google Scholar] [CrossRef] [Scilit]
- Dickerson, J.P.; Sankararaman, K.A.; Srinivasan, A.; Xu, P. Balancing relevance and diversity in online bipartite matching via submodularity. In Proceedings of the AAAI Conference on Artificial Intelligence, Honolulu, HI, USA, 27 January–1 February 2019; Volume 33, pp. 1877–1884. [Google Scholar]
- Al-Abbasi, A.O.; Ghosh, A.; Aggarwal, V. Deeppool: Distributed model-free algorithm for ride-sharing using deep reinforcement learning. IEEE Trans. Intell. Transp. Syst. 2019, 20, 4714–4727. [Google Scholar] [CrossRef] [Scilit]
- Manchella, K.; Umrawal, A.K.; Aggarwal, V. Flexpool: A distributed model-free deep reinforcement learning algorithm for joint passengers and goods transportation. IEEE Trans. Intell. Transp. Syst. 2021, 22, 2035–2047. [Google Scholar] [CrossRef] [Scilit]
- Qian, X.; Guo, S.; Aggarwal, V. DROP: Deep relocating option policy for optimal ride-hailing vehicle repositioning. Transp. Res. Part C Emerg. Technol. 2022, 145, 103923. [Google Scholar] [CrossRef] [Scilit]
- Fereidooni, Z.; Palesi, L.A.I.; Nesi, P. Multi-Agent Optimizing Traffic Light Signals Using Deep Reinforcement Learning. IEEE Access 2025, 13, 106974–106988. [Google Scholar] [CrossRef] [Scilit]
- Zhang, R.; Pavone, M. Control of robotic mobility-on-demand systems: A queueing-theoretical perspective. Int. J. Robot. Res. 2016, 35, 186–203. [Google Scholar] [CrossRef] [Scilit]
- Riley, C.; Van Hentenryck, P.; Yuan, E. Real-time dispatching of large-scale ride-sharing systems: Integrating optimization, machine learning, and model predictive control. In Proceedings of the Twenty-Ninth International Conference on International Joint Conferences on Artificial Intelligence, Virtual, 7–15 January 2021; pp. 4417–4423. [Google Scholar]
- Xu, Z.; Li, Z.; Guan, Q.; Zhang, D.; Li, Q.; Nan, J.; Liu, C.; Bian, W.; Ye, J. Large-Scale Order Dispatch in On-Demand Ride-Hailing Platforms: A Learning and Planning Approach. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, London, UK, 19–23 August 2018; pp. 905–913. [Google Scholar]
- Oda, T.; Joe-Wong, C. MOVI: A model-free approach to dynamic fleet management. In IEEE INFOCOM 2018-IEEE Conference on Computer Communications, Honolulu, HI, USA, 16–19 April 2018; IEEE: Piscataway, NJ, USA, 2018; pp. 2708–2716. [Google Scholar]
- Bradley, R.A.; Terry, M.E. Rank analysis of incomplete block designs: The method of paired comparisons. Biometrika 1952, 39, 324–345. [Google Scholar] [CrossRef] [Scilit]
- Schulman, J.; Wolski, F.; Dhariwal, P.; Radford, A.; Klimov, O. Proximal policy optimization algorithms. arXiv 2017, arXiv:1707.06347. [Google Scholar] [CrossRef] [Scilit]
- Chakraborty, S.; Bedi, A.S.; Koppel, A.; Wang, H.; Manocha, D.; Wang, M.; Huang, F. PARL: A Unified Framework for Policy Alignment in Reinforcement Learning from Human Feedback. In Proceedings of the ICLR, Vienna, Austria, 7–11 May 2024. [Google Scholar]
- Ding, M.; Chakraborty, S.; Agrawal, V.; Che, Z.; Koppel, A.; Wang, M.; Bedi, A.; Huang, F. Sail: Self-improving efficient online alignment of large language models. arXiv 2024, arXiv:2406.15567. [Google Scholar] [CrossRef] [Scilit]
- Gaur, M.; Singh, U.; Bedi, A.S.; Pasupathy, R.; Aggarwal, V. On the Sample Complexity Bounds of Bilevel Reinforcement Learning. In Proceedings of the Thirty-Ninth Annual Conference on Neural Information Processing Systems, San Diego, CA, USA, 2–7 December 2025. [Google Scholar]
- Huang, S.; Ontañón, S. A Closer Look at Invalid Action Masking in Policy Gradient Algorithms. In Proceedings of the International FLAIRS Conference Proceedings, Jensen Beach, FL, USA, 15–18 May 2022; Volume 35. [Google Scholar]
- Ross, S.; Gordon, G.; Bagnell, D. A reduction of imitation learning and structured prediction to no-regret online learning. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, Fort Lauderdale, FL, USA, 11–13 April 2011; pp. 627–635. [Google Scholar]
- Torabi, F.; Warnell, G.; Stone, P. Behavioral Cloning from Observation. In Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence, Stockholm, Sweden, 13–19 July 2018; pp. 4950–4957. [Google Scholar]
- Ouyang, L.; Wu, J.; Jiang, X.; Almeida, D.; Wainwright, C.; Mishkin, P.; Zhang, C.; Agarwal, S.; Slama, K.; Ray, A.; et al. Training language models to follow instructions with human feedback. In Proceedings of the Advances in Neural Information Processing Systems 35, New Orleans, LA, USA, 28 November–9 December 2022; pp. 27730–27744. [Google Scholar]
- Peng, X.B.; Kumar, A.; Zhang, G.; Levine, S. Advantage-weighted regression: Simple and scalable off-policy reinforcement learning. arXiv 2019, arXiv:1910.00177. [Google Scholar]
- Abdolmaleki, A.; Springenberg, J.T.; Tassa, Y.; Munos, R.; Heess, N.; Riedmiller, M. Maximum a Posteriori Policy Optimisation. In Proceedings of the International Conference on Learning Representations, Vancouver, BC, Canada, 30 April–3 May 2018. [Google Scholar]
- Haarnoja, T.; Zhou, A.; Abbeel, P.; Levine, S. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In Proceedings of the International Conference on Machine Learning, Stockholm, Sweden, 10–15 July 2018; pp. 1861–1870. [Google Scholar]
- Lillicrap, T.P.; Hunt, J.J.; Pritzel, A.; Heess, N.; Erez, T.; Tassa, Y.; Silver, D.; Wierstra, D. Continuous control with deep reinforcement learning. arXiv 2015, arXiv:1509.02971. [Google Scholar]
- Szabo, F.E. M. In The Linear Algebra Survival Guide; Szabo, F.E., Ed.; Academic Press: Boston, MA, USA, 2015; pp. 219–233. [Google Scholar] [CrossRef] [Scilit]
- Huber, P.J. Robust Estimation of a Location Parameter. Ann. Math. Stat. 1964, 35, 492–518. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.






















