NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Online Statistical Inference for Derivative-Free Constrained Stochastic Optimization

Jianliang Ye, Sen NaarXiv 2026

TL;DR

Finding the optimal parameters for a black-box system under strict rules—and knowing how much to trust your answer—usually requires computing impossible derivatives or inverting massive matrices. This paper introduces a clever algorithm that solves constrained, derivative-free optimization problems on the fly, slashing computational costs from cubic to quadratic time. Better yet, it builds valid confidence intervals in real time without losing any statistical precision to its own mathematical shortcuts.

What Problem Does This Paper Address?

Imagine tuning hyperparameters for a complex machine learning pipeline or optimizing an engineering simulation governed by physical laws. You have streaming data (stochastic), strict rules the solution must obey (nonlinear equality constraints), and no clean way to compute gradients (derivative-free). Moreover, you don't just want a single point estimate; you want statistical inference—confidence intervals telling you how uncertain that solution is.

Standard projection-based methods (like projected SGD) choke when constraints are nonlinear because simply projecting a point back onto the valid set becomes a hard optimization problem of its own. Stochastic Sequential Quadratic Programming (SSQP) bypasses projections by breaking the problem into simpler linear-quadratic steps. However, existing SSQP methods face a painful trilemma:

  1. Most require exact gradients and Hessians.
  2. Derivative-free versions require solving a massive linear system from scratch at every step, costing a sluggish $O((d+m)^3)$ operations (where $d$ is variable dimension and $m$ is the number of constraints).
  3. Speeding things up with randomized approximations usually inflates statistical variance, and calculating confidence intervals via "plug-in" covariance matrices brings that dreaded $O((d+m)^3)$ matrix-inversion cost right back through the rear window.

Methods

The authors propose Sketched Derivative-Free SSQP (SDF-SSQP), weaving together three main ideas to achieve fast optimization and fast inference simultaneously:

  • Zeroth-Order Estimation + Momentum Debiasing: Instead of true derivatives, the algorithm probes the objective and constraint functions at randomly perturbed points (finite differences) to estimate gradients, Jacobians, and Hessians. Because finite-difference estimates are inherently noisy and biased, the authors pass them through an online momentum (moving-average) filter to progressively wash out the bias.
  • Randomized Sketching Solver: Rather than solving the Newton-like KKT linear system exactly at each step, SDF-SSQP uses an iterative sketching solver (like randomized Kaczmarz projections). It solves tiny, randomly projected versions of the system, dropping the per-iteration compute cost from $O((d+m)^3)$ down to $O((d+m)^2)$.
  • Online Random Scaling for Inference: Instead of estimating and inverting an asymptotic covariance matrix, the authors average the primal–dual iterates over time (Polyak–Ruppert averaging) and construct a "self-normalized" statistic using the trajectory's own fluctuations. This yields an asymptotically pivotal test statistic (whose limiting distribution has known quantiles and no unknown parameters) that updates online in $O((d+m)^2)$ time.

Datasets

No external real-world datasets or new public benchmarks are introduced. Instead, the authors evaluate their method on synthetic hyperparameter/initialization learning tasks for linear and logistic regression:

  • Dimensions & Constraints: Tested across dimensions $d \in \{5, 20, 40\}$ under two constraint types: a linear constraint and a nonlinear unit-sphere constraint.
  • Feature Distributions: Synthetic data features are drawn from zero-mean Gaussians using three covariance structures: Identity, Toeplitz (decaying correlation), and Equi-correlation.

Key Insights and Ideas

  • A Computational Lunch Without the Statistical Price Tag: In prior derivative-based sketched SSQP methods, sketching creates a tradeoff: you compute faster, but your asymptotic variance gets worse. Here, the authors prove a delightful surprise: because of the momentum debiasing and iterate averaging, the sketching error completely vanishes in the limit! The asymptotic covariance is identical to solving the linear system exactly at every step.
  • Functional CLT with Momentum: To prove that random scaling works, knowing the final average is normally distributed isn't enough—you need the entire trajectory to behave like Brownian motion (a Functional Central Limit Theorem). Momentum breaks the clean martingale-difference structure that standard proofs rely on, so the authors had to pioneer a new maximal-negligibility proof technique that applies broadly to momentum-based stochastic algorithms.

Key Results

Tested over 200 independent runs of $10^5$ outer iterations per configuration, SDF-SSQP (using $s=d$ coordinate sketch steps) went head-to-head against an exact KKT solver ($s=\infty$):

  • Compute Savings: Including both optimization and inference costs, sketching reduced FLOPs per iteration across all settings—saving ~2% at $d=5$, 30–32% at $d=20$, and ~51% at $d=40$ (e.g., dropping from 75,950 to 37,327 FLOPs/iter in 40D sphere-constrained linear regression).
  • Estimation Accuracy: Mean Absolute Errors (MAE) were virtually indistinguishable between the sketched and exact solvers, consistently landing around $10^{-3}$ (e.g., $0.51 \times 10^{-2}$ vs. $0.49 \times 10^{-2}$).
  • Inference Quality: Nominal 95% confidence intervals achieved empirical coverage close to 95% in most settings (mostly spanning ~88% to ~99%), and confidence interval lengths matched the exact solver (e.g., $3.99 \times 10^{-2}$ vs. $4.09 \times 10^{-2}$), confirming empirically that sketching did not inflate variance.

Limitations and Future Work

  • Dimension-Dependent Derivative-Free Penalty: While sketching adds no extra asymptotic variance, derivative-free estimation still does. Compared to having true gradients, the limiting covariance grows linearly with the dimension $d$.
  • Strict Constraint Assumptions: The theory assumes deterministic equality constraints whose Jacobians have full row rank. Relaxing this to handle rank-deficient Jacobians, nonlinear inequality constraints (requiring active-set tracking), and stochastic constraints (briefly sketched out by the authors, but left without rigorous proof) are prime targets for future work.
  • Scale of Experiments: Developing sharper finite-sample bounds and testing on larger-scale, real-world simulation or PDE-constrained problems remain open directions.

Summary updated

BibTeX
@misc{ye2026online,
  author = {Jianliang Ye and Sen Na},
  title = {{Online Statistical Inference for Derivative-Free Constrained Stochastic Optimization}},
  year = {2026},
  eprint = {2611.31687},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.31687},
}
Figure