Problem
A ride-hailing marketplace matches riders to drivers in real time. A greedy match can balance supply and demand right now and cause a shortage elsewhere in the city later: longer rider waits or surge pricing there. A simulator is hard to build because of network effects and behavioral drift. Online exploration is risky because the decisions move real people.
Illustrative example: a match sends a driver to a district with little demand, and the driver idles there.
Solution in brief
Uber learns a value function of the driver state (location and time) by temporal difference learning on logged trips. Idle periods count as zero-reward transitions, so dead-end destinations get a low value. The value goes into the ranking metric of the matching algorithm. The model is retrained weekly and checked against Monte Carlo ground truths.
Questions this case answers
- How to make a real-time two-sided matching system account for the long-term effect of each match when a simulator is unreliable and decisions affect real people
- How to monitor and automatically down-weight a learned value signal when its quality degrades in some regions
- How to keep driver supply and rider demand balanced across a city when each match changes where drivers end up?
- How to teach a matching algorithm that some destinations leave drivers idle?
Tools and methods
- DQN-style value learning — a neural network estimates the value of a driver state from temporal difference targets.
- Zero-reward idle transitions — teach the model which destinations leave drivers unutilized.
- Geo-embeddings with a contrastive loss — keep the value function smooth across nearby locations.
- Monte Carlo ground truths — evaluate value estimates at a coarse spatiotemporal resolution.
- Switchback experiments — measure the effect of the signal in the live marketplace.
Google or a one-time email code. No password.