Boundary-Aware Richardson Extrapolation for Projected Stochastic Gradient Descent

Stochastic gradient descent with a fixed step size converges quickly, but it never settles exactly on the answer. It hovers around it, and the average of where it hovers is off by a systematic amount, the bias, which shrinks as the step size shrinks. Richardson-Romberg extrapolation is a classical fix borrowed from numerical analysis. Run the same algorithm at step sizes $\alpha$ and $2\alpha$, assume the bias grows linearly in the step size, and take $2\theta_\alpha - \theta_{2\alpha}$ so that the linear terms cancel. This works well when the problem is smooth and unconstrained. Many practical problems, however, project the parameters back into an allowed region after every step: nonnegativity in matrix factorization, norm balls that keep reinforcement learning from diverging, dosage limits in control. Often the best feasible point sits on the edge of that region.

This note argues that, when the solution lies on the edge, the bias no longer scales like $\alpha$. It scales like $\alpha^{1/q}$, where $q$ is the order at which the objective grows as one moves away from the solution into the feasible region. When the constraint pushes back with a nonzero force, $q=1$ and the classical extrapolation is correct. When the constraint is only "weakly active", meaning the gradient vanishes at the edge, $q=2$, the bias is $\sqrt{\alpha}$, and the classical $2\theta_\alpha-\theta_{2\alpha}$ removes only about 41% of it. Flatter landscapes, such as quartic growth, give $\alpha^{1/4}$. The proposal is to prove this expansion, to tie the exponent to the local growth geometry that the Kurdyka-Łojasiewicz literature already measures, and to build an extrapolation that estimates the exponent from a third chain instead of assuming it.

Core Claim

Consider projected SGD $\theta_{t+1} = \Pi_\Theta(\theta_t - \alpha g_t)$, where $\Pi_\Theta$ maps a point to the nearest point of a closed convex set $\Theta$ and $g_t$ is a noisy gradient. Suppose the minimizer $\theta^*$ lies on the boundary of $\Theta$ and the objective grows like $\mathrm{dist}(\theta,\theta^*)^q$ along feasible directions. This is a Hölderian error bound, equivalent locally to a Kurdyka-Łojasiewicz (KŁ) exponent of $1-1/q$. We conjecture that the stationary mean of the chain admits an expansion

$$\mathbb{E}[\theta_\alpha] - \theta^* = c_1\,\alpha^{1/q} + c_2\,\alpha^{2/q} + \dots,$$

where $c_k$ are vectors that depend on the curvature, the noise covariance, and the local shape of $\partial\Theta$, but not on $\alpha$.

The heuristic comes from a scaling argument. The fixed-step chain behaves like a diffusion at temperature proportional to $\alpha\sigma^2$, so its stationary spread in a direction of growth order $q$ is of order $\alpha^{1/q}$. Inside the feasible region this spread is roughly symmetric and contributes no first-order bias. A boundary cuts the spread on one side, and the mean moves by the full $\alpha^{1/q}$. In the strictly active case, the reflected chain divided by $\alpha$ is, to leading order, a Lindley-type queue whose law does not depend on $\alpha$. That gives exponent $1$ exactly, and it explains why existing projected analyses that assume interior or strictly active solutions recover the classical expansion.

The algorithmic consequence follows directly. With three synchronously coupled chains at $\alpha, 2\alpha, 4\alpha$, the leading exponent can be read off as

$$\hat p = \log_2 \frac{\|\theta_{2\alpha}-\theta_{4\alpha}\|}{\|\theta_\alpha-\theta_{2\alpha}\|}.$$

The bias is then cancelled with weights adapted to $\hat p$:

$$\theta_{\mathrm{RR}} = \frac{2^{\hat p}\,\theta_\alpha - \theta_{2\alpha}}{2^{\hat p}-1}.$$

When the problem mixes directions with different exponents, for example strictly active constraints in some coordinates and degenerate ones in others, the estimate and the weights are applied per direction. The directions are split using the set of constraints that the chains are touching.

Relation to Prior Work

Three papers supply the machinery we reuse. Nonasymptotic Analysis of SGD with Richardson–Romberg Extrapolation proves that synchronous coupling, meaning the two chains are fed the same noise, keeps the optimal leading variance and improves the second-order error to $\mathcal{O}(n^{-3/4})$. It needs strong convexity, $C^4$ smoothness and no constraints, and we keep its coupling while dropping the smoothness. The non-expansiveness of $\Pi_\Theta$ is exactly what keeps the coupled chains close. Stochastic Methods in Variational Inequalities proves geometric ergodicity and an $\mathcal{O}(\gamma)$ bias with two-chain cancellation for projected stochastic extragradient and gradient descent-ascent. It assumes behavior that stays effectively in the interior, which is precisely the regime where our exponent is $1$; we characterize what happens when that assumption fails. Shuffling the Data, Extrapolating the Step shows that reshuffling and extrapolation stack to cubic bias. It is unconstrained and local, and its idea of separating variance from mean motivates our per-direction treatment.

One paper motivates the mechanism. Prelimit Coupling and Steady-State Convergence of Nonsmooth Contractive SA finds that the kink of the max operator in Q-learning yields $\sqrt{\alpha}$ bias when optimal actions tie, that extrapolation with $\sqrt{\alpha}$-adapted weights cancels it, and that Polyak-Ruppert averaging does not. It studies no projections and fixes the exponent by hand. We read its result as one instance of a general rule: kinks plus degenerate growth give fractional exponents. A projection onto a weakly active constraint is the canonical such kink.

Geometry enters through Inexact subgradient methods for semialgebraic functions. That paper shows that persistent errors leave iterates in an $\mathcal{O}(\epsilon^\rho)$ neighborhood whose exponent comes from the KŁ and subregularity constants, but it does not try to cancel the offset. It also enters through Sharp Analysis under Global KŁ, whose restarted method PAGER reaches optimal complexity only if the growth exponent is known. Both constrain our design. Exponents are problem-specific and rarely known, so the method must estimate them rather than assume them.

Finally, Projected SA: A Jump Diffusion Perspective leaves de-biasing of infrequent projections open. That bias comes from drift between projections, not from boundary truncation, so we treat it as out of scope and do not claim to solve it.

Research Program

The theoretical part has three pieces. The first proves the expansion in one dimension and on polyhedral sets. For strictly active constraints (positive Lagrange multiplier) we use the Lindley-queue scaling. For weakly active constraints with growth order $q$ we couple the chain to a reflected diffusion and bound the discretization error, borrowing the Moreau-envelope Lyapunov arguments of the prelimit-coupling paper. The second extends the expansion to $d$ dimensions with mixed exponents, using the active-set split. The third covers the cost side: geometry also governs mixing. In a direction of growth order $q$, the effective curvature at scale $\alpha^{1/q}$ is about $\alpha^{(q-2)/q}$, which suggests a mixing time of order $\alpha^{-(2q-2)/q}$ iterations. Combining bias and mixing gives a budget-optimal step size that depends on $q$. This explains why flat boundary problems need extrapolation most and also gain the most from it.

The algorithmic part builds the three-chain estimator with per-direction exponent estimation and synchronous coupling. It also adds a fallback: if the estimate $\hat p$ has high variance across replicates, the method reverts to the classical weights.

Baselines

The naive reference point is a single projected SGD chain with Polyak-Ruppert tail averaging at the best fixed step size for the same total number of gradient evaluations. Matching the budget means it gets three times the iterations of each extrapolated chain. It shows what bias floor practitioners live with today.

The strongest existing method is classical two-chain Richardson-Romberg with synchronous coupling and tail averaging, as analyzed in art_46e1b88e (Nonasymptotic Analysis of Stochastic Gradient Descent with the Richardson–Romberg Extrapolation) and applied to projected iterates in art_8a35063a (Stochastic Methods in Variational Inequalities: Ergodicity, Bias and Refinements). It is the method a practitioner would reach for, and it is exactly right when the exponent is $1$. The file gives no numerical bias values for it. The cited reports are scaling claims: an $\mathcal{O}(n^{-3/4})$ second-order term on the toy landscape $f(\theta)=\theta^2+\cos\theta$, verified by plot, and an "order-of-magnitude improvement" on games, shown as a figure without a table. No reported result was found on Lacuna for its bias under active constraints. It runs on the same data and coupled noise as our method. It gets 1.5 times the iterations per chain to match three chains, and the same grid of step sizes.

A second strong competitor is an oracle-exponent extrapolation. It uses the true $q$ where it is known analytically, or $\sqrt{\alpha}$ weights in the style of art_3cf122b4 (Prelimit Coupling and Steady-State Convergence of Constant-stepsize Nonsmooth Contractive SA). It upper-bounds what exponent estimation can achieve.

The ablation that isolates our key ingredient is a three-chain classical extrapolation that cancels assumed exponents $1$ and $2$. It has identical compute, so any gain of our method over it comes from estimating the exponent and not from running a third chain.

Beating the strongest baseline means two things. On weakly active and flat problems, the residual bias must have a strictly larger log-log slope in $\alpha$ than classical extrapolation (predicted: about $2/q$ versus $1/q$). The mean squared error at matched budget must also be lower, across at least 100 independent replicates. On strictly active problems the method must not lose meaningfully. That is the honesty check that the estimated exponent snaps to $1$.

Why not just…?

Why not just use Polyak-Ruppert averaging? Averaging reduces variance around the stationary mean but converges to that mean, which is biased. art_3cf122b4 (Prelimit Coupling and Steady-State Convergence of Constant-stepsize Nonsmooth Contractive SA) reports averaging to be ineffective against kink-induced $\sqrt{\alpha}$ bias. Our naive baseline measures the same effect at projection boundaries.

Why not just use the standard $2\theta_\alpha - \theta_{2\alpha}$? At $q=2$ it leaves $(2-\sqrt2)\,c_1\sqrt{\alpha} \approx 0.59\,c_1\sqrt{\alpha}$. The order of the bias is unchanged and only the constant drops. At $q=4$ it removes even less. This is a prediction the slope experiment will confirm or refute directly.

Why not just shrink the step size or let it decay? Bias $\alpha^{1/q}$ with flat geometry decays painfully: halving the bias at $q=4$ needs a 16-fold smaller step. The mixing-time argument says each chain then also needs more iterations. Diminishing schedules give up the ability to track a changing problem (Moulines et al.). We include tuned decaying schedules at matched budget so the comparison is settled empirically, not by assertion.

Why not just fit the bias curve generically, for example Aitken-style acceleration over many step sizes? This is a real threat. Our estimator is Aitken-like, and its practical value could be matched by a black-box fit. Our answer is that the theory supplies what a black box cannot: which exponents appear ($1/q$ multiples), which directions carry which exponent (active-set split), and when the estimate can be trusted. We run an unstructured least-squares exponent fit on the full parameter vector as an extra baseline. If it matches us everywhere, the contribution reduces to the expansion theorem, and we will say so.

Why not just replace the projection with a smooth barrier? A barrier moves the solution into the interior and restores a smooth expansion, but it biases the solution by the barrier weight. In safety settings such as projected anesthesia control it does not give hard feasibility. For reinforcement learning, explicit projection is what stabilizes divergent examples in Breaking the Deadly Triad. We test a log-barrier with its weight tuned jointly with $\alpha$ on the synthetic problems.

Proposed Experiments

The decisive check is synthetic. We use projected SGD on $f(\theta) = g\,\theta + |\theta|^q$ over $\theta\ge0$ with $g>0$ (strict) or $g=0$ (weak), for $q\in\{2,4\}$. We extend it to nonnegative least squares in $d=50$ with planted mixtures of strictly and weakly active coordinates. We also run the toy landscape $f(\theta)=\theta^2+\cos\theta$ from art_46e1b88e (Nonasymptotic Analysis of Stochastic Gradient Descent with the Richardson–Romberg Extrapolation) restricted to a half-line whose edge passes through the minimizer. Bias is estimated from 1,000 coupled replicates over eight step sizes, and we report the fitted slope of residual bias against $\alpha$ for every method. The prediction is falsifiable: uncorrected and classical extrapolation slopes near $1/q$, ours near $2/q$, and all methods near $1$ or higher in the strict case.

Second, we run projected bilinear and log-sum-exp games from art_8a35063a (Stochastic Methods in Variational Inequalities: Ergodicity, Bias and Refinements), with the box placed so that the equilibrium sits on a face.

Third, two reinforcement learning settings test whether conservative projection radii are actually active and what that does to the bias. We use projected linear SARSA on Gordon's 3-state MDP (art_674f16e2; On the Convergence of SARSA with Linear Function Approximation) and target-network projected TD on Baird's 7-state counterexample. In Baird's example the unprojected methods diverge to errors around $10^5$ (art_ed21ebc3; Breaking the Deadly Triad with a Target Network). For both, we measure the distance of the extrapolated estimate to a long, small-step reference solution.

Fourth, as a realistic problem with many degenerate zeros, we use online nonnegative matrix factorization on Facebook100 subgraphs (Caltech36, UCLA26, Wisconsin87) under Markovian sampling, following art_cce6fa2b (Convergence of First-Order Methods for Constrained Nonconvex Optimization with Dependent Data). There we report reconstruction loss, the error of the support pattern, and the stability of the exponent estimate. The Markovian noise there falls outside our i.i.d. theory, so this is a stress test, not a confirmation. Failure of the slope prediction in the synthetic suite would refute the core claim.