Skip to main content
QUICK REVIEW

[Paper Review] Constrained Reinforcement Learning Has Zero Duality Gap

Santiago Paternain, Luiz F. O. Chamon|arXiv (Cornell University)|Oct 29, 2019
Reinforcement Learning in RoboticsComputer Science29 references10 citations
TL;DR

This paper establishes that constrained reinforcement learning (CRL) problems have zero duality gap when policies are described by a general class of distributions, meaning the dual problem is convex and yields the exact optimal solution. The authors further show that this result holds approximately for parametrized policies, such as neural networks, and prove that primal-dual algorithms converge to the optimal solution under mild assumptions.

ABSTRACT

Autonomous agents must often deal with conflicting requirements, such as completing tasks using the least amount of time/energy, learning multiple tasks, or dealing with multiple opponents. In the context of reinforcement learning~(RL), these problems are addressed by (i)~designing a reward function that simultaneously describes all requirements or (ii)~combining modular value functions that encode them individually. Though effective, these methods have critical downsides. Designing good reward functions that balance different objectives is challenging, especially as the number of objectives grows. Moreover, implicit interference between goals may lead to performance plateaus as they compete for resources, particularly when training on-policy. Similarly, selecting parameters to combine value functions is at least as hard as designing an all-encompassing reward, given that the effect of their values on the overall policy is not straightforward. The later is generally addressed by formulating the conflicting requirements as a constrained RL problem and solved using Primal-Dual methods. These algorithms are in general not guaranteed to converge to the optimal solution since the problem is not convex. This work provides theoretical support to these approaches by establishing that despite its non-convexity, this problem has zero duality gap, i.e., it can be solved exactly in the dual domain, where it becomes convex. Finally, we show this result basically holds if the policy is described by a good parametrization~(e.g., neural networks) and we connect this result with primal-dual algorithms present in the literature and we establish the convergence to the optimal solution.

Motivation & Objective

  • Address the challenge of balancing conflicting objectives in reinforcement learning without manual reward shaping or hyperparameter tuning.
  • Overcome the limitations of multi-objective RL, where reward function design is difficult and goals interfere during training.
  • Provide theoretical justification for primal-dual algorithms in constrained RL, which are widely used but lack convergence guarantees.
  • Establish that the duality gap is zero for general policy distributions, enabling exact solution via convex dual optimization.
  • Extend the zero duality gap result to parametrized policies, such as neural networks, showing convergence is preserved under universal approximation.

Proposed method

  • Formulate constrained RL as a constrained Markov decision process (CMDP) with multiple reward functions and hard constraints.
  • Apply Lagrangian duality to transform the non-convex primal problem into a dual problem that is convex in the dual variables (Lagrange multipliers).
  • Prove that the duality gap is zero for policies in a general distribution class, implying exact equivalence between primal and dual solutions.
  • Extend the zero duality gap result to parametrized policies by showing that the suboptimality bound depends on the approximation error of the policy class.
  • Leverage this result to analyze primal-dual algorithms, proving convergence to the optimal solution under mild assumptions.
  • Use gridworld navigation experiments to empirically validate the duality gap behavior under exact and approximate primal solves.

Experimental results

Research questions

  • RQ1Does constrained reinforcement learning have a zero duality gap when policies are described by a general class of distributions?
  • RQ2Can the zero duality gap result be extended to parametrized policies, such as neural networks, and how does approximation error affect the gap?
  • RQ3Do existing primal-dual algorithms for constrained RL converge to the optimal solution, and under what conditions?
  • RQ4How does the choice of policy parametrization (e.g., state aggregation) affect the duality gap and learning performance?
  • RQ5Is there an equivalence between constrained RL and regularized RL (manual multiplier selection) in terms of the Pareto optimal front?

Key findings

  • The constrained RL problem has zero duality gap for policies in a general distribution class, meaning the dual problem yields the exact optimal solution.
  • For parametrized policies, such as neural networks, the duality gap is bounded by the approximation error of the policy class, and the bound vanishes as the class becomes a universal approximator.
  • Primal-dual algorithms for constrained RL converge to the optimal solution under mild assumptions, due to the zero duality gap in the dual domain.
  • Empirical results show that exact primal maximization (e.g., via Dijkstra’s algorithm) leads to a vanishing duality gap, while approximate primal steps (e.g., policy gradient) result in a duality gap that converges to a neighborhood of zero.
  • Coarser policy parametrizations (e.g., state aggregation) lead to larger duality gaps, and in extreme cases (e.g., very coarse), the agent fails to learn a feasible policy.
  • The theoretical framework establishes equivalence between constrained RL and regularized RL in terms of the Pareto optimal front, validating the use of dual methods as a principled alternative to manual reward weighting.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.