A Reinforcement Learning Framework for Dynamic Mediation Analysis

Linjuan Ge, Jitao Wang, C. Shi, Zhanghua Wu, Rui Song
2/12/2026

No official code found. Best implementation: linlinlin97/MediationRL (5 stars, MIT, last commit 2023-05-31).

Abstract

Mediation analysis learns the causal effect transmitted via mediator variables between treatments and outcomes and receives increasing attention in various scientific domains to elucidate causal relations. Most existing works focus on point-exposure studies where each subject only receives one treatment at a single time point. However, there are a number of applications (e.g., mobile health) where the treatments are sequentially assigned over time and the dynamic mediation effects are of primary interest. Proposing a reinforcement learning (RL) framework, we are the first to evaluate dynamic mediation effects in settings with infinite horizons. We decompose the average treatment effect into an immediate direct effect, an immediate mediation effect, a delayed direct effect, and a delayed mediation effect. Upon the identification of each effect component, we further develop robust and semi-parametrically efficient estimators under the RL framework to infer these causal effects. The superior performance of the proposed method is demonstrated through extensive numerical studies, theoretical results, and an analysis of a mobile health dataset.

View on arXivView PDF

Code Implementations(1)

MIT

Implementation of "A Reinforcement Learning Framework for Dynamic Mediation Analysis" (ICML 2023) in Python.

53Python, Jupyter NotebookApr 26, 20223 years agoMIT

Similar Papers

Cite this paper

@article{ge2026reinforcement,
  title  = {A Reinforcement Learning Framework for Dynamic Mediation Analysis},
  author = {Linjuan Ge and Jitao Wang and C. Shi and Zhanghua Wu and Rui Song},
  year   = {2026},
  eprint = {2301.13348},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2301.13348},
  journal = {ICML 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2301.13348.svg)](https://codeofpaper.com/paper/2301.13348)

Discussion