Reinforcement Learning With Non-Cumulative Objective

Wei Cui, Wei YuIEEE Transactions on Machine Learning in Communications and Networking 2023

Abstract

Standard reinforcement learning (RL) frameworks are built upon the objective of maximizing the cumulative sum of rewards over time. While effective for many tasks, this "summation" paradigm is ill-suited for various real-world engineering challenges, such as network routing where the bottleneck (minimum) capacity determines performance. This paper generalizes the Bellman equation by replacing the standard addition operator with a generalized operation $g(\cdot, \cdot)$. We provide theoretical convergence guarantees and demonstrate that this approach enables agents to directly optimize for non-cumulative objectives like bottleneck rates and harmonic means. Experimental results across graph routing, wireless ad hoc networks, and Atari games show that our generalized RL framework outperforms standard cumulative methods in these specialized domains.

Introduction

In the standard Reinforcement Learning (RL) paradigm, an agent interacts with an environment to maximize the expected sum of future rewards. This cumulative objective is the foundation of the Bellman equation and has led to significant successes in games and robotics. However, many critical engineering problems do not fit this mold. For instance, in communication networks, the throughput of a path is limited by its slowest link—the "bottleneck." Maximizing the sum of link speeds is often irrelevant if a single link creates a severe congestion point.

Previously, researchers attempted to address these non-cumulative objectives by engineering complex reward functions to mimic the desired behavior within a summation framework. Such "reward hacking" is often inefficient and difficult to tune. This paper proposes a more fundamental shift: modifying the core mathematics of RL to handle non-cumulative objectives directly.

Methodology: Generalized Bellman Updates

The authors propose a Generalized Bellman Update Rule. In standard Q-learning, the update is defined as: $$Q(s, a) \leftarrow r + \gamma \max_{a'} Q(s', a')$$

We replace the addition operator ($+$) with a generalized operation $g$: $$Q(s, a) \leftarrow g(r, \gamma \max_{a'} Q(s', a'))$$

Theoretical Foundations

The paper establishes two key theorems to validate this approach:

  1. Theorem 1 (Convergence): If the operator $g$ is a contraction mapping, the algorithm is guaranteed to converge to a unique fixed point.
  2. Theorem 2 (Optimality): For deterministic environments, if $g$ is monotonic, the algorithm will converge to the globally optimal policy for the specified objective.

Specific Objective Functions

The framework supports various non-cumulative objectives by defining $g$ appropriately:

  • Bottleneck (Min-Reward): $g(r, Q) = \min(r, \gamma Q)$
  • Maximum Reward: $g(r, Q) = \max(r, \gamma Q)$
  • Harmonic Mean: $g(r, Q) = [1/r + 1/(\gamma Q)]^{-1}$

By modifying the Bellman equation directly, the authors enable the use of efficient Temporal Difference (TD) learning and bootstrapping, which are significantly faster than Monte-Carlo estimation for these types of problems.

Experimental Evaluation

The proposed approach was evaluated across several domains:

Graph Routing

The authors used a synthetic directed graph to test the "bottleneck" objective. The goal is to find the path from source $s$ to sink $t$ with the highest minimum edge weight.

Figure 3: A directed graph for the routing task. Standard RL (Q-Sum) often selects paths with high total weight but low bottleneck capacity, whereas Q-Min identifies the path with the highest minimum edge weight.

In the graph shown in Figure 3, the optimal bottleneck path is $s \to b \to a \to d \to t$ with a bottleneck value of 5. A standard Q-Sum agent, however, might prefer a path with a higher total sum but a lower bottleneck value, such as $s \to b \to a \to c \to t$ (sum 24, bottleneck 3).

Wireless Ad Hoc Networks

A more complex multi-agent RL (MARL) scenario involved a 1000m x 1000m region with multiple data flows. Using the ITU-1411 path-loss model, the agents had to allocate frequency bands to maximize the bottleneck throughput across all flows.

Atari and Classical RL

The framework was also tested on CartPole and Atari Breakout. In these cases, the objective was redefined as "avoiding failure" (a bottleneck objective on survival time) rather than maximizing a score.

Key Results and Insights

  • Superior Routing: In the graph task, the Q-Min algorithm successfully found the global optimal flow rate of 5, while Q-Sum settled for a sub-optimal path with a bottleneck of 4.
  • Wireless Efficiency: In the wireless simulation, Q-Min achieved a bottleneck rate of 1.76 Mbps, vastly outperforming the standard Q-Sum's 0.21 Mbps. Furthermore, the generalized TD approach converged much faster than Monte-Carlo baselines.
  • Behavioral Shifts: In Atari Breakout, the Q-Min agent adopted a "survivalist" strategy. While it scored fewer points than the Q-Sum agent, it became significantly more adept at keeping the ball in play for extended periods.
Figure 1: Learning curves comparing Q-Min and Q-Sum performance over training steps. The generalized approach shows competitive and often superior performance in optimizing for non-cumulative objectives.

Discussion and Limitations

A key insight of this work is that the discount factor $\gamma$ takes on a new meaning in non-cumulative contexts. In a bottleneck scenario, $\gamma$ acts to "postpone" negative events, effectively encouraging the agent to maximize the time until a failure state is reached.

However, some limitations remain. The proof for global optimality currently requires a deterministic Markov Decision Process (MDP). In stochastic environments, the generalized update may not perfectly capture the expected value of the objective. Additionally, in multi-agent settings, partial observability can complicate the convergence to a global optimum.

Conclusion

By generalizing the Bellman equation, this work provides a robust framework for applying RL to a wide array of engineering problems that do not conform to cumulative reward structures. This approach maintains the efficiency of TD learning while enabling the optimization of complex objectives like bottlenecks and harmonic means, opening new avenues for RL in network optimization and beyond.

Summary updated

BibTeX
@misc{cui2023reinforcement,
  author = {Wei Cui and Wei Yu},
  title = {{Reinforcement Learning With Non-Cumulative Objective}},
  year = {2023},
  eprint = {2307.04957},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.04957},
}
Figure