betaFeedback

WorksComputer Science

Convex-Concave Reinforcement Learning

Abstract

Policy learning drives many of the most consequential and heavily-invested applications of reinforcement learning today. Yet the core optimization problem it rests on (maximizing expected return) is notoriously non-convex, even under a direct policy parameterization, and the field has largely responded by avoiding it: optimizing convex surrogate approximations of the return under trust-region constraints (NPG, TRPO, PPO, AWR). We show that this seemingly unstructured problem is not actually structureless. In log-density-ratio coordinates y:=log⁡[π/πn]y := \log[π/π_n], the exact per-iteration objective, computable via per-decision importance sampling (PDIS), is a difference-of-convex-constrained difference-of-convex (DC-constrained DC) program. This structure lets us move beyond surrogate approximations: it recovers CPI, NPG, TRPO, and AWR as special cases along interpretable axes, and it opens a multi-step axis kk that couples consecutive decisions. We solve the per-iteration program with sequential convex programming (SCP), the standard solver for difference-of-convex problems, and establish inner-loop descent and limit-point stationarity for the theoretical algorithm, together with a conditional outer-loop performance bound. Empirically, multi-step Convex-Concave RL (CCRL) wins on diagnostic MDPs where credit must propagate across a horizon (its advantage growing with the dependency length), is competitive with a tuned PPO on classic control, and on a clinically motivated, stochastic, mid-horizon sepsis simulator converges markedly faster than tuned PPO to the same near-optimal survival, with an 11.3% higher area under the training curve. The code is publicly available at: https://github.com/UMass-SCALAR-Lab/Convex-Concave-RL

Contribution(s)

  1. On-policy methods perform policy search within a trust region of the current policy, typically replacing the non-convex objective of exact return improvement with a convex surrogate. We show that, using per-decision importance sampling (PDIS) and log policy ratios, the exact improvement objective can be written as a difference of convex functions. This formulation recovers convex surrogate methods (CPI, NPG, TRPO, AWR) while extending the policy updates to account for the combined effects of consecutive decisions.

Context: The connections to existing methods concern their surrogate objectives and trust-region constraints, not every detail of their updates. The objective equals the exact return difference at the full horizon, while PDIS truncation trades bias for lower variance.

  1. We adapt sequential convex programming (SCP) to policy improvement through tangent-plane steps and normalization that keep theoretical iterates valid. We prove an O(1/R)O(1/R) squared-step bound with stationary limit points under a constraint qualification, and conditional geometric contraction of full-horizon policy updates toward an optimality neighborhood.

Context: The analysis uses full-support tabular policies and exact convex subproblem solves. Outer contraction further requires bounded state coverage and a near-global inner solution. The practical algorithm proposed in the paper is outside these guarantees.

  1. CCRL learns faster than tuned convex surrogate methods on delayed-reward diagnostic MDPs, and its advantage grows with the number of dependent decisions. CCRL is competitive with tuned PPO on four classic-control tasks and converges significantly faster on a stochastic healthcare simulator.

Context: All methods are tuned under matched interaction budgets. The classic-control results expose a tradeoff: as kk grows, noisy advantage estimates and increasing PDIS variance can outweigh the benefit of coupling more decisions.

Introduction

Learning a good policy is a defining problem for reinforcement learning (RL) researchers and an increasingly consequential one for industrial practitioners. As investment in AI grows, improving how effectively systems learn policies is an important route to stronger capabilities. The workhorse behind many of RL’s recent successes, in robotics and increasingly in large language models, is policy-gradient optimization ([27, 29, 30]), and any structural insight into how it works could translate directly into more efficient and reliable learning.

At its core, policy-gradient methods optimize the expected return J(π)J(\pi) of a policy π\pi, an objective that is non-convex even under the direct policy parameterization. NPG and TRPO use the convex single-step Conservative Policy Iteration (CPI) surrogate ([13, 12, 27]); PPO clips a related ratio objective ([29]), while off-policy AWR derives its regression target from a constrained improvement program ([23]). This surrogate is a biased proxy for JJ, and optimizing it typically improves the policy by considering one decision timestep at a time. On problems where several timesteps couple to determine the outcome, this single-step approach can move the policy away from higher-return behavior until later advantage estimates reveal a better direction. As a workaround, the multi-step dependence is instead carried by the value or advantage estimates that feed the update, while the policy-optimization objective itself remains a single-step proxy [31, 28]. In this work we confront this seemingly unyielding non-convex optimization directly, through a structured reformulation of the RL objective.

Our idea is to optimize the exact per-iteration improvement rather than a surrogate of it. The return difference J(π)−J(πn)J(\pi) - J(\pi_n) is estimable from on-policy trajectories by per-decision importance sampling (PDIS) [24], and is non-convex in π\pi only because it contains products of importance ratios. Re-expressing each policy through its log-ratio to the current one, y:=log⁡(π/πn)y := \log(\pi/\pi_n), converts these products into sums of exponentials and decomposes the objective as a difference of two convex functions, a difference-of-convex (DC) program. We call the resulting framework Convex-Concave Reinforcement Learning (CCRL).

The formulation enables three important mechanisms. First, it makes the exact objective directly optimizable, rather than only through a surrogate. Second, it unifies existing methods: at horizon k=1k = 1 the program reduces to the single-step convex surrogate optimized by CPI, NPG, TRPO, PPO, and AWR. Third, it exposes the horizon kk as a free parameter: k≥2k \ge2 couples several consecutive decisions within a single update, so one update can credit an action for outcomes several steps later, and k=Hk = H, the full horizon, optimizes the exact, unbiased return. We solve this program by sequential convex programming (SCP), the standard method for DC problems (Thi & Dinh, 2018) by adapting it to preserve a valid policy each iteration.

In each SCP round, we linearize the concave part of the objective and the policy normalization constraint, solve the resulting convex subproblem, and renormalize its solution to obtain a valid policy. After the final SCP round, the log-density ratios y∗y^{*} specify the next policy. For the theoretical algorithm, this procedure improves the kk-step truncated PDIS objective monotonically. When the window spans the full horizon, that objective equals the exact return difference, so the same result gives monotone improvement in expected return. Each round, however, requires a convex solve, which is the computational cost of this approach.

For practical use, we simplify the algorithm at the cost of the theoretical guarantees: we normalize the policy only after the final SCP round and clip log-density ratios to control multi-step importance weights (Section 6). The resulting algorithm retains the multi-step objective, allowing each update to account for how consecutive decisions jointly affect return. In the risky corridor, CCRL learns faster than the tuned convex surrogate approaches (TRPO, AWR, and PPO); in increasingly deep risky chains, its advantage over PPO grows with dependency length. On four classic-control tasks, it is competitive with tuned PPO, although longer windows add variance without a matching credit-assignment gain. On a stochastic, mid-horizon spikes simulator, CCRL converges faster than tuned PPO, with an 11.3% higher area under the training curve.

Contributions.

  1. We formulate on-policy improvement within a trust region around the sampling policy as a difference-of-convex (DC) program in log-sum-exp functions. At the full horizon, its objective equals the exact return difference; at a single step, it recovers the CPI surrogate underlying NPG, TRPO, PPO, and AWR. Between these cases, the formulation lets one policy update couple consecutive decisions (§ 4 and § 4.5).

  1. We adapt sequential convex programming (SCP) to policy improvement, using a tangent-plane constraint and normalization to keep each theoretical iterate a valid policy. For the tabular algorithm, we bound the smallest squared SCP step by O(1/R)O(1/R) and prove stationarity of limit points under a constraint qualification. Under additional coverage and inner-solution conditions, full-horizon policy updates contract geometrically toward a neighborhood of the optimum (§ 5 and § 6).

  1. On a diagnostic delayed-reward MDP, CCRL learns faster than tuned convex surrogate baselines (TRPO, AWR, and PPO); in deeper chains, its advantage over PPO grows as more deci-

sions must be coordinated. It is competitive with tuned PPO on four classic-control tasks and converges faster on a stochastic healthcare simulator (§ 7 and § 8).

The difference-of-convex view of policy optimization offers a structural handle on an objective long treated as intractable, and a principled route to policy-gradient methods that exploit multi-step dependencies for more efficient training.

Preliminaries

Markov decision process. For a set X\mathcal{X}, let Δ(X)\Delta(\mathcal{X}) denote the set of probability distributions over X\mathcal{X}. We work with a finite-horizon discounted MDP (Puterman, [25]) of horizon H<∞H < \infty, given by the tuple (S,A,p,r,γ,d0)(\mathcal{S}, \mathcal{A}, p, r, \gamma, d_0): a finite state set S\mathcal{S}, a finite action set A\mathcal{A}, a discount factor γ∈[0,1]\gamma\in[0, 1], and an initial-state distribution d0∈Δ(S)d_0 \in\Delta(\mathcal{S}). Capital letters denote random variables: St∈SS_t \in\mathcal{S} and At∈AA_t \in\mathcal{A} are the state and action at time tt, and Rt+1∈RR_{t+1} \in\mathbb{R} the reward that follows. The transition function p(s′∣s,a):=Pr⁡(St+1=s′∣St=s,At=a)p(s' \mid s, a) := \Pr(S_{t+1} = s' \mid S_t = s, A_t = a) gives the probability of moving to s′s', and the reward function r(s,a):=E[Rt+1∣St=s,At=a]r(s, a) := \mathbb{E}[R_{t+1} \mid S_t = s, A_t = a] the expected immediate reward. As is standard in the finite-horizon setting, the state includes the time index. A policy π:S→Δ(A)\pi: \mathcal{S} \to\Delta(\mathcal{A}) acts by π(a∣s):=Pr⁡(At=a∣St=s)\pi(a \mid s) := \Pr(A_t = a \mid S_t = s) and induces a distribution over trajectories τ=(S0,A0,…,SH)\tau= (S_0, A_0, \ldots, S_H), pπ(τ)=d0(S0)∏t=0H−1π(At∣St)p(St+1∣St,At)p_\pi(\tau) = d_0(S_0) \prod_{t=0}^{H-1} \pi(A_t \mid S_t) p(S_{t+1} \mid S_t, A_t). Write Gt:=∑j=tH−1γj−tRj+1G_t := \sum_{j=t}^{H-1} \gamma^{j-t} R_{j+1} for the discounted return from time tt. We define the state-value Vπ(s):=Eπ[Gt∣St=s]V^\pi(s) := \mathbb{E}_\pi[G_t \mid S_t = s], action-value Qπ(s,a):=Eπ[Gt∣St=s,At=a]Q^\pi(s, a) := \mathbb{E}_\pi[G_t \mid S_t = s, A_t = a], and advantage Aπ(s,a):=Qπ(s,a)−Vπ(s)A^\pi(s, a) := Q^\pi(s, a) - V^\pi(s). The policy performance is J(π):=ES0∼d0[Vπ(S0)]J(\pi) := \mathbb{E}_{S_0 \sim d_0}[V^\pi(S_0)]. We will also use the discounted state-visitation distribution dπ(s):=ηπ(s)/ZHd^\pi(s) := \eta^\pi(s)/Z_H, where ηπ(s):=∑t=0H−1γtPr⁡(St=s∣π)\eta^\pi(s) := \sum_{t=0}^{H-1} \gamma^t \Pr(S_t = s \mid\pi) is the un-normalized state-visitation count (the expected discounted number of visits to ss under π\pi), and ZH:=∑t=0H−1γtZ_H := \sum_{t=0}^{H-1} \gamma^t is its total mass.

Iterative on-policy improvement. Our setting is iterative on-policy improvement: at every iteration nn, the algorithm samples a batch of trajectories under the current policy πn\pi_n and uses those trajectories to produce an improved candidate π\pi, which then becomes πn+1\pi_{n+1}. The objective at each iteration is to maximize J(π)J(\pi), or equivalently (since J(πn)J(\pi_n) is constant), the one-step improvement J(π)−J(πn)J(\pi) - J(\pi_n). Because the candidate must be scored from πn\pi_n-data, the search is restricted to a neighborhood of πn\pi_n, where data-based estimates of J(π)−J(πn)J(\pi) - J(\pi_n) are reliable only when π\pi is close to πn\pi_n. The performance-difference lemma (Kakade & Langford, [13]) expresses the improvement J(π)−J(πn)J(\pi) - J(\pi_n) as an expectation of πn\pi_n’s advantages under the candidate policy’s distribution, in two equivalent forms:

J(π)−J(πn)=ZH⋅ES∼dπ[∑aπ(a∣S)Aπn(S,a)]=Eτ∼pπ[∑t=0H−1γtAπn(St,At)].J(\pi) - J(\pi_n) = Z_H \cdot\mathbb{E}_{S \sim d^\pi}\left[\sum_a \pi(a \mid S) A^{\pi_n}(S, a)\right] = \mathbb{E}_{\tau\sim p_\pi}\left[\sum_{t=0}^{H-1} \gamma^t A^{\pi_n}(S_t, A_t)\right].

Both forms require expectations under the candidate policy’s distribution (dπd^\pi or pπp_\pi), which are unavailable, whereas the data at hand is collected under πn\pi_n. There are broadly two routes forward.

Route 1: Distribution substitution (biased). We can substitute dπnd^{\pi_n} for dπd^\pi in the state-visitation form, yielding the data-estimable objective L(π;πn):=ES∼dπn[∑aπ(a∣S)Aπn(S,a)]L(\pi; \pi_n) := \mathbb{E}_{S \sim d^{\pi_n}}\left[\sum_a \pi(a \mid S) A^{\pi_n}(S, a)\right]. This is a biased proxy for J(π)−J(πn)J(\pi) - J(\pi_n), with bias that is small when π\pi is close to πn\pi_n and grows with the divergence. The substituted objective LL is precisely the CPI surrogate of Kakade & Langford [13], and the basis for the optimization target of NPG (Kakade, [12]), TRPO (Schulman et al., [27]), and PPO (Schulman et al., [29]).

Route 2: Distribution correction. We can correct the mismatch exactly by reweighting trajectories with importance-sampling ratios. With single-step IS ratio ρ(s,a):=π(a∣s)/πn(a∣s)\rho(s, a) := \pi(a \mid s)/\pi_n(a \mid s), the trajectory form becomes an exact expectation under pπnp_{\pi_n}:

References

  1. [1]Alekh Agarwal, Sham M. Kakade, Jason D. Lee, and Gaurav Mahajan. On the theory of policy gradient methods: Optimality, approximation, and distribution shift. Journal of Machine Learning Research, 22(98):1–76, 2021. URL https://jmlr.org/papers/v22/19-736.html.
  2. [2]Alekh Agarwal, Nan Jiang, Sham M. Kakade, and Wen Sun. Reinforcement learning: Theory and algorithms. Monograph draft, 2022. Available at https://rltheorybook.github.io/.
  3. [3]Carlo Alfano, Rui Yuan, and Patrick Rebeschini. A novel framework for policy mirror descent with general parameterization and linear convergence. In Advances in Neural Information Processing Systems, volume 36, 2023.arxiv.org/abs/2301.13139
  4. [4]Shun-ichi Amari. Differential-Geometrical Methods in Statistics, volume 28 of Lecture Notes in Statistics. Springer, 1985.
  5. [5]Boris Belousov and Jan Peters. f-divergence constrained policy improvement. arXiv preprint arXiv:1801.00056, 2017.arxiv.org/abs/1801.00056
  6. [6]Stephen Boyd and Lieven Vandenberghe. Convex Optimization. Cambridge University Press, 2004.
  7. [7]Stephen Boyd, Seung-Jean Kim, Lieven Vandenberghe, and Arash Hassibi. A tutorial on geometric programming. Optimization and Engineering, 8(1):67–127, 2007.DOI
  8. [8]Shicong Cen, Chen Cheng, Yuxin Chen, Yuting Wei, and Yuejie Chi. Fast global convergence of natural policy gradient methods with entropy regularization. Operations Research, 70(4):2563–2578, 2022. DOI: 10.1287/opre.2021.2151.DOI
  9. [9]Isabelle K. Delattre, Maya Hites, Pierre-Francois Laterre, Thierry Durguerian, Herbert Spapen, Pierre E. Wallemacq, Frédérique Jacobs, and Fabio Silvio Taccone. What is the optimal loading dose of broad-spectrum β-lactam antibiotics in septic patients? results from pharmacokinetic simulation modelling. International Journal of Antimicrobial Agents, 56(4):106113, 2020. DOI: 10.1016/j.ijantimicag.2020.106113.DOI
  10. [10]Romain Guilhaumou, Sihem Benaboud, Youssef Bennis, Claire Dahyot-Fizelier, Eric Dailly, Peggy Gandia, Sylvain Goutelle, Sandrine Lefevre, Nicolas Mongardon, Claire Roger, Julien Scala-Bertola, Florian Lemaitre, and Marc Garnier. Optimization of the treatment with beta-lactam antibiotics in critically ill patients—guidelines from the french society of pharmacology and therapeutics (SFPT) and the french society of anaesthesia and intensive care medicine (SFAR). Critical Care, 23:104, 2019. DOI: 10.1186/s13054-019-2378-9.
  11. [11]Nan Jiang and Lihong Li. Doubly robust off-policy value evaluation for reinforcement learning. In Proceedings of the 33rd International Conference on Machine Learning (ICML), volume 48, pp. 652–661. PMLR, 2016.arxiv.org/abs/1511.03722
  12. [12]Sham M. Kakade. A natural policy gradient. Advances in Neural Information Processing Systems, 14:1531–1538, 2001.
  13. [13]Sham M. Kakade and John Langford. Approximately optimal approximate reinforcement learning. In Proceedings of the 19th International Conference on Machine Learning (ICML), pp. 267–274, San Francisco, CA, USA, 2002. Morgan Kaufmann Publishers Inc.
  14. [14]Matthieu Komorowski, Leo A. Celi, Omar Badawi, Anthony C. Gordon, and A. Aldo Faisal. The artificial intelligence clinician learns optimal treatment strategies for sepsis in intensive care. Nature Medicine, 24(11):1716–1720, 2018.DOI
  15. [15]Guanghui Lan. Policy mirror descent for reinforcement learning: Linear convergence, new sampling complexity, and generalized problem classes. Mathematical Programming, 198(1):1059–1106, 2023.arxiv.org/abs/2102.00135
  16. [16]Gen Li, Yuting Wei, Yuejie Chi, and Yuxin Chen. Softmax policy gradient methods can take exponential time to converge. Mathematical Programming, 201(1–2):707–802, 2023.arxiv.org/abs/2102.11270
  17. [17]Thomas Lipp and Stephen Boyd. Variations and extension of the convex–concave procedure. Optimization and Engineering, 17(2):263–287, 2016. DOI: 10.1007/s1081-015-9294-x.DOI
  18. [18]Jincheng Mei, Chenjun Xiao, Csaba Szepesvári, and Dale Schuurmans. On the global convergence rates of softmax policy gradient methods. In International Conference on Machine Learning, pp. 6820–6829, 2020.arxiv.org/abs/2005.06392
  19. [19]Alberto Maria Metelli, Matteo Papini, Francesco Faccio, and Marcello Restelli. Policy optimization via importance sampling. In Advances in Neural Information Processing Systems, volume 31, 2018.
  20. [21]Ashvin Nair, Abhishek Gupta, Murtaza Dalal, and Sergey Levine. AWAC: Accelerating online reinforcement learning with offline datasets. arXiv preprint arXiv:2006.09359, 2020.arxiv.org/abs/2006.09359
  21. [22]Michael Oberst and David Sontag. Counterfactual off-policy evaluation with Gumbel-max structural causal models. In Proceedings of the 36th International Conference on Machine Learning (ICML), 2019.arxiv.org/abs/1905.05824
  22. [23]Xue Bin Peng, Aviral Kumar, Grace Zhang, and Sergey Levine. Advantage-weighted regression: Simple and scalable off-policy reinforcement learning. arXiv preprint arXiv:1910.00177, 2019.
  23. [24]Doina Precup, Richard S. Sutton, and Satinder Singh. Eligibility traces for off-policy policy evaluation. In Proceedings of the 17th International Conference on Machine Learning (ICML), pp. 759–766, 2000.
  24. [25]Martin L. Puterman. Markov Decision Processes: Discrete Stochastic Dynamic Programming. John Wiley & Sons, 2014.
  25. [26]Meisam Razaviyayn, Mingyi Hong, and Zhi-Quan Luo. A unified convergence analysis of block successive minimization methods for nonsmooth optimization. SIAM Journal on Optimization, 23(2):1126–1153, 2013.arxiv.org/abs/1209.2385
  26. [27]John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In Proceedings of the 32nd International Conference on Machine Learning (ICML), volume 37, pp. 1889–1897. PMLR, 2015.arxiv.org/abs/1502.05477
  27. [28]John Schulman, Philipp Moritz, Sergey Levine, Michael I. Jordan, and Pieter Abbeel. High-dimensional continuous control using generalized advantage estimation. In International Conference on Learning Representations (ICLR), 2016.arxiv.org/abs/1506.02438
  28. [29]John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.arxiv.org/abs/1707.06347
  29. [30]Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y.K. Li, Yang Wu, et al. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024.arxiv.org/abs/2402.03300
  30. [31]Richard S. Sutton. Learning to predict by the methods of temporal differences. Machine Learning, 3(1):9–44, 1988.DOI
  31. [32]Pham Dinh Tao and Le Thi Hoai An. Convex analysis approach to DC programming: Theory, algorithms and applications. Acta Mathematica Vietnamica, 22(1):289–355, 1997.
  32. [34]Lin Xiao. On the convergence rates of policy gradient methods. Journal of Machine Learning Research, 23(282):1–36, 2022. URL https://jmlr.org/papers/v23/22-0056.html.arxiv.org/abs/2201.07443

Paper details

vlnc:W_gtgzknq3
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 2

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents