Partially observable environment estimation with uplift inference for reinforcement learning based recommendation

Wenjie Shang, Qingyang Li, Zhiwei (Tony) Qin, Yang Yu, Yiping Meng, Jieping Ye

Abstract

Training reinforcement learning (RL) agents in real-world recommendation systems is challenging due to the high cost of exploration and the presence of unobserved confounders in historical data. We present POMEE-UI, a framework that addresses these issues by modeling hidden variables as a "hidden agent" and utilizing a Deep Uplift Inference Network (DUIN) to derive causal reward signals. Evaluated on real-world data from Didi Chuxing, POMEE-UI demonstrates significant improvements in driver productivity and income, bridging the gap between simulated environments and real-world dynamics.

Introduction

In domains such as robotics and large-scale recommendation systems, reinforcement learning (RL) offers a powerful paradigm for discovering optimal policies. However, direct online exploration is often prohibitively expensive or risky. For instance, in ride-hailing platforms, deploying an untrained algorithm to provide random recommendations to millions of drivers could lead to significant revenue loss and user dissatisfaction. Consequently, practitioners rely on building virtual environments (simulators) from historical data.

The primary hurdle in creating accurate simulators is the "reality gap" caused by partial observability. Real-world environments are influenced by numerous unrecorded factors—such as weather conditions or individual driver moods—that act as hidden confounders. If a simulator fails to account for these variables, the resulting RL agent may learn suboptimal or even detrimental policies based on spurious correlations.

Modeling Partial Observability

The core contribution of this work is the transition from a classical environment model to one that explicitly accounts for hidden variables. In a standard Markov Decision Process (MDP), the next state $s_{t+1}$ is assumed to depend only on the current state $s_t$ and action $a_t$. In reality, unobserved factors $h$ often mediate this transition and the resulting observations.

Comparison between (a) a classical environment and (b) an environment with a hidden variable, illustrating the complex dependencies introduced by unobserved factors.

Methodology: The POMEE-UI Framework

To address these challenges, we propose POMEE-UI, which consists of two integrated components: Partially-Observed Multi-agent Environment Estimation (POMEE) and the Deep Uplift Inference Network (DUIN).

POMEE: Hidden Agent Modeling

Instead of treating the environment as a passive entity, POMEE models it as a multi-agent interaction. We introduce a "hidden agent" ($\pi_h$) that encapsulates all unobserved variables. By leveraging a framework based on Generative Adversarial Imitation Learning (GAIL), the system co-trains the recommendation policy, the environment response, and the hidden policy. The goal is to "imitate" real-world trajectories such that a discriminator cannot distinguish between simulated and actual data, effectively forcing the hidden agent to represent the missing information necessary for high-fidelity simulation.

DUIN: Causal Reward Inference

Standard reward functions often focus on raw outcomes (e.g., whether a user clicked). However, effective RL requires understanding uplift—the incremental change caused specifically by the agent's action. DUIN is a deep learning architecture designed for uplift modeling. It utilizes a shared representation module that branches into "control" and "treatment" paths, allowing the model to predict counterfactual outcomes. By isolating the true causal effect of an action, DUIN provides a more robust reward signal for training the RL agent.

Experimental Evaluation

The POMEE-UI framework was validated using both synthetic environments and a massive real-world dataset from Didi Chuxing, comprising 1.16 million recommendation records.

Key Findings

  • Simulation Fidelity: In controlled toy experiments, POMEE-UI successfully recovered the underlying distribution of hidden policy functions, outperforming standard imitation learning methods which exhibited significant distortion.
  • Real-World Deployment: Policies trained within the POMEE-UI simulator were deployed in live online A/B tests across three cities. The results showed an 11.74% increase in Finished Orders (FOs) and an 8.71% increase in Total Driver Incomes (TDIs).
  • Generalization: The model achieved higher log-likelihood on test data compared to supervised learning baselines, indicating a superior capture of the underlying driver behavior distribution.

Conclusion and Future Work

POMEE-UI demonstrates that treating unobserved factors as active "hidden agents" and incorporating causal uplift modeling can significantly improve the performance of RL-based recommendation systems. While the framework can recover the effects of hidden variables, it does not yet identify their specific nature (e.g., distinguishing between "fatigue" and "weather"). Future research will focus on developing a closed-loop pipeline for continuous simulator fine-tuning and exploring applications in other partially observable domains like healthcare.

Summary updated

BibTeX
@article{shang2021partially,
  author = {Wenjie Shang and Qingyang Li and Zhiwei (Tony) Qin and Yang Yu and Yiping Meng and Jieping Ye},
  title = {{Partially observable environment estimation with uplift inference for reinforcement learning based recommendation}},
  journal = {Machine Learning},
  year = {2021},
  doi = {10.1007/s10994-021-05969-w},
}
Figure