Skip to main content
QUICK REVIEW

[Paper Review] Can Sophisticated Dispatching Strategy Acquired by Reinforcement Learning? - A Case Study in Dynamic Courier Dispatching System

Yujie Chen, Qian Yu|arXiv (Cornell University)|Mar 7, 2019
Transportation and Mobility InnovationsEngineering24 references16 citations
TL;DR

This paper proposes a multi-agent reinforcement learning (MARL) framework to solve the dynamic courier dispatching problem (CDP) in real-time e-commerce pickup services. By modeling the problem as a Markov decision process and using hierarchical state representation with reward shaping, MARL learns sophisticated, long-term dispatching policies that outperform human-designed and myopic online algorithms, achieving 13% higher revenue in experiments on real-world and synthetic data.

ABSTRACT

In this paper, we study a courier dispatching problem (CDP) raised from an online pickup-service platform of Alibaba. The CDP aims to assign a set of couriers to serve pickup requests with stochastic spatial and temporal arrival rate among urban regions. The objective is to maximize the revenue of served requests given a limited number of couriers over a period of time. Many online algorithms such as dynamic matching and vehicle routing strategy from existing literature could be applied to tackle this problem. However, these methods rely on appropriately predefined optimization objectives at each decision point, which is hard in dynamic situations. This paper formulates the CDP as a Markov decision process (MDP) and proposes a data-driven approach to derive the optimal dispatching rule-set under different scenarios. Our method stacks multi-layer images of the spatial-and-temporal map and apply multi-agent reinforcement learning (MARL) techniques to evolve dispatching models. This method solves the learning inefficiency caused by traditional centralized MDP modeling. Through comprehensive experiments on both artificial dataset and real-world dataset, we show: 1) By utilizing historical data and considering long-term revenue gains, MARL achieves better performance than myopic online algorithms; 2) MARL is able to construct the mapping between complex scenarios to sophisticated decisions such as the dispatching rule. 3) MARL has the scalability to adopt in large-scale real-world scenarios.

Motivation & Objective

  • To address the challenge of dynamic, real-time courier dispatching in urban e-commerce pickup services with stochastic spatiotemporal demand patterns.
  • To develop a data-driven, scalable dispatching strategy that captures long-term revenue gains rather than relying on short-sighted optimization objectives.
  • To overcome limitations of centralized MDP modeling and traditional online algorithms in complex, dynamic environments with delayed rewards and agent interaction.
  • To design a decentralized MARL framework with effective reward shaping to encourage cooperation among couriers.
  • To validate the method’s generalization and scalability on both synthetic and real-world urban pickup datasets.

Proposed method

  • The CDP is formulated as a Markov decision process (MDP) with a hierarchical structure: dispatching-level (agent-to-grid assignment) and routing-level (time-window constrained orienteering problem).
  • Spatial and temporal demand patterns are encoded as stacked multi-layer grid images representing historical request density, time windows, and service values over a 2-hour window.
  • A multi-agent reinforcement learning (MARL) algorithm is trained with decentralized control, where each courier acts as an independent agent based on its local observation.
  • Reward shaping is applied to encourage cooperation: agents receive delayed, cumulative rewards based on successful request fulfillment, with credit assignment adjusted to handle long-horizon dependencies.
  • The policy network uses deep Q-learning with experience replay and target networks to stabilize training, and the state space includes spatial grids, courier availability, and request metadata (e.g., time windows, prices).
  • The method is evaluated using both synthetic data and real-world pickup data from Hangzhou, with ablation studies comparing MARL against GHEP, random, and MBM baselines.

Experimental results

Research questions

  • RQ1Can MARL learn a dispatching policy that outperforms human-designed, myopic online algorithms in dynamic courier dispatching?
  • RQ2How effective is reward shaping in promoting cooperation among couriers in a decentralized MARL setup with delayed rewards?
  • RQ3To what extent can the MARL policy generalize to unseen scenarios with varying customer time window distributions, dynamic request ratios, and zone configurations?
  • RQ4Does the MARL-based dispatching strategy achieve better long-term revenue by capturing spatiotemporal demand patterns compared to greedy or rule-based methods?
  • RQ5How scalable is the proposed MARL framework in large-scale urban environments with hundreds of couriers and requests?

Key findings

  • MARL-EP outperformed all baselines, achieving 13% higher total revenue than the GHEP policy in the fleet 2 experiment, with performance surpassing GHEP after 1,000 training episodes.
  • The MARL-EP policy demonstrated superior long-term planning by pre-dispatching to remote, isolated areas that myopic strategies failed to reach due to low immediate reward.
  • The method generalized well to unseen scenarios, including variations in customer time window distributions, dynamic request ratios, and zone layout changes, confirming model robustness.
  • Decentralized MARL with reward shaping enabled effective cooperation among agents, reducing redundant competition and improving supply-demand matching across spatial and temporal dimensions.
  • The MARL framework scaled effectively to larger datasets, with fleet 4 (independent training per courier) showing comparable performance to fleet 1 (shared policy), though with slower learning due to smaller per-agent sample size.
  • Trajectory analysis confirmed that MARL-EP agents followed more strategic, adaptive paths that aligned with evolving request hotspots, unlike random or greedy policies.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.