Letting the Safety Check Set the Step Size in Accelerated Policy Gradient

Policy gradient methods train a softmax policy, a model that turns action scores into probabilities. They slow down in a characteristic way. As the policy becomes confident in the best action, its gradients shrink exponentially, so a fixed learning rate crawls at a $1/t$ rate. Two fixes have matured separately. The first is to grow the step size geometrically, for example $\eta_k \propto \gamma^{-k}$ with $\gamma$ the discount factor, so the step keeps pace with the flattening landscape. The second is momentum with a safety check: the algorithm proposes an extrapolated step and accepts it only if it actually improves the objective, otherwise it restarts from a plain gradient step. Accelerated Policy Gradient (Chen et al.) already combines the two. It pairs Nesterov momentum and a function-value restart with exponentially growing steps and proves linear convergence for tabular softmax policies under exact gradients. The obvious combination is therefore taken.

What that work leaves in place are the two parts that make the combination impractical. Its step schedule is fixed in advance and depends on problem constants such as $\gamma$. Its safety check needs the true return of the proposed policy, which in real reinforcement learning means fresh rollouts at every iteration. We propose to fix both at once. The safety check becomes a ratio test that reuses the current batch of trajectories to estimate the improvement of the proposed policy. The outcome of that test, not a preset formula, then drives the geometric growth of the step: grow on acceptance, shrink and reset momentum on rejection. In two sentences: the monotonicity test can be made nearly free by estimating improvement from the samples already collected. It can also double as the step-size controller, so the algorithm discovers its own geometric schedule instead of being told one.

Core Claim

The mechanism rests on one structural observation. By the performance-difference identity, the improvement of a new policy $\pi_{\theta'}$ over the current one $\pi_\theta$ equals an expectation of the current advantage under the new policy's state distribution. Replacing that distribution with the current one gives the familiar local surrogate

$$L_\theta(\theta') = \frac{1}{1-\gamma}\,\mathbb{E}_{s\sim d_\theta,\,a\sim \pi_\theta}\!\left[\frac{\pi_{\theta'}(a\mid s)}{\pi_\theta(a\mid s)}\,A_\theta(s,a)\right].$$

Here $d_\theta$ is the discounted state distribution of the current policy and $A_\theta$ is its advantage function, the gain from taking action $a$ in state $s$ relative to the policy's average. $L_\theta(\theta')$ can be estimated from trajectories already collected for the gradient, with no new rollouts. The error from using $d_\theta$ in place of $d_{\theta'}$ is controlled by how much probability the two policies place on different actions. In the saturated regime, where geometric steps matter, both policies put almost all their mass on the same action. The surrogate is therefore most trustworthy exactly when the step sizes are largest. We expect to prove that the gap between $L_\theta(\theta')$ and $J(\theta')-J(\theta)$ is bounded by the off-optimal probability mass $\epsilon_k$ times a distribution-mismatch constant, so the gap shrinks along with the suboptimality.

The acceptance rule is a trust-region-style ratio test rather than an absolute sufficient-descent test:

$$\text{accept if}\quad \widehat{L}_\theta(\theta') - c\,\widehat{s}_k/\sqrt{n} \;\ge\; \kappa\,\eta_k\,\langle \hat g_k, d_k\rangle .$$

Here $\hat g_k$ is the estimated gradient, $d_k$ is the momentum-extrapolated direction, $\eta_k\langle \hat g_k,d_k\rangle$ is the first-order predicted gain, $\widehat{s}_k$ is the sample standard deviation of the importance-weighted advantages over $n$ samples, and $c,\kappa\in(0,1)$ are fixed constants. The research file names a real tension in its Gap 1: an absolute threshold of the form $\sigma\eta_k\|\nabla F\|^2$ inflates as $\eta_k$ grows and eventually rejects everything. Comparing actual to predicted gain makes the test invariant to the step's scale. The lower confidence bound guards against the false acceptances that break deterministic safety checks under sampling noise. On acceptance the step is multiplied by $\rho_{\text{up}}>1$ and momentum continues. On rejection the step is divided by $\rho_{\text{down}}$, momentum is reset, and a plain gradient step is taken. We claim that once iterates enter the locally near-concave region identified by Chen et al., accepted steps occur with a constant frequency. The step then grows geometrically at a rate set by $\rho_{\text{up}}$ and the acceptance fraction, which recovers linear convergence without knowing $\gamma$.

Research Program

The theoretical part has three pieces. First, we will bound the surrogate-versus-true gap in the tabular softmax setting of Chen et al. in terms of the off-optimal mass $\epsilon_k$ and a distribution-mismatch coefficient. Mismatch coefficients of this kind already govern the rates in On the Linear Convergence of Policy Gradient Methods for Finite MDPs and Linear Convergence of Natural Policy Gradient Methods with Log-Linear Policies. Our bound therefore inherits their weakness under poor exploration rather than claiming to escape it.

Second, with exact gradients, we will show that the ratio test accepts all but finitely many proposals inside the near-concave region. The resulting self-tuned schedule would then give a linear rate whose constant depends on $\rho_{\text{up}}$ rather than $\gamma$. A misspecified $\rho_{\text{up}}$ would only cost extra rejections, whereas a misspecified $\gamma^{-k}$ schedule causes either a stall or numerical overflow.

Third, with sampled gradients, we will give a high-probability monotone-improvement guarantee that holds per accepted step, conditional on the confidence bound. This addresses the missing theory for the heuristic stochastic variant (SAPG) that Chen et al. leave open. We do not expect a full stochastic rate. The honest target is monotone improvement plus a bound on the number of rejections.

Methodologically, the controller follows the adaptive-momentum idea of APGnc+ from Convergence Analysis of Proximal Gradient with Momentum for Nonconvex Optimization. That method raises the momentum parameter on success and lowers it on failure. We apply the same accept/reject bookkeeping to the step size instead of the momentum parameter. The single-evaluation, fall-back-on-failure structure comes from the same paper. The greedy monitor of Accelerated Proximal Gradient Methods for Nonconvex Programming and the flexible restart schemes of Proximal Gradient Algorithm with Momentum and Flexible Parameter Restart for Nonconvex Optimization motivate the design. Their evidence that function-value restarts are the most effective trigger on a9a and w8a explains why we keep a function-value-style test instead of switching to a gradient-alignment trigger. We change only how that test is computed.

Baselines

The naive reference point is vanilla softmax policy gradient with a constant step. On synthetic MDPs, Chen et al. report that it shows a log-log slope of 1 in the suboptimality gap, i.e. $O(1/t)$. Heavy-ball policy gradient is included at the same tuning budget, since Chen et al. report that it also shows slope 1.

The strongest existing method is APG from Chen et al. with its exponentially growing schedule and exact function-value restart. The paper reports a log-log slope of 2 for APG with nearly constant steps, a linear semi-log decline with exponential steps, and results matching or exceeding policy gradient on Pong, Carnival, Riverraid and Seaquest. For the Atari games, no reported numeric score was found on Lacuna. We will run APG in two forms. The first gives it exact returns on tabular MDPs. The second estimates its restart check with fresh rollouts in sampled settings, with those rollouts charged to its sample budget. Beating APG means one of two things. In the sampled settings, it means reaching a given suboptimality or return with fewer total environment interactions. In the tabular settings, it means matching APG's linear rate when $\gamma$ is misspecified by a factor where APG's fixed schedule stalls or overflows.

For geometric scheduling without momentum, we use AMPO from A Novel Framework for Policy Mirror Descent with General Parameterization and Linear Convergence on CartPole-v1 and Acrobot-v1, together with the PPO baseline that paper uses. That paper reports AMPO as competitive with and more consistent than PPO, but no reported numeric return was found on Lacuna. A trust-region natural gradient with a fixed divergence budget and surrogate backtracking is included as the closest line-search competitor. All methods share environments, seeds, network sizes, and a matched hyperparameter search budget counted in trials.

Two ablations isolate the contribution. The first keeps our controller but replaces the surrogate check with a rollout-based return check, which isolates the cost savings. The second keeps the surrogate check but uses a fixed $\gamma^{-k}$ schedule, which isolates the value of acceptance-driven growth. A third run with momentum disabled measures what acceleration adds on top of self-tuned steps.

Why not just…?

Why not just use a trust-region method with surrogate backtracking, as is common practice? This is the most serious threat. Near a deterministic policy, a fixed divergence budget already corresponds to growing parameter steps, so a trust-region natural gradient may implicitly behave like a geometric schedule. The difference is that backtracking only shrinks the step within a fixed budget and never extrapolates with momentum. Our ratio test also uses a confidence bound instead of accepting any positive estimate. The trust-region baseline above decides this directly. If it matches our method in interactions-to-target on tabular MDPs and CartPole, the contribution collapses to "trust regions already do this." We would then refocus the work on proving that fact, rather than claim a new algorithm.

Why not just keep Chen et al.'s APG and pay for the rollouts? In tabular settings with exact models this is fine, and we expect no advantage there beyond robustness to misspecified $\gamma$. In sampled settings, every restart check is an extra batch of episodes. The rollout-check ablation measures exactly how much of the budget this consumes and whether the surrogate's error causes wrong decisions near the optimum.

Why not just use Adam, which already enlarges steps when gradients vanish? The Implicit Bias of Adam on Separable Data shows that Adam's per-coordinate rescaling speeds up progress by changing which solution is reached (the $\ell_\infty$-margin rather than the $\ell_2$-margin). Faster Margin Maximization Rates for Generic Optimization Methods obtains its optimal rate from explicit growing steps combined with acceleration. Neither result is about policy optimization, so we include Adam on the policy gradient as a baseline rather than treat the question as settled.

Why not just add entropy regularization so gradients never vanish? Regularization converges to a biased policy unless its weight decays, and a decaying weight brings saturation back, as the analyses of log-linear NPG discuss. We report regularized policy gradient with a decaying weight as one additional reference curve.

Proposed Experiments

The first decisive check is on the synthetic tabular MDPs of Chen et al. with exact gradients. We will plot suboptimality on semi-log axes for our method, APG with correct $\gamma$, and APG with $\gamma$ misspecified in both directions. The prediction is that our curve is linear regardless of the $\gamma$ used for initialization, while misspecified APG either bends to sublinear or diverges. We also record the fraction of accepted proposals over time. It should rise to a constant once the policy enters the near-concave region, and the step size should grow geometrically at a rate we can read directly off the logs.

The second check uses the same MDPs with sampled trajectories. We measure how often the surrogate test and an exact test disagree, as a function of the off-optimal mass $\epsilon_k$. The disagreement should fall as $\epsilon_k$ falls; if it does not, the core structural claim is false.

The third check uses CartPole-v1 and Acrobot-v1 with two-layer policies, against AMPO, PPO, trust-region natural gradient and the ablations. It reports return against environment interactions and the variance across seeds.

The fourth check uses the four Atari games from Chen et al., comparing interactions-to-threshold against APG with rollout-based checks. Because no reported Atari numbers were found on Lacuna, all Atari baselines are rerun under our budget rather than copied.

The idea fails in two identifiable cases: if the trust-region baseline matches it everywhere, or if the surrogate-exact disagreement does not shrink in the saturated regime.