betaFeedback

WorksMathematics

Online Statistical Inference for Derivative-Free Constrained Stochastic Optimization

Abstract

We study statistical inference for nonlinear equality-constrained stochastic optimization problems in settings where derivative information is unavailable or expensive to obtain. While recent advances in stochastic sequential quadratic programming (SSQP) have enabled efficient online optimization, existing methods either rely on gradient information or suffer from high computational costs. To address these limitations, we develop a sketched derivative-free SSQP (SDF-SSQP) method that simultaneously achieves computational efficiency and valid statistical inference. By leveraging randomized sketching, the proposed method reduces the per-iteration computational cost to O((d+m)2)O((d+m)^2), where dd is the dimension of the decision variable and mm is the number of constraints, making it well suited for large-scale problems. To overcome the challenges that both sketching and zeroth-order approximations introduce for statistical inference, we adopt a random-scaling approach that eliminates the need for explicit estimation of the asymptotic covariance matrix. We establish the asymptotic normality of the averaged primal–dual iterates and construct a self-normalized statistic that is asymptotically pivotal. The resulting inference procedure is fully online, requires neither covariance estimation nor matrix inversion, and incurs an additional per-iteration cost of the same order as that of the optimization update. Numerical experiments demonstrate the effectiveness of the proposed method in terms of both optimization performance and statistical inference accuracy.

Introduction

We consider solving nonlinear equality-constrained stochastic optimization problems of the form:

min⁡x∈Rdf(x)=EP[F(x;ξ)],s.t.c(x)=0,(1)\begin{aligned} \min_{x \in\mathbb{R}^{d}}\quad& f(x)=\mathbb{E}_{P}[F(x;\xi)], \qquad\text{s.t.}\quad c(x)=0, \tag*{(1)} \end{aligned}

where f:Rd→Rf:\mathbb{R}^{d}\to\mathbb{R} denotes the stochastic objective function, F(⋅;ξ):Rd→RF(\cdot;\xi):\mathbb{R}^{d}\to\mathbb{R} denotes its realization with sample ξ∼P\xi\sim P, and c:Rd→Rmc:\mathbb{R}^{d}\to\mathbb{R}^{m} denotes deterministic equality constraints. Problem (1) arises in a broad range of applications spanning machine learning, statistics, and scientific computing. In statistical learning, it naturally appears as a constrained parameter estimation problem [18, 21], where ξ\xi represents an observed data sample and f(x)f(x) denotes the expected population loss or negative log-likelihood. Similar constrained stochastic optimization problems also arise in portfolio allocation optimization [15] (Du et al. 2022), where the objective measures the expected performance of weighted random asset returns, while the portfolio weights must satisfy structural constraints such as budget, risk, or exposure conditions. Related formulations have further emerged. in scientific machine learning, including physics-informed neural networks [38] and stochastic PDE-constrained learning problems [24], where the constraints encode physical laws or governing equations. These diverse applications motivate the development of efficient stochastic optimization algorithms for solving (1) and conducting valid statistical inference on the resulting primal–dual solutions.

A classical approach for solving constrained stochastic optimization problems of the form (1) is the sample average approximation (SAA) method. Given tt i.i.d. samples ξ1,…,ξt∼P\xi_1,\ldots,\xi_t \sim\mathcal{P}, SAA replaces the population objective by the empirical average and solves

min⁡x∈Rdf^t(x):=1t∑i=1tF(x;ξi),s.t.c(x)=0.\min_{x\in\mathbb{R}^d} \widehat{f}_t(x) := \frac{1}{t}\sum_{i=1}^{t} F(x;\xi_i), \quad\text{s.t.}\quad c(x)=0.

Let (x^t,λ^t)(\widehat{x}_t,\widehat{\lambda}_t) denote a local primal–dual solution of this problem, also called the SAA estimator or constrained MM-estimator. Under suitable regularity conditions, the SAA estimator exhibits t\sqrt{t}-consistency and asymptotic normality [41 Chapter 5]:

t⋅(x^t−x⋆,λ^t−λ⋆)→dN(0,Σ⋆),(2)\sqrt{t}\cdot(\widehat{x}_t-x^\star,\widehat{\lambda}_t-\lambda^\star)\xrightarrow{d}\mathcal{N}(0,\Sigma^\star), \tag*{(2)}

where (x⋆,λ⋆)(x^\star,\lambda^\star) is a local solution of Problem (1), the Lagrangian function of (1) is defined as

L(x,λ)=f(x)+λ⊤c(x),\mathcal{L}(x,\lambda)=f(x)+\lambda^\top c(x),

and the limiting covariance Σ⋆\Sigma^\star has a sandwich form

Σ⋆=(∇2L(x⋆,λ⋆))−1diag⁡(Cov⁡(∇F(x⋆;ξ)),0)(∇2L(x⋆,λ⋆))−1.(3)\Sigma^\star=(\nabla^2\mathcal{L}(x^\star,\lambda^\star))^{-1}\operatorname{diag}\bigl(\operatorname{Cov}(\nabla F(x^\star;\xi)),0\bigr)(\nabla^2\mathcal{L}(x^\star,\lambda^\star))^{-1}. \tag*{(3)}

These classical results provide a statistical foundation for inference on the optimal solution (x⋆,λ⋆)(x^\star,\lambda^\star). However, offline approaches such as SAA require repeatedly solving increasingly large empirical optimization problems, resulting in substantial computational and memory costs. This has motivated the development of online methods that process data sequentially and update solutions in a streaming fashion. Projection-based stochastic gradient descent is a representative example: it enforces feasibility by projecting each iterate onto the constraint set. Almost-sure convergence, asymptotic normality, and online inference results for such methods have been established in Davis et al. [9]; Duchi and Ruan [14]; Davis et al. [10]; Jiang et al. [22]. Despite these advances, projection-based methods can be impractical when the feasible set is defined by nonlinear equality constraints c(x)=0c(x)=0, since each projection may itself require solving a nontrivial constrained optimization problem. In deterministic nonlinear constrained optimization, this difficulty has long motivated projection-free algorithmic frameworks, including penalty methods, barrier methods, augmented Lagrangian methods, and sequential quadratic programming (SQP) methods [4, 34].

Building on these deterministic constrained optimization methods, a growing body of recent literature has extended projection-free ideas to stochastic online settings. Stochastic SQP (SSQP) methods extend classical SQP by incorporating stochastic first- and second-order information and updating the primal–dual variables by solving a sequence of quadratic subproblems (Berahas et al., 2021, 2023; Na et al., 2022a, 2023; Fang et al., 2024; Curtis et al., 2024). A representative development is the Adaptive Inexact SSQP (AI-SSQP) framework (Na and Mahoney, 2025), which is designed for online inference with an adaptive random stepsize rule and a randomized sketching solver for the quadratic subproblems. This work establishes the asymptotic normality of the last AI-SSQP iterate and shows that, although the sketching solver reduces the per-iteration cost of solving the SQP subproblem, it also introduces a computational–statistical tradeoff by enlarging the limiting covariance matrix relative to an exact subproblem solver, whose covariance would match (3). For practical inference, that work estimates the limiting covariance through a plug-in approach. However, this additional covariance-estimation step negatively offsets the computational benefits of using sketching, since the sketched optimization update requires only O((d+m)2)O((d+m)^2) operations per iteration, while plug-in covariance estimation incurs the dominant O((d+m)3)O((d+m)^3) computational cost. Subsequent work Du et al. (2025) complements this result by establishing asymptotic normality for the averaged AI-SSQP iterates and developing a random-scaling inference method [26] that bypasses covariance estimation. The resulting self-normalized statistic has a pivotal limiting distribution and retains an O((d+m)2)O((d+m)^2) computational cost for both optimization and inference with the sketched AI-SSQP update.

Although the aforementioned literature provides effective inference frameworks for (1), these methods are inherently derivative-based, requiring access to gradient, and often Hessian, information of the objective and constraints. Such requirements can be restrictive in applications where derivatives are unavailable, unreliable, or expensive to compute. For example, in hyperparameter optimization, the objective is often evaluated through complex training procedures, making higher-order derivative information difficult to obtain. Similarly, in PDE-constrained optimization, gradient evaluations may require adjoint solves, which can substantially increase computational cost. To address these limitations, Na [29] proposed a Derivative-Free SSQP (DF-SSQP) method, which replaces exact derivative evaluations with stochastic zeroth-order approximations. By leveraging randomized function evaluations, DF-SSQP retains the favorable structure of SSQP while broadening its applicability to black-box and simulation-based settings. For statistical inference, Na (2025) established asymptotic normality of the last DF-SSQP iterate, with a limiting covariance that reflects the additional noise introduced by derivative-free estimation.

In this paper, we extend the DF-SSQP in Na (2025) by replacing its exact subproblem solver with a randomized sketching solver, leading to SDF-SSQP. This modification reduces the cost of solving each SQP subproblem from O((d+m)3)O((d+m)^3) to O((d+m)2)O((d+m)^2), making the method more scalable for large-scale, derivative-free constrained stochastic optimization. To make inference as efficient as optimization, we also move beyond the last-iterate normal approximation and plug-in limiting covariance estimation established in Na [30]. Instead, we base inference on averaged primal–dual iterates and construct self-normalized statistics that avoid explicit covariance estimation. In particular, let θk:=(xk,λk)\boldsymbol{\theta}_k := (x_k,\lambda_k) be the SDF-SSQP iterate, θ⋆:=(x⋆,λ⋆)\boldsymbol{\theta}^{\star} := (x^{\star},\lambda^{\star}), and θˉt:=1t∑k=0t−1θk\bar{\boldsymbol{\theta}}_t := \frac{1}{t}\sum_{k=0}^{t-1}\boldsymbol{\theta}_k. We prove that

t⋅(θˉt−θ⋆)→dN(0,Σave⋆)withΣave⋆=(∇2L(x⋆,λ⋆))−1Ωˉ⋆(∇2L(x⋆,λ⋆))−1,\sqrt{t}\cdot(\bar{\boldsymbol{\theta}}_t-\boldsymbol{\theta}^{\star}) \xrightarrow{d} \mathcal{N}(0,\boldsymbol{\Sigma}^{\star}_{\mathrm{ave}}) \qquad\text{with} \qquad\boldsymbol{\Sigma}^{\star}_{\mathrm{ave}} = (\nabla^{2}\mathcal{L}(x^{\star},\lambda^{\star}))^{-1}\bar{\boldsymbol{\Omega}}^{\star}(\nabla^{2}\mathcal{L}(x^{\star},\lambda^{\star}))^{-1},

where Ωˉ⋆\bar{\boldsymbol{\Omega}}^{\star} is the covariance determined by the leading derivative-free martingale noise; see Theorem 4.6 for its formula. Furthermore, to facilitate practical inference, we strengthen the above CLT to a functional CLT and construct an online random-scaling matrix VtV_t. We show that, for suitable directions w∈Rd+m\boldsymbol{w}\in\mathbb{R}^{d+m} specified in Theorem 5.3, we have

twT(θˉt−θ⋆)wTVtw→dB1(1)∫01(B1(u)−uB1(1))2 duwithVt:=1t2∑i=1ti2(θˉi−θˉt)(θˉi−θˉt)T,\frac{\sqrt{t}\boldsymbol{w}^{\mathsf{T}}(\bar{\boldsymbol{\theta}}_t-\boldsymbol{\theta}^{\star})}{\sqrt{\boldsymbol{w}^{\mathsf{T}}V_t\boldsymbol{w}}} \xrightarrow{d} \frac{B_1(1)}{\sqrt{\int_0^1(B_1(u)-uB_1(1))^2\,du}} \qquad\text{with} \qquad V_t := \frac{1}{t^2}\sum_{i=1}^{t}i^2(\bar{\boldsymbol{\theta}}_i-\bar{\boldsymbol{\theta}}_t)(\bar{\boldsymbol{\theta}}_i-\bar{\boldsymbol{\theta}}_t)^{\mathsf{T}},

where B1(⋅)B_1(\cdot) denotes a standard one-dimensional Brownian motion. This limiting distribution is pivotal, involving no unknown quantities, and its quantiles are known. Thus, confidence intervals for linear functionals of (x⋆,λ⋆)(x^\star,\lambda^\star) can be formed without estimating or inverting Σave⋆\Sigma^\star_{\mathrm{ave}}. We mention that the matrix VtV_t can be updated online with O((d+m)2)O((d+m)^2) storage and operations, matching the cost scale of the sketched optimization step.

Technical Contributions. The proposed SDF-SSQP framework makes the following technical contributions.

(a) Derivative-free extension of sketched online inference. We extend the sketched random-scaling framework of Du et al. (2025) from the derivative-based AI-SSQP to the derivative-free setting. This extension is highly nontrivial since, in this setting, the gradient, constraint Jacobian, and Lagrangian Hessian are no longer available and must be approximated from random zeroth-order function evaluations. These derivative-free estimators are all biased, and their errors propagate through both the optimization recursion and the inference procedure. To address this issue, we apply a momentum (moving-average) step to progressively reduce their bias along the algorithmic trajectory. Under our derivative-free debiased recursion, we establish global almost-sure convergence of the proposed SDF-SSQP method and prove local asymptotic normality for the averaged primal–dual iterates. In contrast, the analysis in Du et al. (2025) without a momentum step relies critically on unbiased gradient and Hessian estimators, as well as exact deterministic constraint Jacobians.

(b) Functional CLT for algorithms with momentum debiasing. We prove a functional central limit theorem for the averaged primal–dual process, which is the theoretical foundation for constructing random-scaling statistics. This process-level result is stronger than asymptotic normality for averaged iterates, because random scaling depends on the uniform convergence of the entire trajectory of the averaging process rather than only on the convergence of the terminal end-point average. The result extends the functional CLT argument of Li et al. (2023) to online algorithms with a momentum step. The extension is nontrivial because the momentum step breaks the basic martingale-difference structure that crucial arguments of existing analyses rely on (cf. Lemma 5.2). To our knowledge, such a functional CLT is unknown even for unconstrained derivative-based methods. Nevertheless, we show that this additional recursive averaging does not change the process-level Brownian-motion limit. Our extension is not specific to the proposed SDF-SSQP algorithm and can be useful for other online inference problems where biased (or heavy-tailed) derivative estimators are debiased (or robustified) through momentum moving average.

(c) Computational efficiency without sacrificing asymptotic statistical efficiency. We show that sketching reduces the per-iteration computational cost from O((d+m)3)O((d+m)^3) to O((d+m)2)O((d+m)^2) without yielding a computational–statistical tradeoff asymptotically. This is in contrast to the sketched AI-SSQP setting of Na and Mahoney [30]; Du et al. (2025), where the randomized sketching solver reduces the computational cost of solving the SQP subproblem but also leads to lower statistical efficiency by enlarging the limiting covariance compared to that of the exact solver (the latter being minimax optimal). Notably, in our method, the momentum step removes the effect of the sketching error, so the limiting covariance in both the averaged asymptotic normality and the functional CLT does not depend on the sketching distribution or the number of sketching steps. This covariance matches the limiting covariance of the last-iterate error of exact DF-SSQP with optimal 1/t1/t stepsize (Na (2025)).

Organization and notation. We begin by introducing the SDF-SSQP method in § 2. § 3 introduces the assumptions and establishes global almost-sure convergence of the method. § 4 analyzes the local statistical behavior and proves the averaged asymptotic normality of the primal–dual iterates. § 5 develops the functional central limit theorem, the random-scaling statistic, and the resulting online confidence intervals. Numerical experiments and conclusions are provided in § 6 and § 7, respectively. All proofs are deferred to the appendices.

References

  1. [1]K. M. Abadir and P. Paruolo. Two mixed normal densities from cointegration analysis. Econometrica, 65(3):671–680, 1997.DOI
  2. [2]A. S. Berahas, F. E. Curtis, D. Robinson, and B. Zhou. Sequential quadratic optimization for nonlinear equality constrained stochastic optimization. SIAM Journal on Optimization, 31(2):1352–1379, 2021.
  3. [4]D. Bertsekas. Nonlinear Programming. Athena Scientific, 1999.
  4. [5]S. Bhatnagar, H. Prasad, and L. Prashanth. Stochastic Recursive Algorithms for Optimization: Simultaneous Perturbation Methods. Springer London, 2013.
  5. [6]J. R. Blum. Multidimensional stochastic approximation methods. The Annals of Mathematical Statistics, 25(4):737–744, 1954.DOI
  6. [7]X. Chen, J. D. Lee, X. T. Tong, and Y. Zhang. Statistical inference for model parameters in stochastic gradient descent. The Annals of Statistics, 48(1), 2020.
  7. [8]F. E. Curtis, D. P. Robinson, and B. Zhou. A stochastic inexact sequential quadratic optimization algorithm for nonlinear equality-constrained optimization. INFORMS Journal on Optimization, 6 (3-4):173–195, 2024.DOI
  8. [9]D. Davis, D. Drusvyatskiy, S. Kakade, and J. D. Lee. Stochastic subgradient method converges on tame functions. Foundations of Computational Mathematics, 20(1):119–154, 2019.arxiv.org/abs/1804.07795
  9. [10]D. Davis, D. Drusvyatskiy, and L. Jiang. Asymptotic normality and optimality in nonsmooth stochastic approximation. The Annals of Statistics, 52(4):1485–1508, 2024.arxiv.org/abs/2301.06632
  10. [11]M. Dereziński and E. Rebrova. Sharp analysis of sketch-and-project methods via a connection to randomized singular value decomposition. SIAM Journal on Mathematics of Data Science, 6(1):127–153, 2024.arxiv.org/abs/2208.09585
  11. [14]J. Duchi and F. Ruan. Asymptotic optimality in stochastic optimization. Annals of Statistics, 49(1):21–48, 2021.arxiv.org/abs/1612.05612
  12. [15]J. Fan, J. Zhang, and K. Yu. Vast portfolio selection with gross-exposure constraints. Journal of the American Statistical Association, 107(498):592–606, 2012.pubmed.ncbi.nlm.nih.gov/23293404
  13. [16]Y. Fang, S. Na, M. W. Mahoney, and M. Kolar. Fully stochastic trust-region sequential quadratic programming for equality-constrained optimization problems. SIAM Journal on Optimization, 34 (2):2007–2037, 2024.arxiv.org/abs/2211.15943
  14. [17]Y. Gao, M. K. Ng, M. W. Mahoney, and S. Na. Online inference of constrained optimization: Primal-dual optimality and sequential quadratic programming. arXiv preprint arXiv:2512.08948, 2025.arxiv.org/abs/2512.08948
  15. [18]C. J. Geyer. Constrained maximum likelihood exemplified by isotonic convex logistic regression. Journal of the American Statistical Association, 86(415):717–724, 1991.DOI
  16. [19]R. M. Gower and P. Richtárik. Randomized iterative methods for linear systems. SIAM Journal on Matrix Analysis and Applications, 36(4):1660–1690, 2015.DOI
  17. [20]P. Hall and C. C. Heyde. Martingale Limit Theory and its Application. Academic Press, 2014.
  18. [21]L. P. Hansen. Large sample properties of generalized method of moments estimators. Econometrica, 50(4):1029, 1982.DOI
  19. [22]L. Jiang, A. Roy, K. Balasubramanian, D. Davis, D. Drusvyatskiy, and S. Na. Online covariance estimation in nonsmooth stochastic approximation. arXiv preprint arXiv:2502.05305, 2025.arxiv.org/abs/2502.05305
  20. [23]J. Kiefer and J. Wolfowitz. Stochastic estimation of the maximum of a regression function. The Annals of Mathematical Statistics, 23(3):462–466, 1952.
  21. [24]D. P. Kouri, M. Heinkenschloss, D. Ridzal, and B. G. van Bloemen Waanders. Inexact objective function evaluations in a trust-region algorithm for PDE-constrained optimization under uncertainty. SIAM Journal on Scientific Computing, 36(6):A3011–A3029, 2014.DOI
  22. [25]W. Kuang, M. Anitescu, and S. Na. Online covariance matrix estimation in sketched Newton methods. Information and Inference: A Journal of the IMA, 15(2):iaag012, 2026.arxiv.org/abs/2502.07114
  23. [26]S. Lee, Y. Liao, M. H. Seo, and Y. Shin. Fast and robust online inference with stochastic gradient descent via random scaling. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 7381–7389. Association for the Advancement of Artificial Intelligence (AAAI), 2022.
  24. [28]H. Luo, A. Agarwal, N. Cesa-Bianchi, and J. Langford. Efficient second order online learning by sketching. Advances in Neural Information Processing Systems, 29, 2016.arxiv.org/abs/1602.02202
  25. [29]S. Na. Derivative-free sequential quadratic programming for equality-constrained stochastic optimization. arXiv preprint arXiv:2510.22458, 2025.arxiv.org/abs/2510.22458
  26. [30]S. Na and M. Mahoney. Statistical inference of constrained stochastic optimization via sketched sequential quadratic programming. Journal of Machine Learning Research, 26(33):1–75, 2025.
  27. [34]J. Nocedal and S. Wright. Numerical Optimization. Springer New York, 2006.
  28. [35]F. Orabona. Almost sure convergence of SGD on smooth nonconvex functions. Blogpost on http://parameterfree.com, 2020. Available at https://parameterfree.com/2020/10/05/almost-sure-convergence-of-sgd-on-smooth-non-convex-functions/.
  29. [36]M. Pilanci and M. J. Wainwright. Iterative Hessian sketch: Fast and accurate solution approximation for constrained least-squares. The Journal of Machine Learning Research, 17(1):1842–1879, 2016.
  30. [37]B. T. Polyak and A. B. Juditsky. Acceleration of stochastic approximation by averaging. SIAM journal on control and optimization, 30(4):838–855, 1992.DOI
  31. [38]M. Raissi, P. Perdikaris, and G. E. Karniadakis. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. Journal of Computational Physics, 378:686–707, 2019.DOI
  32. [40]A. Ruszczyński. Feasible direction methods for stochastic programming problems. Mathematical Programming, 19(1):220–229, 1980.DOI
  33. [41]A. Shapiro, D. Dentcheva, and A. Ruszczyński. Lectures on Stochastic Programming: Modeling and Theory, Third Edition. Society for Industrial and Applied Mathematics, 2021.DOI
  34. [42]J. C. Spall. Introduction to Stochastic Search and Optimization: Estimation, Simulation, and Control. Wiley, 2003.DOI
  35. [43]J. Spall. Multivariate stochastic approximation using a simultaneous perturbation gradient approximation. IEEE Transactions on Automatic Control, 37(3):332–341, 1992.DOI
  36. [44]J. Spall. Adaptive stochastic approximation by the simultaneous perturbation method. IEEE Transactions on Automatic Control, 45(10):1839–1853, 2000.
  37. [45]T. Strohmer and R. Vershynin. A randomized Kaczmarz algorithm with exponential convergence. Journal of Fourier Analysis and Applications, 15(2):262–278, 2008.arxiv.org/abs/math/0702226
  38. [46]H. Wang, X. Du, and S. Na. Inference of online Newton methods with Nesterov’s accelerated sketching. International Conference on Machine Learning (ICML), 2026.arxiv.org/abs/2604.23436
  39. [47]S. Wang, A. Gittens, and M. W. Mahoney. Sketched ridge regression: Optimization perspective, statistical perspective, and model averaging. In International Conference on Machine Learning, pages 3608–3616. PMLR, 2017.arxiv.org/abs/1702.04837

Paper details

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

views · 0

downloads · 0

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

  • Mathematics

Not recorded for this paper

View statement
Looking for related papers…
Contents