Efficient Reinforcement Learning with Prior Causal Knowledge

Yangyi Lu, Amirhossein Meisami, Ambuj TewariCLeaR 2022

Abstract

We introduce causal Markov Decision Processes (C-MDPs), a new formalism for sequential decision making which combines the standard MDP formulation with causal structures over state transition and reward functions. Many contemporary and emerging application areas such as digital healthcare and digital marketing can benefit from modeling with C-MDPs due to the causal mechanisms underlying the relationship between interventions and states/rewards. We propose the causal upper confidence bound value iteration (C-UCBVI) algorithm that exploits the causal structure in C-MDPs and improves the performance of standard reinforcement learning algorithms that do not take causal knowledge into account. We prove that C-UCBVI satisfies an $\tilde{O}(HS\sqrt{ZT})$ regret bound, where $T$ is the the total time steps, $H$ is the episodic horizon, and $S$ is the cardinality of the state space. Notably, our regret bound does not scale with the size of actions/interventions ($A$), but only scales with a causal graph dependent quantity $Z$ which can be exponentially smaller than $A$. By extending C-UCBVI to the factored MDP setting, we propose the causal factored UCBVI (CF-UCBVI) algorithm, which further reduces the regret exponentially in terms of $S$.

Introduction

Standard Reinforcement Learning (RL) algorithms often struggle when the number of possible actions ($A$) or states ($S$) is very large. In tabular RL, regret bounds typically scale with $\sqrt{A}$, which becomes impractical in real-world domains like digital marketing or healthcare. For instance, a marketer might choose between thousands of email combinations. Treating each combination as a unique, independent action ignores the underlying mechanism: these features actually influence a few "key variables"—like customer engagement or price perception—which then drive the final purchase. This paper introduces Causal Markov Decision Processes (C-MDPs), a framework that integrates causal structures into RL to overcome this "curse of dimensionality."

The Causal MDP Framework

In a C-MDP, the agent leverages prior knowledge of a causal graph where actions (interventions) affect rewards and state transitions through a set of intermediate parent variables, denoted as $Z$. This structure allows the agent to decouple the high-dimensional action space from the resulting outcomes.

Causal structure of rewards in a digital marketing C-MDP, illustrating how email features influence intermediate variables like "Added to cart" to determine the final "Purchase" reward.

By understanding the causal bottleneck, the agent can pool data from different actions that result in the same intermediate state. If 1,000 different actions all result in the same "key variable" state (e.g., a customer clicking a link), the agent can learn the effect of that state much faster than learning the effect of each action individually.

State Transitions and Factored Structures

The causal approach is equally applicable to state transitions. Instead of learning a transition matrix for every state-action pair, the model focuses on how interventions affect the variables that drive state changes, such as customer loyalty or willingness to shop.

Causal structure for state transitions, showing how actions influence parent variables like "Price performance" and "demand" to update the customer's internal state.

To handle large state spaces, the authors extend their approach to Factored MDPs with the Causal Factored UCBVI (CF-UCBVI) algorithm. This method exploits local dependencies between state components, providing exponential efficiency gains in both the action and state dimensions.

Theoretical and Empirical Results

The authors prove that C-UCBVI achieves a regret bound of $\tilde{O}(HS\sqrt{ZT})$. Crucially, this bound is independent of the size of the action space $A$, scaling instead with the size of the parent variable space $Z$. In many systems, $Z$ is exponentially smaller than $A$.

Empirical evaluations in synthetic simulations mimic complex decision environments like digital marketing. The results show that C-UCBVI and CF-UCBVI dramatically outperform standard RL benchmarks. By exploiting the causal structure, these algorithms achieve significantly lower regret as the number of episodes increases, validating the theoretical findings.

Conclusion

C-MDPs offer a robust framework for incorporating prior causal knowledge into reinforcement learning. By focusing on the underlying mechanisms of change rather than treating actions as black boxes, C-MDPs enable efficient learning in high-dimensional spaces. Future research will explore learning these causal structures from data and adapting to non-stationary environments.

Summary updated

BibTeX
@inproceedings{lu2022efficient,
  author = {Yangyi Lu and Amirhossein Meisami and Ambuj Tewari},
  title = {{Efficient Reinforcement Learning with Prior Causal Knowledge}},
  booktitle = {CLeaR},
  year = {2022},
  url = {https://openreview.net/forum?id=xzJWqJadOG},
}
Figure