Sample-Efficient Constrained Reinforcement Learning with General Parameterization

We consider a constrained Markov Decision Problem (CMDP) where the goal of an agent is to maximize the expected discounted sum of rewards over an infinite horizon while ensuring that the expected discounted sum of costs exceeds a certain threshold. Building on the idea of momentum-based acceleration, we develop the Primal-Dual Accelerated Natural Policy Gradient (PD-ANPG) algorithm that ensures an $\epsilon$ global optimality gap and $\epsilon$ constraint violation with $\tilde{\mathcal{O}}((1-\gamma)^{-7}\epsilon^{-2})$ sample complexity for general parameterized policies where $\gamma$ denotes the discount factor. This improves the state-of-the-art sample complexity in general parameterized CMDPs by a factor of $\mathcal{O}((1-\gamma)^{-1}\epsilon^{-2})$ and achieves the theoretical lower bound in $\epsilon^{-1}$.

Paper

Similar papers

Peer review

Reviewer NWcj6/10 · confidence 4/52024-07-04

Summary

The paper studies constrained Markov decision processes. Using momentum acceleration, the paper develops a primal-dual natural policy gradient-based algorithm and shows that it achieves an \epsilon global optimality with O(\epsilon^-3) samples. The policy class considered in the paper is the generic Fisher non-degenerate policies.

Strengths

* The paper is the first in the literature that derives the O(\epsilon^-3) sample complexity for constrained MDP under more general policy parameterizations than the softmax. * The presentation of theoretical results are clear and easy to follow. I appreciate that the author presents a complete flow of proof in the main body of the paper.

Weaknesses

I mainly have the following concern, and if it can be addressed, then I am willing to adjust my rating. In literature [25], a sample complexity of O(\epsilon^-2) is derived for unconstrained MDP. To me, it seems it is not impossible to translate this result to the constrained setting by adding a primal-dual component, and if this can be done, I think the sample complexity should be O(\epsilon^-3) or so. I wonder could the author discuss the feasibility of this generalization (and perhaps the underlying challenges if it is not generalizable).

Questions

* I hope the author could discuss the concern I raised in the weakness section. * Since the paper actually studies Fisher non-degenerate policies, I think a more common (and precise) way is to directly use the name "Fisher non-degenerate policies". Using the name "general parameterization" is a little bit misleading.

Rating

6

Confidence

4

Soundness

2

Presentation

3

Contribution

2

Limitations

The author has discussed the limitation of the paper briefly in the conclusion section.

Reviewer rE2r6/10 · confidence 4/52024-07-07

Summary

The paper considers the constrained MDP setting. Given a target error of $\epsilon > 0$, the paper provides a primal-dual algorithm on that will return an epsilon optimal policy making at most epsilon constraint violations. The claim is that the algorithm solves such problem with O($\epsilon^{-3}$) sample complexity.

Strengths

The idea of incorporating momentum acceleration to a primal-dual algorithm seems interesting.

Weaknesses

The Slater's constant $c_{slater}$ is missing from the big O-notations in your $H$ and $K$ terms. The slater's constant is an unique quantity in CMDP and should be clearly stated in your sample complexity. In the relaxed-feasibility problem, where the algorithm returns a policy that is allowed to have some small constraint violation (such as epsilon constraint violation), the Slater's constant can be smaller than the target error epsilon. In this case, the Slater's constant can be set to be the $\epsilon$. Your paper is in this relaxed-feasibility setting. By writing the Slater's constant $c_{slater}$ explicitly in the big O-notations, we see that $H = \mathcal{O}((1-\gamma)^{-3} \epsilon^{-1} c_{slater}^{-1})$ and $K = \mathcal{O}((1-\gamma)^{-4} \epsilon^{-2} c_{slater}^{-2})$. If the Slater's constant = epsilon, then we see that $H \propto \epsilon^{-2}$ and $K \propto \epsilon^{-4}$ making the total sample complexity to be proportional to $\epsilon^{-6}$. Then, the result is independent of the Slater's constant.

Questions

Your result stated in Lemma 6 is based on a previous result provided by [6]. In [6], the result relies on an oracle that, when given an input, provides a noisy unbiased gradient of a function. However, your algorithm uses a sampling procedure to obtain a gradient estimate, which appears to rely on access to a generative model (Kakade (2003) On the sample complexity of reinforcement learning). Are you considering the setting of having access to a generative model, or are you assuming access to an oracle as in [6], for which your Lemma 6 is based? If you are considering the setting of having access to a generative model, the paper should address the statistical challenges associated with sampling, and the sample complexity should include the number of queries to a simulator, incorporating $T$ into the sample complexity. Therefore, the result from [6] in Lemma 6 does not immediately apply. If you are considering the setting of having access to an oracle, it is not clear why Algorithm 1 is necessary.

Rating

6

Confidence

4

Soundness

3

Presentation

3

Contribution

3

Limitations

By stating the Slater's constant in the sample complexity, the sample complexity is in the order of epsilon to the minus 6 instead of minus 3 so to be independent of the Slater's constant. See comments in the Weaknesses section.

Reviewer rE2r2024-08-07

The problem that you are solving is relaxed feasibility, where the returned policy parameterized by $\theta_0,...,\theta_{K-1}$ is allowed to make some constraint violation, i.e. $E [ 1/K \sum_{k=0}^{K-1} J^{\pi^*}\_{c,rho} - J\_{c,\rho} (\theta_k) ] \leq O(c_{slater}) + \epsilon $ (this is stated in your Theorem 1). In this case, the target error $\epsilon$ can be chosen to be large and because you are allowing for some constraint violation, it is appropriate to assign $c_{slater}$ to $\epsilon$. In doing so, then the bound will be independent of the slater's constant, but it will inflate the bound to $\epsilon^{-6}$. The effect of the slater's constant should be reflected in the bound, and not be treated as a constant. If other papers treat the slater's constant as a constant, it doesn't mean it is appropriate to do so. Your H and K are missing the slater's constant and ignoring its effect. Having slater's constant also differentiates CMDP from MDP, for more details, please see Vaswani, S., Yang, L., and Szepesvári, C. (2022). Near-optimal sample complexity bounds for constrained mdps. I ask the authors to state these distinctions more clearly.

Authorsrebuttal2024-08-08

Response to the Comment

Thank you for the comment. We would like to clarify the following points. **P1:** Theorem 1 says that the expected objective optimality gap and the constraint violation are of the following form. $$ \mathrm{Optimality Gap}\leq \sqrt{\epsilon_{\mathrm{bias}}} + \epsilon,$$ $$\mathrm{ConstraintViolation} \leq (1-\gamma)c_{\mathrm{slater}} \sqrt{\epsilon_{\mathrm{bias}}} + \epsilon \overset{(a)}{\leq} \sqrt{\epsilon_{\mathrm{bias}}} + \epsilon $$ where inequality (a) follows from the fact that $c_{\mathrm{slater}}\in (0, \frac{1}{1-\gamma}]$ (see Assumption 1). Note that both $\epsilon_{\mathrm{bias}}$ and $c_{\mathrm{slater}}$ are problem-dependent constants and have no functional dependence on $\epsilon$. We believe that our current phrasing "our algorithm achieves $\epsilon$ optimality gap and $\epsilon$ constraint violation" is the source of this confusion. Instead, if we modify it to "our algorithm achieves $\epsilon$ optimality gap and $\epsilon$ constraint violation up to a factor of $\sqrt{\epsilon_{\mathrm{bias}}}$", the impact of both the problem-dependent constants and $\epsilon$ are separately acknowledged, and one need not force them to be of the same order. It also emphasizes the fact that due to incompleteness of the parameterized policy class i.e., $\epsilon_{\mathrm{bias}}>0$, it is impossible to reach arbitrarily close to the optimal point, no matter how small $\epsilon$ is chosen. Unlike complete policy classes such as direct tabular parameterization (where $\epsilon_{\mathrm{bias}}=0$), it is one of the well-known disadvantages of general parameterization. **P2:** We also acknowledge the fact that the choice of $H$, $K$, and the overall sample complexity is dependent on $c_{\mathrm{slater}}$. Currently, such dependence is shown only in the appendix. We can explicitly state this dependence in the main text (Theorem 1) and make it visible to the readers. **P3:** To make a fair comparison, we will modify Table 1 to show the impact of $c_{\mathrm{slater}}$ on the sample complexities provided by other existing works (if such explicit dependence is available in the paper).

Reviewer rE2r2024-08-12

To clarify, my intended point is as follows. As you mentioned, ConstraintViolation $\leq \sqrt{\epsilon_{bias}} + \epsilon$. The Slater's constant can be much smaller than this suboptimality bound of $\sqrt{\epsilon_{bias}} + \epsilon$, then it is reasonable to set $c_{slater} = \epsilon$. In this case, the sample complexity becomes independent of Slater's constant, but the sample complexity would then be $\propto \epsilon^{-6}$ since both $H$ and $K$ also depend on this Slater's constant. It's this distinction that I would like to emphasize.

Authorsrebuttal2024-08-12

Thanks a lot for this. We will provide explicit dependence of the result on Slater's constant in the final version as suggested. That way, the result can be seen in different asymptotes, including when epsilon is much smaller than Slater's constant or vice versa.

Reviewer rE2r2024-08-13

I thank the author for addressing my concern. I will increase the score to 6.

Reviewer c2f76/10 · confidence 2/52024-07-12

Summary

This paper studied the sample complexity of learning a discounted-reward MDP with a discounted cost constraint under a general policy parameterization. It proposes a policy-gradient-type of algorithm that combines natural policy gradient and an accelerating stochastic gradient descent algorithm proposed in [6]. Then the paper proves that with $O(1/\epsilon^3)$ samples, the policy learned by this algorithm violates the constraint by at most $\epsilon$, and is optimal up to $\epsilon_{bias} + \epsilon$ error, where $\epsilon_{bias}$ is a constant coming from policy parameterization. The sample complexity of this policy improves upon the prior SOTA, which was $O(1/\epsilon^4)$.

Strengths

The paper is well-written. The main contribution, the algorithm, the key idea of the proof and the proof structure are clearly presented. The improvement of sample complexity from $O(1/\epsilon^4)$ to $O(1/\epsilon^3)$ is non-trivial, following from a clever observation given in lemma 3. The analysis looks solid, though I do have questions about a few minor details, see the questions 1 and 2 below.

Weaknesses

1 The “sample efficient” in the title seems to overclaim the contribution of the paper, since there is still an order gap between the sample complexity of the algorithm in this paper, $O(\epsilon^{-3})$, and the lower bound, $O(\epsilon^{-2})$. 2 It is not entirely accurate to say that the algorithm achieves “$\epsilon$ global optimality gap” and “$\epsilon$ constraint violation”, as the actual bounds in Theorem 1 contain constant terms involving $\epsilon_{bias}$. Although $\epsilon_{bias}$ is common in the analysis of RL algorithms with general parameterizations, it is crucial to discuss whether they are tight and optimal, how they compare to the prior work, and whether they are truly negligible when the policy is parameterized by a neural net of a reasonable scale. At the very least, the sense in which your policy is epsilon-optimal should be clarified in a prominent part of the paper.

Questions

1 I believe the definition of L in (9) has a typo: the square should be inside the expectation, rather than outside the expectation, so that its gradient with respect to w is given by (10). Does this typo affect the proof? 2 The logic from (75) to (76) is not very clear. How did you get rid of the first term on LHS of (76), and where does $\lambda^*$ comes from?

Rating

6

Confidence

2

Soundness

3

Presentation

3

Contribution

3

Limitations

There is no negative social impact. A discussion of limitation is included in the submission.

Reviewer jftD6/10 · confidence 3/52024-07-13

Summary

The paper studies the sample complexity of the constrained Markov Decision Process (CMDP), and derives an algorithm that attains the $O(\epsilon^{-3})$ that improves the SOTA sample complexity bound for CMDP by a factor of $O(\epsilon^{-1})$.

Strengths

CMDP with general parameterization is a very challenging problem, and thus there have not been many papers making progress in this challenging setting compared to the tabular CMDP setting. The authors modify the classic primal-dual natural policy gradient (NPG) framework by leveraging an accelerated stochastic gradient descent (ASGD) method to improve the SOTA sample complexity bound by a factor of $O(\epsilon^{-1})$.

Weaknesses

Even though the authors claim they have improved the SOTA sample complexity bound for CMDP with general parameterization, I still think it is hard to say the authors have "beat" the previous results. $\epsilon$ is not the only factor that matters for the sample complexity bound for discounted infinite-horizon MDPs, since $\gamma$ is also another significant factor. Unfortunately, it seems that the authors' bound has a dependency of $O(1/(1-\gamma)^{-8})$, so that makes the sample complexity bound read $O(1/(1-\gamma)^8\epsilon^3)$. Compared to a prior work [1] which has a sample complexity bound of $O(1/(1-\gamma)^6\epsilon^4)$, it is clear the two bounds are not necessarily comparable due to one bound is superior in terms of the order of $\epsilon$ and the other superior in terms of the order of $\gamma$. Also, [1]'s algorithm has zero constraint violation while the authors' algorithm permits $O(\epsilon)$ constraint violation, which is a worse result. Hence, unless the authors can clarify their result has improvement in $\epsilon$ and $\gamma$ and constraint violations (or at least provide stronger justifications that their algorithm requires a smaller number of samples to achieve near-optimality), it is hard to evaluate the value of the authors' result. [1] Bai, Qinbo, Amrit Singh Bedi, and Vaneet Aggarwal. "Achieving zero constraint violation for constrained reinforcement learning via conservative natural policy gradient primal-dual algorithm." Proceedings of the AAAI Conference on Artificial Intelligence. Vol. 37. No. 6. 2023.

Questions

As mentioned, the major weakness of the paper is that you have overlooked the sample complexity bound's dependency in $\gamma$ and it seems you have a worse constraint violation result. Can you update Table 1 with sample complexity bounds having dependency in $\gamma$ and with constraint violations? More importantly, can you justify why your result has seemingly worse dependency in $\gamma$ and constraint violations?

Rating

6

Confidence

3

Soundness

3

Presentation

3

Contribution

3

Limitations

The major limitation of the paper is the lack of proper comparison of the sample complexity bounds with prior works.

Reviewer NWcj2024-08-09

I thank the author for the explanations. I am happy to increase my score to 6 : )

Reviewer c2f72024-08-12

I thank the authors for the answering all of my questions.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC