Even though Markov Decision Processes are the most famous mathematical structure used to model an environment in reinforcement learning, there are other types of possible models for RL environment which act as extensions to vanilla MDPs. This section concerns itself to defining these extensions, and making links between them.

This is not an exhaustive list of all possible mathematical models used to represent environments in the RL literature. However, these are some of the most used or fundamental models in the field, on which the majority of the research is conducted, and on top of which most niche extensions are built. Table [table:environments] features all the environment models discussed in this section as well as their differences with respect with MDPs.

Model Partial observability Multiagent Multiple Reward Functions Delayed Actions
SMDP
POMDP
MMDP
dec-POMDP
Markov Game


Semi Markov Decision Process (SMDP)

As stated in (A. G. Barto 2003), in an MDP, only the sequential nature of the decision process is relevant, not the amount of time that passes between decision points. Semi Markov Decision Processes are a generalization of this idea, where the time elapsed in between decision points, also known as decision stages, is taken into account. Every action taken in an SMDP has an assigned delay , known as holding time. When an action with holding time is decided at time , the agent waits for timesteps before the action is executed and the next decision point is reached. At this decision point, the agent recieves state and a cumulative reward which includes the individual reward of all elapsed timesteps, . The time until the next decision point can only depend on the action and state and thus is independent of the history of the environment. SMDPs can also be used for real-valued time systems instead of discretely timed environments. This holding time allows for a gap in time between sensorial input reaching the agent and the agent’s action being executed on the environment. This type of process is considered Semi Markovian because as the holding time is elapsing, the agent cannot know how the system is evolving. Thus, in order to determine when the next state (decision point) will be reached, it is necessary to know how much time has elapsed, introducing temporal dependency, breaking the Markov property. To iterate on this point, the probability of reaching state state depends only on and action with associated holding time . Once the action has been decided, estimating when the agent will recieve state depends on how much time has elapsed since the action was decided.

A Semi Markov Decision Process is defined by a 5-element tuple :

  • and express the same concepts as in classical MDPs.

  • , where , is the transition probability function. Which states the probability of transitioning to state after a holding time of .

  • , where , is the reward function. It represents the expected reward of deciding on action on state with an assigned holding time of timesteps and landing on state .

A useful properties of SMDPs is that they can be reduced to regular MDPs through the data-transformation method (Piunovskiy and Zhang 2012). This introduces the possibility of using MDP solving methods to solve SMDPs. SMDPs have recieved a lot of attention in the field hierarchical learning, especially with regards to options (Sutton and Barto 1998).

Partially Observable Markov Decision Process (POMDP)

In an MDP, the internal representation of the environment is the same representation that the agent receives at every timestep. POMDPs introduce the idea that what the agent observes at every timestep is only a partial representation of the real environment state . This partial observation alone is not enough to reconstruct the real environment state , which entails that . A Partially Observable Markov Decision process is defined by a 6-element tuple :

  • and express the same concepts as in classical MDPs.

  • is the set of all possible agent observations. Notably , meaning that some of the state properties may never be available to the agent.

  • , where , represents the probability of the agent recieving observation after executing action in state .

In an POMDP the goal of the environment is not to find an optimal policy which will maximize the expected cumulative reward. This is because the observations that the agent receives as it acts inside of the environment may not be informative enough to allow the agent to learn an optimal policy. Because of this, the goal of the agent becomes to find an optimal policy that maximizes the cumulative reward conditioned on the history of observations that the agent has recieved from the environment. The agent samples actions from its policy, which is no longer conditioned on the state of the environment, as the agent does not have access to it, but rather it is conditioned on the sequence of the observations that the agent has obtained so far, . This goal is formalized as:

A POMDP can be reduced to an MDP iff, for all timesteps the agent’s observation and the environment state are equal .

Multi-agent Markov Decision Process (MMDP)

A major shortcoming of MDPs is that they assume stationary environments, which by definition entails that the environment does not change over time. This assumption makes MDPs unsuitable for modelling multi-agent environments. Agents must be considered as non-stationary parts of the environment, because the policies that define their behaviours change over time through the course of learning.

 (Boutilier 1996) introduces Multi-agent Markov Decision Processes (MMDPs) as framework to study coordination mechanisms. In contrast of MDPs, MMDPs feature multiple agent policies, each of them submitting an individual action every timestep.

A Multi-agent Markov Decission Process is defined by a 5-element tuple :

  • and express the same concepts as in classical MDPs.

  • is a collection of action sets, one for each agent in the environment, with corresponding to the action set of the th agent.

  • , where , and , represents the probability transition function. It states the probability of transitioning from state to state after executing the joint action . The joint action, , is a vector containing the action performed by every agent at a given timestep

  • , where , is the reward function. It represents the expected reward of deciding on action on state with an assigned holding time of timesteps and landing on state .

  • , where , and , represents the reward function. All agents recieve the same reward.

MMDPs can be thought as -person stochastic games in which the payoff function is the same for all agents.

Decentralized Markov Decision Process (dec-POMDP)

Dec-POMDPs form a framework for multiagent planning under uncertainty (Oliehoek and Amato 2014). This uncertainy comes from two sources. The first one being the partial observability of the environment, the second one stemming from the uncertainy that each agent has over the other agent’s policies. It is the natural multi-agent generalization of POMDPs, introducing multi-agent concepts from game theory. They are considereded decentralized because there is no explicit communication between agents. Agents do not have the explicit ability of sharing their observations and action choices with each other. Every agent bases its decision purely on its individual observations. On every timestep each agent chooses an action simultaneously and they are all collectively submitted to the environment. As in MMDPs, all agents share the same reward function, making the nature of dec-POMDPs collaborative. A decentralized Partially Observable Markov Decision Process is defined by an 8-element tuple :

  • is the set of all agent policies indexed .1

  • expresses the same concepts as in classical MDPs.

  • is a collection of action sets, one for each agent in the environment, with corresponding to the action set of the th agent.

  • , where , and , represents the probability transition function. It states the probability of transitioning from state to state after executing the joint action . The joint action is a vector containing the action performed by every agent at a certain timestep.

  • , where , and , represents the reward function associated to the th agent, indicating the reward that the th agent will obtain after the joint action vector is executed in state .

  • represents the joint set of all agent observations, with representing the set of all possible observations for the th agent.

  • , where , , , and , represents the probability of observing the joint observation vector , containing an observation for each agent, after executing the joint action in state .

  • represents the finite time horizon, the number of steps over which the agents will try to maximize their cummulative reward. It serves a similar purporse to the more common discount factor in that they are both used as a variance-bias trade off and are needed for proofs of convergence over infinitely long running tasks.

A dec-POMDP featuring a single agent, , can be treated as a POMDP. Furthermore, when agents are permitted to have different reward functions, this model becomes a Partially Observable Stochastic Game (POSG) (Hansen 2004).

Markov Game

 (Owen and Owen 1982) first introduced the notion of a Markov Game. Markov Games also serve to model multi-agent environments. They came to be as a crossbreed between game theoretic structures such as extended-form games and Markov Decision Processes. A Markov Game with different agents is denoted by a 5-element tuple

  • and express the same concepts as classical MDPs.

  • is a collection of action sets, on for each agent in the environment, with corresponding to the action set of the th agent.

  • , where , and , represents probability transition function. It states the probability of transitioning from state to state after executing the joint action . The joint action represents all of the actions that were executed at timestep .

  • , where , and , represents the reward function associated to the th agent, indicating the reward that the th agent will obtain after the joint action is executed in state .

Each agent independently tries to maximize its expected discounted cumulative reward, , where is the reward obtained by agent at time .

Markov Games have several important properties (Owen and Owen 1982; Littman 1994). Like MDP’s, Every Markov game features an optimal policy for each agent. Unlike MDPs, these policies may be stochastic. The need for stochastic action choice stems from the agent’s uncertainty about the opponent’s pending moves. On top of this, sthocastic policies make it difficult for opponents to “second guess” the agent’s action, which makes the policy less exploitable.

When the number of agents in a Markov Game is exactly 1, the Markov Game can be considered an MDP. When , the environment can be considered a normal-form game from game theory literature. Doning a game theory hat, can be thought of as the probability of the game finishing next round. If all agents shared the same reward function, the Markov Game is reduced to an MMDP.

Time for References!

Barto, Andrew G. 2003. “Recent Advances in Hierarchical Reinforcement Learning Markov and Semi-Markov Decision Processes.” Most 13 (5): 1–28. doi:10.1.1.4.6238-1.

Boutilier, Craig. 1996. “Planning, learning and coordination in multiagent decision processes.” Proceedings of the 6th Conference on Theoretical Aspects of Rationality and Knowledge, 195–210. http://dl.acm.org/citation.cfm?id=1029710.

Littman, Michael L. 1994. “Markov games as a framework for multi-agent reinforcement learning.” Machine Learning Proceedings 1994, 157–63. doi:10.1016/B978-1-55860-335-6.50027-1.

Oliehoek, Frans A, and Christopher Amato. 2014. “Best Response Bayesian Reinforcement Learning for Multiagent Systems with State Uncertainty.” AAMAS Workshop on Multiagent Sequential Decision Making Under Uncertainty, MSDM 2014, no. May.

Owen, G, and G Owen. 1982. “Game Theory.” Collection. doi:10.4135/9781412984317.

Piunovskiy, Alexey, and Yi Zhang. 2012. “The Transformation Method for Continuous-Time Markov Decision Processes.” Journal of Optimization Theory and Applications 154 (2): 691–712. doi:10.1007/s10957-012-0015-8.

Sutton, Richard S., and Andrew G. Barto. 1998. Reinforcement Learning: An Introduction. doi:10.1109/TNN.1998.712192.

Eric A. Hansen, Daniel S. Bernstein, Shlomo Zilberstein. 2004. Dynamic programming for partially observable stochastic games. Paper link.

  1. It is not common to explicitly statea policy or a set of policies as part of the environment definition. However, this is how dec-POMDPs were originally introduced by the authors, the original definitions are kept at the expense of consistency. 

Related article

A Historical Introduction: Self-Play in Reinforcement Learning

Introduction ------------ In the classical single agent reinforcement learning (RL) scenarios described by [(Sutton 1999)](https://papers.nips.cc/paper/1713-policy-gradient-methods-for-reinforcement-learning-with-function-approximation.pdf), [where...

Read more

A Review: Policy Gradient Algorithms

Policy gradient theorem ----------------------- Let’s assume an stochastic environment $$\xi$$ from which to sample states...

Read more

Classification of RL algorithms

Every RL algorithm attempts to learn an optimal policy for a given environment . So...

Read more