Abstract
Standard Markov Decision Processes (MDPs) are designed to maximize the expected cumulative reward. However, in many real-world applications—ranging from financial portfolio management to safety-critical engineering—decision-makers are equally concerned with the risk or variability of the outcome. This paper by Shie Mannor and John N. Tsitsiklis investigates the computational complexity and algorithmic possibilities of mean-variance optimization in finite-horizon MDPs. The authors demonstrate that while the introduction of variance constraints breaks the standard Bellman Principle of Optimality and introduces NP-hardness, the problem remains tractable through state augmentation and randomized policies.
Introduction
In the classical MDP framework, the objective is to find a policy $\pi$ that maximizes the expected sum of rewards $E[W]$. This problem is efficiently solvable using dynamic programming because it satisfies the Principle of Optimality: an optimal sequence of decisions consists of sub-decisions that are also optimal for their respective sub-problems.
In risk-sensitive contexts, a more appropriate objective is to maximize $E[W]$ subject to a constraint on the variance, $Var(W) \le v$, or to maximize a risk-adjusted objective such as $E[W] - \beta Var(W)$. Unlike expectation, variance is not an additive functional. The variance of a sum of rewards depends on the correlations between rewards at different time steps, which are influenced by the agent's policy. This non-additivity implies that a decision-maker might need to make "sub-optimal" choices in the short term to ensure the total variance of the trajectory remains within bounds, effectively breaking the recursive structure of standard dynamic programming.
Complexity and Hardness
The authors provide a rigorous complexity analysis of the mean-variance problem across different policy classes. By using reductions from the SUBSET SUM and 3SAT problems, they establish that finding an optimal policy is NP-hard for finite-horizon MDPs.
A critical distinction is made between policy types:
- Markovian Policies: Decisions depend only on the current state and time. The authors prove that finding an optimal Markovian policy is strongly NP-hard, meaning it remains difficult even if the rewards are small integers.
- History-based Policies: Decisions depend on the entire sequence of past states and actions. While still NP-hard, these admit more flexible algorithmic solutions.
- Augmented-State Policies: Decisions depend on the current state and the cumulative reward earned so far.
The Role of Randomization and Information
One of the most significant insights of the paper is the necessity of randomization. In standard MDPs, there is always a deterministic optimal policy. However, in mean-variance optimization, a randomized policy can strictly outperform any deterministic one. Randomization allows the agent to "blend" different trajectories to achieve a specific mean-variance profile that no single deterministic path could provide.
Furthermore, the authors establish an equivalence between randomized history-based policies and randomized augmented-state policies. This is a vital result for algorithm design: it implies that an agent does not need to remember the entire history of the process to act optimally; they only need to know the current state and the total reward accumulated to date.
Algorithmic Framework
Despite the NP-hardness, the authors propose several paths toward practical solutions:
1. Multi-Objective Linear Programming
While variance $Var(W) = E[W^2] - (E[W])^2$ is non-linear, the first and second moments ($E[W]$ and $E[W^2]$) are linear functions of the state-action occupancy measures. By treating the problem as a multi-objective optimization over these two moments, the authors show that the set of achievable $(E[W], E[W^2])$ pairs is convex when randomized policies are allowed. This allows the use of Linear Programming (LP) techniques to find the Pareto frontier of risk and return.
2. State Augmentation and Discretization
To handle the dependency on cumulative rewards, the authors suggest augmenting the state space with the current sum of rewards. Because this can lead to an infinite or prohibitively large state space, they introduce a discretization scheme. By rounding rewards to a grid, they develop a $(\epsilon, \nu)$-approximation algorithm. This algorithm finds a policy that is within $\epsilon$ of the optimal variance for a given mean, with a runtime that is polynomial in the number of states and $1/\epsilon$, though it remains "pseudopolynomial" relative to the magnitude of the rewards.
Conclusion
The work of Mannor and Tsitsiklis clarifies why risk-averse reinforcement learning is fundamentally more difficult than standard expected-value maximization. By proving that the problem is NP-hard, they shift the focus from seeking perfect, fast algorithms to developing robust approximation schemes. Their findings emphasize that in the face of risk, information (in the form of accumulated rewards) and randomization are not just useful, but essential components of an optimal decision-making strategy.
Summary updated