Abstract
Reward-Weighted Regression (RWR) is a well-established iterative Reinforcement Learning (RL) algorithm based on the Expectation-Maximization (EM) framework. While RWR is recognized for its monotonic policy improvement, its global convergence properties have remained theoretically unverified. This paper provides the first formal proof that RWR converges to a global optimum in general compact settings when function approximation is absent. Additionally, for finite state and action spaces, the authors establish an R-linear convergence rate for the state-value function.
Introduction
In the Reinforcement Learning community, Reward-Weighted Regression (RWR) has long been a staple for continuous control tasks, particularly in robotics. Its appeal lies in its stability; based on the EM framework, it guarantees that each policy update will either improve the current policy or maintain its performance. However, a critical question has persisted: does this monotonic improvement lead to the global optimum, or can the algorithm become trapped in local maxima?
Štrupl et al. address this gap by providing a rigorous mathematical foundation for RWR's global convergence. By analyzing the algorithm in the "tabular" or exact setting, they isolate the fundamental dynamics of the EM-based update rule and prove that it eventually identifies the optimal strategy.
Theoretical Framework
The authors derive a closed-form solution for the RWR update, where the new policy is defined by weighting the previous policy by the action-value function ($Q$) and normalizing by the state-value function ($V$).
To handle the complexities of continuous state and action spaces, the proof utilizes "weak convergence in topological factors." This approach demonstrates that even as the optimal policy might converge toward a Dirac delta function (selecting a single optimal action), the sequence of RWR-generated policies consistently concentrates its probability mass around that optimum.
A significant finding involves the role of reward transformations. While practitioners often use non-linear "squashing" functions (like $e^R$) to stabilize learning, the authors prove that such transformations can inadvertently shift the global optimum. Consequently, they establish that linear transformations are necessary to preserve the integrity of the original optimization problem and ensure convergence to the true global maximum.
Empirical Validation
To support their theoretical proofs, the authors conducted experiments in a modified four-room gridworld domain. In this environment, an agent must navigate from the top-left corner to a goal in the bottom-right. To satisfy the algorithm's requirement for positive rewards, the goal provides a reward of 1.0, while all other states provide a small positive reward of 0.001.
As shown in the experimental results in Figure 1, the Root-Mean-Squared Value Error (RMSVE) consistently decays toward zero across multiple random initializations. This empirical evidence aligns with the theoretical prediction of monotonic improvement and eventual global convergence. The state-value function ($V$) smoothly approaches the optimal values, as visualized in the heatmap.
Key Results and Convergence Rates
The primary contribution of this work is the proof of global convergence: for any initial policy with full support over the action space, RWR will converge to the optimal value functions ($V^*$ and $Q^*$) and an optimal policy ($\pi^*$).
Furthermore, the paper quantifies the speed of this convergence:
- Finite MDPs: The convergence is R-linear, meaning the error $|V^* - V_n|_\infty$ is bounded by a sequence that decreases at a constant linear rate.
- Continuous Spaces: Convergence is guaranteed but may be sub-linear, potentially slowing down as the policy approaches the optimum.
The authors also highlight that policy improvement at each step is driven by the variance of the action-value function under the current policy. As long as there is variance—indicating that some actions are superior to others—the algorithm will continue to improve.
Conclusion and Future Work
This research fills a major theoretical void in EM-based Reinforcement Learning. By proving global convergence for RWR, it provides practitioners with the assurance that the algorithm is fundamentally capable of finding optimal solutions.
However, the current proof assumes an exact setting without function approximation. In practical applications involving deep neural networks, approximation errors are inevitable. Future research directions include extending these proofs to specific classes of value function approximators, investigating RWR in off-policy settings with importance sampling, and developing automated methods for determining optimal linear reward transformations.
Summary updated