A Gentle Lecture Note on Filtrations in Reinforcement Learning

Wouter J. A. van HeeswijkarXiv 2020

Abstract

This note aims to provide a basic intuition on the concept of filtrations as used in the context of reinforcement learning (RL). Filtrations are often used to formally define RL problems, yet their implications might not be eminent for those without a background in measure theory. Essentially, a filtration is a construct that captures partial knowledge up to time $t$, without revealing any future information that has already been simulated, yet not revealed to the decision-maker. We illustrate this with simple examples from the finance domain on both discrete and continuous outcome spaces. Furthermore, we show that the notion of filtration is not needed, as basing decisions solely on the current problem state (which is possible due to the Markovian property) suffices to eliminate future knowledge from the decision-making process.

Introduction

In foundational Reinforcement Learning (RL) literature, researchers often encounter dense mathematical definitions of Markov Decision Processes (MDPs). A common point of confusion is the requirement that a decision-making policy be "$\mathcal{F}_t$-measurable" or that expectations be conditioned on a "filtration." For practitioners coming from computer science or engineering backgrounds, this measure-theoretic jargon can serve as an intimidating roadblock.

This paper addresses this pedagogical gap by providing an intuitive, visual understanding of filtrations. We explore why mathematicians use these constructs to define stochastic processes and what they practically imply for an agent navigating an environment.

The Binomial Lattice Model

To demystify filtrations, we utilize a simplified binomial lattice model common in finance. In this model, we consider a stock price $S$ that can only move up ($u$) or down ($d$) at each discrete time step.

A standard binomial lattice model representing stock price movements over three time steps.

At time $t=0$, the initial price $S_0$ is known, but all future paths are possible. As time progresses, the actual path taken becomes partially revealed through the filtration.

Defining Filtrations and the "No-Peeking" Rule

A filtration $\mathcal{F}_t$ acts as a sequence of increasingly fine-grained "filters" on the universe of all possible future paths (the outcome space, $\Omega$). It is essentially a formal record of history. At $t=0$, the filtration $\mathcal{F}_0$ contains no information about the future; all paths are indistinguishable. At $t=1$, the agent observes whether the stock went up or down. This observation partitions the outcome space: paths starting with $u$ are now distinguishable from those starting with $d$.

Illustration of information revelation at $t=1$, where the outcome space is partitioned based on the first move.

In RL, saying a policy $\pi$ is "$\mathcal{F}_t$-measurable" enforces a strict mathematical rule: the agent cannot cheat. It ensures the agent's decision at time $t$ is based solely on information revealed up to that point, preventing it from prematurely acting on future simulated events that have not yet "happened" in the agent's timeline.

The Markov Property and Redundancy

While filtrations provide a rigorous way to handle history, the Markov property often makes them practically redundant in standard RL. In an MDP, the current state $S_t$ encapsulates all necessary information from the past to predict the future.

Because of this property, an agent only needs to look at the current state $S_t$ to make an optimal decision. Explicitly tracking the entire history via a filtration does not add actionable information for the decision-maker. Consequently, while filtrations are a standard convention for mathematical rigor in probability theory, practitioners can safely rely on the state $S_t$ without managing complex measure-theoretic constructs in their code.

Conclusion

Filtrations elegantly resolve the mathematical challenge of preventing "future-peeking" in simulated environments. However, for most RL applications, the Markovian nature of the state space renders the explicit use of filtrations unnecessary for decision-making. They remain a vital tool for formal proofs and definitions but do not change the underlying mechanics of practical RL algorithms.

Summary updated

Abstract

This note aims to provide a basic intuition on the concept of filtrations as used in the context of reinforcement learning (RL). Filtrations are often used to formally define RL problems, yet their implications might not be eminent for those without a background in measure theory. Essentially, a filtration is a construct that captures partial knowledge up to time $t$, without revealing any future information that has already been simulated, yet not revealed to the decision-maker. We illustrate this with simple examples from the finance domain on both discrete and continuous outcome spaces. Furthermore, we show that the notion of filtration is not needed, as basing decisions solely on the current problem state (which is possible due to the Markovian property) suffices to eliminate future knowledge from the decision-making process.
BibTeX
@misc{heeswijk2020gentle,
  author = {Wouter J. A. van Heeswijk},
  title = {{A Gentle Lecture Note on Filtrations in Reinforcement Learning}},
  year = {2020},
  eprint = {2008.02622},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2008.02622},
}
Figure