Planning with General Objective Functions: Going Beyond Total Rewards

Ruosong Wang, Peilin Zhong, Simon S. Du, Ruslan Salakhutdinov, Lin F. YangNeurIPS 2020

Standard reinforcement learning (RL) operates on a fundamental assumption: the goal is to maximize the cumulative sum of rewards. However, real-world applications often demand more nuanced objectives. For instance, safety-critical control systems might need to maximize the minimum reward along a path to avoid catastrophic failures, while robust systems might aim to maximize the median reward to filter out sensor noise or outliers.

This paper introduces the first provably efficient algorithm for planning with a broad class of non-additive objective functions in deterministic systems. By identifying the specific mathematical conditions that make these problems tractable, the authors provide a pathway to optimize for complex goals like safety, robustness, and capacity constraints without falling victim to exponential computational costs.

The Challenge of Non-Markovian Objectives

In a standard Markov Decision Process (MDP), maximizing the cumulative reward ($\sum r_h$) allows us to leverage the Bellman equation. This principle of optimality breaks a long-term planning problem into a sequence of immediate, manageable decisions.

However, objectives like the minimum, median, or top-$K$ largest rewards are "non-Markovian." The value of a state under these objectives depends on the entire history of rewards collected up to that point, rather than just the current state. A naive approach to solving this would require augmenting the state space to remember every possible sequence of rewards. Because the number of possible trajectories grows exponentially with the planning horizon ($H$), this approach quickly becomes computationally intractable.

A Tractable Framework for General Objectives

To overcome this exponential explosion, the authors focus on tabular deterministic systems and propose a planning algorithm that works for any objective function $f(r_1, r_2, \dots, r_H)$ satisfying three key conditions:

  1. Symmetry: The order in which rewards are collected does not matter (e.g., $f(1, 0, 1) = f(0, 1, 1)$).
  2. Approximate Homogeneity: Small multiplicative changes in the collected rewards result in bounded, predictable changes to the final objective value.
  3. Insensitivity to Small Entries: Extremely small rewards (below a certain threshold $\delta$) can be treated as zero without significantly altering the final outcome.

The paper proves that these conditions are not just helpful—they are strictly necessary. Through the construction of "worst-case" MDP environments, the authors demonstrate that removing any of these three conditions makes the planning problem NP-hard, requiring an exponential number of queries ($2^H$) to find the optimal policy.

The Algorithm: Bridging Sketching and RL

The core innovation of the paper is a "layering" technique adapted from the field of sketching and streaming algorithms—methods traditionally used for processing massive data flows.

Instead of dealing with continuous reward values and exact sequences, the algorithm simplifies the problem through:

  • Discretization: Rewards are discretized into a logarithmic scale (e.g., powers of $1+\epsilon$).
  • State Augmentation via Histograms: Because the objective function is symmetric, the exact sequence of rewards is irrelevant. The algorithm only needs to track the multiset (or histogram) of rewards collected so far.
  • Dynamic Programming: By tracking discretized reward counts rather than exact sequences, the number of possible reward histograms grows polynomially with $H$, rather than exponentially. This "aha moment" collapses the search space, allowing the authors to apply a Bellman-like dynamic programming approach on the augmented state space.

Key Results and Theoretical Guarantees

The proposed algorithm successfully finds an $\epsilon$-optimal policy with a time complexity of $O((|S||A| + T) \cdot H^{\Theta(\log(1/\delta)/\bar{\delta})})$. While the exponent appears complex, it remains constant relative to the horizon $H$ for many common functions. This means the algorithm scales polynomially with the planning horizon.

Furthermore, the authors show that their framework provides a Polynomial-Time Approximation Scheme (PTAS) for several highly relevant families of functions. This includes all symmetric norms (such as $\ell_p$ norms) and Lipschitz continuous symmetric functions (such as the median or the sum of the top-$K$ rewards).

Limitations and Future Directions

As a foundational theoretical work, the paper establishes strong algorithmic complexity bounds but leaves room for future expansion:

  • Deterministic Systems Only: The current guarantees apply strictly to deterministic transitions. In stochastic environments, a single policy yields a distribution over many different reward sequences, making the histogram-based dynamic programming approach significantly more challenging.
  • Tabular Constraints: The algorithm relies on finite state and action spaces. Scaling this approach to continuous spaces will require integrating these insights with function approximation techniques, such as deep neural networks.
  • Known Objectives: The framework assumes the objective function $f$ is known and can be queried as a black box. Future research could explore how to "learn" these non-additive objectives directly from human preferences or expert demonstrations.

By proving that non-additive planning is tractable under the right conditions, this research opens the door to RL agents that can natively optimize for safety, robustness, and other complex, real-world criteria.

Summary updated

BibTeX
@inproceedings{wang2020planning,
  author = {Ruosong Wang and Peilin Zhong and Simon S. Du and Ruslan Salakhutdinov and Lin F. Yang},
  title = {{Planning with General Objective Functions: Going Beyond Total Rewards}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
}
Figure