arXiv:2610.23788stat.MLOct 2026

Manuscript Offprint

arXiv:2610.23788

Parametric Resonance in Primal-Dual Learning for Slowly Non-Stationary Constrained MDPs

Maxime Baelde

Abstract

Primal-dual methods for constrained Markov decision processes are analyzed under a two-timescale assumption, with non-stationarity entering through two channels. In the additive channel, where the constraint level oscillates, the dual oscillation saturates at a floor set by the moving optimum and is amplified linearly by the timescale ratio. In the parametric channel, where the constraint sensitivity oscillates, a coherent modulation carries no resonant forcing at any depth: the dual update's stiffness modulation cancels the primal update's damping modulation. Instability instead comes from a mismatch between the constraint estimate used by the primal update and the measurement used by the dual update, producing a parametric resonance at twice the pair's natural frequency. The tolerated mismatch grows with the square root of the forcing bandwidth and collapses with the square root of the dual-to-primal step-size ratio. These results hold on the tangent linear-quadratic reduction around an active saddle, for one constraint and for K constraints under a common modulation and an isotropy condition. Driving both updates from the same estimate removes the resonant forcing but introduces a stationary offset equal to the estimator's bias. In a Lagrangian soft actor-critic agent, the multiplier locks onto the sub-harmonic at the timescale ratios its identified linear loop predicts and a coherent cost critic suppresses the lock-in, while a proportional (PID) term, predicted to leave the lock-in in place, suppresses most of it through the projection of the multiplier.

1 Introduction

Constrained Markov decision processes (Altman, 1999) are the standard model for sequential decision problems in which a return has to be maximized subject to a long-run budget, risk or safety requirement. The dominant solution method, alongside the trust-region approach of Achiam et al. (2017), is Lagrangian relaxation: a multiplier weights the constraint, the policy is improved against the resulting unconstrained objective, and the multiplier is driven by the observed constraint violation. The resulting primal-dual loop is what almost every deployed constrained learner actually runs, from safe reinforcement learning benchmarks (Ray et al., 2019) and libraries (Ji et al., 2024) to budget pacing in industrial recommendation and real-time bidding (Balseiro & Gur, 2019; Balseiro et al., 2020). Its appeal is that each half is a familiar object, a policy gradient step and a projected subgradient step, with convergence argued by placing the two on separate timescales (Borkar, 2008; 2005; Bhatnagar & Lakshmanan, 2012).

The application that motivates this paper is budget pacing in real-time bidding. An agent bids on impressions and must spend a target budget over a day, so the constraint is a spend rate and the multiplier is the shadow price of budget. The environment is non-stationary on a daily cycle: traffic volume, competitive pressure and conversion propensity all move by large factors between night and evening peak. Convergence in a stationary environment settles nothing here; the practitioner's question is whether the multiplier tracks the moving constrained optimum or oscillates around it, and what the learning rates have to do with the answer.

Two expectations recur in practice. The first is that a slowly varying environment can be handled by making the dual update slow enough to average over it. The second is that the timescale separation invoked to justify the analysis also makes the loop robust. Both fail on the tangent linear-quadratic reduction that the rest of the paper analyzes, defined in Section 3.1. The non-stationarity of the constraint level produces a bounded oscillation with a floor that no step size removes, and the non-stationarity of the constraint sensitivity carries no resonant forcing at all as long as the primal and the dual see the same sensitivity. What destabilizes the loop is the mismatch between two estimates of the same quantity, an implementation property internal to the algorithm, and the timescale separation is what amplifies it.

Constrained reinforcement learning writes a single symbol for both channels: the primal update consumes a constraint estimate, differentiable in the policy parameter, and the dual update consumes a constraint measurement. Section 2 positions this split against the feedback-optimization and CMDP literatures; what neither considers is a periodic mismatch between the two objects, which is what this paper adds.

We separate the two channels formally in Definition 1. In the additive channel the constraint level oscillates and the linearized dynamics stay time-invariant. In the parametric channel the constraint sensitivity oscillates, the coefficients become time-periodic, and the loop admits exponential growth once the mismatch crosses a threshold set by the damping; this is the realistic channel in real-time bidding (Section 3.4). Aligning the two objects is the design prescription that follows: if a single constraint estimate drives both updates, the resonant forcing vanishes by construction at every modulation depth. Alignment is impossible when the dual has to be driven by an audited measurement while the primal needs a differentiable surrogate. In that case the tolerated mismatch scales as the square root of the ratio of the primal to the dual step size. Lowering the dual step size therefore widens the tolerance, but it also slows the multiplier's tracking of a moving constraint.

Notation is collected in Table 4 (Appendix A.1). The central fact is structural and holds to first order on the continuous surrogate of the coupled dynamics: on the tangent linear-quadratic reduction of a K=1K=1 CMDP around an active constrained saddle point, the primal update modulates damping and stiffness together while the dual update modulates stiffness alone (Lemma 1). A common modulation of both channels therefore cancels exactly at the principal tongue, and only the mismatch ελ−εθ\varepsilon_{\lambda}-\varepsilon_{\theta} survives as an effective forcing depth. Three results follow on this reduction, and the resonance follows from classical tools applied to that effective depth; Section 7 compares each with the affine recursion.

(R1) Exact tracking of a moving optimum (Proposition 1(i)). The DC gain from constraint disturbance to multiplier is exactly a/(αc2)a/(\alpha c^2), precisely what is needed to track the instantaneous optimal multiplier λ∗(t)=abt/c2\lambda^*(t) = ab_t/c^2. The peak-to-peak excursion 2Aa/c22Aa/c^2 is therefore the size of that moving target, independently of both step sizes. This refutes, in the coupled system, the natural extrapolation of the frozen-policy bound of Baelde (2026), which grows as O(α/ω)\mathcal{O}(\alpha/\omega) as the forcing slows down.

(R2) Worst-case amplification by the timescale separation (Proposition 1(ii)). Maximizing over the forcing frequency, the peak-to-peak dual oscillation is Aα/σA\alpha/\sigma, reducing at leading order to (2Aa/c2)max⁡{1,(2ζ)−2}(2Aa/c^2)\max\{1,(2\zeta)^{-2}\} with ζ\zeta the reduced damping and (2ζ)−2=rc2/a2(2\zeta)^{-2}=rc^2/a^2. Past r=a2/c2r=a^2/c^2, growing timescale separation amplifies the worst case linearly in rr.

(R3) Coherent sensitivity modulation cannot destabilize the loop (Proposition 2). If the primal and the dual see the same modulated sensitivity the resonant forcing vanishes identically at every depth, waveform and frequency. The weighted energy αθ2+ηλ2\alpha\theta^2 + \eta\lambda^2 is then a Lyapunov function for the continuous flow, and the top Floquet exponent is strictly negative without any smallness assumption. What remains is a damping-borne pump bounded by σJ1(ε)\sigma J_1(\varepsilon), giving exponent −σ(1−J1(ε))-\sigma(1 - J_1(\varepsilon)) at the principal tongue. The recursion stays stable at every admissible depth under a condition on the step sizes alone.

Section 5 sharpens (R2) into a quantitative threshold: Theorem 1 gives the narrowband mismatch threshold ∣ελ−εθ∣>4ζ|\varepsilon_{\lambda} - \varepsilon_{\theta}| > 4\zeta at which the resonance turns unstable, Corollary 1 restates it as a condition on the step sizes alone, r>(a/c)2r > (a/c)^2, and Proposition 3 extends it to a mismatch spread over a bandwidth BB, with a square-root law in BB. Section 7.3 carries the predictions to a Lagrangian soft actor-critic agent: the multiplier locks onto the sub-harmonic at the timescale ratios the agent's identified linear loop predicts, a coherent cost critic suppresses the lock-in, and, contrary to its linear prediction, the proportional term of a PID Lagrangian agent suppresses most lock-ins through the saturation of the multiplier's projection while leaving the forced response and most of the return loss in place.

These statements hold on the tangent reduction, not for general CMDPs: Section 3.1 states what the scalar reduction assumes, the projection in (3) is inactive throughout the analysis and enters only the experiments, and Section 8 delimits the scope further.

References (64)