TL;DR
MODA is a novel framework designed to optimize diverse human decision-making in urban environments using multi-task offline reinforcement learning. By combining a "Contrastive Data Sharing" mechanism to solve data scarcity and a GAN-integrated "Robust MDP" to mitigate distributional shifts, MODA significantly outperforms state-of-the-art baselines in real-world taxi passenger-seeking scenarios.
What Problem Does This Paper Address?
Reinforcement Learning (RL) is a powerful tool for optimizing strategies, but in urban settings—like vehicle dispatching or route planning—we rarely have the luxury of "online" training where an agent learns through trial and error in the real world. Instead, we must rely on Offline RL, learning from pre-collected historical data (Human-generated Spatial-Temporal Data, or HSTD).
The authors identify three major hurdles in this domain:
- Data Scarcity: Individual agents (e.g., a single taxi driver) don't generate enough data to train a robust model alone.
- Data Heterogeneity: Different agents have different "styles" or strategies. Naively mixing their data (Sharing All) introduces noise and bias.
- Distributional Shift: This is the "hallucination" problem of offline RL. When an agent tries an action not well-represented in the dataset, the model's predictions become unreliable, leading to poor performance.
Methods
The MODA (Multi-Task Offline Reinforcement Learning with Contrastive Data ShAring) framework introduces two primary innovations:
1. Contrastive Data Sharing (CDS)
To solve data scarcity without the pitfalls of heterogeneity, MODA uses contrastive learning. It breaks trajectories into sub-trajectories and learns a latent representation for them using a triplet loss.
- Positive pairs: Sub-trajectories from the same agent in close proximity.
- Negative pairs: Sub-trajectories from different agents at the same spatial-temporal state. By pulling similar behaviors together and pushing different ones apart in the embedding space, MODA can selectively share data from other tasks that match the target agent's logic, effectively augmenting the dataset with "relevant" experiences only.
2. Model-based Offline RL with Robust MDP
To tackle distributional shift, MODA builds a "Robust MDP." It trains a standard dynamics model to predict the next state and reward, but it pairs this with a Generative Adversarial Network (GAN).
- The GAN's Generator learns the underlying distribution of the real environment.
- The Discriminator acts as a "reliability detector." During policy optimization (using Soft Actor-Critic), if the dynamics model suggests a transition that the Discriminator flags as "unreliable" (out-of-distribution), the MDP immediately terminates the episode with a penalty. This keeps the agent from learning "fake" high-reward strategies that don't exist in reality.
Datasets
The researchers evaluated MODA using a massive real-world dataset:
- Shenzhen Taxi Trajectories: GPS records from 17,877 taxis in Shenzhen, China, collected over three months in 2016.
- Environment Setup: The city was discretized into a 40x50 grid. States included spatial-temporal features like traffic volume, travel demand, and speed.
- Simulation: They created a passenger-seeking simulator based on this data to evaluate the learned policies across different driver expertise levels (expert, medium, and random).
Key Insights and Ideas
- Sub-trajectories are the sweet spot: The authors found that sharing entire trajectories is often too "noisy" because a driver's logic might change over a long shift. Sharing short segments (sub-trajectories) allows the model to find commonalities in specific neighborhoods or times of day.
- The Discriminator as a Safety Rail: Instead of just using a GAN to generate more data, using the Discriminator to prune "unreliable" transitions in a dynamics model is a highly effective way to prevent the agent from over-optimizing on data it hasn't actually seen.
- Expertise Matters: The experiments showed that "expert" drivers actually need the least amount of shared data to reach peak performance, while "random" or novice drivers benefit significantly from more shared, high-quality data from others.
Key Results
MODA was compared against several heavy hitters in the offline RL space, including CQL, BCQ, BEAR, and MOReL.
- Superior Performance: MODA achieved an average cumulative reward of 134.06, significantly higher than the best-performing baseline (BEAR at 119.46).
- Ablation Study: The authors tested a version without the GAN component (MODA-). Its performance plummeted to 99.32, highlighting that the "Robust MDP" is the secret sauce for handling the messy reality of urban data.
- Data Sharing Efficacy: MODA's contrastive sharing outperformed "No Sharing" and "Sharing All," proving that selective data augmentation is better than none or too much.
Limitations and Future Work
- Computational Complexity: The authors noted that calculating all possible negative pairs for contrastive learning is computationally expensive. They implemented a random filtering workaround (using 10-20% of triples) to stay within GPU memory limits.
- Implicit Rewards: While MODA handles implicit rewards well, the framework still relies on the assumption that the underlying "tasks" (drivers) share some latent structure.
- Future Directions: The authors suggest applying this framework to other urban domains like public transit management or bike-sharing, where multi-task data is abundant but heterogeneous.
Summary updated