Introduction
Reinforcement learning (RL) has emerged as a powerful tool for recommendation systems, framing the task as a sequence of interactions to optimize long-term user engagement. However, the high cost and risk of real-world "trial and error" necessitate the use of virtual environments or simulators built from historical data. A critical flaw in existing environment reconstruction methods is the presence of hidden confounders—unobserved factors like weather, local events, or personal emergencies that influence both the platform's recommendations and the user's subsequent actions.
As shown in the figure above, ignoring these confounders leads to "fake associations" in the simulator, where the model incorrectly attributes user behavior solely to the observed system actions. This results in a simulator that diverges significantly from real-world dynamics, leading to poor policy performance when deployed.
The DEMER Framework
To address this, the authors propose DEMER (Deconfounded Multi-agent Environment Reconstruction). DEMER treats environment reconstruction as a multi-agent game involving three distinct entities:
- The Policy Agent ($\pi_a$): Represents the recommendation system's logic.
- The Environment Agent ($\pi_b$): Represents the user's response mechanism.
- The Confounding Agent ($\pi_h$): A latent agent that accounts for the variance introduced by unobserved variables.
Confounder-Embedded Policy
A key innovation of DEMER is the Confounder-Embedded Policy. Since confounders are unobservable, the framework combines the environment agent and the confounding agent into a single joint policy, $\pi_{hb}$. This allows the model to capture the effect of confounders without needing to explicitly identify what they are.
The framework utilizes a Multi-Agent Generative Adversarial Imitation Learning (GAIL) approach. A compatible discriminator is trained to distinguish between real historical trajectories and those generated by the interacting agents. To ensure stable training, the policies are optimized using Trust Region Policy Optimization (TRPO).
Experimental Results
The researchers validated DEMER using both a controlled toy environment and a massive real-world dataset from Didi Chuxing’s driver program recommendation system.
Simulation Fidelity
In the toy environment, DEMER successfully recovered the ground truth logic that was hidden from the model, producing smooth and realistic behavior functions. In contrast, baseline models like supervised learning or standard multi-agent imitation learning (MAIL) exhibited sharp distortions. On real-world data, DEMER achieved the highest mean log-likelihood, indicating its superior ability to mimic actual driver behavior and environmental trends (with a Pearson correlation of ~0.8 for key metrics).
Real-World Impact
The ultimate test of DEMER was an online A/B test conducted across three cities on the Didi Chuxing platform. The policy trained within the DEMER-reconstructed environment outperformed existing production models significantly:
- Finished Orders (FOs): Increased by 11.74%.
- Total Driver Income (TDIs): Increased by 8.71%.
Conclusion
DEMER provides a novel solution to the environment reconstruction problem by modeling hidden confounders as a latent agent. By moving beyond simple observed transitions and embracing a multi-agent adversarial framework, it enables the creation of high-fidelity simulators that translate to substantial gains in real-world productivity and efficiency.
Summary updated