Introduction
Large language models (LLMs) are evolving rapidly, with a growing number of models available through commercial APIs and open-source platforms. These models are increasingly used not only to make predictions, but also to prepare the data on which downstream decisions are based . Recent work uses LLMs for data cleaning and matching [45 , 46 ] (Zhang et al. 2024), missing-value imputation [27 , 53 ] (He et al. 2025), denoising recommendation data [54 a] , and data annotation [22 , 24 ] (Ye et al. 2025). In these applications, choosing a model or prompt affects not only the cost of obtaining the data, but also its statistical quality for the downstream task. Stronger models, richer prompts, or ensembles may produce more accurate data, but often at a substantially higher price. The key question we consider in this work is: when is additional fidelity worth paying for? We explore this in the context of downstream optimization tasks, like supervised machine learning.
Consider a synthetic experiment on the Aspiring Minds hiring dataset with 10% missing covariates (randomly masked). The goal is to predict ComputerProgramming scores of the candidates from numeric independent features like performance in high school, tier of the undergraduate college, agreeableness, etc. We ask different LLM model–prompt pipelines to reconstruct the missing values, which induces a stochastic-gradient oracle for downstream linear regression, with different fidelities. Table 1 reports their cost and representative fidelity parameters. Even within one model family, richer prompting can significantly change downstream fidelity at almost the same cost. Across different models, price and fidelity are not necessarily monotone. For example, Claude Sonnet 5 costs substantially more than Claude Haiku 4.5 while attaining essentially the same downstream objective in this experiment. Conversely, averaging several high-fidelity completions reduces bias but is much more expensive than a simple completion with GPT Nano. Thus neither “always use the cheapest model” nor “always use the best model” is compelling.
Table 1. Representative LLM-completion pipelines at 10% missingness. Cost is the one-time full-dataset completion price; Obj. is the clean downstream regression objective. The empirical diagnostics σ λ , ∗ 2 \sigma_{\lambda,*}^{2} σ λ , ∗ 2 , L λ \mathcal{L}_{\lambda} L λ , and B ^ λ \widehat{B}_{\lambda} B λ are defined in § 6 . The “clean data” row is a benchmark and is unavailable to the adaptive policy. The bolded rows represent the stochastic oracles selected along the trajectory of our adaptive algorithm.
This question motivates us to propose a progress-dependent optimization strategy. Rather than committing to one oracle throughout optimization, we divide the optimization trajectory into stages of progressively finer accuracy. At a stage with current error scale R R R , an oracle does not need to be the most accurate one available; it only needs to be accurate enough to support the next constant-factor reduction in optimization error. Among the oracles that can achieve this reduction, we choose the most cost-efficient one, i.e., the one with the smallest total stage cost. Therefore, when far from the optimum, a cheap but relatively noisy or biased oracle can be the most economical choice. As the target radius shrinks, the required bias level becomes more stringent and residual noise becomes more important, causing the algorithm to switch to higher-fidelity sources. This design is informed by recent studies on state-dependent behavior of stochastic optimization algorithms [55 , 36 , 34 ] . In the classical state-independent setting [42 , 39 ] , the stochastic gradient noise is assumed to be uniformly bounded over the domain, which can be restrictive for important applications such as generalized linear regression with unbounded regressors. Under the more general state-dependent model, the noise level varies with the optimality state: the state-dependent component decreases as the iterates approach the optimum, while the residual component captures the irreducible noise at the optimum. With multiple priced oracles, these different scalings imply that the relative cost-efficiency of the oracles can change across optimization stages; thus there need not be a single oracle that is uniformly optimal throughout the trajectory. In our illustrative experiment with oracles shown in Table 1 , this logic produces the progression from inexpensive Nano pipelines to Luna and eventually an ensemble, while skipping several more expensive alternatives like Sonnet altogether. This algorithmic idea is further illustrated in Figure 1 .2
Figure 1. Schematic illustration of stage-dependent oracle switching. At coarse accuracy scales, a low-cost oracle can be sufficient for continued progress; as optimization approaches x ∗ x^* x ∗ , higher-fidelity oracles become worthwhile or necessary. The actual switching points depend jointly on oracle cost, bias, variance, and the current optimization scale.
Framework for Mixed-Fidelity Stochastic Oracles We consider a general model for stochastic optimization, where mixed-fidelity oracles can be used to provide stochastic gradients, with known costs and state-dependent bias and variance. The goal is to minimize
f ∗ : = min x ∈ X f ( x ) , (1) f^* := \min_{x \in X} f(x), \tag*{(1)} f ∗ := x ∈ X min f ( x ) , (1)
where X ⊂ R d X \subset\mathbb{R}^d X ⊂ R d is closed and convex, and f f f is L L L -smooth and μ \mu μ -strongly convex3 . For example, one can consider the least squares loss for any regression problem. We assume that we have access to ℓ \ell ℓ stochastic first-order oracles { S O λ } λ = 1 ℓ \{SO_\lambda\}_{\lambda=1}^{\ell} { S O λ } λ = 1 ℓ , where a query to S O λ SO_\lambda S O λ costs c λ c_\lambda c λ and this is known to the user. The fidelity of the oracle is governed by three parameters: (i) the systemic bias of the oracle B λ B_\lambda B λ ; (ii) the state-dependent modulus L λ \mathcal{L}_\lambda L λ ; (iii) the residual variance near the optimum σ λ , ∗ 2 \sigma_{\lambda,*}^{2} σ λ , ∗ 2 . A query to S O λ SO_\lambda S O λ at point x x x returns a stochastic gradient G λ ( x , ξ ) \mathcal{G}_\lambda(x,\xi) G λ ( x , ξ ) with mean g λ ( x ) = E ξ [ G λ ( x , ξ ) ] g_\lambda(x)=\mathbb{E}_{\xi}[\mathcal{G}_\lambda(x,\xi)] g λ ( x ) = E ξ [ G λ ( x , ξ )] , and
∥ g λ ( x ) − ∇ f ( x ) ∥ ≤ B λ , (2) \lVert g_\lambda(x)-\nabla f(x)\rVert\le B_\lambda, \tag*{(2)} ∥ g λ ( x ) − ∇ f ( x )∥ ≤ B λ , (2)
E ∥ G λ ( x , ξ ) − g λ ( x ) ∥ 2 ≤ L λ [ f ( x ) − f ∗ ] + σ λ , ∗ 2 . (3) \mathbb{E}\lVert\mathcal{G}_\lambda(x,\xi)-g_\lambda(x)\rVert^{2} \le\mathcal{L}_\lambda[f(x)-f^*]+\sigma_{\lambda,*}^{2}. \tag*{(3)} E ∥ G λ ( x , ξ ) − g λ ( x ) ∥ 2 ≤ L λ [ f ( x ) − f ∗ ] + σ λ , ∗ 2 . (3)
The first condition captures systematic oracle bias. In our most general setting, we do not assume knowledge of the bias parameter. The second condition allows the stochastic variance to depend on the current optimization error: the component L λ [ f ( x ) − f ∗ ] \mathcal{L}_\lambda[f(x)-f^*] L λ [ f ( x ) − f ∗ ] decreases as optimization progresses, while the residual variance σ λ , ∗ 2 \sigma_{\lambda,*}^{2} σ λ , ∗ 2 is non-diminishing even near the optimum. This setting coincides with our framework where the noise introduced by stochastic oracles depend on the optimization progress. Together, B λ B_\lambda B λ , L λ \mathcal{L}_\lambda L λ , σ λ , ∗ 2 \sigma_{\lambda,*}^{2} σ λ , ∗ 2 , and the price c λ c_\lambda c λ determine the value of oracle λ \lambda λ at a given accuracy scale. In an LLM pipeline, an oracle may correspond to a model, prompt, ensemble, or human–AI combination, while f f f represents the downstream objective rather than the upstream completion or annotation task itself. § 2 gives concrete examples and verifies these assumptions for LLM-generated labels and completed covariates.
Contributions.
Our main contributions lie in the design and analysis of cost-efficient adaptive oracle-switching meta-algorithms, together with concrete stochastic optimization subroutines and LLM experiments.
Multistage oracle-switching with known bias. We develop a generic meta-algorithm that uses a chosen stochastic optimization subroutine across stages, so that the current squared-distance radius is reduced by a constant factor. At each stage, the policy selects the most cost-efficient oracle for achieving the next contraction among all oracles with admissible bias. As one concrete contraction subroutine, we analyze a strongly convex variant of stochastic gradient extrapolation (SGE) under state-dependent noise and persistent bias. For unbiased oracles, the cumulative cost of our framework is no larger than that of the best fixed oracle in hindsight, and the savings can be up to Θ ( K / log K ) \Theta(K/\log K) Θ ( K / log K ) over K K K stages. With biased oracles, the framework can exploit cheaper sources early while ultimately reaching the accuracy scale allowed by lower-bias sources.
Characterizing cost with respect to desired accuracy: The stagewise formulation yields explicit operational criteria for comparing oracle cost and fidelity. We characterize when one oracle is dominated by another and derive stage-dependent break-even prices that quantify how much one should be willing to pay for a higher-fidelity source at a given downstream accuracy level. Our results can help vendors check a simple condition dependent on their downstream task, and decide which oracles are useful in their pipeline.
Budgeted certification with unknown bias. When bias parameters are unavailable or hard-to-estimate, we develop a second meta-algorithm based on occasional trusted projected-gradient certification. We introduce a budget parameter to control how much uncertified training can be performed before the next checkpoint; failed sources are removed permanently while any certifiable progress is retained. We further show that recursive regularization combined with biased SGE provides a concrete projected-gradient reduction subroutine
for certification, and characterize the resulting tradeoff between frequent certification and delayed detection of biased sources.
Empirical validation. We conducted controlled simulations and LLM-completion experiments on the Aspiring Minds hiring dataset. The adaptive strategy exhibits the predicted stage-dependent switching and achieves substantial cost savings relative to strategies with a fixed stochastic oracle. At 10% missingness, for example, the adaptive policy follows
Nano LR-short-7 (SO2) ⟶ \longrightarrow ⟶ Nano LR-10 (SO4) ⟶ \longrightarrow ⟶ Luna (SO5) ⟶ \longrightarrow ⟶ Avg. Haiku+Sonnet (SO8),
skipping several more expensive alternatives. The cumulative cost is about $72, versus about $240 for always using the best oracle, a reduction of roughly 70% while reaching the same accuracy scale. Our experiments also provide clear evidence for the certification frequency tradeoff when the bias parameters are unknown.
Related work
LLM data curation and noisy supervision. LLMs are increasingly used to improve data quality before it enters a downstream learning or decision problem. For missing-data imputation, Hayat and Hasan [27 ] use contextual information from pre-trained language models, He et al. (2025) combine graph-augmented prompting with an ensemble of LLMs, and Wang et al. [53 ] develop an LLM-based spatiotemporal imputation model for highly sparse remote-sensing data. Related work uses LLMs for general-purpose data cleaning and matching [45 , 46 ] (Zhang et al. 2024), and for identifying or correcting noisy interactions in recommender systems [54 a] . On the labeling side, LLMs can serve as scalable annotators or assist human annotators [22 , 24 ] ; recent work also studies how to detect label errors [41 ] and train classifiers robustly from LLM-generated noisy labels (Ye et al., 2025). These papers primarily ask how LLMs can improve upstream data quality. Our focus is complementary: given several data-generation or curation pipelines with different costs and fidelities, we ask how their value changes with the stage of the downstream optimization problem.
Cost-aware model selection and data markets. Closest to our cost perspective are systems that choose different models for different inference queries. Chen et al. [14 ] propose FrugalGPT which exploits heterogeneous model prices and task performance to construct lower-cost cascades. Ong et al. [44 ] propose RouteLLM that learns to route prompts between stronger and weaker models using preference data. In a concurrent work, Belloni et al. [8 ] develop an online learning approach to adaptively query and select LLM APIs. Our setting is different: the source is selected according to the progress of a downstream optimization algorithm , rather than independently for each inference query. More broadly, the economics literature studies data as a priced asset and analyzes data markets, valuation, and pricing distortions [1 , 20 ] . The value of clean versus corrupted data also appears outside the LLM setting. Denoising is central to diffusion-based generative modeling (Ho et al., 2020), while Daras et al. [16 ] explicitly quantify how noisy training samples trade off against clean samples in ambient diffusion.
Stochastic, multi-fidelity, and multilevel optimization. Multi-fidelity optimization and simulation exploit sources of different costs and accuracies, often to reduce the number of expensive evaluations [47 , 37 ] . In first-order methods and stochastic approximation [48 , 42 ] , inexact-oracle models quantify the effect of deterministic errors [18 ] , while biased stochastic-gradient analyses study persistent gradient bias; see, e.g., [2 ] . Our noise model is also related to stochastic optimization with state-dependent noise conditions that replace a uniform variance bound by one that decreases near the solution [25 , 6 , 26 , 55 , 38 , 36 , 34 , 50 ] . As one concrete implementation of our meta-algorithms, we use SGE-type acceleration proposed by Lan and Zhou [40 ] , whose extrapolation structure is well suited to state-dependent noise as shown in Ilandarideva et al. [34 ] . Moreover, our unknown-bias construction is related to learning from weak or inexpensive information augmented by a small trusted source [29 , 4 ] (Ratner et al. 2017), and uses recursive regularization for gradient minimization in stochastic settings [3 , 21 ] for certification.
Closely related to our bias–variance–cost perspective is the multilevel Monte Carlo (MLMC) line of work on stochastic optimization with biased oracles. Hu et al. (2021, 2024) study a hierarchy of increasingly accurate and increasingly expensive biased stochastic oracles and design MLMC gradient estimators that exploit the joint tradeoff among bias, variance, and query cost. This line builds on MLMC and randomized-debiasing ideas for stochastic approximation [23 , 10 , 17 , 9 , 7 , 5 ] . In particular, Beatson and Adams [7 ] tune randomized telescoping estimators according to optimization progress per unit of computation, while Asi et al. [5 ] use multilevel randomization to construct low-bias, low-cost estimators for optimization subroutines. Our setting shares the principle that lower bias should be purchased only when it is worth the additional cost, but the oracle model and algorithmic mechanism are different. The MLMC framework assumes a structured approximation hierarchy and exploits coupled difference estimators across adjacent fidelity levels. By contrast, we allow a finite collection of heterogeneous black-box stochastic oracles that need not be nested, ordered by fidelity, or coupled through difference estimators.
Notation and organization
Throughout the paper, we let ∥ ⋅ ∥ \lVert\cdot\rVert ∥ ⋅ ∥ denote the Euclidean norm for vectors and the spectral norm for matrices, and let ⟨ ⋅ , ⋅ ⟩ \langle\cdot,\cdot\rangle ⟨ ⋅ , ⋅ ⟩ denote the Euclidean inner product. We let x ∗ x^{*} x ∗ denote an optimal solution of (1) . We use E \mathbb{E} E for expectation. For symmetric matrices A A A and B B B , A ⪯ B A \preceq B A ⪯ B means that B − A B-A B − A is positive semidefinite, and λ max ( A ) \lambda_{\max}(A) λ m a x ( A ) denotes the largest eigenvalue of A A A . For a nonempty closed convex set Y Y Y , we denote the Euclidean projection by
Π Y ( x ) : = arg min z ∈ Y ∥ z − x ∥ . \Pi_Y(x) := \mathop{\arg\min}_{z\in Y} \lVert z-x\rVert. Π Y ( x ) := arg min z ∈ Y ∥ z − x ∥ .
For a stepsize γ > 0 \gamma>0 γ > 0 , the projected-gradient mapping of f f f over Y Y Y is defined as
G Y , γ f ( x ) : = 1 γ [ x − Π Y ( x − γ ∇ f ( x ) ) ] . (4) G^f_{Y,\gamma}(x) := \frac{1}{\gamma}\left[x-\Pi_Y\left(x-\gamma\nabla f(x)\right)\right]. \tag*{(4)} G Y , γ f ( x ) := γ 1 [ x − Π Y ( x − γ ∇ f ( x ) ) ] . (4)
We use the shorthand G Y , γ ( x ) G_{Y,\gamma}(x) G Y , γ ( x ) when the function f f f is clear from the context. Finally, O ~ ( ⋅ ) \widetilde{O}(\cdot) O ( ⋅ ) suppresses logarithmic factors.
The rest of the paper is organized as follows. § 2 gives concrete examples on LLM-generated labels and LLM-completion and verifies the oracle assumptions. § 3 develops the known-bias meta-algorithm and proposes biased SGE as a concrete contraction subroutine. § 4 characterizes when higher fidelity is worth paying for, including oracle domination and break-even-price interpretations. § 5 develops the unknown-bias budgeted-certification meta-algorithm, proposes a projected-gradient reduction subroutine using recursive regularization, and studies how often certification should be purchased. § 6 reports the numerical experiments.
Applications: LLM-generated labels and completed data
In this section, we provide two concrete examples showing how the mixed-fidelity assumptions arise in LLM-assisted data pipelines. The first considers LLM-generated or LLM-corrected labels; while the second considers LLM reconstruction of missing covariates. In both cases, stronger models, richer prompts, ensembles, or human review can be represented as more expensive oracles with different bias and variance parameters.
LLM-generated noisy labels
Consider a generalized linear model with feature vector θ \theta θ and clean conditional mean
E [ y ∣ θ ] = u ( θ T x ∗ ) , (5) \mathbb{E}[y \mid\theta] = u(\theta^{\mathsf{T}}x^*), \tag*{(5)} E [ y ∣ θ ] = u ( θ T x ∗ ) , (5)
where u = v ′ u = v' u = v ′ is r ˉ \bar{r} r ˉ -Lipschitz and r r r -strongly monotone. The clean population objective is
f ( x ) = E [ v ( θ T x ) − y θ T x ] . (6) f(x) = \mathbb{E}\left[v(\theta^{\mathsf{T}}x) - y\theta^{\mathsf{T}}x\right]. \tag*{(6)} f ( x ) = E [ v ( θ T x ) − y θ T x ] . (6)
Assume x ∗ x^* x ∗ is an interior point over the feasible region X X X , so that ∇ f ( x ∗ ) = 0 \nabla f(x^*) = 0 ∇ f ( x ∗ ) = 0 . Suppose the stochastic oracle λ \lambda λ obtains labels from an LLM, a human annotator, or a hybrid procedure, such that
y λ = u ( θ T x ∗ ) + b λ ( θ ) + ε λ , (7) y^\lambda= u(\theta^{\mathsf{T}}x^*) + b_\lambda(\theta) + \varepsilon^\lambda, \tag*{(7)} y λ = u ( θ T x ∗ ) + b λ ( θ ) + ε λ , (7)
where E [ ε λ ∣ θ ] = 0 \mathbb{E}[\varepsilon^\lambda\mid\theta] = 0 E [ ε λ ∣ θ ] = 0 and b λ ( θ ) b_\lambda(\theta) b λ ( θ ) represents systematic annotation error. Then the stochastic gradient
G λ ( x ; θ , y λ ) = θ ( u ( θ T x ) − y λ ) G_\lambda(x; \theta, y^\lambda) = \theta\left(u(\theta^{\mathsf{T}}x) - y^\lambda\right) G λ ( x ; θ , y λ ) = θ ( u ( θ T x ) − y λ )
has mean g λ ( x ) = E [ G λ ( x ; θ , y λ ) ] g_\lambda(x) = \mathbb{E}[G_\lambda(x; \theta, y^\lambda)] g λ ( x ) = E [ G λ ( x ; θ , y λ )] satisfying
g λ ( x ) − ∇ f ( x ) = − E [ θ b λ ( θ ) ] , g_\lambda(x) - \nabla f(x) = -\mathbb{E}[\theta b_\lambda(\theta)], g λ ( x ) − ∇ f ( x ) = − E [ θ b λ ( θ )] ,
so the bias condition (2) holds with B λ = ∥ E [ θ b λ ( θ ) ] ∥ B_\lambda= \|\mathbb{E}[\theta b_\lambda(\theta)]\| B λ = ∥ E [ θ b λ ( θ )] ∥ . This systematic bias can be viewed as a natural distinction between, for example, a cheap LLM labeler with systematic class-specific errors and a more expensive expert-reviewed labeler.
The state-dependent variance condition (3) follows under a standard fourth-moment assumption. Let Σ = E [ θ θ T ] \Sigma= \mathbb{E}[\theta\theta^{\mathsf{T}}] Σ = E [ θ θ T ] and suppose E [ ∥ θ ∥ 2 θ θ T ] ⪯ ς Σ \mathbb{E}[\|\theta\|^2\theta\theta^{\mathsf{T}}] \preceq\varsigma\Sigma E [ ∥ θ ∥ 2 θ θ T ] ⪯ ς Σ . Invoke that the strong monotonicity of $u indicates f ( x ) − f ∗ ≥ ( r / 2 ) ( x − x ∗ ) ⊤ Σ ( x − x ∗ ) f(x)-f^* \ge(r/2)(x-x^*)^\top\Sigma(x-x^*) f ( x ) − f ∗ ≥ ( r /2 ) ( x − x ∗ ) ⊤ Σ ( x − x ∗ ) . We can decompose G λ − g λ \mathcal{G}_\lambda-g_\lambda G λ − g λ to obtain
E ∥ G λ ( x ; θ , y λ ) − g λ ( x ) ∥ 2 = E ∥ θ ( u ( θ ⊤ x ) − u ( θ ⊤ x ∗ ) ) − θ ( b λ ( θ ) + ϵ λ ) + E [ θ b λ ( θ ) ] ∥ 2 ≤ 2 E ∥ θ ( u ( θ ⊤ x ) − u ( θ ⊤ x ∗ ) ) ∥ 2 + σ λ , ∗ 2 ≤ 2 r ˉ 2 E [ ∥ θ ∥ 2 ∣ θ ⊤ ( x − x ∗ ) ∣ 2 ] + σ λ , ∗ 2 ≤ 2 r ˉ 2 ς ( x − x ∗ ) ⊤ Σ ( x − x ∗ ) + σ λ , ∗ 2 ≤ 4 r ˉ 2 ς r [ f ( x ) − f ∗ ] + σ λ , ∗ 2 , (8) \begin{aligned}
\mathbb{E}\|\mathcal{G}_\lambda(x;\theta,y^\lambda)-g_\lambda(x)\|^2
&=\mathbb{E}\left\|\theta\left(u(\theta^\top x)-u(\theta^\top x^*)\right)-\theta\left(b_\lambda(\theta)+\epsilon^\lambda\right)+\mathbb{E}[\theta b_\lambda(\theta)]\right\|^2\\
&\le2\mathbb{E}\left\|\theta\left(u(\theta^\top x)-u(\theta^\top x^*)\right)\right\|^2+\sigma_{\lambda,*}^2\\
&\le2\bar r^2\mathbb{E}\left[\|\theta\|^2\left|\theta^\top(x-x^*)\right|^2\right]+\sigma_{\lambda,*}^2\\
&\le2\bar r^2\varsigma(x-x^*)^\top\Sigma(x-x^*)+\sigma_{\lambda,*}^2\\
&\le\frac{4\bar r^2\varsigma}{r}\left[f(x)-f^*\right]+\sigma_{\lambda,*}^2, \tag*{(8)}
\end{aligned} E ∥ G λ ( x ; θ , y λ ) − g λ ( x ) ∥ 2 = E θ ( u ( θ ⊤ x ) − u ( θ ⊤ x ∗ ) ) − θ ( b λ ( θ ) + ϵ λ ) + E [ θ b λ ( θ )] 2 ≤ 2 E θ ( u ( θ ⊤ x ) − u ( θ ⊤ x ∗ ) ) 2 + σ λ , ∗ 2 ≤ 2 r ˉ 2 E [ ∥ θ ∥ 2 θ ⊤ ( x − x ∗ ) 2 ] + σ λ , ∗ 2 ≤ 2 r ˉ 2 ς ( x − x ∗ ) ⊤ Σ ( x − x ∗ ) + σ λ , ∗ 2 ≤ r 4 r ˉ 2 ς [ f ( x ) − f ∗ ] + σ λ , ∗ 2 , (8)
where σ λ , ∗ 2 = 2 E ∥ θ ( b λ ( θ ) + ϵ λ ) − E [ θ b λ ( θ ) ] ∥ 2 \sigma_{\lambda,*}^2=2\mathbb{E}\left\|\theta(b_\lambda(\theta)+\epsilon^\lambda)-\mathbb{E}[\theta b_\lambda(\theta)]\right\|^2 σ λ , ∗ 2 = 2 E θ ( b λ ( θ ) + ϵ λ ) − E [ θ b λ ( θ )] 2 . Thus, different label sources can share essentially the same state-dependent component that does not depend on the labeling error b λ ( θ ) b_\lambda(\theta) b λ ( θ ) and ϵ λ \epsilon^\lambda ϵ λ , while having very different bias and residual variance. In practice, repeated annotations or a small trusted calibration set can be used to estimate these quantities, which is precisely the setting motivating the certification mechanism in § 5 .
LLM completion of missing covariates
In this subsection, we consider the same generalized linear model (5) as in Subsection 2.1, but our observation of θ \theta θ has various missing entries. As before, assume x ∗ x^* x ∗ is an interior point of X \mathcal{X} X , and the clean population objective is (6) . Suppose the model–prompt pipeline λ \lambda λ reconstructs missing entries of θ \theta θ to produce θ ~ λ \widetilde{\theta}_\lambda θ λ . The resulting stochastic-gradient oracle is
G λ ( x ; θ ~ λ , y ) = θ ~ λ ( u ( θ ~ λ ⊤ x ) − y ) , \mathcal{G}_\lambda(x;\widetilde{\theta}_\lambda,y)=\widetilde{\theta}_\lambda\left(u(\widetilde{\theta}_\lambda^\top x)-y\right), G λ ( x ; θ λ , y ) = θ λ ( u ( θ λ ⊤ x ) − y ) ,
with mean g λ ( x ) = E [ G λ ( x ; θ ~ λ , y ) ] g_\lambda(x)=\mathbb{E}[\mathcal{G}_\lambda(x;\widetilde{\theta}_\lambda,y)] g λ ( x ) = E [ G λ ( x ; θ λ , y )] . Define the bias at the optimum by b λ : = g λ ( x ∗ ) b_\lambda:=g_\lambda(x^*) b λ := g λ ( x ∗ ) .
For a , b ∈ R a,b\in\mathbb{R} a , b ∈ R , define q ( a , b ) = u ( a ) − u ( b ) a − b q(a,b)=\frac{u(a)-u(b)}{a-b} q ( a , b ) = a − b u ( a ) − u ( b ) for a ≠ b a\ne b a = b , and choose any q ( a , a ) q(a,a) q ( a , a ) as an arbitrary number in [ r , r ˉ ] [r,\bar r] [ r , r ˉ ] . By strong monotonicity and Lipschitz continuity of u u u , we have r ≤ q ( a , b ) ≤ r ˉ r\le q(a,b)\le\bar r r ≤ q ( a , b ) ≤ r ˉ . Let
Q ( x ) = E [ q ( θ ⊤ x , θ ⊤ x ∗ ) θ θ ⊤ ] , Q λ ( x ) = E [ q ( θ ~ λ ⊤ x , θ ~ λ ⊤ x ∗ ) θ ~ λ θ ~ λ ⊤ ] . Q(x)=\mathbb{E}\left[q(\theta^\top x,\theta^\top x^*)\theta\theta^\top\right],\qquad Q_\lambda(x)=\mathbb{E}\left[q(\widetilde{\theta}_\lambda^\top x,\widetilde{\theta}_\lambda^\top x^*)\widetilde{\theta}_\lambda\widetilde{\theta}_\lambda^\top\right]. Q ( x ) = E [ q ( θ ⊤ x , θ ⊤ x ∗ ) θ θ ⊤ ] , Q λ ( x ) = E [ q ( θ λ ⊤ x , θ λ ⊤ x ∗ ) θ λ θ λ ⊤ ] .
Since ∇ f ( x ∗ ) = 0 \nabla f(x^*)=0 ∇ f ( x ∗ ) = 0 , we have
g λ ( x ) − ∇ f ( x ) = b λ + E [ θ ~ λ ( u ( θ ~ λ ⊤ x ) − u ( θ ~ λ ⊤ x ∗ ) ) − θ ( u ( θ ⊤ x ) − u ( θ ⊤ x ∗ ) ) ] = b λ + ( Q λ ( x ) − Q ( x ) ) ( x − x ∗ ) . (9) \begin{aligned}
g_\lambda(x)-\nabla f(x)
&=b_\lambda+\mathbb{E}\left[\widetilde{\theta}_\lambda\left(u(\widetilde{\theta}_\lambda^\top x)-u(\widetilde{\theta}_\lambda^\top x^*)\right)-\theta\left(u(\theta^\top x)-u(\theta^\top x^*)\right)\right]\\
&=b_\lambda+\left(Q_\lambda(x)-Q(x)\right)(x-x^*). \tag*{(9)}
\end{aligned} g λ ( x ) − ∇ f ( x ) = b λ + E [ θ λ ( u ( θ λ ⊤ x ) − u ( θ λ ⊤ x ∗ ) ) − θ ( u ( θ ⊤ x ) − u ( θ ⊤ x ∗ ) ) ] = b λ + ( Q λ ( x ) − Q ( x ) ) ( x − x ∗ ) . (9)
Therefore, assuming max x ∈ X ∥ x − x ∗ ∥ ≤ D \max_{x\in\mathcal{X}}\|x-x^*\|\le D max x ∈ X ∥ x − x ∗ ∥ ≤ D and defining Δ λ ( D ) : = sup ∥ x − x ∗ ∥ ≤ D ∥ Q λ ( x ) − Q ( x ) ∥ \Delta_\lambda(D):=\sup_{\|x-x^*\|\le D}\|Q_\lambda(x)-Q(x)\| Δ λ ( D ) := sup ∥ x − x ∗ ∥ ≤ D ∥ Q λ ( x ) − Q ( x ) ∥ , the uniform-bias assumption (2) holds with
B λ ≤ ∥ b λ ∥ + Δ λ ( D ) D . (10) B_\lambda\le\|b_\lambda\|+\Delta_\lambda(D)D. \tag*{(10)} B λ ≤ ∥ b λ ∥ + Δ λ ( D ) D . (10)
Thus, higher-quality completions can reduce both the bias at the optimum and the local curvature mismatch induced by reconstructing the covariates.
The variance also satisfies the state-dependent noise model. Suppose E [ ∥ θ ~ λ ∥ 2 θ ~ λ θ ~ λ ⊤ ] ⪯ ς λ E [ θ θ ⊤ ] \mathbb{E}[\|\widetilde{\theta}_\lambda\|^2\widetilde{\theta}_\lambda\widetilde{\theta}_\lambda^\top]\preceq\varsigma_\lambda\mathbb{E}[\theta\theta^\top] E [ ∥ θ λ ∥ 2 θ λ θ λ ⊤ ] ⪯ ς λ E [ θ θ ⊤ ] , and let σ ˉ λ , ∗ 2 : = E ∥ G λ ( x ∗ ; θ ~ λ , y ) − g λ ( x ∗ ) ∥ 2 \bar\sigma_{\lambda,*}^2:=\mathbb{E}\left\|\mathcal{G}_\lambda(x^*;\widetilde{\theta}_\lambda,y)-g_\lambda(x^*)\right\|^2 σ ˉ λ , ∗ 2 := E G λ ( x ∗ ; θ λ , y ) − g λ ( x ∗ ) 2 . Using the r ˉ \bar r r ˉ -Lipschitz continuity of u u u and strong monotonicity, f ( x ) − f ∗ ≥ r 2 ( x − x ∗ ) ⊤ E [ θ θ ⊤ ] ( x − x ∗ ) f(x)-f^*\ge\frac{r}{2}(x-x^*)^\top\mathbb{E}[\theta\theta^\top](x-x^*) f ( x ) − f ∗ ≥ 2 r ( x − x ∗ ) ⊤ E [ θ θ ⊤ ] ( x − x ∗ ) , we obtain a similar bound as in Ineq. (8) , i.e.,
E ∥ G λ ( x , ξ ) − g λ ( x ) ∥ 2 ≤ 4 r ˉ 2 ς λ r [ f ( x ) − f ∗ ] + 2 σ ˉ λ , ∗ 2 , (11) \mathbb{E}\|\mathcal{G}_\lambda(x,\xi)-g_\lambda(x)\|^2\le\frac{4\bar r^2\varsigma_\lambda}{r}[f(x)-f^*]+2\bar\sigma_{\lambda,*}^2, \tag*{(11)} E ∥ G λ ( x , ξ ) − g λ ( x ) ∥ 2 ≤ r 4 r ˉ 2 ς λ [ f ( x ) − f ∗ ] + 2 σ ˉ λ , ∗ 2 , (11)
which verifies the state-dependent noise assumption (3) .
Linear regression as a special case. Linear regression is recovered by taking u ( t ) = t u(t)=t u ( t ) = t . In this case, Q ( x ) = Σ : = E [ θ θ ⊤ ] Q(x)=\Sigma:=\mathbb{E}[\theta\theta^{\top}] Q ( x ) = Σ := E [ θ θ ⊤ ] and Q λ ( x ) = Σ λ : = E [ θ ~ λ θ ~ λ ⊤ ] Q_{\lambda}(x)=\Sigma_{\lambda}:=\mathbb{E}[\tilde{\theta}_{\lambda}\tilde{\theta}_{\lambda}^{\top}] Q λ ( x ) = Σ λ := E [ θ ~ λ θ ~ λ ⊤ ] , thus Eq. (9) reduces to the Hessian-mismatch decomposition
g λ ( x ) − ∇ f ( x ) = b λ + ( Σ λ − Σ ) ( x − x ∗ ) , (12) g_{\lambda}(x)-\nabla f(x)=b_{\lambda}+(\Sigma_{\lambda}-\Sigma)(x-x^{*}), \tag*{(12)} g λ ( x ) − ∇ f ( x ) = b λ + ( Σ λ − Σ ) ( x − x ∗ ) , (12)
and B λ ≤ ∥ b λ ∥ + ∥ Σ λ − Σ ∥ D \mathcal{B}_{\lambda}\leq\lVert b_{\lambda}\rVert+\lVert\Sigma_{\lambda}-\Sigma\rVert D B λ ≤ ∥ b λ ∥ + ∥ Σ λ − Σ ∥ D . The variance can also be characterized in a more fine-grained manner. Define M λ , ξ : = θ ~ λ θ ~ λ ⊤ − H λ M_{\lambda,\xi}:=\tilde{\theta}_{\lambda}\tilde{\theta}_{\lambda}^{\top}-H_{\lambda} M λ , ξ := θ ~ λ θ ~ λ ⊤ − H λ . We have
G λ ( x ; θ ~ λ , y ) − g λ ( x ) = M λ , ξ ( x − x ∗ ) + G λ ( x ∗ ; θ ~ λ , y ) − g λ ( x ∗ ) . G_{\lambda}(x;\tilde{\theta}_{\lambda},y)-g_{\lambda}(x)=M_{\lambda,\xi}(x-x^{*})+G_{\lambda}(x^{*};\tilde{\theta}_{\lambda},y)-g_{\lambda}(x^{*}). G λ ( x ; θ ~ λ , y ) − g λ ( x ) = M λ , ξ ( x − x ∗ ) + G λ ( x ∗ ; θ ~ λ , y ) − g λ ( x ∗ ) .
Define ν λ 2 : = λ max ( E [ M λ , ξ ⊤ M λ , ξ ] ) \nu_{\lambda}^{2}:=\lambda_{\max}\left(\mathbb{E}[M_{\lambda,\xi}^{\top}M_{\lambda,\xi}]\right) ν λ 2 := λ m a x ( E [ M λ , ξ ⊤ M λ , ξ ] ) and σ ˉ λ , ∗ 2 : = E ∥ G λ ( x ∗ ; θ ~ λ , y ) − g λ ( x ∗ ) ∥ 2 \bar{\sigma}_{\lambda,*}^{2}:=\mathbb{E}\lVert G_{\lambda}(x^{*};\tilde{\theta}_{\lambda},y)-g_{\lambda}(x^{*})\rVert^{2} σ ˉ λ , ∗ 2 := E ∥ G λ ( x ∗ ; θ ~ λ , y ) − g λ ( x ∗ ) ∥ 2 . Using strong convexity yields
E ∥ G λ ( x , ξ ) − g λ ( x ) ∥ 2 ≤ 4 ν λ 2 μ [ f ( x ) − f ∗ ] + 2 σ ˉ λ , ∗ 2 , (13) \mathbb{E}\lVert G_{\lambda}(x,\xi)-g_{\lambda}(x)\rVert^{2}\leq\frac{4\nu_{\lambda}^{2}}{\mu}[f(x)-f^{*}]+2\bar{\sigma}_{\lambda,*}^{2}, \tag*{(13)} E ∥ G λ ( x , ξ ) − g λ ( x ) ∥ 2 ≤ μ 4 ν λ 2 [ f ( x ) − f ∗ ] + 2 σ ˉ λ , ∗ 2 , (13)
which verifies the state-dependent noise assumption (3) . This example directly matches our LLM-completion experiments: different models and prompts induce different reconstructed datasets, costs, bias levels, and state-dependent variance.
Known bias: cost-aware oracle-switching
In this section, we introduce a multistage adaptive oracle switching strategy assuming the bias parameters { B λ } λ = 1 ℓ \{\mathcal{B}_{\lambda}\}_{\lambda=1}^{\ell} { B λ } λ = 1 ℓ are known. To enable the design of the multistage meta-algorithm, we first assume access to a stochastic optimization subroutine that can reduce the current expected squared distance to the optimum by a constant factor at a predictable cost. A concrete choice of an efficient subroutine will be discussed in Subsection 3.1.
Definition 1 (Distance-contraction subroutine). Consider an optimization subroutine Contract( y , R ; S O λ ) (y,R;\mathrm{SO}_{\lambda}) ( y , R ; SO λ ) , which takes an initial point y y y , a target radius R R R , and a stochastic oracle S O λ \mathrm{SO}_{\lambda} SO λ as inputs. Associated with the subroutine are a bias-admissibility condition A d m C ( R , B λ ) \mathrm{Adm}_{\mathrm{C}}(R,\mathcal{B}_{\lambda}) Adm C ( R , B λ ) and an oracle complexity bound T ( R , λ ) T(R,\lambda) T ( R , λ ) . We say that Contract is a valid distance-contraction subroutine if, whenever
E ∥ y − x ∗ ∥ 2 ≤ R 2 and A d m C ( R , B λ ) holds , \mathbb{E}\lVert y-x^{*}\rVert^{2}\leq R^{2}\quad\text{and}\quad\mathrm{Adm}_{\mathrm{C}}(R,\mathcal{B}_{\lambda})\text{ holds}, E ∥ y − x ∗ ∥ 2 ≤ R 2 and Adm C ( R , B λ ) holds , it uses at most T ( R , λ ) T(R,\lambda) T ( R , λ ) calls to S O λ \mathrm{SO}_{\lambda} SO λ and returns y + y^{+} y + satisfying E ∥ y + − x ∗ ∥ 2 ≤ R 2 2 \mathbb{E}\lVert y^{+}-x^{*}\rVert^{2}\leq\frac{R^{2}}{2} E ∥ y + − x ∗ ∥ 2 ≤ 2 R 2 .
Here A d m C ( R , B λ ) \mathrm{Adm}_{\mathrm{C}}(R,\mathcal{B}_{\lambda}) Adm C ( R , B λ ) represents the bias requirement needed for the stochastic oracle S O λ \mathrm{SO}_{\lambda} SO λ to achieve the desired contraction, which depends on oracle S O λ \mathrm{SO}_{\lambda} SO λ only through its bias level B λ \mathcal{B}_{\lambda} B λ . In contrast, the complexity bound T ( R , λ ) T(R,\lambda) T ( R , λ ) depends on problem parameters such as L L L and μ \mu μ , and other oracle characteristics such as its variance parameters σ λ , ∗ 2 \sigma_{\lambda,*}^{2} σ λ , ∗ 2 and L λ \mathcal{L}_{\lambda} L λ . The initial point y y y in Definition 1 may itself be random. The expectation is taken over both the randomness of y y y and the fresh randomness used by the subroutine.
Algorithm 1 requires only this input–output guarantee as in Definition 1, so the inner subroutine may be the classic stochastic approximation type methods, variance-reduced methods, or any other procedure with a known bias-admissibility condition and sample complexity budget. In particular,
Algorithm 1 Cost-aware contraction meta-algorithm with known bias
Input: initial point y 0 y^0 y 0 , radius R 0 R_0 R 0 , oracle pool P = { S O λ } λ = 1 ℓ \mathcal{P} = \{\mathrm{SO}_{\lambda}\}_{\lambda=1}^{\ell} P = { SO λ } λ = 1 ℓ , contraction subroutine Contract.
for s = 1 , 2 , … s = 1, 2, \ldots s = 1 , 2 , … do
P s ← { λ ∈ P : Adm C ( R s − 1 , B λ ) holds } \mathcal{P}_s \leftarrow\{\lambda\in\mathcal{P}: \operatorname{Adm}_{\mathrm{C}}(R_{s-1}, \mathcal{B}_{\lambda})\text{ holds}\} P s ← { λ ∈ P : Adm C ( R s − 1 , B λ ) holds } ; stop if P s = ∅ \mathcal{P}_s = \varnothing P s = ∅ .
λ s ← arg min λ ∈ P s c λ T ( R s − 1 , λ ) \lambda_s \leftarrow\arg\min_{\lambda\in\mathcal{P}_s} c_{\lambda}T(R_{s-1},\lambda) λ s ← arg min λ ∈ P s c λ T ( R s − 1 , λ ) .
y s ← Contract ( y s − 1 , R s − 1 ; S O λ s ) y^s \leftarrow\operatorname{Contract}(y^{s-1},R_{s-1};\mathrm{SO}_{\lambda_s}) y s ← Contract ( y s − 1 , R s − 1 ; SO λ s ) .
R s 2 ← R s − 1 2 / 2 R_s^2 \leftarrow R_{s-1}^2/2 R s 2 ← R s − 1 2 /2 .
end for
at stage s s s , given E ∥ y s − 1 − x ∗ ∥ 2 ≤ R s − 1 2 \mathbb{E}\lVert y^{s-1}-x^*\rVert^2 \le R_{s-1}^2 E ∥ y s − 1 − x ∗ ∥ 2 ≤ R s − 1 2 , the algorithm selects, among the admissible oracles, the one with the lowest cost for producing the next contraction. A straightforward convergence guarantee for Algorithm 1 is stated as follows.
Proposition 1 (Stagewise convergence). Suppose E ∥ y 0 − x ∗ ∥ 2 ≤ R 0 2 \mathbb{E}\lVert y^0-x^*\rVert^2 \le R_0^2 E ∥ y 0 − x ∗ ∥ 2 ≤ R 0 2 and the admissible set P s \mathcal{P}_s P s in Algorithm 1 is nonempty at every completed stage. Then
E ∥ y s − x ∗ ∥ 2 ≤ R s 2 = 2 − s R 0 2 . \mathbb{E}\lVert y^s-x^*\rVert^2 \le R_s^2 = 2^{-s}R_0^2. E ∥ y s − x ∗ ∥ 2 ≤ R s 2 = 2 − s R 0 2 . Consequently, after K = ⌈ log 2 ( R 0 2 / ϵ ) ⌉ K = \lceil\log_2(R_0^2/\epsilon)\rceil K = ⌈ log 2 ( R 0 2 / ϵ )⌉ stages, we have E ∥ y K − x ∗ ∥ 2 ≤ ϵ \mathbb{E}\lVert y^K-x^*\rVert^2 \le\epsilon E ∥ y K − x ∗ ∥ 2 ≤ ϵ .
Proof. The claim follows by induction. At stage s s s , the selected oracle λ s \lambda_s λ s is admissible, so Definition 1 guarantees E ∥ y s − x ∗ ∥ 2 ≤ R s − 1 2 / 2 = R s 2 \mathbb{E}\lVert y^s-x^*\rVert^2 \le R_{s-1}^2/2 = R_s^2 E ∥ y s − x ∗ ∥ 2 ≤ R s − 1 2 /2 = R s 2 . □
For simplicity, let us consider the unbiased setting where the bias admissibility condition Adm C ( R , B λ ) \operatorname{Adm}_{\mathrm{C}}(R,\mathcal{B}_{\lambda}) Adm C ( R , B λ ) holds for any R > 0 R > 0 R > 0 and λ ∈ [ ℓ ] \lambda\in[\ell] λ ∈ [ ℓ ] . For ϵ > 0 \epsilon> 0 ϵ > 0 , to find a solution y ˉ \bar{y} y ˉ such that E ∥ y ˉ − x ∗ ∥ 2 ≤ ϵ \mathbb{E}\lVert\bar{y}-x^*\rVert^2 \le\epsilon E ∥ y ˉ − x ∗ ∥ 2 ≤ ϵ requires K = ⌈ log 2 ( R 0 2 / ϵ ) ⌉ K = \lceil\log_2(R_0^2/\epsilon)\rceil K = ⌈ log 2 ( R 0 2 / ϵ )⌉ stages. The total cumulative cost of running Algorithm 1 is
Cost a d a p ( ϵ ) = ∑ s = 1 K min λ T ( R s − 1 , λ ) . \operatorname{Cost}_{\mathrm{adap}}(\epsilon) = \sum_{s=1}^{K}\min_{\lambda}T(R_{s-1},\lambda). Cost adap ( ϵ ) = s = 1 ∑ K λ min T ( R s − 1 , λ ) .
In comparison, the total cumulative cost of always using the best fixed oracle in each stage can be bounded by
Cost f i x e d ( ϵ ) = min λ ∑ s = 1 K T ( R s − 1 , λ ) . \operatorname{Cost}_{\mathrm{fixed}}(\epsilon) = \min_{\lambda}\sum_{s=1}^{K}T(R_{s-1},\lambda). Cost fixed ( ϵ ) = λ min s = 1 ∑ K T ( R s − 1 , λ ) .
Therefore, we always have Cost a d a p ( ϵ ) ≤ Cost f i x e d ( ϵ ) \operatorname{Cost}_{\mathrm{adap}}(\epsilon) \le\operatorname{Cost}_{\mathrm{fixed}}(\epsilon) Cost adap ( ϵ ) ≤ Cost fixed ( ϵ ) . The largest potential improvement for Cost a d a p ( ϵ ) \operatorname{Cost}_{\mathrm{adap}}(\epsilon) Cost adap ( ϵ ) compared with Cost f i x e d ( ϵ ) \operatorname{Cost}_{\mathrm{fixed}}(\epsilon) Cost fixed ( ϵ ) will be discussed after presenting the stochastic gradient extrapolation (SGE) subroutine in the next subsection.
Biased SGE: an efficient contraction subroutine
We next show that stochastic gradient extrapolation (SGE) can serve as an efficient subroutine under our biased state-dependent noise model. Specifically, Algorithm 2 extends the existing design and analyses of SGE [40 , 34 ] by allowing persistent gradient bias and incorporating strong convexity through an additional regularizer μ α t 2 ∥ x t − 1 − z ∥ 2 \frac{\mu\alpha_t}{2}\lVert x_{t-1}-z\rVert^2 2 μ α t ∥ x t − 1 − z ∥ 2 . This strongly convex variant of SGE will be reused in Subsection 5.2, as a subroutine for the recursive regularization algorithm for gradient minimization.
In this subsection, we consider a fixed stochastic oracle λ \lambda λ . Therefore, for the sake of simplicity, we use the simplified notation G \mathcal{G} G to denote the selected stochastic first-order oracle and g ( x ) = E [ G ( x , ξ ) ] g(x)=\mathbb{E}[\mathcal{G}(x,\xi)] g ( x ) = E [ G ( x , ξ )] , and use L \mathcal{L} L , σ ∗ 2 \sigma_*^2 σ ∗ 2 , and B \mathcal{B} B to denote its variance and bias parameters. Additionally, we assume x ∗ x^* x ∗ is an interior point of the feasible region X X X , so that ∇ f ( x ∗ ) = 0 \nabla f(x^*)=0 ∇ f ( x ∗ ) = 0 .
Algorithm 2 Stochastic gradient extrapolation (SGE)
Input: x 0 = x − 1 = z 0 x_0=x_{-1}=z_0 x 0 = x − 1 = z 0 and parameters { α t , η t , τ t } \{\alpha_t,\eta_t,\tau_t\} { α t , η t , τ t } .
for t = 1 , 2 , … t=1,2,\ldots t = 1 , 2 , … do
G ~ t ← G t − 1 ( x t − 1 ) + α t ( G t − 1 ( x t − 1 ) − G t − 1 ( x t − 2 ) ) \widetilde{G}_t \leftarrow G_{t-1}(x_{t-1})+\alpha_t\left(G_{t-1}(x_{t-1})-G_{t-1}(x_{t-2})\right) G t ← G t − 1 ( x t − 1 ) + α t ( G t − 1 ( x t − 1 ) − G t − 1 ( x t − 2 ) ) .
z t ← arg min z ∈ X { ⟨ G ~ t , z ⟩ + μ α t 2 ∥ x t − 1 − z ∥ 2 + η t 2 ∥ z t − 1 − z ∥ 2 } z_t\leftarrow\arg\min_{z\in X}\left\{\langle\widetilde{G}_t,z\rangle+\frac{\mu\alpha_t}{2}\lVert x_{t-1}-z\rVert^2+\frac{\eta_t}{2}\lVert z_{t-1}-z\rVert^2\right\} z t ← arg min z ∈ X { ⟨ G t , z ⟩ + 2 μ α t ∥ x t − 1 − z ∥ 2 + 2 η t ∥ z t − 1 − z ∥ 2 } .
x t ← ( z t + τ t x t − 1 ) / ( 1 + τ t ) x_t\leftarrow(z_t+\tau_t x_{t-1})/(1+\tau_t) x t ← ( z t + τ t x t − 1 ) / ( 1 + τ t ) and draw G t ( ⋅ ) = 1 m ∑ i = 1 m G ( ⋅ , ξ t , i ) G_t(\cdot)=\frac{1}{m}\sum_{i=1}^{m}\mathcal{G}(\cdot,\xi_{t,i}) G t ( ⋅ ) = m 1 ∑ i = 1 m G ( ⋅ , ξ t , i ) .
The convergence guarantees of Algorithm 2 are characterized in the following theorem.
Theorem 1 (Biased SGE). Let { x t } \{x_t\} { x t } be generated by Algorithm 2. Set α t = t − 1 t \alpha_t=\frac{t-1}{t} α t = t t − 1 , τ t = t − 1 t \tau_t=\frac{t-1}{t} τ t = t t − 1 , η t = η t \eta_t=\frac{\eta}{t} η t = t η for t ≤ 2 t\leq2 t ≤ 2 , and η t = η t + μ ( t − 3 ) 2 \eta_t=\frac{\eta}{t}+\frac{\mu(t-3)}{2} η t = t η + 2 μ ( t − 3 ) for t ≥ 3 t\geq3 t ≥ 3 , where η ≥ max { 24 L , 54 L m + 162 L 2 μ m 2 } \eta\geq\max\{24\mathcal{L},\frac{54\mathcal{L}}{m}+\frac{162\mathcal{L}^2}{\mu m^2}\} η ≥ max { 24 L , m 54 L + μ m 2 162 L 2 } . Then4 , for k ≥ 3 k\geq3 k ≥ 3 ,
E [ f ( x k ) − f ∗ ] ≤ ( 72 L k ( k + 2 ) + 162 L m k ( k + 2 ) + 486 L 2 μ m 2 k ( k + 2 ) ) ∥ x 0 − x ∗ ∥ 2 + 2 9 k ( k + 2 ) [ f ( x 0 ) − f ∗ ] + 192 σ ∗ 2 μ m ( k + 2 ) + 216 B 2 μ . (14) \mathbb{E}[f(x_k)-f^*]\leq\left(\frac{72\mathcal{L}}{k(k+2)}+\frac{162\mathcal{L}}{mk(k+2)}+\frac{486\mathcal{L}^2}{\mu m^2k(k+2)}\right)\lVert x_0-x^*\rVert^2+\frac{2}{9k(k+2)}[f(x_0)-f^*]+\frac{192\sigma_*^2}{\mu m(k+2)}+\frac{216\mathcal{B}^2}{\mu}. \tag*{(14)} E [ f ( x k ) − f ∗ ] ≤ ( k ( k + 2 ) 72 L + mk ( k + 2 ) 162 L + μ m 2 k ( k + 2 ) 486 L 2 ) ∥ x 0 − x ∗ ∥ 2 + 9 k ( k + 2 ) 2 [ f ( x 0 ) − f ∗ ] + μ m ( k + 2 ) 192 σ ∗ 2 + μ 216 B 2 . (14) ≤ ( 73 L k ( k + 2 ) + 162 L m k ( k + 2 ) + 486 L 2 μ m 2 k ( k + 2 ) ) ∥ x 0 − x ∗ ∥ 2 + 192 σ ∗ 2 μ m ( k + 2 ) + 216 B 2 μ . \leq\left(\frac{73\mathcal{L}}{k(k+2)}+\frac{162\mathcal{L}}{mk(k+2)}+\frac{486\mathcal{L}^2}{\mu m^2k(k+2)}\right)\lVert x_0-x^*\rVert^2+\frac{192\sigma_*^2}{\mu m(k+2)}+\frac{216\mathcal{B}^2}{\mu}. ≤ ( k ( k + 2 ) 73 L + mk ( k + 2 ) 162 L + μ m 2 k ( k + 2 ) 486 L 2 ) ∥ x 0 − x ∗ ∥ 2 + μ m ( k + 2 ) 192 σ ∗ 2 + μ 216 B 2 . In particular, for m = 1 m=1 m = 1 and k ≥ max { 98 L μ , 144 L μ , 102 L μ , 3072 σ ∗ 2 μ 2 ∥ x 0 − x ∗ ∥ 2 } k\geq\max\left\{98\sqrt{\frac{\mathcal{L}}{\mu}},144\sqrt{\frac{\mathcal{L}}{\mu}},\frac{102\mathcal{L}}{\mu},\frac{3072\sigma_*^2}{\mu^2\lVert x_0-x^*\rVert^2}\right\} k ≥ max { 98 μ L , 144 μ L , μ 102 L , μ 2 ∥ x 0 − x ∗ ∥ 2 3072 σ ∗ 2 } , we have
E ∥ x k − x ∗ ∥ 2 ≤ 2 μ E [ f ( x k ) − f ∗ ] ≤ 1 4 ∥ x 0 − x ∗ ∥ 2 + 432 B 2 μ 2 . (15) \mathbb{E}\lVert x_k-x^*\rVert^2\leq\frac{2}{\mu}\mathbb{E}[f(x_k)-f^*]\leq\frac{1}{4}\lVert x_0-x^*\rVert^2+\frac{432\mathcal{B}^2}{\mu^2}. \tag*{(15)} E ∥ x k − x ∗ ∥ 2 ≤ μ 2 E [ f ( x k ) − f ∗ ] ≤ 4 1 ∥ x 0 − x ∗ ∥ 2 + μ 2 432 B 2 . (15)
Proof sketch. To prove the claim, we need to control the state-dependent variance, and also bound the error introduced by the persistent oracle bias. We begin with the SGE recursion stated in Proposition 4, whose proof follows from a similar analysis of SGE as in Ilandarideva et al. [34 ] (see Appendix § 8 .§ 1.1 ). With this recursion, we can handle the state-dependent variance and systematic bias transparently. Our parameter choices ensure that the state-dependent variance terms can be absorbed into the converging function-value terms in this recursion. Taking the telescoping sum over the recursions yields
A k E [ f ( x k ) − f ∗ ] + P k 2 E ∥ z k − x ∗ ∥ 2 ≤ Γ k + B ∑ t = 1 k ( 3 t − 2 ) E ∥ z t − x ∗ ∥ . A_k\mathbb{E}[f(x_k)-f^*]+\frac{P_k}{2}\mathbb{E}\lVert z_k-x^*\rVert^2\leq\Gamma_k+\mathcal{B}\sum_{t=1}^{k}(3t-2)\mathbb{E}\lVert z_t-x^*\rVert. A k E [ f ( x k ) − f ∗ ] + 2 P k E ∥ z k − x ∗ ∥ 2 ≤ Γ k + B t = 1 ∑ k ( 3 t − 2 ) E ∥ z t − x ∗ ∥ .
where A k A_k A k and P k P_k P k grow quadratically in k k k , and Γ k \Gamma_k Γ k contains the initial-error and residual-variance terms. To bound the accumulated bias, observe that the same inequality controls the distance of each z t z_t z t from x ∗ x^* x ∗ . Thus, the distances appearing on the right-hand side can themselves be bounded in terms of the accumulated error. Applying Young’s inequality provides a bound of the form 2 Γ k + O ( k 2 B 2 / μ ) 2\Gamma_k+O(k^2\mathcal{B}^2/\mu) 2 Γ k + O ( k 2 B 2 / μ ) , and dividing both sides of the inequality by A k A_k A k yields the stated function-value bound. By further using the strong convexity property, we can obtain the distance-contraction guarantee. The full proof is deferred to Appendix § 8 .§ 1 .
Combining the oracle-switching meta-algorithm with the SGE subroutine
Theorem 1 provides an explicit implementation of Definition 1. For SGE, the bias-admissibility condition is
Adm C S G E ( R , B ) ⟺ B ≤ 3 μ R 72 , (16) \operatorname{Adm}^{\mathrm{SGE}}_{\mathrm{C}}(R,\mathcal{B}) \Longleftrightarrow\mathcal{B} \le\frac{\sqrt{3}\mu R}{72}, \tag*{(16)} Adm C SGE ( R , B ) ⟺ B ≤ 72 3 μ R , (16)
and its oracle complexity is
T S G E ( R , λ ) = max { 98 L μ , 144 L λ μ , 102 L λ μ , 3072 σ λ , ∗ 2 μ 2 R 2 } . (17) T^{\mathrm{SGE}}(R,\lambda)=\max\left\{98\sqrt{\frac{\mathcal{L}}{\mu}},144\sqrt{\frac{\mathcal{L}_{\lambda}}{\mu}},\frac{102\mathcal{L}_{\lambda}}{\mu},\frac{3072\sigma_{\lambda,*}^{2}}{\mu^{2}R^{2}}\right\}. \tag*{(17)} T SGE ( R , λ ) = max { 98 μ L , 144 μ L λ , μ 102 L λ , μ 2 R 2 3072 σ λ , ∗ 2 } . (17)
Thus, we can use Contract S G E ( y , R ; SO λ ) \operatorname{Contract}^{\mathrm{SGE}}(y,R;\operatorname{SO}_{\lambda}) Contract SGE ( y , R ; SO λ ) to represent running Algorithm 2 from a point y y y with oracle SO λ \operatorname{SO}_{\lambda} SO λ for T S G E ( R , λ ) T^{\mathrm{SGE}}(R,\lambda) T SGE ( R , λ ) iterations. By Theorem 1, it achieves the contraction in expected squared distance to the optimal solution whenever Adm C S G E ( R , B λ ) \operatorname{Adm}^{\mathrm{SGE}}_{\mathrm{C}}(R,\mathcal{B}_{\lambda}) Adm C SGE ( R , B λ ) holds. Consequently, the adaptive oracle switching algorithm (Algorithm 1) can be instantiated with Contract S G E \operatorname{Contract}^{\mathrm{SGE}} Contract SGE .
We next discuss the cost comparison between Algorithm 1 and using the best fixed oracle in all stages, quantifying the benefit of adaptive switching.
Corollary 1 (Comparison with the best fixed oracle). Suppose all oracles are unbiased, i.e., B λ = 0 \mathcal{B}_{\lambda}=0 B λ = 0 , ∀ λ \forall\lambda ∀ λ . Define A λ = c λ max { 98 L μ , 144 L λ μ , 102 L λ μ } A_{\lambda}=c_{\lambda}\max\left\{98\sqrt{\frac{\mathcal{L}}{\mu}},144\sqrt{\frac{\mathcal{L}_{\lambda}}{\mu}},\frac{102\mathcal{L}_{\lambda}}{\mu}\right\} A λ = c λ max { 98 μ L , 144 μ L λ , μ 102 L λ } and B λ = c λ ⋅ 3072 σ λ , ∗ 2 μ 2 R 0 2 B_{\lambda}=c_{\lambda}\cdot\frac{3072\sigma_{\lambda,*}^{2}}{\mu^{2}R_{0}^{2}} B λ = c λ ⋅ μ 2 R 0 2 3072 σ λ , ∗ 2 . For ϵ > 0 \epsilon>0 ϵ > 0 , let K = ⌈ log 2 ( R 0 2 / ϵ ) ⌉ K=\left\lceil\log_{2}(R_{0}^{2}/\epsilon)\right\rceil K = ⌈ log 2 ( R 0 2 / ϵ ) ⌉ . Then the total costs of Algorithm 1 and using the best-fixed oracle throughout satisfy
Cost a d a p ( ϵ ) = ∑ s = 1 K min λ max { A λ , B λ 2 s − 1 } , \operatorname{Cost}_{\mathrm{adap}}(\epsilon)=\sum_{s=1}^{K}\min_{\lambda}\max\left\{A_{\lambda},B_{\lambda}2^{s-1}\right\}, Cost adap ( ϵ ) = s = 1 ∑ K λ min max { A λ , B λ 2 s − 1 } , Cost f i x e d ( ϵ ) = min λ ∑ s = 1 K max { A λ , B λ 2 s − 1 } = O ( min λ { c λ ⋅ ( L μ log 2 R 0 2 ϵ + L λ μ log 2 R 0 2 ϵ + σ λ , ∗ 2 μ 2 ϵ ) } ) , (18) \operatorname{Cost}_{\mathrm{fixed}}(\epsilon)=\min_{\lambda}\sum_{s=1}^{K}\max\left\{A_{\lambda},B_{\lambda}2^{s-1}\right\}
=\mathcal{O}\left(\min_{\lambda}\left\{c_{\lambda}\cdot\left(\sqrt{\frac{\mathcal{L}}{\mu}}\log_{2}\frac{R_{0}^{2}}{\epsilon}+\frac{\mathcal{L}_{\lambda}}{\mu}\log_{2}\frac{R_{0}^{2}}{\epsilon}+\frac{\sigma_{\lambda,*}^{2}}{\mu^{2}\epsilon}\right)\right\}\right), \tag*{(18)} Cost fixed ( ϵ ) = λ min s = 1 ∑ K max { A λ , B λ 2 s − 1 } = O ( λ min { c λ ⋅ ( μ L log 2 ϵ R 0 2 + μ L λ log 2 ϵ R 0 2 + μ 2 ϵ σ λ , ∗ 2 ) } ) , (18) hence Cost a d a p ( ϵ ) ≤ Cost f i x e d ( ϵ ) \operatorname{Cost}_{\mathrm{adap}}(\epsilon)\le\operatorname{Cost}_{\mathrm{fixed}}(\epsilon) Cost adap ( ϵ ) ≤ Cost fixed ( ϵ ) . Moreover, there exist instances for which Cost f i x e d ( ϵ ) Cost a d a p ( ϵ ) = Θ ( K log K ) = Θ ( log ( R 0 2 / ϵ ) log log ( R 0 2 / ϵ ) ) \frac{\operatorname{Cost}_{\mathrm{fixed}}(\epsilon)}{\operatorname{Cost}_{\mathrm{adap}}(\epsilon)}=\Theta\left(\frac{K}{\log K}\right)=\Theta\left(\frac{\log(R_{0}^{2}/\epsilon)}{\log\log(R_{0}^{2}/\epsilon)}\right) Cost adap ( ϵ ) Cost fixed ( ϵ ) = Θ ( l o g K K ) = Θ ( l o g l o g ( R 0 2 / ϵ ) l o g ( R 0 2 / ϵ ) ) , and this order is tight for stage costs of the form max { A λ , B λ 2 s − 1 } \max\left\{A_{\lambda},B_{\lambda}2^{s-1}\right\} max { A λ , B λ 2 s − 1 } .
Proof sketch. The comparison with the best fixed oracle follows directly from minimizing the cost at each stage: the sum of the stagewise minima is no larger than the minimum of the sums. It remains to show how large this improvement can be.
We first construct two oracles. The first has a smaller coarse-scale cost but a larger residual-variance term, whereas the second has a constant stage cost of M M M throughout the optimization horizon. The parameters are chosen so that the first oracle is cheaper until the final m = ⌈ log 2 K ⌉ m=\lceil\log_{2}K\rceil m = ⌈ log 2 K ⌉ stages. Thus, the adaptive policy incurs a total cost of Θ ( M log K ) \Theta(M\log K) Θ ( M log K ) , while the best fixed oracle incurs a cost of M K MK M K .
To show that this order cannot be improved, let d s d_{s} d s denote the minimum cost at stage s s s , and consider an oracle attaining d K − m d_{K-m} d K − m . Its cost over all K K K stages is at most O ( K d K − m ) \mathcal{O}(Kd_{K-m}) O ( K d K − m ) . On the other hand, because d s d_{s} d s is nondecreasing, the adaptive policy pays at least ( m + 1 ) d K − m (m+1)d_{K-m} ( m + 1 ) d K − m over the final m + 1 m+1 m + 1 stages. Combining these bounds gives an improvement of at most O ( K / log K ) \mathcal{O}(K/\log K) O ( K / log K ) . The construction with tight examples, and the complete bounds are presented in Appendix § 8 .§ 2 .
Notably, when ignoring the oracle cost, the sample complexity O ( L μ log 2 R 0 2 ϵ + C λ μ log 2 R 0 2 ϵ + σ λ , ∗ 2 μ ϵ ) \mathcal{O}\left(\sqrt{\frac{L}{\mu}}\log_{2}\frac{R_{0}^{2}}{\epsilon}+\frac{C_{\lambda}}{\mu}\log_{2}\frac{R_{0}^{2}}{\epsilon}+\frac{\sigma_{\lambda,*}^{2}}{\mu\epsilon}\right) O ( μ L log 2 ϵ R 0 2 + μ C λ log 2 ϵ R 0 2 + μ ϵ σ λ , ∗ 2 ) in (18) matches the optimal complexity for stochastic optimization under state-dependent noise, supported by lower bounds in Nemirovskij and Yudin [43 ] ; Woodworth and Srebro [55 ] . By adaptively switching among the available oracles, Algorithm 1 can achieve more cost-efficient convergence while preserving such complexity structures.
When is a better LLM worth paying for?
The cost-aware meta-algorithm (Algorithm 1) provides a simple economic interpretation of oracle fidelity. For any contraction subroutine with associated bias-admissibility condition Adm C \operatorname{Adm}_{\mathrm{C}} Adm C and oracle complexity T T T , define
P ( R ) : = { λ : Adm C ( R , B λ ) holds } , C λ ( R ) : = c λ T ( R , λ ) . (19) \mathcal{P}(R) := \{\lambda: \operatorname{Adm}_{\mathrm{C}}(R,B_{\lambda})\text{ holds}\}, \qquad C_{\lambda}(R) := c_{\lambda}T(R,\lambda). \tag*{(19)} P ( R ) := { λ : Adm C ( R , B λ ) holds } , C λ ( R ) := c λ T ( R , λ ) . (19)
The basic willingness-to-pay logic depends only on the admissibility rule and the cost of the next contraction. Specifically, at radius R R R , an oracle is useful only if it is accurate enough to belong to P ( R ) \mathcal{P}(R) P ( R ) , and among those oracles, it buys the cheapest next contraction.
For the SGE implementation, P ( R ) \mathcal{P}(R) P ( R ) is given by condition (16) . For simplicity, writing
D λ : = max { 98 L μ , 144 C λ μ , 102 C λ μ } , E λ : = 3072 σ λ , ∗ 2 μ 2 , D_{\lambda} := \max\left\{98\sqrt{\frac{L}{\mu}},144\sqrt{\frac{C_{\lambda}}{\mu}},\frac{102C_{\lambda}}{\mu}\right\}, \qquad E_{\lambda}:=\frac{3072\sigma_{\lambda,*}^{2}}{\mu^{2}}, D λ := max { 98 μ L , 144 μ C λ , μ 102 C λ } , E λ := μ 2 3072 σ λ , ∗ 2 ,
we have
C λ ( R ) = c λ max { D λ , E λ / R 2 } . (20) C_{\lambda}(R)=c_{\lambda}\max\left\{D_{\lambda},E_{\lambda}/R^{2}\right\}. \tag*{(20)} C λ ( R ) = c λ max { D λ , E λ / R 2 } . (20)
This decomposition separates three roles of fidelity. The bias determines whether an oracle can support the requested accuracy; the c λ D λ c_{\lambda}D_{\lambda} c λ D λ term governs its coarse-scale cost (or equivalently the cost in the non-asymptotic phase); and c λ E λ / R 2 c_{\lambda}E_{\lambda}/R^{2} c λ E λ / R 2 governs its fine-scale cost as the shrinkage of R R R (or equivalently the cost in the asymptotic phase). The bias requirement can be equivalently written as R ≥ R λ b i a s : = 72 B λ 3 μ R\ge R_{\lambda}^{\mathrm{bias}}:=\frac{72B_{\lambda}}{\sqrt{3}\mu} R ≥ R λ bias := 3 μ 72 B λ , so an oracle may be attractive early and become infeasible later.
The 10% experiment in Table 1 makes the mechanism visible. Treating the reported bias diagnostic as the admissibility proxy used in the experiment and noticing that we use whitening to make μ = 1 \mu=1 μ = 1 , then the bias threshold is 3 R / 72 \sqrt{3}R/72 3 R /72 . At R = 200 R=200 R = 200 , all displayed pipelines except Nano simple-7 pass the test, so a low-cost Nano pipeline is sufficient. At R = 100 R=100 R = 100 , the threshold is about 2.41, which removes the Nano pipelines and makes Luna the cheapest admissible high-fidelity alternative. At R = 80 R=80 R = 80 , the threshold is about 1.92, leaving Avg. Haiku+Sonnet as the only displayed admissible pipeline. Price alone cannot rescue an oracle that fails this accuracy test.5
Dominated oracles. The policy also identifies sources that would never be queried.
Therefore, a more expensive model is not valuable merely because it is nominally “stronger”: it must improve a downstream quantity that matters at some optimization scale. In Table 1 , Claude Haiku 4.5 dominates Claude Sonnet 5 (B λ B_{\lambda} B λ : 2.01 vs. 2.37; c λ σ λ , ∗ 2 c_{\lambda}\sigma_{\lambda,*}^{2} c λ σ λ , ∗ 2 : 1.23 × 10 5 1.23 \times10^{5} 1.23 × 1 0 5 vs. 2.76 × 10 5 2.76 \times10^{5} 2.76 × 1 0 5 ; equal L λ L_{\lambda} L λ ), so Sonnet 5 is never selected — under any stage schedule. Note that reduction of cost or bias achieved by this oracle, would have rendered it non-dominated in this experiment.
Supplier’s viewpoint: break-even prices. The oracle selection rule can be read from the supplier’s side. For an admissible oracle λ \lambda λ , define its stage-R R R break-even price
c λ B E ( R ) : = min ν ∈ P ( R ) ∖ { λ } c ν T ( R , ν ) T ( R , λ ) . (21) c_{\lambda}^{\mathrm{BE}}(R) := \frac{\min_{\nu\in\mathcal{P}(R)\setminus\{\lambda\}} c_{\nu}T(R,\nu)}{T(R,\lambda)}. \tag*{(21)} c λ BE ( R ) := T ( R , λ ) min ν ∈ P ( R ) ∖ { λ } c ν T ( R , ν ) . (21)
At radius R R R , oracle λ \lambda λ is price-competitive exactly when c λ ≤ c λ B E ( R ) c_{\lambda} \le c_{\lambda}^{\mathrm{BE}}(R) c λ ≤ c λ BE ( R ) , subject to admissibility. For the SGE implementation, the exact expression is
c λ B E ( R ) = min ν ∈ P ( R ) ∖ { λ } c ν max { D ν , E ν / R 2 } max { D λ , E λ / R 2 } . (22) c_{\lambda}^{\mathrm{BE}}(R) = \frac{\min_{\nu\in\mathcal{P}(R)\setminus\{\lambda\}} c_{\nu}\max\{D_{\nu},E_{\nu}/R^{2}\}}{\max\{D_{\lambda},E_{\lambda}/R^{2}\}}. \tag*{(22)} c λ BE ( R ) = max { D λ , E λ / R 2 } min ν ∈ P ( R ) ∖ { λ } c ν max { D ν , E ν / R 2 } . (22)
This formula makes clear that a break-even price generally depends on both the state-dependent-noise term D λ D_{\lambda} D λ and the residual-variance term E λ / R 2 E_{\lambda}/R^{2} E λ / R 2 , in addition to the bias-dependent competitor set P ( R ) \mathcal{P}(R) P ( R ) . For a fixed competitor ν \nu ν , the corresponding pairwise break-even price is
c λ ↔ ν B E ( R ) = c ν max { D ν , E ν / R 2 } max { D λ , E λ / R 2 } . c_{\lambda\leftrightarrow\nu}^{\mathrm{BE}}(R) = c_{\nu}\frac{\max\{D_{\nu},E_{\nu}/R^{2}\}}{\max\{D_{\lambda},E_{\lambda}/R^{2}\}}. c λ ↔ ν BE ( R ) = c ν max { D λ , E λ / R 2 } max { D ν , E ν / R 2 } .
If both oracles are in their coarse regimes, this reduces to c ν D ν / D λ c_{\nu}D_{\nu}/D_{\lambda} c ν D ν / D λ ; if both are in their fine regimes, it reduces to c ν E ν / E λ = c ν σ ν , ∗ 2 / σ λ , ∗ 2 c_{\nu}E_{\nu}/E_{\lambda}=c_{\nu}\sigma_{\nu,*}^{2}/\sigma_{\lambda,*}^{2} c ν E ν / E λ = c ν σ ν , ∗ 2 / σ λ , ∗ 2 . In a mixed regime it retains an explicit dependence on R R R . Thus willingness to pay for a stochastic oracle, e.g., an LLM pipeline, is not a single global number: it depends on the current downstream accuracy and on the cost–fidelity frontier of the competing models. Eq. (21) can therefore be used either by a buyer deciding whether to upgrade or by a provider asking what price a particular quality improvement can sustain. This is a stage-dependent value-of-information calculation: the same signal can have very different economic value at different downstream states [31 , 51 ] .
Coming back to our Aspiring Minds example in Table 1 . The numerical calculation below isolates the regime when the residual variance dominates. Specifically, suppose Sonnet 5 and the cheapest admissible competitor at radius R R R both satisfy E λ / R 2 ≥ D λ E_{\lambda}/R^{2} \ge D_{\lambda} E λ / R 2 ≥ D λ . Then the break-even price depends only on c ν σ ν , ∗ 2 c_{\nu}\sigma_{\nu,*}^{2} c ν σ ν , ∗ 2 , thus the following numbers should be interpreted as fine-scale break-even prices , rather than break-even prices valid at every radius. Let λ = 7 \lambda=7 λ = 7 denote Sonnet 5 and let τ = 3 μ R / 72 \tau=\sqrt{3\mu R/72} τ = 3 μ R /72 be the bias threshold. Define
E Q ( τ ) : = min { c ν σ ν , ∗ 2 : B ν ≤ τ , ν ≠ 7 } . E_Q(\tau) := \min\{c_{\nu}\sigma_{\nu,*}^{2}: B_{\nu}\le\tau,\ \nu\ne7\}. E Q ( τ ) := min { c ν σ ν , ∗ 2 : B ν ≤ τ , ν = 7 } .
Whenever Sonnet and the minimizing competitor are both residual-variance dominated, its break-even price is c 7 B E , Q ( τ ) = E Q ( τ ) σ 7 , ∗ 2 c_{7}^{\mathrm{BE},Q}(\tau)=\frac{E_Q(\tau)}{\sigma_{7,*}^{2}} c 7 BE , Q ( τ ) = σ 7 , ∗ 2 E Q ( τ ) . By hypothetically varying Sonnet’s bias while keeping its residual variance fixed at the value in Table 1 , we obtain the following step function:
E Q ( B 7 ) σ 7 , ∗ 2 = { $ 4.54 , B 7 ∈ [ 1.86 , 2.01 ) (Avg. Haiku+Sonnet) , $ 1.41 , B 7 ∈ [ 2.01 , 2.31 ) (Haiku 4.5) , $ 0.82 , B 7 ∈ [ 2.31 , 2.87 ) (Luna) , $ 0.20 , B 7 ∈ [ 2.87 , 3.95 ) (Nano LR-10/LR-short-10) , $ 0.18 , B 7 ≥ 3.95 (Nano LR-short-7) . \frac{E_Q(\mathcal{B}_7)}{\sigma_{7,*}^2} =
\begin{cases}
\$4.54, & \mathcal{B}_7 \in[1.86,2.01) \quad\text{(Avg. Haiku+Sonnet)},\\
\$1.41, & \mathcal{B}_7 \in[2.01,2.31) \quad\text{(Haiku 4.5)},\\
\$0.82, & \mathcal{B}_7 \in[2.31,2.87) \quad\text{(Luna)},\\
\$0.20, & \mathcal{B}_7 \in[2.87,3.95) \quad\text{(Nano LR-10/LR-short-10)},\\
\$0.18, & \mathcal{B}_7 \ge3.95 \quad\text{(Nano LR-short-7)}.
\end{cases} σ 7 , ∗ 2 E Q ( B 7 ) = ⎩ ⎨ ⎧ $4.54 , $1.41 , $0.82 , $0.20 , $0.18 , B 7 ∈ [ 1.86 , 2.01 ) (Avg. Haiku+Sonnet) , B 7 ∈ [ 2.01 , 2.31 ) (Haiku 4.5) , B 7 ∈ [ 2.31 , 2.87 ) (Luna) , B 7 ∈ [ 2.87 , 3.95 ) (Nano LR-10/LR-short-10) , B 7 ≥ 3.95 (Nano LR-short-7) .
At the measured bias B 7 = 2.37 \mathcal{B}_7 = 2.37 B 7 = 2.37 , the relevant fine-scale competitor is Luna, giving a break-even price of about $0.82. Thus, in this residual-variance-dominated regime, Sonnet’s observed price of $3.158 would need to fall by about a factor of 3.9 to become cost-competitive. Conversely, at Sonnet’s actual price of $3.158, the fine-scale calculation becomes favorable only if its hypothetical bias falls below 2.01, at which point the cheapest admissible competitor becomes the substantially more expensive Avg. Haiku+Sonnet ensemble. Only if Sonnet’s bias falls below 1.86 would it also become the least-biased displayed pipeline and extend the best reachable bias floor in Table 1 .
Unknown bias: budgeted trusted certification
In real-world applications, the bias parameters { B λ } λ = 1 ℓ \{B_\lambda\}_{\lambda=1}^{\ell} { B λ } λ = 1 ℓ may themselves be difficult to estimate from the training sources, making Algorithm 1 difficult to implement directly.6 Therefore, in this section, we assume occasional access to an expensive certification module C C C that returns the trusted gradient ∇ f ( y ) \nabla f(y) ∇ f ( y ) at a cost c c e r t > 0 c_{\mathrm{cert}} > 0 c cert > 0 per query. The module is accurate enough to certify optimization progress, but can be too expensive to use for routine training. This setup follows the broad principle of combining abundant machine-generated information with a small amount of trusted data; see, e.g., [29 , 4 ] .
The price of the certification module c c e r t c_{\mathrm{cert}} c cert introduces an additional operational decision:
How often should the optimization progress be certified?
Certifying after every stage of contraction detects overly biased sources quickly, but repeatedly pays for the expensive trusted information. Certifying too rarely saves trusted queries but can spend substantial training cost on an oracle that has already become too biased to achieve the desired accuracy. Our meta-algorithm proposed in this section interpolates between these extremes using a specified budget B B B on uncertified training expenditure.
Remark 2. We analyze exact trusted-gradient certification in order to isolate this certification-frequency tradeoff from the statistical problem of constructing the certificate itself. In applications, the certification module C C C may instead be constructed using a sufficiently large trusted sample, expert-reviewed observations, or repeated measurements. Standard concentration arguments can then construct a high-probability confidence bound for the projected gradient norm. We leave the joint tradeoff among trusted-sample size, statistical precision, and certification frequency for a stochastic certification oracle to future work. Additionally, it should be highlighted that we use first-order rather than zeroth-order certification. In particular, certifying f ( x ) − f ( x ∗ ) f(x)-f(x^*) f ( x ) − f ( x ∗ ) would require knowledge or accurate estimation of the typically unknown optimal value f ( x ∗ ) f(x^*) f ( x ∗ ) , whereas a trusted gradient directly yields a computable projected-gradient certificate. Specifically, we use the projected gradient mapping G Y , γ ( x ) G_{Y,\gamma}(x) G Y , γ ( x ) defined in (4) as our certification criterion. For notational simplicity, we let
G X ( x ) : = G X , 1 / ( 2 L ) ( x ) = 2 L [ x − Π X ( x − 1 2 L ∇ f ( x ) ) ] . (23) G_X(x) := G_{X,1/(2L)}(x) = 2L\left[x-\Pi_X\left(x-\frac{1}{2L}\nabla f(x)\right)\right]. \tag*{(23)} G X ( x ) := G X , 1/ ( 2 L ) ( x ) = 2 L [ x − Π X ( x − 2 L 1 ∇ f ( x ) ) ] . (23)
Our trusted certification module can evaluate ∥ G X ( x ) ∥ \lVert G_X(x)\rVert ∥ G X ( x )∥ . The following standard error bounds explain why this quantity provides a valid distance certificate.
Lemma 1 (Projected-gradient certificate). Let X X X be closed and convex and suppose x ∗ ∈ X x^* \in X x ∗ ∈ X . For any γ ≤ 2 / L \gamma\le2/L γ ≤ 2/ L , we have
f ( x ) − f ( x + ) ≥ ( γ − γ 2 L 2 ) ∥ G X , γ ( x ) ∥ 2 , (24) f(x)-f(x^+) \ge\left(\gamma-\frac{\gamma^2L}{2}\right)\lVert G_{X,\gamma}(x)\rVert^2, \tag*{(24)} f ( x ) − f ( x + ) ≥ ( γ − 2 γ 2 L ) ∥ G X , γ ( x ) ∥ 2 , (24) and
∥ x − x ∗ ∥ ≤ 2 μ ∥ G X , γ ( x ) ∥ . (25) \lVert x-x^*\rVert\le\frac{2}{\mu}\lVert G_{X,\gamma}(x)\rVert. \tag*{(25)} ∥ x − x ∗ ∥ ≤ μ 2 ∥ G X , γ ( x )∥ . (25) Consequently, ∥ G X , γ ( x ) ∥ ≤ 2 μ R 4 \lVert G_{X,\gamma}(x)\rVert\le\frac{\sqrt{2}\mu R}{4} ∥ G X , γ ( x )∥ ≤ 4 2 μ R implies ∥ x − x ∗ ∥ 2 ≤ R 2 2 \lVert x-x^*\rVert^2 \le\frac{R^2}{2} ∥ x − x ∗ ∥ 2 ≤ 2 R 2 .
We defer the proof of Lemma 1 to Appendix § 9 .§ 1 . This lemma indicates that the certificate ∥ G X ( x ) ∥ ≤ 2 μ R s − 1 / 4 \lVert G_X(x)\rVert\le\sqrt{2}\mu R_{s-1/4} ∥ G X ( x )∥ ≤ 2 μ R s − 1/4 guarantees ∥ x − x ∗ ∥ 2 ≤ R s − 1 2 / 2 \lVert x-x^*\rVert^2 \le R_{s-1}^2/2 ∥ x − x ∗ ∥ 2 ≤ R s − 1 2 /2 . Thus, instead of a distance-contraction subroutine as in Definition 1, we require in this section the following projected-gradient reduction subroutine.
Definition 2 (Projected-gradient reduction subroutine). Consider a subroutine PGReduce ( y , R ; SO λ ) \operatorname{PGReduce}(y,R;\operatorname{SO}_\lambda) PGReduce ( y , R ; SO λ ) , where y y y is an initial point, R R R is the current radius, and SO λ \operatorname{SO}_\lambda SO λ is the stochastic oracle used for training. Associated with the subroutine are a bias-admissibility condition Adm P G ( R , B λ ) \operatorname{Adm}_{\mathrm{PG}}(R,B_\lambda) Adm PG ( R , B λ ) and a known oracle complexity T ~ ( R , λ ) \widetilde{T}(R,\lambda) T ( R , λ ) . We say that PGReduce \operatorname{PGReduce} PGReduce is valid if, whenever
E ∥ y − x ∗ ∥ 2 ≤ R 2 and Adm P G ( R , B λ ) holds , \mathbb{E}\lVert y-x^*\rVert^2 \le R^2 \quad\text{and}\quad\operatorname{Adm}_{\mathrm{PG}}(R,B_\lambda)\text{ holds}, E ∥ y − x ∗ ∥ 2 ≤ R 2 and Adm PG ( R , B λ ) holds , it uses at most T ~ ( R , λ ) \widetilde{T}(R,\lambda) T ( R , λ ) oracle calls to SO λ \operatorname{SO}_\lambda SO λ and returns a candidate y + ∈ X y^+ \in X y + ∈ X satisfying
E ∥ G X ( y + ) ∥ ≤ 2 μ R 16 . \mathbb{E}\lVert G_X(y^+)\rVert\le\frac{\sqrt{2}\mu R}{16}. E ∥ G X ( y + )∥ ≤ 16 2 μ R .
Note that the bias-admissibility condition Adm P G ( R , B λ ) \operatorname{Adm}_{\mathrm{PG}}(R,B_\lambda) Adm PG ( R , B λ ) is used only in the theoretical analysis and need not be known by the meta-algorithm presented below. Whether an oracle can actually support the requested progress is evaluated by the trusted projected-gradient certificate. This distinction is important: violating a sufficient PG-admissibility condition does not itself force rejection, since an oracle may still happen to pass the certificate test.
Budgeted sparse certification meta-algorithm
In this section, we propose the sparse certification meta-algorithm, which runs in blocks and uses a budget parameter B ∈ [ 0 , ∞ ] B \in[0,\infty] B ∈ [ 0 , ∞ ] to determine the certification frequency. The algorithm uses both the contraction subroutine in Definition 1 and the projected-gradient (PG) reduction subroutine in Definition 2. The algorithm will eliminate the stochastic oracle if it does not pass the certification round.
Homogeneous blocks and progressive certification. Our key design choice is to use only one stochastic oracle S O λ \mathrm{SO}_{\lambda} SO λ inside each uncertified block. This makes a failed certification attributable to a single source, so that the source can be safely discarded after each unsuccessful block without any additional screening procedure.
For the current certified level s ∈ N s \in\mathbb{N} s ∈ N , let y s y^{s} y s denote the current certified point, i.e., ∥ y s − x ∗ ∥ 2 ≤ R s 2 \lVert y^{s} - x^{\ast}\rVert^{2} \le R_{s}^{2} ∥ y s − x ∗ ∥ 2 ≤ R s 2 . Let P \mathcal{P} P denote the current pool of non-rejected oracles. Define the stage cost quantities
C λ ( s ) : = c λ T ( R s , λ ) , C ~ λ ( s ) : = c λ T ~ ( R s , λ ) , (26) C_{\lambda}(s) := c_{\lambda}T(R_{s},\lambda), \qquad\widetilde{C}_{\lambda}(s) := c_{\lambda}\widetilde{T}(R_{s},\lambda), \tag*{(26)} C λ ( s ) := c λ T ( R s , λ ) , C λ ( s ) := c λ T ( R s , λ ) , (26)
where T ( ⋅ , ⋅ ) T(\cdot,\cdot) T ( ⋅ , ⋅ ) and T ~ ( ⋅ , ⋅ ) \widetilde{T}(\cdot,\cdot) T ( ⋅ , ⋅ ) are defined in Definitions 1 and 2, respectively. At the beginning of a block, choose
λ ∈ arg min ν ∈ P C ν ( s ) . (27) \lambda\in\mathop{\arg\min}_{\nu\in\mathcal{P}} C_{\nu}(s). \tag*{(27)} λ ∈ arg min ν ∈ P C ν ( s ) . (27)
The same oracle is then retained throughout this block. We define the parameter B ∈ [ 0 , ∞ ] B \in[0,\infty] B ∈ [ 0 , ∞ ] , interpreted as a single-trial budget for uncertified training . The endpoint of the block is determined before any stochastic training is performed. Starting from level s s s , we keep adding contraction stages in Definition 1 as long as (i) their cumulative cost does not exceed B B B , and (ii) λ \lambda λ remains the cheapest oracle in the current pool at the next accuracy level. The last stage of the block is replaced by a projected-gradient (PG) reduction as in Definition 2, which is designed for certification. A block is also forced to terminate when a final target level K K K is prespecified.7 More precisely, let W W W be the cumulative cost of the current block. Starting from W = 0 W=0 W = 0 and k = s k=s k = s , we declare stage k k k to be the terminal stage of the block if any of the following conditions holds:
W + C λ ( k ) > B , (28) W + C_{\lambda}(k) > B, \tag*{(28)} W + C λ ( k ) > B , (28)
(block budget constraint)
min ν ∈ P C ν ( k + 1 ) < C λ ( k + 1 ) for k < K − 1 , (29) \min_{\nu\in\mathcal{P}} C_{\nu}(k+1) < C_{\lambda}(k+1) \quad\text{for } k < K-1, \tag*{(29)} ν ∈ P min C ν ( k + 1 ) < C λ ( k + 1 ) for k < K − 1 , (29)
(economic switching)
k = K − 1 (30) k = K-1 \tag*{(30)} k = K − 1 (30)
(final target level)
Otherwise, stage k k k is scheduled as a distance-contraction stage; we set W ← W + C λ ( k ) W \leftarrow W+C_{\lambda}(k) W ← W + C λ ( k ) and continue to stage k + 1 k+1 k + 1 . A terminal stage of t − 1 t-1 t − 1 means the block aims to move from certified level s s s to level t t t . By our construction,
∑ k = s t − 2 C λ ( k ) ≤ B . (31) \sum_{k=s}^{t-2} C_{\lambda}(k) \le B. \tag*{(31)} k = s ∑ t − 2 C λ ( k ) ≤ B . (31)
Note that the cost of the last PG stage is not fully included in B B B .
One independent trial of this homogeneous block can be written as
Block ( y s ; s , t , λ ) : = PGReduce t − 1 ∘ Contract t − 2 ∘ ⋯ ∘ Contract s ( y s ) , (32) \operatorname{Block}(y^{s};s,t,\lambda) := \operatorname{PGReduce}_{t-1} \circ\operatorname{Contract}_{t-2} \circ\cdots\circ\operatorname{Contract}_{s}(y^{s}), \tag*{(32)} Block ( y s ; s , t , λ ) := PGReduce t − 1 ∘ Contract t − 2 ∘ ⋯ ∘ Contract s ( y s ) , (32)
where all subroutines use the same stochastic oracle S O λ \mathrm{SO}_{\lambda} SO λ but independent random samples. The same block might be repeated several times to boost the probability arguments, where different block trials use independent randomness. In the special case when t = s + 1 t=s+1 t = s + 1 , the block consists only of the terminal PG step, with no contraction steps.
For an endpoint y y y of a block from s s s to t t t , the trusted gradient can certify not only whether the full target t t t has been reached, but also the amount of partial progress . In particular, we define
Lev s , t ( y ) : = max ( { s } ∪ { j ∈ { s + 1 , … , t } : ∥ G X ( y ) ∥ ≤ 2 μ R j − 1 4 } ) . (33) \operatorname{Lev}_{s,t}(y) := \max\left(\{s\} \cup\left\{j \in\{s+1,\ldots,t\} : \lVert G_X(y)\rVert\le\frac{\sqrt{2\mu R_{j-1}}}{4}\right\}\right). \tag*{(33)} Lev s , t ( y ) := max ( { s } ∪ { j ∈ { s + 1 , … , t } : ∥ G X ( y )∥ ≤ 4 2 μ R j − 1 } ) . (33)
By Lemma 1, we have that Lev s , t ( y ) = j > s \operatorname{Lev}_{s,t}(y)=j>s Lev s , t ( y ) = j > s implies ∥ y − x ∗ ∥ 2 ≤ R j 2 \lVert y-x^*\rVert^2\le R_j^2 ∥ y − x ∗ ∥ 2 ≤ R j 2 . Therefore, although the full block may be unsuccessful in reaching the desired accuracy of stage t t t , we do not need to discard all progress made by the oracle.
Block admissibility. We call oracle λ \lambda λ block-admissible for a planned block ( s , t ) (s,t) ( s , t ) if
Adm C ( R k , B λ ) holds for k = s , … , t − 2 , and Adm P G ( R t − 1 , B λ ) holds. (34) \operatorname{Adm}_{\mathrm{C}}(R_k,\mathcal{B}_{\lambda})\text{ holds for }k=s,\ldots,t-2,\text{ and }\operatorname{Adm}_{\mathrm{PG}}(R_{t-1},\mathcal{B}_{\lambda})\text{ holds.} \tag*{(34)} Adm C ( R k , B λ ) holds for k = s , … , t − 2 , and Adm PG ( R t − 1 , B λ ) holds. (34)
By Definitions 1 and 2, a block-admissible oracle λ \lambda λ has the following validity guarantee.
Lemma 2 (Validity of an admissible block). Suppose y s y^s y s is certified at level s s s , and let λ \lambda λ be block-admissible for a planned block ( s , t ) (s,t) ( s , t ) . Then the output point z = Block ( y s ; s , t , λ ) z=\operatorname{Block}(y^s;s,t,\lambda) z = Block ( y s ; s , t , λ ) satisfies
E ∥ G X ( z ) ∥ ≤ 2 μ R t − 1 16 , (35) \mathbb{E}\lVert G_X(z)\rVert\le\frac{\sqrt{2}\mu R_{t-1}}{16}, \tag*{(35)} E ∥ G X ( z )∥ ≤ 16 2 μ R t − 1 , (35) and consequently
P ( ∥ G X ( z ) ∥ ≤ 2 μ R t − 1 4 ) ≥ 3 4 . (36) \mathbb{P}\left(\lVert G_X(z)\rVert\le\frac{\sqrt{2}\mu R_{t-1}}{4}\right)\ge\frac{3}{4}. \tag*{(36)} P ( ∥ G X ( z )∥ ≤ 4 2 μ R t − 1 ) ≥ 4 3 . (36)
Proof. Let u s : = y s u_s:=y^s u s := y s , thus ∥ u s − x ∗ ∥ 2 ≤ R s 2 \lVert u_s-x^*\rVert^2\le R_s^2 ∥ u s − x ∗ ∥ 2 ≤ R s 2 . For k = s , … , t − 2 k=s,\ldots,t-2 k = s , … , t − 2 define
u k + 1 : = Contract ( u k , R k ; S O λ ) . u_{k+1}:=\operatorname{Contract}(u_k,R_k;\mathrm{SO}_{\lambda}). u k + 1 := Contract ( u k , R k ; SO λ ) .
By Definition 1 and the contraction-admissibility conditions in (34) , a simple induction implies
E ∥ u k − x ∗ ∥ 2 ≤ R k 2 , for k = s , … , t − 1. \mathbb{E}\lVert u_k-x^*\rVert^2\le R_k^2,\qquad\text{for }k=s,\ldots,t-1. E ∥ u k − x ∗ ∥ 2 ≤ R k 2 , for k = s , … , t − 1.
Therefore, the input u t − 1 u_{t-1} u t − 1 to the terminal projected-gradient reduction satisfies the mean-square warm-start condition at radius R t − 1 R_{t-1} R t − 1 . Definition 2 and the terminal PG-admissibility condition then imply (35) . By applying Markov’s inequality, we have
P ( ∥ G X ( z ) ∥ > 2 μ R t − 1 4 ) ≤ E ∥ G X ( z ) ∥ 2 μ R t − 1 / 4 ≤ 1 4 , \mathbb{P}\left(\lVert G_X(z)\rVert>\frac{\sqrt{2}\mu R_{t-1}}{4}\right)\le\frac{\mathbb{E}\lVert G_X(z)\rVert}{\sqrt{2}\mu R_{t-1}/4}\le\frac{1}{4}, P ( ∥ G X ( z )∥ > 4 2 μ R t − 1 ) ≤ 2 μ R t − 1 /4 E ∥ G X ( z )∥ ≤ 4 1 ,
which proves (36) .
Now we are at a position to introduce the complete budgeted sparse certification meta-algorithm (Algorithm 3).
It is noteworthy that, in Algorithm 3, we adopt a sequential way to amplify the constant probability in Ineq. (36) to high probability guarantees. In particular, a successful oracle does not need to use all R \mathcal{R} R repetitions: as soon as one block certifies the full target level t t t , the block is accepted, and no further training or trusted-gradient queries are required. Only an oracle that fails to produce a fully certified block after all R \mathcal{R} R trials will be removed. The following lemma shows sequential implementation can be substantially cheaper than generating all R \mathcal{R} R candidates before certification.
Lemma 3 (Sequential certification). Suppose a planned block is block-admissible, and let N N N be the number of trials used by the sequential rule in Algorithm 3, truncated after R \mathcal{R} R trials. Then
P ( the block certification fails ) ≤ 4 − R , and E [ N ] ≤ 4 3 . (37) \mathbb{P}(\text{the block certification fails})\le4^{-\mathcal{R}},\qquad\text{and}\qquad\mathbb{E}[N]\le\frac{4}{3}. \tag*{(37)} P ( the block certification fails ) ≤ 4 − R , and E [ N ] ≤ 3 4 . (37)
Algorithm 3 Budgeted sparse certification with homogeneous blocks
1: Input: initial point $y^0$ such that $\lVert y^0-x^*\rVert \le R$, oracle pool $\mathcal{P}$, budget $B$, subroutines Contract and PGReduce, repetition cap $\mathcal{R}$, stage cap $K$; set $s \leftarrow 0$.
2: while $s<K$ and $\mathcal{P}\ne\varnothing$ do
3: Choose $\lambda\in\arg\min_{\nu\in\mathcal{P}} C_\nu(s)$.
4: Determine the block endpoint $t>s$ using conditions {xref}`(5.6)`–{xref}`(5.8)`.
5: Set $j_{\mathrm{best}}\leftarrow s$ and $y_{\mathrm{best}}\leftarrow y^s$.
6: for $r=1,\ldots,\mathcal{R}$ do
7: Generate an independent block output $z_r\leftarrow\operatorname{Block}(y^s;s,t,\lambda)$.
8: Query the trusted certification module $\mathcal{C}$ at $z_r$ and compute $j_r\leftarrow\operatorname{Lev}_{s,t}(z_r)$.
9: if $j_r>j_{\mathrm{best}}$ then
10: Set $j_{\mathrm{best}}\leftarrow j_r$ and $y_{\mathrm{best}}\leftarrow z_r$.
11: end if
12: if $j_r=t$ then
13: Accept full block: set $y^t\leftarrow z_r$, $s\leftarrow t$, and break the for-loop.
14: end if
15: end for
16: if no trial certified level $t$ then
17: Keep certified partial progress: if $j_{\mathrm{best}}>s$, set $y^{j_{\mathrm{best}}}\leftarrow y_{\mathrm{best}}$ and $s\leftarrow j_{\mathrm{best}}$.
18: Permanently remove $\lambda$ from $\mathcal{P}$.
19: end if
20: end while
Proof. By Lemma 2, every independent block trial succeeds with probability at least 3 / 4 3/4 3/4 . Hence the probability that the first r r r trials all fail is at most 4 − r 4^{-r} 4 − r . Therefore
P ( the block certification fails ) ≤ 4 − R . \mathbb{P}(\text{the block certification fails})\le4^{-\mathcal{R}}. P ( the block certification fails ) ≤ 4 − R .
The expectation for the total number of trials for a successful certification is bounded by
E [ N ] = ∑ r = 0 R − 1 P ( N > r ) ≤ ∑ r = 0 R − 1 4 − r ≤ 4 3 . \mathbb{E}[N]=\sum_{r=0}^{\mathcal{R}-1}\mathbb{P}(N>r)\le\sum_{r=0}^{\mathcal{R}-1}4^{-r}\le\frac{4}{3}. E [ N ] = r = 0 ∑ R − 1 P ( N > r ) ≤ r = 0 ∑ R − 1 4 − r ≤ 3 4 .
which completes the proof.
The homogeneous-block construction relieves the attribution issue that would arise if different oracles were used inside one uncertified block. Here, all R \mathcal{R} R trials of a failed block use the same λ \lambda λ , so that the false elimination issue can be avoided with high probability.
The next proposition characterizes the high-probability convergence guarantees of Algorithm 3.
Proposition 2 (High-probability convergence guarantee of budgeted certification). Let K = ⌈ log 2 ( R 0 2 / ϵ ) ⌉ K=\left\lceil\log_2(R_0^2/\epsilon)\right\rceil K = ⌈ log 2 ( R 0 2 / ϵ ) ⌉ and choose R ≥ ⌈ log 4 K + ℓ δ ⌉ \mathcal{R}\ge\left\lceil\log_4\frac{K+\ell}{\delta}\right\rceil R ≥ ⌈ log 4 δ K + ℓ ⌉ . Suppose that whenever Algorithm 3 has not yet reached certified level K K K , the current pool contains at least one oracle that is block-admissible. Then, with probability at least 1 − δ 1-\delta 1 − δ , the algorithm terminates with a certified point y y y satisfying ∥ y − x ∗ ∥ 2 ≤ ϵ \lVert y-x^*\rVert^2\le\epsilon ∥ y − x ∗ ∥ 2 ≤ ϵ . The total number of blocks is bounded by K + ℓ = O ( ℓ + log R 0 2 ϵ ) K+\ell=O\left(\ell+\log\frac{R_0^2}{\epsilon}\right) K + ℓ = O ( ℓ + log ϵ R 0 2 ) , and the number of trusted-gradient evaluations is at most
O { ( ℓ + log R 0 2 ϵ ) log ( ℓ + log ( R 0 2 / ϵ ) δ ) } . O\left\{\left(\ell+\log\frac{R_0^2}{\epsilon}\right)\log\left(\frac{\ell+\log(R_0^2/\epsilon)}{\delta}\right)\right\}. O { ( ℓ + log ϵ R 0 2 ) log ( δ ℓ + log ( R 0 2 / ϵ ) ) } .
Proof. Consider a block-admissible oracle. By Lemma 2, one independent block trial fails to certify the full target with probability at most 1 / 4 1/4 1/4 . Therefore all R \mathcal{R} R independent trials fail with probability at most 4 − R ≤ δ K + ℓ 4^{-\mathcal{R}} \le\frac{\delta}{K+\ell} 4 − R ≤ K + ℓ δ . Every fully successful block advances the certified level by at least one, so there can be at most K K K such blocks. Every unsuccessful block permanently removes one oracle, so there can be at most ℓ \ell ℓ unsuccessful blocks. A union bound over at most K + ℓ K+\ell K + ℓ block decisions shows that, with probability at least 1 − δ 1-\delta 1 − δ , no block-admissible oracle is incorrectly removed.
Every advancement of the certified level, whether a full-block success or the partial progress, is justified by the exact projected-gradient certificate in Lemma 1. Thus the certified state always satisfies ∥ y s − x ∗ ∥ 2 ≤ R s 2 \lVert y^{s}-x^*\rVert^2 \le R_s^2 ∥ y s − x ∗ ∥ 2 ≤ R s 2 . Under the stated availability condition, an unfinished level cannot exhaust all block-admissible oracles on the above high-probability event. Thus the certified level eventually reaches K K K , where R K 2 ≤ ϵ R_K^2 \le\epsilon R K 2 ≤ ϵ .
Finally, each certification round queries the trusted certification module at most R \mathcal{R} R times. Multiplying R \mathcal{R} R by K + ℓ K+\ell K + ℓ yields the stated trusted-gradient complexity. □ \square □
Savings in trusted-gradient evaluations. It is useful to compare the above complexity with directly using the trusted first-order module for optimization. If we were to use this trusted module alone, then an accelerated projected-gradient method for the μ \mu μ -strongly convex and L L L -smooth problem would require at least
O ( L μ log R 0 2 ϵ ) O\left(\sqrt{\frac{L}{\mu}}\log\frac{R_0^2}{\epsilon}\right) O ( μ L log ϵ R 0 2 )
trusted-gradient evaluations to reach ϵ \epsilon ϵ -accuracy (Nemirovskij and Yudin [43 ] ). In contrast, Proposition 2 shows that our framework requires only
O [ ( ℓ + log R 0 2 ϵ ) log ( ℓ + log ( R 0 2 / ϵ ) δ ) ] O\left[\left(\ell+\log\frac{R_0^2}{\epsilon}\right)\log\left(\frac{\ell+\log(R_0^2/\epsilon)}{\delta}\right)\right] O [ ( ℓ + log ϵ R 0 2 ) log ( δ ℓ + log ( R 0 2 / ϵ ) ) ]
trusted-gradient evaluations. Thus, when the number of candidate oracles ℓ \ell ℓ is moderate, the trusted gradient module is called only O ~ ( log ( 1 / ϵ ) ) \widetilde{O}(\log(1/\epsilon)) O ( log ( 1/ ϵ )) times. Up to logarithmic confidence factors, our certification strategy saves a factor of L / μ \sqrt{L/\mu} L / μ . This saving can be significant for important ill-conditioned stochastic optimization problems, where L / μ L/\mu L / μ can be large. Such ill-conditioning arises frequently in statistical learning problems, including least-squares, ridge, and logistic regression ([12 , 35 ] ), as well as large-scale inverse problems such as tomography ([13 , 19 ] ).
Recursive regularization with SGE: an efficient PG subroutine
To instantiate the projected-gradient reduction subroutine in Definition 2, we build on the recursive-regularization (RR) framework of Allen-Zhu [3 ] ; Foster et al. [21 ] . RR solves a sequence of increasingly regularized subproblems and converts sufficiently accurate solutions of these subproblems into a small projected-gradient mapping for the original objective. Our setting requires two modifications to the standard RR analysis: the inner solver is the biased SGE method with convergence guarantees in Theorem 1, and the stochastic oracle satisfies a state-dependent rather than uniformly bounded variance condition.
We first state the RR algorithm with the SGE subroutine and its main convergence guarantees, and then provide the detailed proof. Similar to Subsection 3.1, in this subsection, we consider a fixed stochastic oracle λ \lambda λ and use the simplified notation G \mathcal{G} G to denote the selected stochastic first-order oracle and g ( x ) = E [ g ( x , ξ ) ] g(x)=\mathbb{E}[g(x,\xi)] g ( x ) = E [ g ( x , ξ )] , L \mathcal{L} L , σ ∗ 2 \sigma_*^2 σ ∗ 2 , and B \mathcal{B} B to denote its variance and bias parameters. We assume in this subsection x ∗ x^* x ∗ is an interior point of the feasible region X \mathcal{X} X , thus ∇ f ( x ∗ ) = 0 \nabla f(x^*)=0 ∇ f ( x ∗ ) = 0 .
Algorithm 4 RR+SGE for projected gradient reduction
Input: closed convex set X X X , initial point x ^ 0 \widehat{x}_0 x 0 , oracle S O λ \mathrm{SO}_{\lambda} SO λ , and S = 1 + ⌈ log 2 ( L / μ ) ⌉ S = 1 + \lceil\log_2(L/\mu) \rceil S = 1 + ⌈ log 2 ( L / μ )⌉ ; set ϕ 0 = f \phi_0 = f ϕ 0 = f .
for j = 1 , … , S j = 1, \ldots, S j = 1 , … , S do
Run SGE (Algorithm 2) on ϕ j − 1 \phi_{j-1} ϕ j − 1 over X X X , initialized at x ^ j − 1 \widehat{x}_{j-1} x j − 1 ; denote the output by x ^ j \widehat{x}_j x j , which satisfies E [ ϕ j − 1 ( x ^ j ) − ϕ j − 1 ∗ ] ≤ δ j \mathbb{E}[\phi_{j-1}(\widehat{x}_j) - \phi^*_{j-1}] \le\delta_j E [ ϕ j − 1 ( x j ) − ϕ j − 1 ∗ ] ≤ δ j .
Set ρ j = 2 j − 1 μ \rho_j = 2^{j-1}\mu ρ j = 2 j − 1 μ , and ϕ j ( x ) = ϕ j − 1 ( x ) + ρ j 2 ∥ x − x ^ j ∥ 2 \phi_j(x) = \phi_{j-1}(x) + \frac{\rho_j}{2}\lVert x-\widehat{x}_j\rVert^2 ϕ j ( x ) = ϕ j − 1 ( x ) + 2 ρ j ∥ x − x j ∥ 2 .
end for
Return: x ^ S \widehat{x}_S x S .
The following theorem characterizes the convergence guarantees of Algorithm 4.
Theorem 2 (RR+SGE projected-gradient reduction). Set S = 1 + ⌈ log 2 L μ ⌉ S = 1 + \left\lceil\log_2 \frac{L}{\mu} \right\rceil S = 1 + ⌈ log 2 μ L ⌉ . Suppose the initial point x ^ 0 \widehat{x}_0 x 0 satisfies E ∥ x ^ 0 − x ∗ ∥ 2 ≤ R 2 \mathbb{E}\lVert\widehat{x}_0-x^*\rVert^2 \le R^2 E ∥ x 0 − x ∗ ∥ 2 ≤ R 2 . There exists a universal constant c 0 > 0 c_0 > 0 c 0 > 0 such that, if
B ≤ c 0 μ R S , (38) B \le\frac{c_0\mu R}{S}, \tag*{(38)} B ≤ S c 0 μ R , (38) then Algorithm 4 returns a point y ^ ∈ X \widehat{y} \in X y ∈ X satisfying
E ∥ G X ( y ^ ) ∥ ≤ 2 μ R 16 , and hence P ( ∥ G X ( y ^ ) ∥ ≤ 2 μ R 4 ) ≥ 3 4 . (39) \mathbb{E}\lVert G_X(\widehat{y})\rVert\le\frac{\sqrt{2}\mu R}{16}, \qquad\text{and hence} \qquad\mathbb{P}\left(\lVert G_X(\widehat{y})\rVert\le\frac{\sqrt{2}\mu R}{4}\right) \ge\frac{3}{4}. \tag*{(39)} E ∥ G X ( y )∥ ≤ 16 2 μ R , and hence P ( ∥ G X ( y )∥ ≤ 4 2 μ R ) ≥ 4 3 . (39) The total number of stochastic-gradient evaluations is at most
O ( S ( L μ + L μ ) + S 3 σ ∗ 2 μ 2 R 2 ) . (40) \mathcal{O}\left(S\left(\sqrt{\frac{L}{\mu}}+\frac{\mathcal{L}}{\mu}\right)+\frac{S^3\sigma_*^2}{\mu^2R^2}\right). \tag*{(40)} O ( S ( μ L + μ L ) + μ 2 R 2 S 3 σ ∗ 2 ) . (40) Consequently, Algorithm 4 is a valid projected-gradient reduction subroutine P G R e d u c e R R + S G E ( y , R ; S O λ ) \mathrm{PGReduce}^{\mathrm{RR+SGE}}(y,R;\mathrm{SO}_{\lambda}) PGReduce RR + SGE ( y , R ; SO λ ) with B λ ≤ c 0 μ R 1 + ⌈ log 2 ( L / μ ) ⌉ B_{\lambda}\le\frac{c_0\mu R}{1+\lceil\log_2(L/\mu)\rceil} B λ ≤ 1 + ⌈ l o g 2 ( L / μ )⌉ c 0 μ R as the bias-admissibility condition A d m P G R R + S G E ( R , B λ ) \mathrm{Adm}_{\mathrm{PG}}^{\mathrm{RR+SGE}}(R,B_{\lambda}) Adm PG RR + SGE ( R , B λ ) and T ~ R R + S G E ( R , λ ) = O ~ ( T S G E ( R , λ ) ) \widetilde{T}^{\mathrm{RR+SGE}}(R,\lambda)=\widetilde{\mathcal{O}}(T^{\mathrm{SGE}}(R,\lambda)) T RR + SGE ( R , λ ) = O ( T SGE ( R , λ )) .
Compatibility with the SGE contraction subroutine. Without loss of generality, take the universal constant c 0 c_0 c 0 in Theorem 2 small enough that c 0 ≤ 3 / 72 c_0\le\sqrt{3}/72 c 0 ≤ 3 /72 . Then
A d m P G R R + S G E ( R , B ) ⟹ A d m C S G E ( R , B ) . (41) \mathrm{Adm}_{\mathrm{PG}}^{\mathrm{RR+SGE}}(R,B)\Longrightarrow\mathrm{Adm}_{\mathrm{C}}^{\mathrm{SGE}}(R,B). \tag*{(41)} Adm PG RR + SGE ( R , B ) ⟹ Adm C SGE ( R , B ) . (41)
Moreover, because the radius sequence is nonincreasing, terminal PG-admissibility at radius R t − 1 R_{t-1} R t − 1 implies contraction admissibility at every earlier radius R k R_k R k , k ≤ t − 2 k\le t-2 k ≤ t − 2 . Hence, for the SGE/RR+SGE implementation, a homogeneous block is block-admissible whenever its oracle is PG-admissible at the terminal radius.
Complexity and near-optimality. Theorem 2 shows that converting the distance-contraction guarantee of biased SGE into a projected-gradient guarantee requires only extra logarithmic factors. In particular, by (17) , a single SGE distance-contraction stage has complexity
T S G E ( R , λ ) = O ( max { L μ , L Δ μ , σ ∗ 2 μ 2 R 2 } ) , T^{\mathrm{SGE}}(R,\lambda)=\mathcal{O}\left(\max\left\{\sqrt{\frac{L}{\mu}},\frac{\mathcal{L}_{\Delta}}{\mu},\frac{\sigma_*^2}{\mu^2R^2}\right\}\right), T SGE ( R , λ ) = O ( max { μ L , μ L Δ , μ 2 R 2 σ ∗ 2 } ) ,
where (40) differs only by powers of S = O ( log ( L / μ ) ) S=\mathcal{O}(\log(L/\mu)) S = O ( log ( L / μ )) . Thus RR+SGE achieves T ~ R R + S G E ( R , λ ) = O ~ ( T S G E ( R , λ ) ) \widetilde{T}^{\mathrm{RR+SGE}}(R,\lambda)=\widetilde{\mathcal{O}}(T^{\mathrm{SGE}}(R,\lambda)) T RR + SGE ( R , λ ) = O ( T SGE ( R , λ )) while producing the stronger, directly certifiable projected-gradient guarantee. The bias requirement also loses only a logarithmic factor: distance contraction with SGE allows B λ = O ( μ R ) B_\lambda= O(\mu R) B λ = O ( μ R ) , while RR+SGE requires B λ = O ( μ R / S ) B_\lambda= O(\mu R/S) B λ = O ( μ R / S ) .
This complexity is order-optimal up to logarithmic factors. As established in Lemma 1, any point satisfying ∥ G X ( y ) ∥ ≤ 2 μ R / 4 \|G_X(y)\| \le\sqrt{2}\mu R/4 ∥ G X ( y ) ∥ ≤ 2 μ R /4 also satisfies ∥ y − x ∗ ∥ 2 ≤ R 2 / 2 \|y-x^*\|^2 \le R^2/2 ∥ y − x ∗ ∥ 2 ≤ R 2 /2 . Therefore projected-gradient reduction is at least as hard as a constant-factor distance contraction. Known lower bounds for strongly convex stochastic optimization under state-dependent noise imply that the polynomial dependence appearing in T S G E ( R , λ ) T^{\mathrm{SGE}}(R,\lambda) T SGE ( R , λ ) cannot be improved [43 , 55 ] ; see also the near-tight stochastic gradient-minimization bounds of Foster et al. [21 ] .
Proof ingredients. We next work toward proving Theorem 2. Throughout the proof, define
x j ∗ ∈ arg min x ∈ Y ϕ j ( x ) , ϕ j ∗ = ϕ j ( x j ∗ ) . x_j^* \in\arg\min_{x\in Y}\phi_j(x), \qquad\phi_j^*=\phi_j(x_j^*). x j ∗ ∈ arg x ∈ Y min ϕ j ( x ) , ϕ j ∗ = ϕ j ( x j ∗ ) .
and let
G j ( x , ξ ) = G ( x , ξ ) + ∑ i = 1 j ρ i ( x − x ^ i ) , g j ( x ) = g ( x ) + ∑ i = 1 j ρ i ( x − x ^ i ) . G_j(x,\xi)=G(x,\xi)+\sum_{i=1}^{j}\rho_i(x-\hat{x}_i), \qquad g_j(x)=g(x)+\sum_{i=1}^{j}\rho_i(x-\hat{x}_i). G j ( x , ξ ) = G ( x , ξ ) + i = 1 ∑ j ρ i ( x − x ^ i ) , g j ( x ) = g ( x ) + i = 1 ∑ j ρ i ( x − x ^ i ) .
Note that the original oracle satisfies ∥ g ( x ) − ∇ f ( x ) ∥ ∗ ≤ B \|g(x)-\nabla f(x)\|_* \le B ∥ g ( x ) − ∇ f ( x ) ∥ ∗ ≤ B , and
E ∥ G ( x , ξ ) − g ( x ) ∥ ∗ 2 ≤ L ( f ( x ) − f ∗ ) + σ ∗ 2 . (42) \mathbb{E}\|G(x,\xi)-g(x)\|_*^2 \le L(f(x)-f^*)+\sigma_*^2. \tag*{(42)} E ∥ G ( x , ξ ) − g ( x ) ∥ ∗ 2 ≤ L ( f ( x ) − f ∗ ) + σ ∗ 2 . (42)
The first lemma shows that recursive regularization preserves the oracle bias and the state-dependent form of its variance.
Lemma 4 (State-dependent noise under recursive regularization). Suppose E [ ϕ j − 1 ( x ^ j ) − ϕ j − 1 ∗ ] ≤ δ j \mathbb{E}[\phi_{j-1}(\hat{x}_j)-\phi_{j-1}^*]\le\delta_j E [ ϕ j − 1 ( x ^ j ) − ϕ j − 1 ∗ ] ≤ δ j . Then the bias satisfies
∥ g j ( x ) − ∇ ϕ j ( x ) ∥ ∗ ≤ B . \|g_j(x)-\nabla\phi_j(x)\|_* \le B. ∥ g j ( x ) − ∇ ϕ j ( x ) ∥ ∗ ≤ B . Moreover, conditioned on the previous recursive-regularization iterates, the state-dependent variance satisfies
E ∥ G j ( x , ξ ) − g j ( x ) ∥ ∗ 2 ≤ L ( ϕ j ( x ) − ϕ j ∗ ) + σ ^ j , ∗ 2 , \mathbb{E}\|G_j(x,\xi)-g_j(x)\|_*^2 \le L(\phi_j(x)-\phi_j^*)+\hat{\sigma}_{j,*}^2, E ∥ G j ( x , ξ ) − g j ( x ) ∥ ∗ 2 ≤ L ( ϕ j ( x ) − ϕ j ∗ ) + σ ^ j , ∗ 2 , where σ ^ j , ∗ 2 : = σ ∗ 2 + L ∑ i = 1 j ρ i 2 ∥ x i − 1 ∗ − x ^ i ∥ 2 \hat{\sigma}_{j,*}^2:=\sigma_*^2+L\sum_{i=1}^{j}\frac{\rho_i}{2}\|x_{i-1}^*-\hat{x}_i\|^2 σ ^ j , ∗ 2 := σ ∗ 2 + L ∑ i = 1 j 2 ρ i ∥ x i − 1 ∗ − x ^ i ∥ 2 . In particular, E [ σ ^ j , ∗ 2 ] ≤ σ ∗ 2 + L ∑ i = 1 j δ i \mathbb{E}[\hat{\sigma}_{j,*}^2]\le\sigma_*^2+L\sum_{i=1}^{j}\delta_i E [ σ ^ j , ∗ 2 ] ≤ σ ∗ 2 + L ∑ i = 1 j δ i .
We defer the proof of Lemma 4 to Appendix § 9 .§ 2 .
The second ingredient is the deterministic RR reduction: sufficiently accurate solutions of the regularized subproblems imply a small projected-gradient mapping for the original objective.
Proposition 3 (Recursive-regularization reduction; cf. Allen-Zhu [3 ] ; Foster et al. [21 ] ). Let S : = 1 + ⌈ log 2 L μ ⌉ S:=1+\left\lceil\log_2\frac{L}{\mu}\right\rceil S := 1 + ⌈ log 2 μ L ⌉ , ρ j : = 2 j − 1 μ \rho_j:=2^{j-1}\mu ρ j := 2 j − 1 μ . For j = 1 , … , S j=1,\ldots,S j = 1 , … , S , suppose x ^ j \hat{x}_j x ^ j is an approximate minimizer of ϕ j − 1 \phi_{j-1} ϕ j − 1 over X X X satisfying E [ ϕ j − 1 ( x ^ j ) − ϕ j − 1 ∗ ] ≤ δ j \mathbb{E}[\phi_{j-1}(\hat{x}_j)-\phi_{j-1}^*]\le\delta_j E [ ϕ j − 1 ( x ^ j ) − ϕ j − 1 ∗ ] ≤ δ j . Then, with γ = 1 2 L \gamma=\frac{1}{2L} γ = 2 L 1 , the final point x ^ S \hat{x}_S x ^ S satisfies
E ∥ G X ( x ^ S ) ∥ ≤ ( 2 + 2 ) ∑ j = 1 S − 1 ρ j δ j + 6 ρ S δ S . (43) \mathbb{E}\|G_X(\hat{x}_S)\| \le(2+\sqrt{2})\sum_{j=1}^{S-1}\sqrt{\rho_j\delta_j}+6\sqrt{\rho_S\delta_S}. \tag*{(43)} E ∥ G X ( x ^ S ) ∥ ≤ ( 2 + 2 ) j = 1 ∑ S − 1 ρ j δ j + 6 ρ S δ S . (43)
The proof of Proposition 3 follows from the analysis techniques in Allen-Zhu [3 ] ; Foster et al. [21 ] . For the sake of completeness, we provide a complete proof in Appendix § 9 .§ 3 .
Proof of Theorem 2. Proof. For a sufficiently small universal constant a > 0 a > 0 a > 0 , set
δ j : = a μ 2 R 2 S 2 ρ j , ρ j = 2 j − 1 μ , j = 1 , … , S . (44) \delta_j := \frac{a\mu^2 R^2}{S^2\rho_j}, \qquad\rho_j = 2^{j-1}\mu, \quad j = 1,\ldots,S. \tag*{(44)} δ j := S 2 ρ j a μ 2 R 2 , ρ j = 2 j − 1 μ , j = 1 , … , S . (44)
We show that SGE can solve every recursively regularized subproblem to the accuracy δ j \delta_j δ j with the stated total complexity by inductive arguments.
For the first subproblem, condition on the possibly random warm start x ^ 0 \widehat{x}_0 x 0 , apply the SGE bound in Theorem 1, and then average over x ^ 0 \widehat{x}_0 x 0 . Since E ∥ x ^ 0 − x ∗ ∥ 2 ≤ R 2 \mathbb{E}\lVert\widehat{x}_0-x^*\rVert^2 \le R^2 E ∥ x 0 − x ∗ ∥ 2 ≤ R 2 , the resulting first-stage bound is identical to the deterministic-warm-start case. Applying (14) with mini-batch size m = 1 m=1 m = 1 , it suffices to use
k 1 = O ( S L μ + S L μ + S 2 σ ∗ 2 μ 2 R 2 ) (45) k_1 = O\left(S\sqrt{\frac{L}{\mu}}+\frac{S\mathcal{L}}{\mu}+\frac{S^2\sigma_*^2}{\mu^2R^2}\right) \tag*{(45)} k 1 = O ( S μ L + μ S L + μ 2 R 2 S 2 σ ∗ 2 ) (45)
iterations to make all vanishing terms in the SGE bound smaller than a fixed fraction of δ 1 \delta_1 δ 1 . Note that the bias floor in Ineq. (14) is O ( B 2 / μ ) O(B^2/\mu) O ( B 2 / μ ) , condition (38) , with c 0 c_0 c 0 sufficiently small, ensures B 2 μ ≲ a μ R 2 S 2 = δ 1 \frac{B^2}{\mu}\lesssim\frac{a\mu R^2}{S^2}=\delta_1 μ B 2 ≲ S 2 a μ R 2 = δ 1 , and consequently E [ ϕ 0 ( x ^ 1 ) − ϕ 0 ∗ ] ≤ δ 1 \mathbb{E}[\phi_0(\widehat{x}_1)-\phi_0^*]\le\delta_1 E [ ϕ 0 ( x 1 ) − ϕ 0 ∗ ] ≤ δ 1 .
Now consider j ≥ 2 j\ge2 j ≥ 2 . Assume x ^ j − 1 \widehat{x}_{j-1} x j − 1 is a δ j − 1 \delta_{j-1} δ j − 1 -approximate minimizer of ϕ j − 2 \phi_{j-2} ϕ j − 2 , i.e., E [ ϕ j − 2 ( x ^ j − 1 ) − ϕ j − 2 ∗ ] ≤ δ j − 1 \mathbb{E}[\phi_{j-2}(\widehat{x}_{j-1})-\phi_{j-2}^*]\le\delta_{j-1} E [ ϕ j − 2 ( x j − 1 ) − ϕ j − 2 ∗ ] ≤ δ j − 1 . Then Ineq. (B.2) indicates that the initial distance to the optimal solution E ∥ x ^ j − 1 − x j − 1 ∗ ∥ 2 ≤ δ j − 1 ρ j − 1 \mathbb{E}\lVert\widehat{x}_{j-1}-x_{j-1}^*\rVert^2\le\frac{\delta_{j-1}}{\rho_{j-1}} E ∥ x j − 1 − x j − 1 ∗ ∥ 2 ≤ ρ j − 1 δ j − 1 , and the initial optimality gap
E [ ϕ j − 1 ( x ^ j − 1 ) − ϕ j − 1 ∗ ] ≤ E [ ϕ j − 2 ( x ^ j − 1 ) − ϕ j − 2 ∗ ] ≤ δ j − 1 , (46) \mathbb{E}[\phi_{j-1}(\widehat{x}_{j-1})-\phi_{j-1}^*]\le\mathbb{E}[\phi_{j-2}(\widehat{x}_{j-1})-\phi_{j-2}^*]\le\delta_{j-1}, \tag*{(46)} E [ ϕ j − 1 ( x j − 1 ) − ϕ j − 1 ∗ ] ≤ E [ ϕ j − 2 ( x j − 1 ) − ϕ j − 2 ∗ ] ≤ δ j − 1 , (46)
In the proof of Proposition 3, we show that the j j j -th subproblem ϕ j − 1 \phi_{j-1} ϕ j − 1 is ρ j \rho_j ρ j -strongly convex and has smoothness at most 2 L 2L 2 L . By Lemma 4, the effective residual variance at this level satisfies
E [ σ ^ j − 1 , ∗ 2 ] ≤ σ ∗ 2 + L ∑ i = 1 j − 1 δ i ≤ σ ∗ 2 + 2 a L μ R 2 S 2 . \mathbb{E}[\widehat{\sigma}_{j-1,*}^2]\le\sigma_*^2+\mathcal{L}\sum_{i=1}^{j-1}\delta_i\le\sigma_*^2+\frac{2a\mathcal{L}\mu R^2}{S^2}. E [ σ j − 1 , ∗ 2 ] ≤ σ ∗ 2 + L i = 1 ∑ j − 1 δ i ≤ σ ∗ 2 + S 2 2 a L μ R 2 .
where the second inequality follows from (44) . By the first inequality in (14) of Theorem 1, we have
E [ ϕ j − 1 ( x k j ) − ϕ j − 1 ∗ ] ≤ O ( ( L k j 2 + L m k j 2 + L 2 ρ j m 2 k j 2 ) δ j − 1 ρ j − 1 + δ j − 1 k j 2 + σ ∗ 2 ρ j m k j + a L μ R 2 ρ j S 2 m k j + B 2 ρ j ) . \mathbb{E}[\phi_{j-1}(x_{k_j})-\phi_{j-1}^*]\le O\left(\left(\frac{L}{k_j^2}+\frac{\mathcal{L}}{m k_j^2}+\frac{\mathcal{L}^2}{\rho_jm^2k_j^2}\right)\frac{\delta_{j-1}}{\rho_{j-1}}+\frac{\delta_{j-1}}{k_j^2}+\frac{\sigma_*^2}{\rho_jmk_j}+\frac{a\mathcal{L}\mu R^2}{\rho_jS^2mk_j}+\frac{B^2}{\rho_j}\right). E [ ϕ j − 1 ( x k j ) − ϕ j − 1 ∗ ] ≤ O ( ( k j 2 L + m k j 2 L + ρ j m 2 k j 2 L 2 ) ρ j − 1 δ j − 1 + k j 2 δ j − 1 + ρ j m k j σ ∗ 2 + ρ j S 2 m k j a L μ R 2 + ρ j B 2 ) .
Note that δ j − 1 ρ j − 1 δ j = 4 ρ j \frac{\delta_{j-1}}{\rho_{j-1}\delta_j}=\frac{4}{\rho_j} ρ j − 1 δ j δ j − 1 = ρ j 4 . Therefore, with mini-batch size m = 1 m=1 m = 1 , it suffices to use
k j = O ( L ρ j + L ρ j + S 2 σ ∗ 2 μ 2 R 2 + L μ ) (47) k_j=O\left(\sqrt{\frac{L}{\rho_j}}+\frac{\mathcal{L}}{\rho_j}+\frac{S^2\sigma_*^2}{\mu^2R^2}+\frac{\mathcal{L}}{\mu}\right) \tag*{(47)} k j = O ( ρ j L + ρ j L + μ 2 R 2 S 2 σ ∗ 2 + μ L ) (47)
to make all vanishing terms (terms other than B 2 ρ j \frac{B^2}{\rho_j} ρ j B 2 ) smaller than a fixed fraction of δ j \delta_j δ j . Meanwhile, condition (38) suggests that, when c 0 c_0 c 0 is sufficiently small, the bias floor satisfies B 2 ρ j ≲ a μ 2 R 2 S 2 ρ j = δ j \frac{B^2}{\rho_j}\lesssim\frac{a\mu^2R^2}{S^2\rho_j}=\delta_j ρ j B 2 ≲ S 2 ρ j a μ 2 R 2 = δ j . As a consequence, we have E [ ϕ j − 1 ( x ^ j ) − ϕ j − 1 ∗ ] ≤ δ j \mathbb{E}[\phi_{j-1}(\widehat{x}_j)-\phi_{j-1}^*]\le\delta_j E [ ϕ j − 1 ( x j ) − ϕ j − 1 ∗ ] ≤ δ j , and the inductive argument is complete.
Now we check the total sample complexity. Summing up k j k_j k j over all S = O ( log ( L / μ ) ) S=O(\log(L/\mu)) S = O ( log ( L / μ )) recursive-regularization levels, we obtain
∑ j = 1 S k j = O ( S L μ + S L μ + S 3 σ ∗ 2 μ 2 R 2 ) . \sum_{j=1}^{S}k_j=O\left(S\sqrt{\frac{L}{\mu}}+\frac{S\mathcal{L}}{\mu}+\frac{S^3\sigma_*^2}{\mu^2R^2}\right). j = 1 ∑ S k j = O ( S μ L + μ S L + μ 2 R 2 S 3 σ ∗ 2 ) .
It remains to prove the projected-gradient guarantee. By Ineq. (5.21) in Proposition 3 and Ineq. (5.22),
E ∥ G X ( y ^ ) ∥ ≤ ( 2 + 2 ) ∑ j = 1 S − 1 ρ j δ j + 6 ρ S δ S = ( ( 2 + 2 ) S + 4 − 2 ) a μ R S ≤ 6 a μ R . \mathbb{E}\lVert G_X(\widehat{y})\rVert\le(2+\sqrt{2})\sum_{j=1}^{S-1}\sqrt{\rho_j\delta_j}+6\sqrt{\rho_S\delta_S} = ((2+\sqrt{2})S+4-\sqrt{2})\frac{\sqrt{a}\mu R}{S} \le6\sqrt{a}\mu R. E ∥ G X ( y )∥ ≤ ( 2 + 2 ) j = 1 ∑ S − 1 ρ j δ j + 6 ρ S δ S = (( 2 + 2 ) S + 4 − 2 ) S a μ R ≤ 6 a μ R .
Choosing a ≤ 2 / 96 \sqrt{a}\le\sqrt{2}/96 a ≤ 2 /96 yields E ∥ G X ( y ^ ) ∥ ≤ 2 μ R 16 \mathbb{E}\lVert G_X(\widehat{y})\rVert\le\frac{\sqrt{2}\mu R}{16} E ∥ G X ( y )∥ ≤ 16 2 μ R , which proves the first inequality in Ineq. (5.17). Finally, by using Markov’s inequality, we have
P ( ∥ G X ( y ^ ) ∥ > 2 μ R 4 ) ≤ 2 μ R / 16 2 μ R / 4 = 1 4 , \mathbb{P}\left(\lVert G_X(\widehat{y})\rVert>\frac{\sqrt{2}\mu R}{4}\right)\le\frac{\sqrt{2}\mu R/16}{\sqrt{2}\mu R/4}=\frac{1}{4}, P ( ∥ G X ( y )∥ > 4 2 μ R ) ≤ 2 μ R /4 2 μ R /16 = 4 1 ,
which proves the second inequality in Ineq. (5.17) and completes the proof.
How often should we certify? The training-certification cost tradeoff
This subsection studies the tradeoff for the certification frequency. First, we provide an efficient algorithmic benchmark for comparison.
A PG-admissible switching benchmark. The most straightforward algorithmic benchmark is the adaptive switching policy in Algorithm 1 with known bias from Section 3. However, Algorithm 1 only relies on the contraction-admissible condition, while in this section, we require a slightly stronger PG-admissible condition. Thus, to avoid the compatibility issue between the benchmark and the certification subroutine, we compare with a slightly more restrictive version of the oracle-informed switching policy as in Algorithm 1. Define
A k P G : = { λ : Adm P G ( R k , B λ ) holds } , C k ⋆ : = min λ ∈ A k P G C λ ( k ) , (48) \mathcal{A}^{\mathrm{PG}}_k:=\{\lambda:\operatorname{Adm}_{\mathrm{PG}}(R_k,B_\lambda)\text{ holds}\},\qquad C_k^\star:=\min_{\lambda\in\mathcal{A}^{\mathrm{PG}}_k}C_\lambda(k), \tag*{(48)} A k PG := { λ : Adm PG ( R k , B λ ) holds } , C k ⋆ := λ ∈ A k PG min C λ ( k ) , (48)
where C λ ( k ) C_\lambda(k) C λ ( k ) is defined in (26) . Assume A k P G ≠ ∅ \mathcal{A}^{\mathrm{PG}}_k\ne\varnothing A k PG = ∅ for k = 0 , … , K − 1 k=0,\ldots,K-1 k = 0 , … , K − 1 . The corresponding single-trial switching cost is
C s w P G : = ∑ k = 0 K − 1 C k ⋆ . (49) C_{\mathrm{sw}}^{\mathrm{PG}}:=\sum_{k=0}^{K-1}C_k^\star. \tag*{(49)} C sw PG := k = 0 ∑ K − 1 C k ⋆ . (49)
Here, the only difference from the known-bias benchmark in Algorithm 1 is that the admissible set is defined using the projected-gradient condition rather than the distance-contraction condition. For RR+SGE, Theorem 2 shows that this strengthens the bias requirement only by the logarithmic factor of S = 1 + ⌈ log 2 ( L / μ ) ⌉ S=1+\lceil\log_2(L/\mu)\rceil S = 1 + ⌈ log 2 ( L / μ )⌉ . Additionally, the compatibility observation (41) implies that terminal PG-admissibility automatically makes the corresponding homogeneous block admissible, thus no additional block-validity assumption is needed.
Note that the set A k P G \mathcal{A}^{\mathrm{PG}}_k A k PG shrinks as the radius decreases. On the high-probability event of Proposition 2, an oracle that belongs to A k P G \mathcal{A}^{\mathrm{PG}}_k A k PG cannot have been falsely removed at an earlier, coarser level. Thus the current oracle pool should contain an oracle attaining C k ⋆ C_k^\star C k ⋆ . Moreover, by the homogeneous-block construction and the economic-switch rule (29) , the block oracle λ \lambda λ remains a cheapest oracle in the current pool at every stage k k k of that block, including its terminal stage; therefore
C k ( λ ) ≤ C k ⋆ for every stage k visited by the block . (50) C_k(\lambda)\le C_k^\star\quad\text{for every stage }k\text{ visited by the block}. \tag*{(50)} C k ( λ ) ≤ C k ⋆ for every stage k visited by the block . (50)
We define the first PG-inadmissible level of oracle λ \lambda λ by
κ λ : = min { k ∈ { 0 , … , K − 1 } : λ ∉ A k P G } , (51) \kappa_\lambda:=\min\{k\in\{0,\ldots,K-1\}:\lambda\notin\mathcal{A}^{\mathrm{PG}}_k\}, \tag*{(51)} κ λ := min { k ∈ { 0 , … , K − 1 } : λ ∈ / A k PG } , (51)
with κ λ = K \kappa_\lambda=K κ λ = K if the oracle remains PG-admissible throughout. We further define a cost overhead quantity
C b a d P G : = ∑ λ : κ λ < K max k ∈ { κ λ , … , K − 1 } : C k ( λ ) ≤ C k ⋆ C ~ k ( λ ) , (52) C_{\mathrm{bad}}^{\mathrm{PG}} := \sum_{\lambda:\,\kappa_\lambda<K}\max_{\substack{k\in\{\kappa_\lambda,\ldots,K-1\}:\\ C_k(\lambda)\le C_k^\star}} \widetilde{C}_k(\lambda), \tag*{(52)} C bad PG := λ : κ λ < K ∑ k ∈ { κ λ , … , K − 1 } : C k ( λ ) ≤ C k ⋆ max C k ( λ ) , (52)
where the maximum over an empty set is zero. The quantity C b a d P G C_{\mathrm{bad}}^{\mathrm{PG}} C bad PG is independent of B B B and captures an unavoidable oracle-identification effect. Specifically, when an oracle becomes economically competitive but PG-inadmissible, it will be selected by the algorithm and may result in a failure block, thus being eliminated consequently. However, failure of Adm P G \operatorname{Adm}_{\mathrm{PG}} Adm PG is only failure of a sufficient condition: an oracle can already be PG-inadmissible and nevertheless continue to pass the exact certificate for some later stages. Thus, even for the extreme choice B = 0 B=0 B = 0 , which certifies after every stage, the algorithm may continue using such an oracle until a later certification finally fails. The maximum in (52) quantifies this overhead PG cost for each oracle once for the most expensive scale at which it is already PG-inadmissible but still economically competitive with the best PG-admissible oracle.
Moreover, to quantify the tradeoff for choosing different B B B , we define M M M as the number of failed blocks and Q Q Q as the number of fully successful blocks terminated by the economic-switch condition (29) . Clearly, we have M ≤ ℓ M\le\ell M ≤ ℓ . The next lemma provides a B B B -independent upper bound for Q Q Q .
Lemma 5 (Economic switches). Under the SGE stage-cost (17) , we have Q ≤ ( ℓ 2 ) Q\le\binom{\ell}{2} Q ≤ ( 2 ℓ ) .
Proof. From (17) , the stage cost of SGE has the form C k ( λ ) = max { α λ , β λ 2 k } C_k(\lambda)=\max\{\alpha_\lambda,\beta_\lambda2^k\} C k ( λ ) = max { α λ , β λ 2 k } . For any two oracles λ \lambda λ and ν \nu ν , their strict ordering can change at most once as k k k increases. Thus one unordered stochastic oracle pair can trigger at most one strict economic switch. Since removed oracles never return to the pool, we have Q ≤ ( ℓ 2 ) Q\le\binom{\ell}{2} Q ≤ ( 2 ℓ ) .
It should be noted that Lemma 5 only provides a conservative upper bound for Q Q Q . However, an oracle can be selected in two non-consecutive blocks only when, in the later block, the more economically competitive oracles are already eliminated from the pool. This does not happen very often in real implementations. If most oracles are not selected in two non-consecutive blocks, Q Q Q should be bounded by O ( ℓ ) O(\ell) O ( ℓ ) . Moreover, as discussed in § 4 and shown in our numerical experiments, a few oracles may be strictly dominated by others and will never be selected, which further reduces Q Q Q .
For notational simplicity, we also define a ratio factor ζ ≥ 1 \zeta\ge1 ζ ≥ 1 between the cost of a contraction subroutine (Definition 1) and a PG subroutine (Definition 2). Specifically,
T ~ ( R , λ ) ≤ ζ ⋅ T ( R , λ ) , ∀ R , λ . (53) \widetilde{T}(R,\lambda)\le\zeta\cdot T(R,\lambda),\qquad\forall R,\lambda. \tag*{(53)} T ( R , λ ) ≤ ζ ⋅ T ( R , λ ) , ∀ R , λ . (53)
By Theorem 2, RR+SGE satisfies this relation with ζ = O ( S 3 ) \zeta=O(S^3) ζ = O ( S 3 ) containing only additional logarithmic factors in the condition number. In the whitened numerical setting of § 6 , L = μ L=\mu L = μ and hence S = 1 S=1 S = 1 , so we have T ~ = O ( T ) \widetilde{T}=O(T) T = O ( T ) and ζ = O ( 1 ) \zeta=O(1) ζ = O ( 1 ) .
Let Cost B \operatorname{Cost}_B Cost B denote the total cost of our budgeted sparse certification algorithm (Algorithm 3), including both training and certification costs. We have the following upper bound guarantees.
Theorem 3 (Cost of budgeted sparse certification). Consider Algorithm 3 on the high-probability event in Proposition 2. For B > 0 B>0 B > 0 , let B ‾ : = min { B , C s w P G } \overline{B}:=\min\{B,C_{\mathrm{sw}}^{\mathrm{PG}}\} B := min { B , C sw PG } . We have
Cost B ≤ R [ C s w P G + C b a d P G + M B ‾ ] + R c e r t [ min { K , ⌈ C s w P G B ⌉ + Q + 1 } + M ] . (54) \operatorname{Cost}_B\le R\left[C_{\mathrm{sw}}^{\mathrm{PG}}+C_{\mathrm{bad}}^{\mathrm{PG}}+M\overline{B}\right]
+R_{\mathrm{cert}}\left[\min\left\{K,\left\lceil\frac{C_{\mathrm{sw}}^{\mathrm{PG}}}{B}\right\rceil+Q+1\right\}+M\right]. \tag*{(54)} Cost B ≤ R [ C sw PG + C bad PG + M B ] + R cert [ min { K , ⌈ B C sw PG ⌉ + Q + 1 } + M ] . (54)
Proof. First, note that the fully successful blocks cover disjoint certified level intervals. By (50) , every contraction stage in such blocks costs no more than the corresponding stage of our benchmark, while the cost of the PG stage is at most ζ \zeta ζ times its SGE-equivalent stage cost by (53) . Therefore, the single-trial stochastic-training cost of all fully successful blocks is at most ζ C s w P G \zeta C_{\mathrm{sw}}^{\mathrm{PG}} ζ C sw PG .8 Considering the sequential implementation rule with at most R \mathcal{R} R trials, we have
Cost ( all fully successful blocks ) ≤ R ζ C s w P G . (55) \operatorname{Cost}(\text{all fully successful blocks}) \le\mathcal{R}\zeta C_{\mathrm{sw}}^{\mathrm{PG}}. \tag*{(55)} Cost ( all fully successful blocks ) ≤ R ζ C sw PG . (55)
For a failed block, by the budget constraint rule in (28) , the uncertified training cost of all contraction stages is at most B B B , as shown in Ineq. (31) . Meanwhile, in case B B B is very large or even ∞ \infty ∞ , we can always bound the block’s contraction cost by C s w P G C_{\mathrm{sw}}^{\mathrm{PG}} C sw PG due to (50) . Therefore, the total cost of the contraction stages in all failed blocks is bounded by
Cost ( all contraction stages in all failed blocks ) ≤ R M min { B , C s w P G } = R M B ˉ . (56) \operatorname{Cost}(\text{all contraction stages in all failed blocks}) \le\mathcal{R}M\min\{B,C_{\mathrm{sw}}^{\mathrm{PG}}\}=\mathcal{R}M\bar{B}. \tag*{(56)} Cost ( all contraction stages in all failed blocks ) ≤ R M min { B , C sw PG } = R M B ˉ . (56)
It remains to account for the terminal PG costs of failed blocks, i.e.,
Cost ( PG stages in all failed blocks ) = R ∑ b f a i l e d C ~ k b ( λ b ) , \operatorname{Cost}(\text{PG stages in all failed blocks})=\mathcal{R}\sum_{b\ \mathrm{failed}}\widetilde{C}_{k_b}(\lambda_b), Cost ( PG stages in all failed blocks ) = R b failed ∑ C k b ( λ b ) ,
where λ b \lambda_b λ b and k b k_b k b are the oracle and terminal stage of failed block b b b . On the high-probability event under consideration, a removed oracle cannot be PG-admissible at its terminal stage: for the SGE/RR+SGE implementation, terminal PG-admissibility makes the whole block block-admissible, and Lemma 2 together with Proposition 2 rules out such a false rejection on this event. Thus k b ≥ κ λ b k_b\ge\kappa_{\lambda_b} k b ≥ κ λ b . Moreover, because λ b \lambda_b λ b is selected at k b k_b k b while the current pool contains an oracle attaining C k b ⋆ C_{k_b}^{\star} C k b ⋆ , we have C k b ( λ b ) ≤ C k b ⋆ C_{k_b}(\lambda_b)\le C_{k_b}^{\star} C k b ( λ b ) ≤ C k b ⋆ by (50) . Therefore the terminal PG cost of each failed oracle is bounded by its corresponding summand in (52) . Since each oracle can fail at most once, we have
Cost ( PG stages in all failed blocks ) ≤ R C b a d P G . (57) \operatorname{Cost}(\text{PG stages in all failed blocks})\le\mathcal{R}C_{\mathrm{bad}}^{\mathrm{PG}}. \tag*{(57)} Cost ( PG stages in all failed blocks ) ≤ R C bad PG . (57)
Finally, we need to compute the total certification cost. To do so, we need to count the successful certification blocks. If a fully successful block is terminated by the budget condition and its terminal stage is t − 1 t-1 t − 1 , then
∑ k = s t − 2 A k ( λ ) + A t − 1 ( λ ) > B . \sum_{k=s}^{t-2} A_k(\lambda)+A_{t-1}(\lambda)>B. k = s ∑ t − 2 A k ( λ ) + A t − 1 ( λ ) > B .
The corresponding successful block intervals are disjoint, and their total (single-trial) contraction subroutine cost is at most C s w P G C_{\mathrm{sw}}^{\mathrm{PG}} C sw PG by (50) . Therefore, there are at most ⌈ C s w P G / B ⌉ \left\lceil C_{\mathrm{sw}}^{\mathrm{PG}}/B\right\rceil ⌈ C sw PG / B ⌉ budget-triggered successful blocks. In addition there are Q Q Q economic-switch blocks and at most one final block, while the total number of successful blocks is at most K K K . Thus, the total number of successful blocks is bounded by min { K , ⌈ C s w P G / B ⌉ + Q + 1 } \min\left\{K,\left\lceil C_{\mathrm{sw}}^{\mathrm{PG}}/B\right\rceil+Q+1\right\} min { K , ⌈ C sw PG / B ⌉ + Q + 1 } , and the total number of certification blocks is at most min { K , ⌈ C s w P G / B ⌉ + Q + 1 } + M \min\left\{K,\left\lceil C_{\mathrm{sw}}^{\mathrm{PG}}/B\right\rceil+Q+1\right\}+M min { K , ⌈ C sw PG / B ⌉ + Q + 1 } + M , indicating a total certification cost of
Cost ( all certification steps ) ≤ R C c e r t [ min { K , ⌈ C s w P G B ⌉ + Q + 1 } + M ] . (58) \operatorname{Cost}(\text{all certification steps})\le\mathcal{R}C_{\mathrm{cert}}\left[\min\left\{K,\left\lceil\frac{C_{\mathrm{sw}}^{\mathrm{PG}}}{B}\right\rceil+Q+1\right\}+M\right]. \tag*{(58)} Cost ( all certification steps ) ≤ R C cert [ min { K , ⌈ B C sw PG ⌉ + Q + 1 } + M ] . (58)
Combining Ineqs. (55) , (56) , (57) , and (58) proves Ineq. (54) . □
The theorem separates three conceptually different training costs. The term ζ C s w P G \zeta C_{\mathrm{sw}}^{\mathrm{PG}} ζ C sw PG is the oracle-informed switching benchmark, which is tight up to ζ \zeta ζ , a logarithmic factor of the condition number, due to the use of the PG-reduction oracle. The quantity C b a d P G C_{\mathrm{bad}}^{\mathrm{PG}} C bad PG is a B B B -independent price of identifying oracles whose sufficient PG-admissibility condition has already failed but may still pass some later certification rounds. Finally, M B ˉ M\bar{B} M B ˉ is the main budget-dependent training cost: a larger B B B allows more training steps in a block before a failed oracle is detected, thus resulting in larger cost overhead.
It should be noted that the worst-case guarantee above charges R \mathcal{R} R trials to every block for the high-probability amplification, but the actual number of trials can be much smaller due to the use of the sequential strategy. In particular, Lemma 3 shows that this is conservative for successful block-admissible oracles: their expected number of block trials and trusted-gradient evaluations is at most 4 / 3 4/3 4/3 , independent of R \mathcal{R} R . Only an oracle that fails all trials and is permanently removed necessarily pays the full R \mathcal{R} R -trial price.
The U-shaped dependence on $B. When B = 0 B=0 B = 0 , every block is terminated immediately, so each block consists of one PG reduction followed by certification. The benefit is that a bad oracle is discovered immediately, so there is no training overhead M B ˉ M\bar{B} M B ˉ . However, the certification module is queried at every successful stage, giving a certification cost of order K c c e r t Kc_{\mathrm{cert}} K c cert .
At the other extreme, B = ∞ B=\infty B = ∞ eliminates budget-triggered checkpoints. Certification occurs only when the cost model predicts an economic switch or when the final target level is reached. If one inexpensive oracle remains the predicted cost minimizer throughout, there may be no intermediate certificate. However, if that oracle becomes too biased at a fine scale, the method can then spend a substantial fraction of the full optimization horizon before the final certificate detects the failure.
The following corollary isolates this tradeoff between training and certification costs introduced by the budget B B B .
Corollary 2 (U-shaped certification tradeoff). For 0 < B ≤ C s w P G 0<B\le C_{\mathrm{sw}}^{\mathrm{PG}} 0 < B ≤ C sw PG , define
C B -independent : = R [ ζ C s w P G + C b a d P G ] + R c c e r t [ ( ℓ 2 ) + ℓ + 2 ] . (59) C_{B\text{-independent}} := \mathcal{R}\left[\zeta C_{\mathrm{sw}}^{\mathrm{PG}} + C_{\mathrm{bad}}^{\mathrm{PG}}\right] + \mathcal{R}c_{\mathrm{cert}}\left[\binom{\ell}{2}+\ell+2\right]. \tag*{(59)} C B -independent := R [ ζ C sw PG + C bad PG ] + R c cert [ ( 2 ℓ ) + ℓ + 2 ] . (59) Then we have
Cost B ≤ C B -independent + R [ ℓ B + c c e r t C s w P G B ] . (60) \operatorname{Cost}_{B} \le C_{B\text{-independent}}+\mathcal{R}\left[\ell B+\frac{c_{\mathrm{cert}}C_{\mathrm{sw}}^{\mathrm{PG}}}{B}\right]. \tag*{(60)} Cost B ≤ C B -independent + R [ ℓ B + B c cert C sw PG ] . (60) The B B B -dependent upper bound is minimized at B ⋆ = c c e r t C s w P G ℓ B^{\star}=\sqrt{\frac{c_{\mathrm{cert}}C_{\mathrm{sw}}^{\mathrm{PG}}}{\ell}} B ⋆ = ℓ c cert C sw PG , whenever B ⋆ ≤ C s w P G B^{\star}\le C_{\mathrm{sw}}^{\mathrm{PG}} B ⋆ ≤ C sw PG , with
Cost B ⋆ ≤ C B -independent + 2 R ℓ c c e r t C s w P G . \operatorname{Cost}_{B^{\star}}\le C_{B\text{-independent}}+2\mathcal{R}\sqrt{\ell c_{\mathrm{cert}}C_{\mathrm{sw}}^{\mathrm{PG}}}. Cost B ⋆ ≤ C B -independent + 2 R ℓ c cert C sw PG .
Proof. For B ≤ C s w P G B\le C_{\mathrm{sw}}^{\mathrm{PG}} B ≤ C sw PG , we have B ˉ = B \bar{B}=B B ˉ = B and ⌈ C s w P G / B ⌉ ≤ C s w P G / B + 1 \lceil C_{\mathrm{sw}}^{\mathrm{PG}}/B\rceil\le C_{\mathrm{sw}}^{\mathrm{PG}}/B+1 ⌈ C sw PG / B ⌉ ≤ C sw PG / B + 1 . Also recall the upper bound M ≤ ℓ M\le\ell M ≤ ℓ and Q ≤ ( ℓ 2 ) Q\le\binom{\ell}{2} Q ≤ ( 2 ℓ ) in Lemma 5 . Applying these inequalities in (54) yields (60) . By minimizing the two B B B -dependent terms, we can show B ⋆ B^{\star} B ⋆ and Cost B ⋆ \operatorname{Cost}_{B^{\star}} Cost B ⋆ .
Corollary 2 makes the certification-frequency tradeoff explicit. In Ineq. (60) , the term ℓ B \ell B ℓ B increases with the certification budget because an unsuccessful oracle may consume more uncertified training before being rejected, whereas c c e r t C s w P G / B c_{\mathrm{cert}}C_{\mathrm{sw}}^{\mathrm{PG}}/B c cert C sw PG / B decreases because larger blocks require fewer trusted certifications. Balancing these two terms yields a theoretically efficient choice of B ⋆ B^{\star} B ⋆ . In real implementations, the quantities c c e r t c_{\mathrm{cert}} c cert and ℓ \ell ℓ are given explicitly, while the quantity C s w P G C_{\mathrm{sw}}^{\mathrm{PG}} C sw PG depends on the desired accuracy and can be hard to estimate. However, since C s w P G C_{\mathrm{sw}}^{\mathrm{PG}} C sw PG is a total-cost benchmark, we can heuristically replace its position in B ⋆ B^{\star} B ⋆ with a fraction of the total available budget. We provide clear evidence for this U-shaped certification tradeoff in our numerical experiments in Subsection 6.3.
Numerical experiments
In this section, we use simulated and LLM-based experiments to illustrate three key implications of our framework: (i) the cost-minimizing oracle can change with the optimization scale, (ii) stage-dependent switching can be substantially cheaper than committing to a single oracle, and (iii) when oracle biases are unknown, there is a clean tradeoff between frequent certification and delayed detection of biased sources.
Simulated experiments - regression with noisy labels
We first corroborate the switching mechanism in a strongly convex linear-regression problem with two unbiased stochastic oracles. We use d = 10 d = 10 d = 10 Rademacher features a ∈ { − 1 , + 1 } d a \in\{-1, +1\}^{d} a ∈ { − 1 , + 1 } d and responses y = a ⊤ x ∗ + ε λ y = a^{\top}x^{*} + \varepsilon_{\lambda} y = a ⊤ x ∗ + ε λ , where ∥ x ∗ ∥ = 1 \lVert x^{*}\rVert= 1 ∥ x ∗ ∥ = 1 and the initial distance is R 0 = 4 R_{0} = 4 R 0 = 4 . Hence
f ( x ) − f ( x ∗ ) = 1 2 ∥ x − x ∗ ∥ 2 , L = μ = 1. f(x) - f(x^{*}) = \frac{1}{2}\lVert x - x^{*}\rVert^{2}, \qquad L = \mu= 1. f ( x ) − f ( x ∗ ) = 2 1 ∥ x − x ∗ ∥ 2 , L = μ = 1.
Oracle 1 is inexpensive but has larger residual noise, whereas oracle 2 is more expensive and more accurate. Both oracles are unbiased in this experiment. We use mini-batches of size 100, halve the squared radius after each successful stage, and average 25 independent repetitions.
The resulting behavior is shown in Figure 2 . At coarse accuracy, Algorithm 1 selects SO1 because its lower price more than offsets its larger variance. As the radius decreases, the residual-variance term becomes dominant and the method switches to SO2. At the accuracy around 10 − 3 10^{-3} 1 0 − 3 , the adaptive policy costs about 2.7 × 10 4 2.7 \times10^{4} 2.7 × 1 0 4 , compared with about 7.0 × 10 4 7.0 \times10^{4} 7.0 × 1 0 4 for always using oracle 2 and 8.5 × 10 4 8.5 \times10^{4} 8.5 × 1 0 4 for always using oracle 1. Thus, even in this simple setting, the most cost-efficient oracle depends on the current optimization scale, and adaptively switching between oracles can lead to substantial cost savings.
Figure 2. Controlled two-oracle experiment. Curves show achieved squared error versus realized cumulative oracle cost; shaded intervals around the curves are pointwise 95% confidence intervals. Filled regions report the selected oracles in different phases.
LLM-completion experiments - known bias
We next consider the Aspiring Minds data described in the introduction and the data completion objective defined in Subsection 2.2. The clean data defines the target linear-regression objective, while each model–prompt completion pipeline defines a stochastic oracle. We predict ComputerProgramming from 22 numerical applicant covariates. After adding an intercept, we whiten the design using the clean least-squares Hessian, which preserves predictions and objective values while giving
Σ c l e a n = I , L = μ = 1 , f c l e a n ( x ) − f c l e a n ( x ∗ ) = 1 2 ∥ x − x ∗ ∥ 2 . \Sigma_{\mathrm{clean}} = I,\quad L = \mu= 1,\quad f_{\mathrm{clean}}(x)-f_{\mathrm{clean}}(x^*) = \frac{1}{2}\lVert x-x^*\rVert^2. Σ clean = I , L = μ = 1 , f clean ( x ) − f clean ( x ∗ ) = 2 1 ∥ x − x ∗ ∥ 2 .
We use the clean Hessian for whitening only as an experimental normalization, so that distances, curvature, and oracle characteristics can be compared on a common scale across pipelines. The clean data and clean objective are not included among the candidate stochastic oracles and are never selected by the adaptive policy. In a deployment in which the original Hessian is unavailable, one could instead work in the original coordinates or estimate a preconditioner from available data.
The nine paid oracles correspond to four GPT-5.4 Nano prompt variants, GPT-5.6 Luna, Claude Haiku 4.5, Claude Sonnet 5, and two averaged ensembles. Table 1 reports the 10% diagnostics. For the low-rank variants, “LR-7” and “LR-10” mean that the prompt receives 7 and 10 features as input, respectively. The exact prompt templates used in the completion experiments are listed in Appendix § 10 .
Cost interpretation. For completed dataset λ \lambda λ , a sampled-row gradient is
g λ ( x ; j ) = θ ~ λ , j ( θ ~ λ , j T x − y j ) . g_\lambda(x;j)=\widetilde{\theta}_{\lambda,j}\left(\widetilde{\theta}_{\lambda,j}^{\mathsf{T}}x-y_j\right). g λ ( x ; j ) = θ λ , j ( θ λ , j T x − y j ) .
For ensemble oracles, we average component gradients on the same sampled row and sum their component costs. To compare optimization trajectories on a common scale, we divide the one-time full-dataset completion price by the number of rows to obtain an equivalent per-observation query price; a mini-batch of size m m m is charged m m m times this price. This is only an accounting device for comparing information costs.
Our goal in this experiment is to place heterogeneous information sources on a common cost scale, rather than to reproduce the billing mechanics of a particular deployment. The completion pipelines incur an upfront cost for producing datasets of different fidelities, whereas the optimization framework is expressed in terms of oracle-query costs. We therefore amortize each completion cost across observations and use the resulting per-row price to compare the information consumed along different optimization trajectories. In applications where acquiring an oracle instead incurs a fixed setup cost, or where completed data can be reused at zero marginal cost, the appropriate cost model would additionally include such activation or reuse costs; incorporating these costs is complementary to the fidelity-switching principle studied here.
As discussed in Subsection 2.2, the bias of the constructed operator admits the exact decomposition
g λ ( x ) − ∇ f c l e a n ( x ) = b λ + ( Σ λ − Σ c l e a n ) ( x − x ∗ ) . g_\lambda(x)-\nabla f_{\mathrm{clean}}(x)=b_\lambda+(\Sigma_\lambda-\Sigma_{\mathrm{clean}})(x-x^*). g λ ( x ) − ∇ f clean ( x ) = b λ + ( Σ λ − Σ clean ) ( x − x ∗ ) .
We report B ^ λ = ∥ b λ ∥ = ∥ g λ ( x ∗ ) ∥ \widehat{B}_\lambda=\lVert b_\lambda\rVert=\lVert g_\lambda(x^*)\rVert B λ = ∥ b λ ∥ = ∥ g λ ( x ∗ )∥ and β λ = ∥ Σ λ − Σ c l e a n ∥ 2 \beta_\lambda=\lVert\Sigma_\lambda-\Sigma_{\mathrm{clean}}\rVert_2 β λ = ∥ Σ λ − Σ clean ∥ 2 ; the stronger radius-R R R bias bound is B ^ λ + β λ R \widehat{B}_\lambda+\beta_\lambda R B λ + β λ R . The residual variance and state-dependent coefficient are computed directly from the completed dataset:
σ λ , ∗ 2 = 1 n ∑ j = 1 n ∥ g λ ( x ∗ ; j ) − g λ ( x ∗ ) ∥ 2 , L λ = 4 λ max ( 1 n ∑ j = 1 n M λ , j T M λ , j ) , \sigma_{\lambda,*}^{2}=\frac{1}{n}\sum_{j=1}^{n}\lVert g_\lambda(x^*;j)-g_\lambda(x^*)\rVert^2,\qquad
\mathcal{L}_\lambda=4\lambda_{\max}\left(\frac{1}{n}\sum_{j=1}^{n}M_{\lambda,j}^{\mathsf{T}}M_{\lambda,j}\right), σ λ , ∗ 2 = n 1 j = 1 ∑ n ∥ g λ ( x ∗ ; j ) − g λ ( x ∗ ) ∥ 2 , L λ = 4 λ m a x ( n 1 j = 1 ∑ n M λ , j T M λ , j ) ,
where
M λ , j = θ ~ λ , j θ ~ λ , j T − Σ λ . M_{\lambda,j}=\widetilde{\theta}_{\lambda,j}\widetilde{\theta}_{\lambda,j}^{\mathsf{T}}-\Sigma_\lambda. M λ , j = θ λ , j θ λ , j T − Σ λ .
Practical admissibility rule. The theoretical admissibility condition for Algorithm 1 in § 3 is a sufficient worst-case condition and has conservative constants. In the LLM experiments, our goal is to examine the stage-dependent switching mechanism rather than to reproduce these worst-case constants. We therefore use the practical rule
B ^ λ ≤ 0.5 μ R , \widehat{B}_{\lambda} \le0.5\mu R, B λ ≤ 0.5 μ R ,
where B ^ λ = ∥ b λ ∥ = ∥ g λ ( x ∗ ) ∥ \widehat{B}_{\lambda} = \|b_{\lambda}\| = \|g_{\lambda}(x^*)\| B λ = ∥ b λ ∥ = ∥ g λ ( x ∗ ) ∥ . For the completion model, the full radius-dependent bias bound derived in § 2.2 is B ^ λ + β λ R \widehat{B}_{\lambda} + \beta_{\lambda}R B λ + β λ R ; thus, the rule above should be interpreted as a practical proxy for oracle fidelity rather than as an exact implementation of the sufficient theoretical condition. This choice affects the empirical switching thresholds but not any of our theoretical guarantees. In all reported experiments, we use mini-batches of size 20, at most 20 restart stages, and 50 independent repetitions.
Experiment results. Figure 3 shows the experiment with 10% randomly masked entries. The adaptive sequence is
Figure 3. LLM-completion experiment for Algorithm 1 at 10% missingness. Curves show achieved squared distance versus cumulative equivalent LLM cost, averaged over 50 repetitions; shaded intervals around the curves are pointwise 95% confidence intervals. Filled regions report the selected oracles in different phases, and dashed lines mark switches.
Nano LR-short-7 (SO2) ⟶ Nano LR-10 (SO4) \text{Nano LR-short-7 (SO2)} \longrightarrow\text{Nano LR-10 (SO4)} Nano LR-short-7 (SO2) ⟶ Nano LR-10 (SO4)
⟶ Luna (SO5) ⟶ Avg. Haiku+Sonnet (SO8) . \longrightarrow\text{Luna (SO5)} \longrightarrow\text{Avg. Haiku+Sonnet (SO8)}. ⟶ Luna (SO5) ⟶ Avg. Haiku+Sonnet (SO8) .
The adaptive method (Algorithm 1) skips several available pipelines, including both stand-alone Claude models at the tightest stage. At the finest displayed accuracy, its cumulative equivalent LLM cost is about $72, compared with about $240 for always using SO8, corresponding to a cost reduction of roughly 70%. The experiment therefore exhibits the same qualitative mechanism as the simulation: inexpensive sources are preferred early, while additional fidelity becomes worthwhile only at finer optimization scales.
Table 2 and Figure 4 repeats the experiment at 20% and 40% missingness. The stage-dependent switching behavior persists, but the selected sequence changes because the completion-induced bias and variance depend on the amount of missing data. At 20% missingness, the adaptive method uses only inexpensive Nano pipelines over the displayed trajectory, and achieves a cumulative cost comparable to that of the best fixed oracle, SO4.
Figure 4. (a) 20% randomly masked entries. (b) 40% randomly masked entries. LLM-completion experiments for Algorithm 1 under heavier missingness. Curves show achieved squared distance versus cumulative equivalent LLM cost over 50 repetitions, with pointwise 95% confidence intervals. Filled regions report the selected oracles in different phases.
Table 2. Table 2. Oracle diagnostics for the 20% and 40% missingness experiments. Cost is the one-time full-dataset completion price; residual variance is scaled by 10 4 10^{4} 1 0 4 . The bolded rows represent the stochastic oracles selected along the trajectory of our adaptive algorithm.
At 40% missingness, the adaptive method initially uses Nano LR-short-7 and later switches to Haiku as higher fidelity becomes necessary. At the finest displayed accuracy, its cumulative cost is approximately $11.5, compared with approximately $30 for the best fixed oracle, SO6, corresponding to a cost reduction of about 62%. These results further illustrate that the preferred oracle fidelity depends jointly on the downstream optimization stage and the quality of the upstream data.
LLM-completion experiments - budgeted certification with unknown bias
We finally test the unknown-bias meta-algorithm in § 5 . The algorithm does not use the bias diagnostics in its oracle-selection rule. Instead, it trains with one oracle over a homogeneous block and uses the clean gradient as the trusted certification module only at block endpoints. As shown above, whitening guarantees L = μ = 1 L = \mu= 1 L = μ = 1 , so the recursive-regularization depth is
S = 1 + ⌈ log 2 ( L / μ ) ⌉ = 1. S = 1 + \lceil\log_{2}(L/\mu) \rceil= 1. S = 1 + ⌈ log 2 ( L / μ )⌉ = 1.
Therefore, the RR+SGE subroutine consists of only one SGE solve on the original objective, and we use T ~ ( R , λ ) = T ( R , λ ) \widetilde{T}(R,\lambda) = T(R,\lambda) T ( R , λ ) = T ( R , λ ) in the implementation. We assign each trusted-gradient evaluation the explicit certification price c c e r t = $ 1.0 c_{\mathrm{cert}} = \$1.0 c cert = $1.0 , measured on the same scale as the stochastic-oracle training cost. We use R = 3 R = 3 R = 3 sequential block trials, and a block stops as soon as one candidate certifies successfully. We average 50 independent repetitions for each configuration and report the pointwise 95% confidence intervals.
Certification-frequency tradeoff. Figure 5 varies the uncertified-training budget B B B and reports the final cost required for Algorithm 3 to reach the target accuracy. The blue curve represents the total cumulative cost, decomposed into stochastic-oracle training cost and trusted-certification cost. The experiments exhibit the tradeoff predicted by Corollary 2. When B B B is too small, the method certifies frequently and therefore pays a large certification cost. As B B B increases, this certification cost decreases. Beyond an intermediate range, however, the training cost increases because a block can spend more on an oracle before a failed certificate causes that oracle to be rejected.
Figure 5. (a) 10% missingness. (b) 20% missingness. (c) 40% missingness. Figure 5. Certification-frequency tradeoff for Algorithm 3. The curves report the final cumulative total, training, and certification costs for different budget B B B , averaged over 50 repetitions, with pointwise 95% confidence intervals. The horizontal dashed line is the training cost of the known-bias adaptive benchmark (Algorithm 1). The dash-dotted vertical line marks the best choice of B B B , and the dotted vertical line reports the theory-inspired proxy c c e r t C a d a p t / ℓ \sqrt{c_{\mathrm{cert}}C_{\mathrm{adapt}}/\ell} c cert C adapt / ℓ in Corollary 2.
For 10%, 20%, and 40% missingness, the selected budgets are approximately B = 1.40 B = 1.40 B = 1.40 , 1.64, and 2.24, respectively. The corresponding theory-inspired proxies c c e r t C a d a p t / ℓ \sqrt{c_{\mathrm{cert}}C_{\mathrm{adapt}}/\ell} c cert C adapt / ℓ are approximately 2.81, 0.82, and 1.12, where C a d a p t C_{\mathrm{adapt}} C adapt is the realized training cost of the known-bias adaptive benchmark. Although this proxy is not intended to predict the exact empirical minimizer of B B B , it identifies the correct scale: in each case the selected budget is within a factor of two of the proxy, demonstrating the practical value of the theoretical backbone in Corollary 2.
Figure 6 reports how training and certification costs accumulate across certified levels. The decomposition makes the price of unknown bias explicit. At coarse scales, one certificate validates several inexpensive training stages and the certification cost grows slowly. Near the finest scales, unsuccessful trials and higher-fidelity training cause both components to increase more sharply.
Figure 6. (a) 10% missingness, B = 1.40 B = 1.40 B = 1.40 . (b) 20% missingness, B = 1.64 B = 1.64 B = 1.64 . (c) 40% missingness, B = 2.24 B = 2.24 B = 2.24 . Cumulative cost decomposition for budgeted certification at the selected values of B B B . Blue curves report total cost, orange curves report stochastic-oracle training cost, and green curves report trusted-certification cost; the red curve is the known-bias adaptive benchmark. Filled regions indicate mostly selected oracles in Algorithm 3 and the percentage of repetitions that select them.
Figure 7 compares the optimization progress of Algorithm 3 with Algorithm 1. As expected, the known-bias policy is more cost-efficient, but the unknown-bias method recovers the same qualitative coarse-to-fine fidelity pattern without access to these bias parameters. At 10% missingness, the two trajectories remain relatively close until the finest stages, after which the unknown-bias method pays for additional certification and failed attempts. For 20% and 40% missingness, the final switch to a sufficiently accurate oracle requires more failed trials and certification cost.
Figure 7. (a) 10% missingness, B = 1.40 B = 1.40 B = 1.40 . (b) 20% missingness, B = 1.64 B = 1.64 B = 1.64 . (c) 40% missingness, B = 2.24 B = 2.24 B = 2.24 . Unknown-bias budgeted certification v.s. the known-bias adaptive policy. Curves report achieved squared distance to x ∗ x^* x ∗ versus cumulative total cost, including both stochastic-oracle training and trusted-gradient evaluations. Filled regions indicate the stochastic oracles mostly selected by the budgeted method and the percentage of repetitions that select them.
Taken together, this set of experiments provides a proof of concept for § 5 . First, trusted certification removes the need for prior knowledge of the bias parameters and detects when a low-cost oracle can no longer deliver the required progress. Second, the budget B B B controls how much training cost is incurred between successive certifications. The empirical results reveal a clear tradeoff between training and certification costs, showing that the certification frequency is itself an economically meaningful algorithmic decision.
Lastly, we would like to comment that the regression experiments in Subsections 6.2–6.3 are intentionally chosen as a controlled setting in which the clean downstream objective and the mixed-fidelity oracle parameters can be measured directly. Our purpose is not to claim that regression exhausts LLM-assisted decision pipelines, but to test the mechanism predicted by the theory while holding the downstream optimization problem fixed. The same framework applies whenever alternative data-generation procedures induce stochastic first-order information of different cost and fidelity, including downstream estimation, prediction-and-optimization, and decision-support pipelines.
Concluding remarks
The central message is that the optimal use of mixed-fidelity information depends critically on the stage of downstream optimization. A cheap source can be the economically correct choice when the optimizer is far from the solution, even if its fidelity would be unacceptable at the final accuracy. Conversely, high fidelity is worth paying for only when it enables a more cost-efficient algorithmic progress or a lower attainable bias floor. The resulting break-even prices connect the optimization analysis to classical ideas on the value of information: information should be purchased according to its decision value, not its intrinsic accuracy alone [31 , 51 ] .
This perspective also suggests a complementary way to benchmark LLMs. General evaluation efforts such as HELM and Chatbot Arena provide valuable standardized comparisons of model capabilities and human preferences; see, e.g., Bommasani et al. [11 ] ; Chiang et al. [15 ] . For optimization-driven applications, however, a single global rank may not identify the economically best model. A useful task-specific “oracle card” could report not only benchmark accuracy and token price, but also downstream quantities such as bias, residual variance, and state-dependent variance on a representative calibration set. For data labeling, these quantities can be estimated using repeated or trusted labels; for data completion, they can be estimated from a held-out fully observed subset. Such reporting would make it possible to translate model improvements directly into stage-dependent willingness-to-pay curves such as (21) .
Although LLM-assisted data curation motivates this work, the framework is broader. The same mixed-fidelity structure arises when stochastic first-order information is produced by human experts of different skill levels, crowd workers, sensors of different precision, approximate simulators, laboratory measurements, or computational solvers with different tolerances. Interesting future directions include learning oracle parameters online rather than from calibration data and allowing correlated errors across different data sources.
Our analysis can be used in general for any portfolio of stochastic oracles. For LLM-based oracles, we abstract away several deployment-specific features. In particular, oracle acquisition may involve fixed setup costs in addition to marginal query costs; trusted certification may itself be estimated from finite samples; and practical implementations may estimate fidelity parameters only approximately. The empirical cost normalization and admissibility rules used in § 6 are intended to expose the stage-dependent switching mechanism rather than to model every feature of a particular API deployment. Extending the framework to jointly learn oracle quality, acquisition cost, and certification uncertainty is an interesting direction for future work.
Proofs in Section 3
This section contains full proofs of main results in § 3 .
Proof of Theorem 1
To prove Theorem 1, we first provide the following proposition, which characterizes the SGE recursion. This recursion lets us handle state-dependent variance and persistent bias transparently. The proof of this proposition, which is deferred to Appendix § 8 .§ 1.1 , follows a similar SGE analysis technique as in Ilandarideva et al. [34 ] , but here it also incorporates a persistent bias term and the strongly convex regularization appearing in Algorithm 2.
Proposition 4 (SGE recursion). Suppose { z t } \{z_t\} { z t } and { x t } \{x_t\} { x t } are generated by Algorithm 2. Let the algorithm parameters { α t } \{\alpha_t\} { α t } , { η t } \{\eta_t\} { η t } and { τ t } \{\tau_t\} { τ t } satisfy τ 1 ≥ 0 \tau_1 \ge0 τ 1 ≥ 0 , τ t > 0 \tau_t > 0 τ t > 0 for all t ≥ 2 t \ge2 t ≥ 2 , along with relations
θ t − 1 = α t θ t , η t ≤ α t ( η t − 1 + μ α t − 1 ) , t = 2 , … , k (61) \theta_{t-1} = \alpha_t \theta_t,\qquad\eta_t \le\alpha_t(\eta_{t-1}+\mu\alpha_{t-1}),\qquad t=2,\ldots,k \tag*{(61)} θ t − 1 = α t θ t , η t ≤ α t ( η t − 1 + μ α t − 1 ) , t = 2 , … , k (61) η t τ t − 1 α t ≥ 4 L , t = 3 , … , k (62) \frac{\eta_t\tau_{t-1}}{\alpha_t} \ge4L,\qquad t=3,\ldots,k \tag*{(62)} α t η t τ t − 1 ≥ 4 L , t = 3 , … , k (62) η 1 η 2 α 2 ≥ 16 L 2 , η k τ k ≥ 2 L , (63) \frac{\eta_1\eta_2}{\alpha_2} \ge16L^2,\qquad\eta_k\tau_k \ge2L, \tag*{(63)} α 2 η 1 η 2 ≥ 16 L 2 , η k τ k ≥ 2 L , (63) for some θ t ≥ 0 \theta_t \ge0 θ t ≥ 0 . Then for all x ∈ X x \in X x ∈ X
∑ t = 1 k θ t { τ t [ f ( x t ) − f ( x t − 1 ) ] − [ ⟨ ∇ f ( x t ) , x − x t ⟩ + μ 2 ∥ x t − x ∥ 2 ] } + θ k 2 ( η k 2 + μ α k ) ∥ z k − x ∥ 2 ≤ θ 1 η 1 2 ∥ x 0 − x ∥ 2 − θ k μ 2 ∥ x k − x ∥ 2 − ∑ t = 1 k θ t ⟨ b ( x t − 1 ) + α t ( b ( x t − 1 ) − b ( x t − 2 ) ) , z t − x ⟩ + ∑ t = 0 k − 1 [ 2 θ t + 1 ( 1 + α t + 1 2 ) η t + 1 ∥ δ t ( x t ) ∥ 2 + 2 θ t + 2 α t + 2 2 η t + 2 ∥ δ t + 1 ( x t ) ∥ 2 ] + ∑ t = 0 k − 1 θ t + 1 ⟨ α t + 1 δ t ( x t − 1 ) − ( 1 + α t + 1 ) δ t ( x t ) , z t − x ⟩ . (64) \begin{aligned}
\sum_{t=1}^{k}\theta_t\left\{\tau_t[f(x_t)-f(x_{t-1})]-\left[\langle\nabla f(x_t),x-x_t\rangle+\frac{\mu}{2}\|x_t-x\|^2\right]\right\}
+\frac{\theta_k}{2}\left(\frac{\eta_k}{2}+\mu\alpha_k\right)\|z_k-x\|^2
\le{}& \frac{\theta_1\eta_1}{2}\|x_0-x\|^2-\frac{\theta_k\mu}{2}\|x_k-x\|^2\\
&-\sum_{t=1}^{k}\theta_t\langle b(x_{t-1})+\alpha_t(b(x_{t-1})-b(x_{t-2})),z_t-x\rangle\\
&+\sum_{t=0}^{k-1}\left[\frac{2\theta_{t+1}(1+\alpha_{t+1}^2)}{\eta_{t+1}}\|\delta_t(x_t)\|^2+\frac{2\theta_{t+2}\alpha_{t+2}^2}{\eta_{t+2}}\|\delta_{t+1}(x_t)\|^2\right]\\
&+\sum_{t=0}^{k-1}\theta_{t+1}\langle\alpha_{t+1}\delta_t(x_{t-1})-(1+\alpha_{t+1})\delta_t(x_t),z_t-x\rangle. \tag*{(64)}
\end{aligned} t = 1 ∑ k θ t { τ t [ f ( x t ) − f ( x t − 1 )] − [ ⟨ ∇ f ( x t ) , x − x t ⟩ + 2 μ ∥ x t − x ∥ 2 ] } + 2 θ k ( 2 η k + μ α k ) ∥ z k − x ∥ 2 ≤ 2 θ 1 η 1 ∥ x 0 − x ∥ 2 − 2 θ k μ ∥ x k − x ∥ 2 − t = 1 ∑ k θ t ⟨ b ( x t − 1 ) + α t ( b ( x t − 1 ) − b ( x t − 2 )) , z t − x ⟩ + t = 0 ∑ k − 1 [ η t + 1 2 θ t + 1 ( 1 + α t + 1 2 ) ∥ δ t ( x t ) ∥ 2 + η t + 2 2 θ t + 2 α t + 2 2 ∥ δ t + 1 ( x t ) ∥ 2 ] + t = 0 ∑ k − 1 θ t + 1 ⟨ α t + 1 δ t ( x t − 1 ) − ( 1 + α t + 1 ) δ t ( x t ) , z t − x ⟩ . (64) where g ( x ) : = E [ G t ( x ) ] g(x):=\mathbb{E}[G_t(x)] g ( x ) := E [ G t ( x )] , b ( x ) : = g ( x ) − ∇ f ( x ) b(x):=g(x)-\nabla f(x) b ( x ) := g ( x ) − ∇ f ( x ) , and δ t ( x ) : = G t ( x ) − g ( x ) \delta_t(x):=G_t(x)-g(x) δ t ( x ) := G t ( x ) − g ( x ) .
Taking Proposition 4 as given for the moment, let us complete the proof of the theorem.
1°. An SGE recursion in expectation. Set θ t = t \theta_t=t θ t = t and define
q t = 2 θ t + 1 ( 1 + α t + 1 2 ) η t + 1 + 2 θ t + 2 α t + 2 2 η t + 2 , ϵ t = q t m . (65) q_t=\frac{2\theta_{t+1}(1+\alpha_{t+1}^2)}{\eta_{t+1}}+\frac{2\theta_{t+2}\alpha_{t+2}^2}{\eta_{t+2}},\qquad\epsilon_t=\frac{q_t}{m}. \tag*{(65)} q t = η t + 1 2 θ t + 1 ( 1 + α t + 1 2 ) + η t + 2 2 θ t + 2 α t + 2 2 , ϵ t = m q t . (65)
A direct substitution shows that the parameter choices in Theorem 1 satisfy the conditions of Proposition 4 and, moreover,
θ t τ t + L ϵ t − 1 ≤ θ t − 1 ( 1 + τ t − 1 ) , t ≥ 2. (66) \theta_t\tau_t+L\epsilon_{t-1}\le\theta_{t-1}(1+\tau_{t-1}),\qquad t\ge2. \tag*{(66)} θ t τ t + L ϵ t − 1 ≤ θ t − 1 ( 1 + τ t − 1 ) , t ≥ 2. (66)
The latter relation is the key condition that absorbs the state-dependent part of the stochastic variance into the telescoping function-value terms in the recursion. Apply Proposition 4 with x = x ∗ x = x^* x = x ∗ and take expectations on both sides of Ineq. (A.2), we have
∑ t = 1 k θ t E { τ t [ f ( x t ) − f ( x t − 1 ) ] − [ ⟨ ∇ f ( x t ) , x ∗ − x t ⟩ + μ 2 E ∥ x t − x ∗ ∥ 2 ] + θ k 2 ( η k 2 + μ α k ) ∥ z k − x ∗ ∥ 2 } ≤ θ 1 η 1 2 ∥ x 0 − x ∗ ∥ 2 − θ k μ 2 E ∥ x k − x ∗ ∥ 2 + ∑ t = 1 k θ t ( 1 + 2 α t ) B E ∥ z t − x ∗ ∥ + ∑ t = 0 k − 1 L ϵ t E [ f ( x t ) − f ∗ ] + ∑ t = 0 k − 1 ϵ t σ ∗ 2 . (67) \begin{aligned}
\sum_{t=1}^{k}\theta_t\mathbb{E}\left\{\tau_t[f(x_t)-f(x_{t-1})]-\left[\langle\nabla f(x_t),x^*-x_t\rangle+\frac{\mu}{2}\mathbb{E}\|x_t-x^*\|^2\right]\right.\\
\left.+\frac{\theta_k}{2}\left(\frac{\eta_k}{2}+\mu\alpha_k\right)\|z_k-x^*\|^2\right\}\\
\leq\frac{\theta_1\eta_1}{2}\|x_0-x^*\|^2-\frac{\theta_k\mu}{2}\mathbb{E}\|x_k-x^*\|^2+\sum_{t=1}^{k}\theta_t(1+2\alpha_t)\mathcal{B}\mathbb{E}\|z_t-x^*\|\\
+\sum_{t=0}^{k-1}\mathcal{L}\epsilon_t\mathbb{E}[f(x_t)-f^*]+\sum_{t=0}^{k-1}\epsilon_t\sigma_*^2. \tag*{(67)}
\end{aligned} t = 1 ∑ k θ t E { τ t [ f ( x t ) − f ( x t − 1 )] − [ ⟨ ∇ f ( x t ) , x ∗ − x t ⟩ + 2 μ E ∥ x t − x ∗ ∥ 2 ] + 2 θ k ( 2 η k + μ α k ) ∥ z k − x ∗ ∥ 2 } ≤ 2 θ 1 η 1 ∥ x 0 − x ∗ ∥ 2 − 2 θ k μ E ∥ x k − x ∗ ∥ 2 + t = 1 ∑ k θ t ( 1 + 2 α t ) B E ∥ z t − x ∗ ∥ + t = 0 ∑ k − 1 L ϵ t E [ f ( x t ) − f ∗ ] + t = 0 ∑ k − 1 ϵ t σ ∗ 2 . (67)
where we use Cauchy-Schwarz inequality and ∥ b ( x t ) ∥ ≤ B \|b(x_t)\|\leq\mathcal{B} ∥ b ( x t ) ∥ ≤ B in (2) to bound the bias term, E [ δ t ( x j ) ] = 0 \mathbb{E}[\delta_t(x_j)]=0 E [ δ t ( x j )] = 0 for j ≤ t j\leq t j ≤ t for the martingale term, and
E ∥ δ t ( x ) ∥ 2 ≤ 1 m ( L [ f ( x ) − f ∗ ] + σ ∗ 2 ) , \mathbb{E}\|\delta_t(x)\|^2\leq\frac{1}{m}\left(\mathcal{L}[f(x)-f^*]+\sigma_*^2\right), E ∥ δ t ( x ) ∥ 2 ≤ m 1 ( L [ f ( x ) − f ∗ ] + σ ∗ 2 ) ,
to bound the variance term. Then, using strong convexity,
⟨ ∇ f ( x t ) , x ∗ − x t ⟩ + μ 2 ∥ x t − x ∗ ∥ 2 ≤ f ∗ − f ( x t ) , \langle\nabla f(x_t),x^*-x_t\rangle+\frac{\mu}{2}\|x_t-x^*\|^2\leq f^*-f(x_t), ⟨ ∇ f ( x t ) , x ∗ − x t ⟩ + 2 μ ∥ x t − x ∗ ∥ 2 ≤ f ∗ − f ( x t ) ,
we have
θ k ( 1 + τ k ) E [ f ( x k ) − f ∗ ] + θ k 2 ( η k 2 + μ α k ) ∥ z k − x ∗ ∥ 2 + θ k μ 2 E ∥ x k − x ∗ ∥ 2 ≤ θ 1 η 1 2 ∥ x 0 − x ∗ ∥ 2 + θ 1 τ 1 [ f ( x 0 ) − f ∗ ] + L ϵ 0 [ f ( x 0 ) − f ∗ ] + ∑ t = 1 k − 1 ( θ t + 1 τ t + 1 + L ϵ t − θ t ( 1 + τ t ) ) [ f ( x t ) − f ∗ ] + ∑ t = 1 k θ t ( 1 + 2 α t ) B E ∥ z t − x ∗ ∥ + ∑ t = 0 k − 1 ϵ t σ ∗ 2 ≤ θ 1 η 1 2 ∥ x 0 − x ∗ ∥ 2 + L ϵ 0 [ f ( x 0 ) − f ∗ ] + ∑ t = 1 k θ t ( 1 + 2 α t ) B E ∥ z t − x ∗ ∥ + ∑ t = 1 k ϵ t − 1 σ ∗ 2 . (68) \begin{aligned}
\theta_k(1+\tau_k)\mathbb{E}[f(x_k)-f^*]+\frac{\theta_k}{2}\left(\frac{\eta_k}{2}+\mu\alpha_k\right)\|z_k-x^*\|^2+\frac{\theta_k\mu}{2}\mathbb{E}\|x_k-x^*\|^2\\
\leq\frac{\theta_1\eta_1}{2}\|x_0-x^*\|^2+\theta_1\tau_1[f(x_0)-f^*]+\mathcal{L}\epsilon_0[f(x_0)-f^*]\\
+\sum_{t=1}^{k-1}(\theta_{t+1}\tau_{t+1}+\mathcal{L}\epsilon_t-\theta_t(1+\tau_t))[f(x_t)-f^*]+\sum_{t=1}^{k}\theta_t(1+2\alpha_t)\mathcal{B}\mathbb{E}\|z_t-x^*\|+\sum_{t=0}^{k-1}\epsilon_t\sigma_*^2\\
\leq\frac{\theta_1\eta_1}{2}\|x_0-x^*\|^2+\mathcal{L}\epsilon_0[f(x_0)-f^*]+\sum_{t=1}^{k}\theta_t(1+2\alpha_t)\mathcal{B}\mathbb{E}\|z_t-x^*\|+\sum_{t=1}^{k}\epsilon_{t-1}\sigma_*^2. \tag*{(68)}
\end{aligned} θ k ( 1 + τ k ) E [ f ( x k ) − f ∗ ] + 2 θ k ( 2 η k + μ α k ) ∥ z k − x ∗ ∥ 2 + 2 θ k μ E ∥ x k − x ∗ ∥ 2 ≤ 2 θ 1 η 1 ∥ x 0 − x ∗ ∥ 2 + θ 1 τ 1 [ f ( x 0 ) − f ∗ ] + L ϵ 0 [ f ( x 0 ) − f ∗ ] + t = 1 ∑ k − 1 ( θ t + 1 τ t + 1 + L ϵ t − θ t ( 1 + τ t )) [ f ( x t ) − f ∗ ] + t = 1 ∑ k θ t ( 1 + 2 α t ) B E ∥ z t − x ∗ ∥ + t = 0 ∑ k − 1 ϵ t σ ∗ 2 ≤ 2 θ 1 η 1 ∥ x 0 − x ∗ ∥ 2 + L ϵ 0 [ f ( x 0 ) − f ∗ ] + t = 1 ∑ k θ t ( 1 + 2 α t ) B E ∥ z t − x ∗ ∥ + t = 1 ∑ k ϵ t − 1 σ ∗ 2 . (68)
where the second inequality follows from condition (A.4) and τ 1 = 0 \tau_1=0 τ 1 = 0 . Substituting the explicit choices of θ t , α t , η t , \theta_t,\alpha_t,\eta_t, θ t , α t , η t , and τ t \tau_t τ t into (A.6), and dropping the nonnegative terminal term involving ∥ x k − x ∗ ∥ 2 \|x_k-x^*\|^2 ∥ x k − x ∗ ∥ 2 , we have
A k E [ f ( x k ) − f ∗ ] + P k 2 E ∥ z k − x ∗ ∥ 2 ≤ Γ k + B ∑ t = 1 k ( 3 t − 2 ) E ∥ z t − x ∗ ∥ , (69) A_k\mathbb{E}[f(x_k)-f^*]+\frac{P_k}{2}\mathbb{E}\|z_k-x^*\|^2\leq\Gamma_k+\mathcal{B}\sum_{t=1}^{k}(3t-2)\mathbb{E}\|z_t-x^*\|, \tag*{(69)} A k E [ f ( x k ) − f ∗ ] + 2 P k E ∥ z k − x ∗ ∥ 2 ≤ Γ k + B t = 1 ∑ k ( 3 t − 2 ) E ∥ z t − x ∗ ∥ , (69)
where
A k = k ( k + 2 ) 3 , P k = η 2 + μ k ( k − 1 ) 4 , A_k=\frac{k(k+2)}{3},\qquad P_k=\frac{\eta}{2}+\frac{\mu k(k-1)}{4}, A k = 3 k ( k + 2 ) , P k = 2 η + 4 μ k ( k − 1 ) ,
and
Γ k = 1 2 ( 24 L + 54 L m + 162 L 2 μ m 2 ) ∥ x 0 − x ∗ ∥ 2 + 2 27 [ f ( x 0 ) − f ∗ ] + 32 k μ m σ ∗ 2 . \Gamma_k=\frac{1}{2}\left(24\mathcal{L}+\frac{54\mathcal{L}}{m}+\frac{162\mathcal{L}^2}{\mu m^2}\right)\|x_0-x^*\|^2+\frac{2}{27}[f(x_0)-f^*]+\frac{32k}{\mu m}\sigma_*^2. Γ k = 2 1 ( 24 L + m 54 L + μ m 2 162 L 2 ) ∥ x 0 − x ∗ ∥ 2 + 27 2 [ f ( x 0 ) − f ∗ ] + μ m 32 k σ ∗ 2 .
2°. Self-bounding the accumulated bias. Next we bound the summation of the linear bias terms in Ineq. (A.7). Define
R k : = Γ k + B ∑ t = 1 k ( 3 t − 2 ) E ∥ z t − x ∗ ∥ . R_k := \Gamma_k + \mathcal{B}\sum_{t=1}^{k}(3t-2)\mathbb{E}\lVert z_t-x^*\rVert. R k := Γ k + B t = 1 ∑ k ( 3 t − 2 ) E ∥ z t − x ∗ ∥ .
Since P t 2 E ∥ z t − x ∗ ∥ 2 ≤ R t ≤ R k \frac{P_t}{2}\mathbb{E}\lVert z_t-x^*\rVert^2\leq R_t\leq R_k 2 P t E ∥ z t − x ∗ ∥ 2 ≤ R t ≤ R k for every t ≤ k t\leq k t ≤ k ,
E ∥ z t − x ∗ ∥ ≤ E ∥ z t − x ∗ ∥ 2 ≤ 2 R k P t . \mathbb{E}\lVert z_t-x^*\rVert\leq\sqrt{\mathbb{E}\lVert z_t-x^*\rVert^2}\leq\sqrt{\frac{2R_k}{P_t}}. E ∥ z t − x ∗ ∥ ≤ E ∥ z t − x ∗ ∥ 2 ≤ P t 2 R k .
Moreover, η ≥ 24 L ≥ 24 μ \eta\geq24L\geq24\mu η ≥ 24 L ≥ 24 μ implies P t ≥ μ ( 3 t − 2 ) 2 36 P_t\geq\frac{\mu(3t-2)^2}{36} P t ≥ 36 μ ( 3 t − 2 ) 2 , thus 3 t − 2 P t ≤ 6 μ \frac{3t-2}{\sqrt{P_t}}\leq\frac{6}{\sqrt{\mu}} P t 3 t − 2 ≤ μ 6 . Therefore, by Ineq. (A.7), we have
R k ≤ Γ k + ∑ t = 1 k ( 3 t − 2 ) B 2 R k P t ≤ Γ k + 6 k B 2 R k μ ≤ Γ k + R k 2 + 36 k 2 B 2 μ , R_k\leq\Gamma_k+\sum_{t=1}^{k}(3t-2)\mathcal{B}\sqrt{\frac{2R_k}{P_t}}\leq\Gamma_k+\frac{6k\mathcal{B}\sqrt{2R_k}}{\sqrt{\mu}}\leq\Gamma_k+\frac{R_k}{2}+\frac{36k^2\mathcal{B}^2}{\mu}, R k ≤ Γ k + t = 1 ∑ k ( 3 t − 2 ) B P t 2 R k ≤ Γ k + μ 6 k B 2 R k ≤ Γ k + 2 R k + μ 36 k 2 B 2 ,
where the last inequality follows from Young’s inequality. Rearranging the terms yields
R k ≤ 2 Γ k + 72 k 2 B 2 μ . (70) R_k\leq2\Gamma_k+\frac{72k^2\mathcal{B}^2}{\mu}. \tag*{(70)} R k ≤ 2 Γ k + μ 72 k 2 B 2 . (70)
Dividing (A.7) by A k A_k A k and using the bound of R k R_k R k in Ineq. (A.8), we obtain
E [ f ( x k ) − f ∗ ] ≤ ( 72 L k ( k + 2 ) + 162 L m k ( k + 2 ) + 486 L 2 μ m 2 k ( k + 2 ) ) ∥ x 0 − x ∗ ∥ 2 + 2 9 k ( k + 2 ) [ f ( x 0 ) − f ∗ ] + 192 σ 2 μ m ( k + 2 ) + 216 B 2 μ ≤ ( 73 L k ( k + 2 ) + 162 L m k ( k + 2 ) + 486 L 2 μ m 2 k ( k + 2 ) ) ∥ x 0 − x ∗ ∥ 2 + 192 σ 2 μ m ( k + 2 ) + 216 B 2 μ , \begin{aligned}
\mathbb{E}[f(x_k)-f^*]\leq\left(\frac{72L}{k(k+2)}+\frac{162L}{mk(k+2)}+\frac{486L^2}{\mu m^2k(k+2)}\right)\lVert x_0-x^*\rVert^2+\frac{2}{9k(k+2)}[f(x_0)-f^*]+\frac{192\sigma^2}{\mu m(k+2)}+\frac{216\mathcal{B}^2}{\mu} \\
&\leq\left(\frac{73L}{k(k+2)}+\frac{162L}{mk(k+2)}+\frac{486L^2}{\mu m^2k(k+2)}\right)\lVert x_0-x^*\rVert^2+\frac{192\sigma^2}{\mu m(k+2)}+\frac{216\mathcal{B}^2}{\mu},
\end{aligned} E [ f ( x k ) − f ∗ ] ≤ ( k ( k + 2 ) 72 L + mk ( k + 2 ) 162 L + μ m 2 k ( k + 2 ) 486 L 2 ) ∥ x 0 − x ∗ ∥ 2 + 9 k ( k + 2 ) 2 [ f ( x 0 ) − f ∗ ] + μ m ( k + 2 ) 192 σ 2 + μ 216 B 2 ≤ ( k ( k + 2 ) 73 L + mk ( k + 2 ) 162 L + μ m 2 k ( k + 2 ) 486 L 2 ) ∥ x 0 − x ∗ ∥ 2 + μ m ( k + 2 ) 192 σ 2 + μ 216 B 2 ,
where the second inequality follows from f ( x 0 ) − f ∗ = f ( x 0 ) − f ∗ − ⟨ ∇ f ( x ∗ ) , x 0 − x ∗ ⟩ ≤ L 2 ∥ x 0 − x ∗ ∥ 2 f(x_0)-f^*=f(x_0)-f^*-\langle\nabla f(x^*),x_0-x^*\rangle\leq\frac{L}{2}\lVert x_0-x^*\rVert^2 f ( x 0 ) − f ∗ = f ( x 0 ) − f ∗ − ⟨ ∇ f ( x ∗ ) , x 0 − x ∗ ⟩ ≤ 2 L ∥ x 0 − x ∗ ∥ 2 , and we prove Ineq. (14) . Finally, for m = 1 m=1 m = 1 , the stated lower bound on k k k makes the optimization and residual-variance terms at most μ ∥ x 0 − x ∗ ∥ 2 / 8 \mu\lVert x_0-x^*\rVert^2/8 μ ∥ x 0 − x ∗ ∥ 2 /8 . Strong convexity then indicates
E ∥ x k − x ∗ ∥ 2 ≤ 2 μ E [ f ( x k ) − f ∗ ] ≤ 1 4 ∥ x 0 − x ∗ ∥ 2 + 432 B 2 μ 2 , \mathbb{E}\lVert x_k-x^*\rVert^2\leq\frac{2}{\mu}\mathbb{E}[f(x_k)-f^*]\leq\frac{1}{4}\lVert x_0-x^*\rVert^2+\frac{432\mathcal{B}^2}{\mu^2}, E ∥ x k − x ∗ ∥ 2 ≤ μ 2 E [ f ( x k ) − f ∗ ] ≤ 4 1 ∥ x 0 − x ∗ ∥ 2 + μ 2 432 B 2 ,
which proves Ineq. (15) .
Proof of Proposition 4
1°. First, by the smoothness of f f f , we have
1 2 L ∥ ∇ f ( x t ) − ∇ f ( x t − 1 ) ∥ 2 ≤ f ( x t − 1 ) − [ f ( x t ) + ⟨ ∇ f ( x t ) , x t − 1 − x t ⟩ ] . (71) \frac{1}{2L}\lVert\nabla f(x_t)-\nabla f(x_{t-1})\rVert^2\leq f(x_{t-1})-[f(x_t)+\langle\nabla f(x_t),x_{t-1}-x_t\rangle]. \tag*{(71)} 2 L 1 ∥ ∇ f ( x t ) − ∇ f ( x t − 1 ) ∥ 2 ≤ f ( x t − 1 ) − [ f ( x t ) + ⟨ ∇ f ( x t ) , x t − 1 − x t ⟩] . (71)
Then for any x ∈ X x\in X x ∈ X , using the above inequality and the fact that x − x t = x − z t − τ t ( x t − 1 − x t ) x-x_t=x-z_t-\tau_t(x_{t-1}-x_t) x − x t = x − z t − τ t ( x t − 1 − x t ) due to Step 5 in Algorithm 2, we get
τ t f ( x t ) − ⟨ ∇ f ( x t ) , x − x t ⟩ = τ t [ f ( x t ) + ⟨ ∇ f ( x t ) , x t − 1 − x t ⟩ ] + ⟨ ∇ f ( x t ) , z t − x ⟩ ≤ τ t [ f ( x t − 1 ) − 1 2 L ∥ ∇ f ( x t ) − ∇ f ( x t − 1 ) ∥ 2 ] + ⟨ ∇ f ( x t ) , z t − x ⟩ . \begin{aligned}
\tau_tf(x_t)-\langle\nabla f(x_t),x-x_t\rangle=\tau_t[f(x_t)+\langle\nabla f(x_t),x_{t-1}-x_t\rangle]+\langle\nabla f(x_t),z_t-x\rangle\\
&\leq\tau_t\left[f(x_{t-1})-\frac{1}{2L}\lVert\nabla f(x_t)-\nabla f(x_{t-1})\rVert^2\right]+\langle\nabla f(x_t),z_t-x\rangle.
\end{aligned} τ t f ( x t ) − ⟨ ∇ f ( x t ) , x − x t ⟩ = τ t [ f ( x t ) + ⟨ ∇ f ( x t ) , x t − 1 − x t ⟩] + ⟨ ∇ f ( x t ) , z t − x ⟩ ≤ τ t [ f ( x t − 1 ) − 2 L 1 ∥ ∇ f ( x t ) − ∇ f ( x t − 1 ) ∥ 2 ] + ⟨ ∇ f ( x t ) , z t − x ⟩ .
By the optimality condition of Step 3 in Algorithm 2, we have
⟨ G ~ t , z t − x ⟩ + μ α t 2 ∥ x t − 1 − z t ∥ 2 ≤ η t 2 ∥ z t − 1 − x ∥ 2 − η t + μ α t 2 ∥ z t − x ∥ 2 − η t 2 ∥ z t − 1 − z t ∥ 2 + μ α t 2 ∥ x t − 1 − x ∥ 2 . \langle\widetilde{G}_t,z_t-x\rangle+\frac{\mu\alpha_t}{2}\lVert x_{t-1}-z_t\rVert^2\leq\frac{\eta_t}{2}\lVert z_{t-1}-x\rVert^2-\frac{\eta_t+\mu\alpha_t}{2}\lVert z_t-x\rVert^2-\frac{\eta_t}{2}\lVert z_{t-1}-z_t\rVert^2+\frac{\mu\alpha_t}{2}\lVert x_{t-1}-x\rVert^2. ⟨ G t , z t − x ⟩ + 2 μ α t ∥ x t − 1 − z t ∥ 2 ≤ 2 η t ∥ z t − 1 − x ∥ 2 − 2 η t + μ α t ∥ z t − x ∥ 2 − 2 η t ∥ z t − 1 − z t ∥ 2 + 2 μ α t ∥ x t − 1 − x ∥ 2 .
Combining the two previous inequalities and rearranging the terms, we obtain
τ t f ( x t ) − [ ⟨ ∇ f ( x t ) , x − x t ⟩ + μ 2 ∥ x t − x ∥ 2 ] − τ t f ( x t − 1 ) ≤ η t 2 ∥ z t − 1 − x ∥ 2 − η t + μ α t 2 ∥ z t − x ∥ 2 + ⟨ ∇ f ( x t ) − G ~ t , z t − x ⟩ − μ 2 ∥ x t − x ∥ 2 + μ α t 2 ∥ x t − 1 − x ∥ 2 − τ t 2 L ∥ ∇ f ( x t ) − ∇ f ( x t − 1 ) ∥ 2 − η t 2 ∥ z t − 1 − z t ∥ 2 . \tau_t f(x_t) - \left[\langle\nabla f(x_t),x-x_t\rangle+ \frac{\mu}{2}\lVert x_t-x\rVert^2\right] - \tau_t f(x_{t-1})
\le\frac{\eta_t}{2}\lVert z_{t-1}-x\rVert^2 - \frac{\eta_t+\mu\alpha_t}{2}\lVert z_t-x\rVert^2 + \langle\nabla f(x_t)-\widetilde{G}_t,z_t-x\rangle- \frac{\mu}{2}\lVert x_t-x\rVert^2
+ \frac{\mu\alpha_t}{2}\lVert x_{t-1}-x\rVert^2 - \frac{\tau_t}{2L}\lVert\nabla f(x_t)-\nabla f(x_{t-1})\rVert^2 - \frac{\eta_t}{2}\lVert z_{t-1}-z_t\rVert^2. τ t f ( x t ) − [ ⟨ ∇ f ( x t ) , x − x t ⟩ + 2 μ ∥ x t − x ∥ 2 ] − τ t f ( x t − 1 ) ≤ 2 η t ∥ z t − 1 − x ∥ 2 − 2 η t + μ α t ∥ z t − x ∥ 2 + ⟨ ∇ f ( x t ) − G t , z t − x ⟩ − 2 μ ∥ x t − x ∥ 2 + 2 μ α t ∥ x t − 1 − x ∥ 2 − 2 L τ t ∥ ∇ f ( x t ) − ∇ f ( x t − 1 ) ∥ 2 − 2 η t ∥ z t − 1 − z t ∥ 2 .
Invoking the definition of δ t ( ⋅ ) \delta_t(\cdot) δ t ( ⋅ ) and b ( ⋅ ) b(\cdot) b ( ⋅ ) , we have
⟨ ∇ f ( x t ) − G ~ t , z t − x ⟩ = ⟨ ∇ f ( x t ) − ∇ f ( x t − 1 ) − α t ( ∇ f ( x t − 1 ) − ∇ f ( x t − 2 ) ) , z t − x ⟩ − ⟨ δ t − 1 ( x t − 1 ) + α t ( δ t − 1 ( x t − 1 ) − δ t − 1 ( x t − 2 ) ) , z t − x ⟩ − ⟨ b ( x t − 1 ) + α t ( b ( x t − 1 ) − b ( x t − 2 ) ) , z t − x ⟩ = ⟨ ∇ f ( x t ) − ∇ f ( x t − 1 ) , z t − x ⟩ − α t ⟨ ∇ f ( x t − 1 ) − ∇ f ( x t − 2 ) , z t − 1 − x ⟩ + α t ⟨ ∇ f ( x t − 1 ) − ∇ f ( x t − 2 ) , z t − z t − 1 ⟩ − ⟨ δ t − 1 ( x t − 1 ) + α t ( δ t − 1 ( x t − 1 ) − δ t − 1 ( x t − 2 ) ) , z t − x ⟩ − ⟨ b ( x t − 1 ) + α t ( b ( x t − 1 ) − b ( x t − 2 ) ) , z t − x ⟩ . \begin{aligned}
\langle\nabla f(x_t)-\widetilde{G}_t,z_t-x\rangle
={}&\langle\nabla f(x_t)-\nabla f(x_{t-1})-\alpha_t(\nabla f(x_{t-1})-\nabla f(x_{t-2})),z_t-x\rangle\\
&-\langle\delta_{t-1}(x_{t-1})+\alpha_t(\delta_{t-1}(x_{t-1})-\delta_{t-1}(x_{t-2})),z_t-x\rangle\\
&-\langle b(x_{t-1})+\alpha_t(b(x_{t-1})-b(x_{t-2})),z_t-x\rangle\\
={}&\langle\nabla f(x_t)-\nabla f(x_{t-1}),z_t-x\rangle-\alpha_t\langle\nabla f(x_{t-1})-\nabla f(x_{t-2}),z_{t-1}-x\rangle\\
&+\alpha_t\langle\nabla f(x_{t-1})-\nabla f(x_{t-2}),z_t-z_{t-1}\rangle\\
&-\langle\delta_{t-1}(x_{t-1})+\alpha_t(\delta_{t-1}(x_{t-1})-\delta_{t-1}(x_{t-2})),z_t-x\rangle\\
&-\langle b(x_{t-1})+\alpha_t(b(x_{t-1})-b(x_{t-2})),z_t-x\rangle.
\end{aligned} ⟨ ∇ f ( x t ) − G t , z t − x ⟩ = = ⟨ ∇ f ( x t ) − ∇ f ( x t − 1 ) − α t ( ∇ f ( x t − 1 ) − ∇ f ( x t − 2 )) , z t − x ⟩ − ⟨ δ t − 1 ( x t − 1 ) + α t ( δ t − 1 ( x t − 1 ) − δ t − 1 ( x t − 2 )) , z t − x ⟩ − ⟨ b ( x t − 1 ) + α t ( b ( x t − 1 ) − b ( x t − 2 )) , z t − x ⟩ ⟨ ∇ f ( x t ) − ∇ f ( x t − 1 ) , z t − x ⟩ − α t ⟨ ∇ f ( x t − 1 ) − ∇ f ( x t − 2 ) , z t − 1 − x ⟩ + α t ⟨ ∇ f ( x t − 1 ) − ∇ f ( x t − 2 ) , z t − z t − 1 ⟩ − ⟨ δ t − 1 ( x t − 1 ) + α t ( δ t − 1 ( x t − 1 ) − δ t − 1 ( x t − 2 )) , z t − x ⟩ − ⟨ b ( x t − 1 ) + α t ( b ( x t − 1 ) − b ( x t − 2 )) , z t − x ⟩ .
When taking the θ t \theta_t θ t -weighted sum of the above inequalities for t = 1 , … , k t=1,\ldots,k t = 1 , … , k , recalling that x 0 = z 0 x_0=z_0 x 0 = z 0 , and using (A.1a), we obtain
∑ t = 1 k θ t { τ t [ f ( x t ) − f ( x t − 1 ) ] − [ ⟨ ∇ f ( x t ) , x − x t ⟩ + μ 2 ∥ x t − x ∥ 2 ] } ≤ θ 1 η 1 2 ∥ x 0 − x ∥ 2 − θ k ( η k + μ α k ) 1 2 ∥ z k − x ∥ 2 − ∑ t = 1 k θ t ⟨ b ( x t − 1 ) + α t ( b ( x t − 1 ) − b ( x t − 2 ) ) , z t − x ⟩ + θ k ⟨ ∇ f ( x k ) − ∇ f ( x k − 1 ) , z k − x ⟩ − θ k μ 2 ∥ x k − x ∥ 2 + θ 1 μ α 1 1 2 ∥ x 0 − x ∥ 2 + Δ k (72) \begin{aligned}
\sum_{t=1}^{k}\theta_t\left\{\tau_t[f(x_t)-f(x_{t-1})]-\left[\langle\nabla f(x_t),x-x_t\rangle+\frac{\mu}{2}\lVert x_t-x\rVert^2\right]\right\}
\le{}&\frac{\theta_1\eta_1}{2}\lVert x_0-x\rVert^2-\theta_k(\eta_k+\mu\alpha_k)\frac{1}{2}\lVert z_k-x\rVert^2\\
&-\sum_{t=1}^{k}\theta_t\langle b(x_{t-1})+\alpha_t(b(x_{t-1})-b(x_{t-2})),z_t-x\rangle\\
&+\theta_k\langle\nabla f(x_k)-\nabla f(x_{k-1}),z_k-x\rangle-\theta_k\frac{\mu}{2}\lVert x_k-x\rVert^2\\
&+\theta_1\mu\alpha_1\frac{1}{2}\lVert x_0-x\rVert^2+\Delta_k \tag*{(72)}
\end{aligned} t = 1 ∑ k θ t { τ t [ f ( x t ) − f ( x t − 1 )] − [ ⟨ ∇ f ( x t ) , x − x t ⟩ + 2 μ ∥ x t − x ∥ 2 ] } ≤ 2 θ 1 η 1 ∥ x 0 − x ∥ 2 − θ k ( η k + μ α k ) 2 1 ∥ z k − x ∥ 2 − t = 1 ∑ k θ t ⟨ b ( x t − 1 ) + α t ( b ( x t − 1 ) − b ( x t − 2 )) , z t − x ⟩ + θ k ⟨ ∇ f ( x k ) − ∇ f ( x k − 1 ) , z k − x ⟩ − θ k 2 μ ∥ x k − x ∥ 2 + θ 1 μ α 1 2 1 ∥ x 0 − x ∥ 2 + Δ k (72)
where
Δ k : = ∑ t = 1 k θ t [ α t ⟨ ∇ f ( x t − 1 ) − ∇ f ( x t − 2 ) , z t − z t − 1 ⟩ − τ t 2 L ∥ ∇ f ( x t ) − ∇ f ( x t − 1 ) ∥ 2 − ⟨ δ t − 1 ( x t − 1 ) + α t ( δ t − 1 ( x t − 1 ) − δ t − 1 ( x t − 2 ) ) , z t − x ⟩ − η t 2 ∥ z t − 1 − z t ∥ 2 ] . \Delta_k:=\sum_{t=1}^{k}\theta_t\left[\alpha_t\langle\nabla f(x_{t-1})-\nabla f(x_{t-2}),z_t-z_{t-1}\rangle-\frac{\tau_t}{2L}\lVert\nabla f(x_t)-\nabla f(x_{t-1})\rVert^2
-\left\langle\delta_{t-1}(x_{t-1})+\alpha_t(\delta_{t-1}(x_{t-1})-\delta_{t-1}(x_{t-2})),z_t-x\right\rangle-\frac{\eta_t}{2}\lVert z_{t-1}-z_t\rVert^2\right]. Δ k := t = 1 ∑ k θ t [ α t ⟨ ∇ f ( x t − 1 ) − ∇ f ( x t − 2 ) , z t − z t − 1 ⟩ − 2 L τ t ∥ ∇ f ( x t ) − ∇ f ( x t − 1 ) ∥ 2 − ⟨ δ t − 1 ( x t − 1 ) + α t ( δ t − 1 ( x t − 1 ) − δ t − 1 ( x t − 2 )) , z t − x ⟩ − 2 η t ∥ z t − 1 − z t ∥ 2 ] .
Observe that
θ t α t ⟨ ∇ f ( x t − 1 ) − ∇ f ( x t − 2 ) , z t − z t − 1 ⟩ ≤ θ t 2 α t 2 L 2 θ t − 1 τ t − 1 ∥ z t − z t − 1 ∥ 2 + θ t − 1 τ t − 1 2 L ∥ ∇ f ( x t − 1 ) − ∇ f ( x t − 2 ) ∥ 2 , \theta_t\alpha_t\langle\nabla f(x_{t-1})-\nabla f(x_{t-2}),z_t-z_{t-1}\rangle\le\frac{\theta_t^2\alpha_t^2L}{2\theta_{t-1}\tau_{t-1}}\lVert z_t-z_{t-1}\rVert^2+\frac{\theta_{t-1}\tau_{t-1}}{2L}\lVert\nabla f(x_{t-1})-\nabla f(x_{t-2})\rVert^2, θ t α t ⟨ ∇ f ( x t − 1 ) − ∇ f ( x t − 2 ) , z t − z t − 1 ⟩ ≤ 2 θ t − 1 τ t − 1 θ t 2 α t 2 L ∥ z t − z t − 1 ∥ 2 + 2 L θ t − 1 τ t − 1 ∥ ∇ f ( x t − 1 ) − ∇ f ( x t − 2 ) ∥ 2 ,
so that, after rearranging the terms,
Δ k ≤ θ 2 α 2 2 ⟨ ∇ f ( x 1 ) − ∇ f ( x 0 ) , z 2 − z 1 ⟩ + ∑ t = 3 k L θ t 2 α t 2 2 θ t − 1 τ t − 1 ∥ z t − z t − 1 ∥ 2 − θ k τ k 2 L ∥ ∇ f ( x k ) − ∇ f ( x k − 1 ) ∥ 2 − 1 4 ∑ t = 1 k θ t η t 2 ∥ z t − 1 − z t ∥ 2 = : Δ k , 1 − ∑ t = 1 k θ t ⟨ δ t − 1 ( x t − 1 ) + α t ( δ t − 1 ( x t − 1 ) − δ t − 1 ( x t − 2 ) ) , z t − x ⟩ − 3 4 ∑ t = 1 k θ t η t 2 ∥ z t − 1 − z t ∥ 2 = : Δ k , 2 . \begin{aligned}
\Delta_k &\le\theta_2\alpha_2^2\langle\nabla f(x_1)-\nabla f(x_0),z_2-z_1\rangle+\sum_{t=3}^{k}\frac{L\theta_t^2\alpha_t^2}{2\theta_{t-1}\tau_{t-1}}\|z_t-z_{t-1}\|^2\\
&\quad-\frac{\theta_k\tau_k}{2L}\|\nabla f(x_k)-\nabla f(x_{k-1})\|^2-\frac{1}{4}\sum_{t=1}^{k}\frac{\theta_t\eta_t}{2}\|z_{t-1}-z_t\|^2\\
&\quad=: \Delta_{k,1}\\
&\quad-\sum_{t=1}^{k}\theta_t\langle\delta_{t-1}(x_{t-1})+\alpha_t(\delta_{t-1}(x_{t-1})-\delta_{t-1}(x_{t-2})),z_t-x\rangle-\frac{3}{4}\sum_{t=1}^{k}\frac{\theta_t\eta_t}{2}\|z_{t-1}-z_t\|^2\\
&\quad=: \Delta_{k,2}.
\end{aligned} Δ k ≤ θ 2 α 2 2 ⟨ ∇ f ( x 1 ) − ∇ f ( x 0 ) , z 2 − z 1 ⟩ + t = 3 ∑ k 2 θ t − 1 τ t − 1 L θ t 2 α t 2 ∥ z t − z t − 1 ∥ 2 − 2 L θ k τ k ∥∇ f ( x k ) − ∇ f ( x k − 1 ) ∥ 2 − 4 1 t = 1 ∑ k 2 θ t η t ∥ z t − 1 − z t ∥ 2 =: Δ k , 1 − t = 1 ∑ k θ t ⟨ δ t − 1 ( x t − 1 ) + α t ( δ t − 1 ( x t − 1 ) − δ t − 1 ( x t − 2 )) , z t − x ⟩ − 4 3 t = 1 ∑ k 2 θ t η t ∥ z t − 1 − z t ∥ 2 =: Δ k , 2 .
2°. We next bound Δ k , 1 \Delta_{k,1} Δ k , 1 . By Young’s inequality,
α 2 ⟨ ∇ f ( x 1 ) − ∇ f ( x 0 ) , z 2 − z 1 ⟩ ≤ 2 α 2 2 η 2 ∥ ∇ f ( x 1 ) − ∇ f ( x 0 ) ∥ 2 + η 2 8 ∥ z 2 − z 1 ∥ 2 . \alpha_2\langle\nabla f(x_1)-\nabla f(x_0),z_2-z_1\rangle\le\frac{2\alpha_2^2}{\eta_2}\|\nabla f(x_1)-\nabla f(x_0)\|^2+\frac{\eta_2}{8}\|z_2-z_1\|^2. α 2 ⟨ ∇ f ( x 1 ) − ∇ f ( x 0 ) , z 2 − z 1 ⟩ ≤ η 2 2 α 2 2 ∥∇ f ( x 1 ) − ∇ f ( x 0 ) ∥ 2 + 8 η 2 ∥ z 2 − z 1 ∥ 2 .
Thus,
Δ k , 1 ≤ 2 θ 2 α 2 2 ∥ ∇ f ( x 1 ) − ∇ f ( x 0 ) ∥ 2 η 2 − θ 1 η 1 8 ∥ z 1 − z 0 ∥ 2 + ∑ t = 3 k ( L θ t 2 α t 2 2 θ t − 1 τ t − 1 − θ t η t 8 ) ∥ z t − z t − 1 ∥ 2 − θ k τ k 2 L ∥ ∇ f ( x k ) − ∇ f ( x k − 1 ) ∥ 2 ≤ − θ k τ k 2 L ∥ ∇ f ( x k ) − ∇ f ( x k − 1 ) ∥ 2 . (73) \begin{aligned}
\Delta_{k,1}
&\le\frac{2\theta_2\alpha_2^2\|\nabla f(x_1)-\nabla f(x_0)\|^2}{\eta_2}-\frac{\theta_1\eta_1}{8}\|z_1-z_0\|^2\\
&\quad+\sum_{t=3}^{k}\left(\frac{L\theta_t^2\alpha_t^2}{2\theta_{t-1}\tau_{t-1}}-\frac{\theta_t\eta_t}{8}\right)\|z_t-z_{t-1}\|^2-\frac{\theta_k\tau_k}{2L}\|\nabla f(x_k)-\nabla f(x_{k-1})\|^2\\
&\le-\frac{\theta_k\tau_k}{2L}\|\nabla f(x_k)-\nabla f(x_{k-1})\|^2. \tag*{(73)}
\end{aligned} Δ k , 1 ≤ η 2 2 θ 2 α 2 2 ∥∇ f ( x 1 ) − ∇ f ( x 0 ) ∥ 2 − 8 θ 1 η 1 ∥ z 1 − z 0 ∥ 2 + t = 3 ∑ k ( 2 θ t − 1 τ t − 1 L θ t 2 α t 2 − 8 θ t η t ) ∥ z t − z t − 1 ∥ 2 − 2 L θ k τ k ∥∇ f ( x k ) − ∇ f ( x k − 1 ) ∥ 2 ≤ − 2 L θ k τ k ∥∇ f ( x k ) − ∇ f ( x k − 1 ) ∥ 2 . (73)
where the last inequality follows from (A.1b) and the bound
2 θ 2 α 2 2 ∥ ∇ f ( x 1 ) − ∇ f ( x 0 ) ∥ 2 η 2 ≤ 2 θ 2 α 2 2 L 2 ∥ x 1 − x 0 ∥ 2 η 2 = 2 θ 2 α 2 2 L 2 ∥ z 1 − z 0 ∥ 2 η 2 ≤ θ 1 η 1 ∥ z 1 − z 0 ∥ 2 8 . \frac{2\theta_2\alpha_2^2\|\nabla f(x_1)-\nabla f(x_0)\|^2}{\eta_2}\le\frac{2\theta_2\alpha_2^2L^2\|x_1-x_0\|^2}{\eta_2}=\frac{2\theta_2\alpha_2^2L^2\|z_1-z_0\|^2}{\eta_2}\le\frac{\theta_1\eta_1\|z_1-z_0\|^2}{8}. η 2 2 θ 2 α 2 2 ∥∇ f ( x 1 ) − ∇ f ( x 0 ) ∥ 2 ≤ η 2 2 θ 2 α 2 2 L 2 ∥ x 1 − x 0 ∥ 2 = η 2 2 θ 2 α 2 2 L 2 ∥ z 1 − z 0 ∥ 2 ≤ 8 θ 1 η 1 ∥ z 1 − z 0 ∥ 2 .
Note that
− η k 4 ∥ z k − x ∥ 2 + ⟨ ∇ f ( x k ) − ∇ f ( x k − 1 ) , z k − x ⟩ − τ k 2 L ∥ ∇ f ( x k ) − ∇ f ( x k − 1 ) ∥ 2 ≤ − ( η k 4 − L 2 τ k ) ∥ z k − x ∥ 2 ≤ 0 -\frac{\eta_k}{4}\|z_k-x\|^2+\langle\nabla f(x_k)-\nabla f(x_{k-1}),z_k-x\rangle-\frac{\tau_k}{2L}\|\nabla f(x_k)-\nabla f(x_{k-1})\|^2
\le-\left(\frac{\eta_k}{4}-\frac{L}{2\tau_k}\right)\|z_k-x\|^2\le0 − 4 η k ∥ z k − x ∥ 2 + ⟨ ∇ f ( x k ) − ∇ f ( x k − 1 ) , z k − x ⟩ − 2 L τ k ∥∇ f ( x k ) − ∇ f ( x k − 1 ) ∥ 2 ≤ − ( 4 η k − 2 τ k L ) ∥ z k − x ∥ 2 ≤ 0
due to the second relationship in (A.1c). Now, substituting the bound (A.11) into (A.10) and applying α 1 = 0 \alpha_1=0 α 1 = 0 results in
∑ t = 1 k θ t { τ t [ f ( x t ) − f ( x t − 1 ) ] − [ ⟨ ∇ f ( x t ) , x − x t ⟩ + μ 2 ∥ x t − x ∥ 2 ] } ≤ θ 1 η 1 2 ∥ x 0 − x ∥ 2 − θ k 2 ( η k + μ α k ) ∥ z k − x ∥ 2 − ∑ t = 1 k θ t ⟨ b ( x t − 1 ) + α t ( b ( x t − 1 ) − b ( x t − 2 ) ) , z t − x ⟩ + θ k ⟨ ∇ f ( x k ) − ∇ f ( x k − 1 ) , z k − x ⟩ − θ k μ 2 ∥ x k − x ∥ 2 − θ k τ k 2 L ∥ ∇ f ( x k ) − ∇ f ( x k − 1 ) ∥ 2 + Δ k , 2 ≤ θ 1 η 1 2 ∥ x 0 − x ∥ 2 − θ k 2 ( η k 2 + μ α k ) ∥ z k − x ∥ 2 − θ k μ 2 ∥ x k − x ∥ 2 − ∑ t = 1 k θ t ⟨ b ( x t − 1 ) + α t ( b ( x t − 1 ) − b ( x t − 2 ) ) , z t − x ⟩ + Δ k , 2 . (74) \begin{aligned}
\sum_{t=1}^{k}\theta_t\left\{\tau_t[f(x_t)-f(x_{t-1})]-\left[\langle\nabla f(x_t),x-x_t\rangle+\frac{\mu}{2}\|x_t-x\|^2\right]\right\}
&\le\frac{\theta_1\eta_1}{2}\|x_0-x\|^2-\frac{\theta_k}{2}(\eta_k+\mu\alpha_k)\|z_k-x\|^2\\
&\quad-\sum_{t=1}^{k}\theta_t\langle b(x_{t-1})+\alpha_t(b(x_{t-1})-b(x_{t-2})),z_t-x\rangle\\
&\quad+\theta_k\langle\nabla f(x_k)-\nabla f(x_{k-1}),z_k-x\rangle-\frac{\theta_k\mu}{2}\|x_k-x\|^2\\
&\quad-\frac{\theta_k\tau_k}{2L}\|\nabla f(x_k)-\nabla f(x_{k-1})\|^2+\Delta_{k,2}\\
&\le\frac{\theta_1\eta_1}{2}\|x_0-x\|^2-\frac{\theta_k}{2}\left(\frac{\eta_k}{2}+\mu\alpha_k\right)\|z_k-x\|^2-\frac{\theta_k\mu}{2}\|x_k-x\|^2\\
&\quad-\sum_{t=1}^{k}\theta_t\langle b(x_{t-1})+\alpha_t(b(x_{t-1})-b(x_{t-2})),z_t-x\rangle+\Delta_{k,2}. \tag*{(74)}
\end{aligned} t = 1 ∑ k θ t { τ t [ f ( x t ) − f ( x t − 1 )] − [ ⟨ ∇ f ( x t ) , x − x t ⟩ + 2 μ ∥ x t − x ∥ 2 ] } ≤ 2 θ 1 η 1 ∥ x 0 − x ∥ 2 − 2 θ k ( η k + μ α k ) ∥ z k − x ∥ 2 − t = 1 ∑ k θ t ⟨ b ( x t − 1 ) + α t ( b ( x t − 1 ) − b ( x t − 2 )) , z t − x ⟩ + θ k ⟨ ∇ f ( x k ) − ∇ f ( x k − 1 ) , z k − x ⟩ − 2 θ k μ ∥ x k − x ∥ 2 − 2 L θ k τ k ∥∇ f ( x k ) − ∇ f ( x k − 1 ) ∥ 2 + Δ k , 2 ≤ 2 θ 1 η 1 ∥ x 0 − x ∥ 2 − 2 θ k ( 2 η k + μ α k ) ∥ z k − x ∥ 2 − 2 θ k μ ∥ x k − x ∥ 2 − t = 1 ∑ k θ t ⟨ b ( x t − 1 ) + α t ( b ( x t − 1 ) − b ( x t − 2 )) , z t − x ⟩ + Δ k , 2 . (74)
3° It remains to bound Δ k , 2 \Delta_{k,2} Δ k , 2 . Observe that
Δ k , 2 ≤ − ∑ t = 1 k θ t [ ⟨ δ t − 1 ( x t − 1 ) , z t − z t − 1 ⟩ + ⟨ δ t − 1 ( x t − 1 ) , z t − 1 − x ⟩ ] − ∑ t = 2 k θ t α t [ ⟨ δ t − 1 ( x t − 1 ) , z t − z t − 1 ⟩ + ⟨ δ t − 1 ( x t − 1 ) , z t − 1 − x ⟩ ] + ∑ t = 2 k θ t α t [ ⟨ δ t − 1 ( x t − 2 ) , z t − z t − 1 ⟩ + ⟨ δ t − 1 ( x t − 2 ) , z t − 1 − x ⟩ ] − 3 θ t 4 ∑ t = 1 k η t 2 ∥ z t − 1 − z t ∥ 2 . \begin{aligned}
\Delta_{k,2} \le{}&-\sum_{t=1}^{k}\theta_t\left[\langle\delta_{t-1}(x_{t-1}),z_t-z_{t-1}\rangle+\langle\delta_{t-1}(x_{t-1}),z_{t-1}-x\rangle\right]\\
&-\sum_{t=2}^{k}\theta_t\alpha_t\left[\langle\delta_{t-1}(x_{t-1}),z_t-z_{t-1}\rangle+\langle\delta_{t-1}(x_{t-1}),z_{t-1}-x\rangle\right]\\
&+\sum_{t=2}^{k}\theta_t\alpha_t\left[\langle\delta_{t-1}(x_{t-2}),z_t-z_{t-1}\rangle+\langle\delta_{t-1}(x_{t-2}),z_{t-1}-x\rangle\right]-\frac{3\theta_t}{4}\sum_{t=1}^{k}\frac{\eta_t}{2}\lVert z_{t-1}-z_t\rVert^2.
\end{aligned} Δ k , 2 ≤ − t = 1 ∑ k θ t [ ⟨ δ t − 1 ( x t − 1 ) , z t − z t − 1 ⟩ + ⟨ δ t − 1 ( x t − 1 ) , z t − 1 − x ⟩ ] − t = 2 ∑ k θ t α t [ ⟨ δ t − 1 ( x t − 1 ) , z t − z t − 1 ⟩ + ⟨ δ t − 1 ( x t − 1 ) , z t − 1 − x ⟩ ] + t = 2 ∑ k θ t α t [ ⟨ δ t − 1 ( x t − 2 ) , z t − z t − 1 ⟩ + ⟨ δ t − 1 ( x t − 2 ) , z t − 1 − x ⟩ ] − 4 3 θ t t = 1 ∑ k 2 η t ∥ z t − 1 − z t ∥ 2 .
Recall that z t z_t z t is F t − 1 \mathcal{F}_{t-1} F t − 1 -measurable. By using Young’s inequality, we have
Δ k , 2 ≤ ∑ t = 1 k 2 θ t η t ∥ δ t − 1 ( x t − 1 ) ∥ 2 − θ t ⟨ δ t − 1 ( x t − 1 ) , z t − 1 − x ⟩ + ∑ t = 2 k 2 θ t α t 2 η t ∥ δ t − 1 ( x t − 1 ) ∥ 2 − θ t α t ⟨ δ t − 1 ( x t − 1 ) , z t − 1 − x ⟩ + ∑ t = 2 k 2 θ t α t 2 η t ∥ δ t − 1 ( x t − 2 ) ∥ 2 + θ t α t ⟨ δ t − 1 ( x t − 2 ) , z t − 1 − x ⟩ ≤ ∑ t = 1 k [ 2 θ t ( 1 + α t 2 ) η t ∥ δ t − 1 ( x t − 1 ) ∥ 2 + 2 θ t + 1 α t + 1 2 η t + 1 ∥ δ t ( x t − 1 ) ∥ 2 ] + ∑ t = 1 k θ t ⟨ α t δ t − 1 ( x t − 2 ) − ( 1 + α t ) δ t − 1 ( x t − 1 ) , z t − 1 − x ⟩ . (75) \begin{aligned}
\Delta_{k,2}\le{}&\sum_{t=1}^{k}\frac{2\theta_t}{\eta_t}\lVert\delta_{t-1}(x_{t-1})\rVert^2-\theta_t\langle\delta_{t-1}(x_{t-1}),z_{t-1}-x\rangle\\
&+\sum_{t=2}^{k}\frac{2\theta_t\alpha_t^2}{\eta_t}\lVert\delta_{t-1}(x_{t-1})\rVert^2-\theta_t\alpha_t\langle\delta_{t-1}(x_{t-1}),z_{t-1}-x\rangle\\
&+\sum_{t=2}^{k}\frac{2\theta_t\alpha_t^2}{\eta_t}\lVert\delta_{t-1}(x_{t-2})\rVert^2+\theta_t\alpha_t\langle\delta_{t-1}(x_{t-2}),z_{t-1}-x\rangle\\
\le{}&\sum_{t=1}^{k}\left[\frac{2\theta_t(1+\alpha_t^2)}{\eta_t}\lVert\delta_{t-1}(x_{t-1})\rVert^2+\frac{2\theta_{t+1}\alpha_{t+1}^2}{\eta_{t+1}}\lVert\delta_t(x_{t-1})\rVert^2\right]\\
&+\sum_{t=1}^{k}\theta_t\left\langle\alpha_t\delta_{t-1}(x_{t-2})-(1+\alpha_t)\delta_{t-1}(x_{t-1}),z_{t-1}-x\right\rangle. \tag*{(75)}
\end{aligned} Δ k , 2 ≤ ≤ t = 1 ∑ k η t 2 θ t ∥ δ t − 1 ( x t − 1 ) ∥ 2 − θ t ⟨ δ t − 1 ( x t − 1 ) , z t − 1 − x ⟩ + t = 2 ∑ k η t 2 θ t α t 2 ∥ δ t − 1 ( x t − 1 ) ∥ 2 − θ t α t ⟨ δ t − 1 ( x t − 1 ) , z t − 1 − x ⟩ + t = 2 ∑ k η t 2 θ t α t 2 ∥ δ t − 1 ( x t − 2 ) ∥ 2 + θ t α t ⟨ δ t − 1 ( x t − 2 ) , z t − 1 − x ⟩ t = 1 ∑ k [ η t 2 θ t ( 1 + α t 2 ) ∥ δ t − 1 ( x t − 1 ) ∥ 2 + η t + 1 2 θ t + 1 α t + 1 2 ∥ δ t ( x t − 1 ) ∥ 2 ] + t = 1 ∑ k θ t ⟨ α t δ t − 1 ( x t − 2 ) − ( 1 + α t ) δ t − 1 ( x t − 1 ) , z t − 1 − x ⟩ . (75)
Substituting (A.13) into (A.12) yields (A.2). This completes the technical part of the argument; taking expectations and specializing the parameters produces the main recursion (A.5) used in the proof of Theorem 1.
Proof of Corollary 1
1°. For the SGE implementation, substituting R s − 1 2 = R 0 2 / 2 s − 1 R_{s-1}^2=R_0^2/2^{s-1} R s − 1 2 = R 0 2 / 2 s − 1 into (17) yields (18) . For convenience, define the stage-s s s cost of oracle λ \lambda λ by
C λ ( s ) : = max { A λ , B λ 2 s − 1 } , s = 1 , … , K . (76) C_\lambda(s):=\max\{A_\lambda,B_\lambda2^{s-1}\},\qquad s=1,\ldots,K. \tag*{(76)} C λ ( s ) := max { A λ , B λ 2 s − 1 } , s = 1 , … , K . (76)
Then we have
Cost a d a p ( ϵ ) = ∑ s = 1 K min λ g λ ( s ) , Cost f i x e d ( ϵ ) = min λ ∑ s = 1 K g λ ( s ) . (77) \operatorname{Cost}_{\mathrm{adap}}(\epsilon)=\sum_{s=1}^{K}\min_{\lambda}g_\lambda(s),\qquad\operatorname{Cost}_{\mathrm{fixed}}(\epsilon)=\min_{\lambda}\sum_{s=1}^{K}g_\lambda(s). \tag*{(77)} Cost adap ( ϵ ) = s = 1 ∑ K λ min g λ ( s ) , Cost fixed ( ϵ ) = λ min s = 1 ∑ K g λ ( s ) . (77)
which implies that Cost a d a p ( ϵ ) ≤ Cost f i x e d ( ϵ ) \operatorname{Cost}_{\mathrm{adap}}(\epsilon)\leq\operatorname{Cost}_{\mathrm{fixed}}(\epsilon) Cost adap ( ϵ ) ≤ Cost fixed ( ϵ ) .
2°. We next show that the improvement can be of order K / log K K/\log K K / log K . Assume K ≥ 4 K\geq4 K ≥ 4 , and let
m : = ⌈ log 2 K ⌉ . m:=\lceil\log_2 K\rceil. m := ⌈ log 2 K ⌉ .
Fix any M > 0 M > 0 M > 0 and consider two oracles with
A 1 = M K 2 , B 1 = M 2 m − K + 1 , A 2 = M , B 2 = M 2 − K . A_1 = \frac{M}{K^2}, \quad B_1 = M2^{m-K+1}, \quad A_2 = M, \quad B_2 = M2^{-K}. A 1 = K 2 M , B 1 = M 2 m − K + 1 , A 2 = M , B 2 = M 2 − K .
Then A 1 / A 2 = K − 2 A_1/A_2 = K^{-2} A 1 / A 2 = K − 2 , whereas
B 1 B 2 = 2 m + 1 = Θ ( K ) , \frac{B_1}{B_2} = 2^{m+1} = \Theta(K), B 2 B 1 = 2 m + 1 = Θ ( K ) ,
thus SO1 has a much smaller A A A -term but a much larger residual-variance term.
For SO2, since
B 2 2 s − 1 ≤ B 2 2 K − 1 = M 2 < M = A 2 , B_2 2^{s-1} \le B_2 2^{K-1} = \frac{M}{2} < M = A_2, B 2 2 s − 1 ≤ B 2 2 K − 1 = 2 M < M = A 2 ,
we have
C 2 ( s ) = M , s = 1 , … , K . C_2(s) = M, \quad s = 1,\ldots,K. C 2 ( s ) = M , s = 1 , … , K .
Therefore, using SO2 throughout costs
∑ s = 1 K C 2 ( s ) = M K . \sum_{s=1}^{K} C_2(s) = MK. s = 1 ∑ K C 2 ( s ) = M K .
Now consider SO1. At stage K − m K-m K − m , we have
B 1 2 K − m − 1 = M 2 m − K + 1 2 K − m − 1 = M . (78) B_1 2^{K-m-1} = M2^{m-K+1}2^{K-m-1} = M. \tag*{(78)} B 1 2 K − m − 1 = M 2 m − K + 1 2 K − m − 1 = M . (78)
Therefore
C 1 ( s ) ≤ M = C 2 ( s ) , for s ≤ K − m , C_1(s) \le M = C_2(s), \quad\text{for } s \le K-m, C 1 ( s ) ≤ M = C 2 ( s ) , for s ≤ K − m ,
and
C 1 ( s ) > M = C 2 ( s ) , for s > K − m . C_1(s) > M = C_2(s), \quad\text{for } s > K-m. C 1 ( s ) > M = C 2 ( s ) , for s > K − m .
Consequently, the adaptive rule uses SO1 during the early stages and switches to SO2 for the final m m m stages. In particular, the switch occurs m = Θ ( log K ) m = \Theta(\log K) m = Θ ( log K ) stages before termination. The adaptive cost therefore satisfies
Cost a d a p ( ϵ ) = ∑ s = 1 K − m C 1 ( s ) + m M ≤ ( K − m ) A 1 + B 1 ∑ s = 1 K − m 2 s − 1 + m M ≤ K A 1 + B 1 2 K − m + m M = M K + 2 M + m M , \begin{aligned}
\operatorname{Cost}_{\mathrm{adap}}(\epsilon) = \sum_{s=1}^{K-m} C_1(s) + mM \\
&\le(K-m)A_1 + B_1 \sum_{s=1}^{K-m} 2^{s-1} + mM \\
&\le KA_1 + B_1 2^{K-m} + mM = \frac{M}{K} + 2M + mM,
\end{aligned} Cost adap ( ϵ ) = s = 1 ∑ K − m C 1 ( s ) + m M ≤ ( K − m ) A 1 + B 1 s = 1 ∑ K − m 2 s − 1 + m M ≤ K A 1 + B 1 2 K − m + m M = K M + 2 M + m M ,
and consequently,
Cost a d a p ( ϵ ) = Θ ( m M ) = Θ ( M log K ) . \operatorname{Cost}_{\mathrm{adap}}(\epsilon) = \Theta(mM) = \Theta(M\log K). Cost adap ( ϵ ) = Θ ( m M ) = Θ ( M log K ) .
It remains to check the best fixed oracle. As shown above, SO2 costs exactly M K MK M K . For SO1, recalling Eq. (A.16), its final-stage cost satisfies
C 1 ( K ) ≥ B 1 2 K − 1 = M 2 m ≥ M K , C_1(K) \ge B_1 2^{K-1} = M2^m \ge MK, C 1 ( K ) ≥ B 1 2 K − 1 = M 2 m ≥ M K ,
Therefore, ∑ s = 1 K C 1 ( s ) ≥ M K \sum_{s=1}^{K} C_1(s) \ge MK ∑ s = 1 K C 1 ( s ) ≥ M K , and the best fixed oracle is SO2, with cost
Cost f i x e d ( ϵ ) = M K . \operatorname{Cost}_{\mathrm{fixed}}(\epsilon) = MK. Cost fixed ( ϵ ) = M K .
We conclude that
Cost f i x e d ( ϵ ) Cost a d a p ( ϵ ) = Θ ( K log K ) . \frac{\operatorname{Cost}_{\mathrm{fixed}}(\epsilon)}{\operatorname{Cost}_{\mathrm{adap}}(\epsilon)}=\Theta\left(\frac{K}{\log K}\right). Cost adap ( ϵ ) Cost fixed ( ϵ ) = Θ ( log K K ) .
Since K = ⌈ log 2 R 0 2 ϵ ⌉ K=\left\lceil\log_{2}\frac{R_{0}^{2}}{\epsilon}\right\rceil K = ⌈ log 2 ϵ R 0 2 ⌉ , this is equivalently Θ ( log ( R 0 2 / ϵ ) log log ( R 0 2 / ϵ ) ) \Theta\left(\frac{\log(R_{0}^{2}/\epsilon)}{\log\log(R_{0}^{2}/\epsilon)}\right) Θ ( l o g l o g ( R 0 2 / ϵ ) l o g ( R 0 2 / ϵ ) ) .
3°. Finally, we show that this order cannot be improved, up to constants, for arbitrary stage costs of the form C λ ( s ) = max { A λ , B λ 2 s − 1 } C_{\lambda}(s)=\max\{A_{\lambda},B_{\lambda}2^{s-1}\} C λ ( s ) = max { A λ , B λ 2 s − 1 } . Let
d s : = min λ C λ ( s ) d_s:=\min_{\lambda}C_{\lambda}(s) d s := λ min C λ ( s )
denote the adaptive cost at stage s s s . Since every C λ ( s ) C_{\lambda}(s) C λ ( s ) is nondecreasing in s s s , d s d_s d s is also nondecreasing. Again let m = ⌈ log 2 K ⌉ m=\lceil\log_{2}K\rceil m = ⌈ log 2 K ⌉ . Choose an oracle λ ˉ \bar{\lambda} λ ˉ attaining the minimum cost at stage K − m K-m K − m , i.e., g λ ˉ ( K − m ) = d K − m g_{\bar{\lambda}}(K-m)=d_{K-m} g λ ˉ ( K − m ) = d K − m . It follows that
A λ ˉ ≤ d K − m , B λ ˉ 2 K − m − 1 ≤ d K − m . A_{\bar{\lambda}}\le d_{K-m},\qquad B_{\bar{\lambda}}2^{K-m-1}\le d_{K-m}. A λ ˉ ≤ d K − m , B λ ˉ 2 K − m − 1 ≤ d K − m .
Hence the cost of using this oracle throughout is bounded by
Cost f i x e d ( ϵ ) ≤ ∑ s = 1 K max { A λ ˉ , B λ ˉ 2 s − 1 } ≤ ∑ s = 1 K ( A λ ˉ + B λ ˉ 2 s − 1 ) ≤ K d K − m + B λ ˉ 2 K ≤ ( K + 2 m + 1 ) d K − m . \operatorname{Cost}_{\mathrm{fixed}}(\epsilon)\le\sum_{s=1}^{K}\max\{A_{\bar{\lambda}},B_{\bar{\lambda}}2^{s-1}\}\le\sum_{s=1}^{K}(A_{\bar{\lambda}}+B_{\bar{\lambda}}2^{s-1})\le Kd_{K-m}+B_{\bar{\lambda}}2^{K}\le(K+2^{m+1})d_{K-m}. Cost fixed ( ϵ ) ≤ s = 1 ∑ K max { A λ ˉ , B λ ˉ 2 s − 1 } ≤ s = 1 ∑ K ( A λ ˉ + B λ ˉ 2 s − 1 ) ≤ K d K − m + B λ ˉ 2 K ≤ ( K + 2 m + 1 ) d K − m .
Since m = ⌈ log 2 K ⌉ m=\lceil\log_{2}K\rceil m = ⌈ log 2 K ⌉ , we have 2 m < 2 K 2^{m}<2K 2 m < 2 K , and therefore
Cost f i x e d ( ϵ ) ≤ 5 K d K − m . \operatorname{Cost}_{\mathrm{fixed}}(\epsilon)\le5Kd_{K-m}. Cost fixed ( ϵ ) ≤ 5 K d K − m .
On the other hand, monotonicity of d s d_s d s indicates
Cost a d a p ( ϵ ) = ∑ s = 1 K d s ≥ ∑ s = K − m K d s ≥ ( m + 1 ) d K − m . \operatorname{Cost}_{\mathrm{adap}}(\epsilon)=\sum_{s=1}^{K}d_s\ge\sum_{s=K-m}^{K}d_s\ge(m+1)d_{K-m}. Cost adap ( ϵ ) = s = 1 ∑ K d s ≥ s = K − m ∑ K d s ≥ ( m + 1 ) d K − m .
Combining the last two inequalities yields
Cost f i x e d ( ϵ ) Cost a d a p ( ϵ ) ≤ 5 K m + 1 = O ( K log K ) . \frac{\operatorname{Cost}_{\mathrm{fixed}}(\epsilon)}{\operatorname{Cost}_{\mathrm{adap}}(\epsilon)}
\le\frac{5K}{m+1}=O\left(\frac{K}{\log K}\right). Cost adap ( ϵ ) Cost fixed ( ϵ ) ≤ m + 1 5 K = O ( log K K ) .
Together with the two-oracle construction above, this proves that the Θ ( K / log K ) \Theta(K/\log K) Θ ( K / log K ) savings factor is tight up to constants.
Proofs in Section 5
This section collects proofs in § 5 .
Proof of Lemma 1
Let
x + = Π X ( x − γ ∇ f ( x ) ) = x − γ G X , γ ( x ) . x^{+}=\Pi_{\mathcal{X}}(x-\gamma\nabla f(x))=x-\gamma G_{\mathcal{X},\gamma}(x). x + = Π X ( x − γ ∇ f ( x )) = x − γ G X , γ ( x ) .
The optimality condition of the projection and the definition of G X , γ ( x ) G_{\mathcal{X},\gamma}(x) G X , γ ( x ) indicate that
⟨ ∇ f ( x ) − G X , γ ( x ) , y − x + ⟩ ≥ 0 , ∀ y ∈ X . \langle\nabla f(x)-G_{\mathcal{X},\gamma}(x),y-x^{+}\rangle\ge0,\qquad\forall y\in\mathcal{X}. ⟨ ∇ f ( x ) − G X , γ ( x ) , y − x + ⟩ ≥ 0 , ∀ y ∈ X .
By rearranging terms and using the definition of G X , γ ( x ) G_{X,\gamma}(x) G X , γ ( x ) again, we obtain
⟨ ∇ f ( x ) , y − x + ⟩ − ⟨ G X , γ ( x ) , y − x ⟩ − γ ∥ G X , γ ( x ) ∥ 2 ≥ 0. \langle\nabla f(x),y-x^+\rangle-\langle G_{X,\gamma}(x),y-x\rangle-\gamma\lVert G_{X,\gamma}(x)\rVert^2\ge0. ⟨ ∇ f ( x ) , y − x + ⟩ − ⟨ G X , γ ( x ) , y − x ⟩ − γ ∥ G X , γ ( x ) ∥ 2 ≥ 0.
Invoking that f f f is μ \mu μ -strongly convex and L L L -smooth, we have
⟨ ∇ f ( x ) , y − x + ⟩ = ⟨ ∇ f ( x ) , y − x ⟩ + ⟨ ∇ f ( x ) , x − x + ⟩ ≤ f ( y ) − f ( x ) − μ 2 ∥ y − x ∥ 2 + f ( x ) − f ( x + ) + L 2 ∥ x + − x ∥ 2 = f ( y ) − f ( x + ) − μ 2 ∥ y − x ∥ 2 + γ 2 L 2 ∥ G X , γ ( x ) ∥ 2 . \begin{aligned}
\langle\nabla f(x),y-x^+\rangle
&=\langle\nabla f(x),y-x\rangle+\langle\nabla f(x),x-x^+\rangle\\
&\le f(y)-f(x)-\frac{\mu}{2}\lVert y-x\rVert^2+f(x)-f(x^+)+\frac{L}{2}\lVert x^+-x\rVert^2\\
&=f(y)-f(x^+)-\frac{\mu}{2}\lVert y-x\rVert^2+\frac{\gamma^2L}{2}\lVert G_{X,\gamma}(x)\rVert^2.
\end{aligned} ⟨ ∇ f ( x ) , y − x + ⟩ = ⟨ ∇ f ( x ) , y − x ⟩ + ⟨ ∇ f ( x ) , x − x + ⟩ ≤ f ( y ) − f ( x ) − 2 μ ∥ y − x ∥ 2 + f ( x ) − f ( x + ) + 2 L ∥ x + − x ∥ 2 = f ( y ) − f ( x + ) − 2 μ ∥ y − x ∥ 2 + 2 γ 2 L ∥ G X , γ ( x ) ∥ 2 .
Combining the two inequalities above yields
f ( y ) ≥ f ( x + ) + ⟨ G X , γ ( x ) , y − x ⟩ + ( γ − γ 2 L 2 ) ∥ G X , γ ( x ) ∥ 2 + μ 2 ∥ y − x ∥ 2 . f(y)\ge f(x^+)+\langle G_{X,\gamma}(x),y-x\rangle+\left(\gamma-\frac{\gamma^2L}{2}\right)\lVert G_{X,\gamma}(x)\rVert^2+\frac{\mu}{2}\lVert y-x\rVert^2. f ( y ) ≥ f ( x + ) + ⟨ G X , γ ( x ) , y − x ⟩ + ( γ − 2 γ 2 L ) ∥ G X , γ ( x ) ∥ 2 + 2 μ ∥ y − x ∥ 2 .
for every y ∈ X y\in X y ∈ X . Taking y = x y=x y = x yields
f ( x ) − f ( x + ) ≥ ( γ − γ 2 L 2 ) ∥ G X , γ ( x ) ∥ 2 . f(x)-f(x^+)\ge\left(\gamma-\frac{\gamma^2L}{2}\right)\lVert G_{X,\gamma}(x)\rVert^2. f ( x ) − f ( x + ) ≥ ( γ − 2 γ 2 L ) ∥ G X , γ ( x ) ∥ 2 .
Taking y = x ∗ y=x^* y = x ∗ and using f ( x ∗ ) ≤ f ( x + ) f(x^*)\le f(x^+) f ( x ∗ ) ≤ f ( x + ) and γ ≤ 2 / L \gamma\le2/L γ ≤ 2/ L provide us with
μ 2 ∥ x − x ∗ ∥ 2 ≤ ⟨ G X , γ ( x ) , x − x ∗ ⟩ ≤ ∥ G X , γ ( x ) ∥ ∥ x − x ∗ ∥ . \frac{\mu}{2}\lVert x-x^*\rVert^2\le\langle G_{X,\gamma}(x),x-x^*\rangle\le\lVert G_{X,\gamma}(x)\rVert\lVert x-x^*\rVert. 2 μ ∥ x − x ∗ ∥ 2 ≤ ⟨ G X , γ ( x ) , x − x ∗ ⟩ ≤ ∥ G X , γ ( x )∥ ∥ x − x ∗ ∥ .
Dividing by ∥ x − x ∗ ∥ \lVert x-x^*\rVert ∥ x − x ∗ ∥ proves the first claim, and the second claim follows immediately.
Proof of Lemma 4
Because the quadratic regularization is deterministic, we have
g j ( x ) − ∇ ϕ j ( x ) = g ( x ) + ∑ i = 1 j ρ i ( x − x ^ i ) − ∇ f ( x ) − ∑ i = 1 j ρ i ( x − x ^ i ) = g ( x ) − ∇ f ( x ) , g_j(x)-\nabla\phi_j(x)=g(x)+\sum_{i=1}^{j}\rho_i(x-\widehat{x}_i)-\nabla f(x)-\sum_{i=1}^{j}\rho_i(x-\widehat{x}_i)=g(x)-\nabla f(x), g j ( x ) − ∇ ϕ j ( x ) = g ( x ) + i = 1 ∑ j ρ i ( x − x i ) − ∇ f ( x ) − i = 1 ∑ j ρ i ( x − x i ) = g ( x ) − ∇ f ( x ) ,
which proves the bias claim. Similarly,
G j ( x , ξ ) − g j ( x ) = G ( x , ξ ) − g ( x ) , G_j(x,\xi)-g_j(x)=G(x,\xi)-g(x), G j ( x , ξ ) − g j ( x ) = G ( x , ξ ) − g ( x ) ,
so the stochastic error itself is unchanged.
It remains only to rewrite the state-dependent term in terms of the regularized objective. For every i ≥ 1 i\ge1 i ≥ 1 ,
ϕ i − 1 ( x ) − ϕ i − 1 ∗ = ϕ i ( x ) − ϕ i ∗ + ϕ i ∗ − ϕ i − 1 ∗ − ρ i 2 ∥ x − x ^ i ∥ 2 ≤ ϕ i ( x ) − ϕ i ∗ + ρ i 2 ∥ x i − 1 ∗ − x ^ i ∥ 2 , \begin{aligned}
\phi_{i-1}(x)-\phi_{i-1}^*
&=\phi_i(x)-\phi_i^*+\phi_i^*-\phi_{i-1}^*-\frac{\rho_i}{2}\lVert x-\widehat{x}_i\rVert^2\\
&\le\phi_i(x)-\phi_i^*+\frac{\rho_i}{2}\lVert x_{i-1}^*-\widehat{x}_i\rVert^2,
\end{aligned} ϕ i − 1 ( x ) − ϕ i − 1 ∗ = ϕ i ( x ) − ϕ i ∗ + ϕ i ∗ − ϕ i − 1 ∗ − 2 ρ i ∥ x − x i ∥ 2 ≤ ϕ i ( x ) − ϕ i ∗ + 2 ρ i ∥ x i − 1 ∗ − x i ∥ 2 ,
where the last inequality follows from
ϕ i ∗ ≤ ϕ i ( x i − 1 ∗ ) = ϕ i − 1 ∗ + ρ i 2 ∥ x i − 1 ∗ − x ^ i ∥ 2 . \phi_i^*\le\phi_i(x_{i-1}^*)=\phi_{i-1}^*+\frac{\rho_i}{2}\lVert x_{i-1}^*-\widehat{x}_i\rVert^2. ϕ i ∗ ≤ ϕ i ( x i − 1 ∗ ) = ϕ i − 1 ∗ + 2 ρ i ∥ x i − 1 ∗ − x i ∥ 2 .
By iterating the preceding inequality, we obtain
f ( x ) − f ∗ = ϕ 0 ( x ) − ϕ 0 ∗ ≤ ϕ j ( x ) − ϕ j ∗ + ∑ i = 1 j ρ i 2 ∥ x i − 1 ∗ − x ^ i ∥ 2 . f(x)-f^*=\phi_0(x)-\phi_0^*\le\phi_j(x)-\phi_j^*+\sum_{i=1}^{j}\frac{\rho_i}{2}\lVert x_{i-1}^*-\widehat{x}_i\rVert^2. f ( x ) − f ∗ = ϕ 0 ( x ) − ϕ 0 ∗ ≤ ϕ j ( x ) − ϕ j ∗ + i = 1 ∑ j 2 ρ i ∥ x i − 1 ∗ − x i ∥ 2 .
Substituting this into the original variance condition (42) proves
E ∥ G j ( x , ξ ) − g j ( x ) ∥ ∗ 2 ≤ L ( ϕ j ( x ) − ϕ j ∗ ) + σ ^ j , ∗ 2 . \mathbb{E}\lVert G_j(x,\xi)-g_j(x)\rVert_*^2 \le L(\phi_j(x)-\phi_j^*)+\widehat{\sigma}_{j,*}^2. E ∥ G j ( x , ξ ) − g j ( x ) ∥ ∗ 2 ≤ L ( ϕ j ( x ) − ϕ j ∗ ) + σ j , ∗ 2 .
Finally, ϕ i − 1 \phi_{i-1} ϕ i − 1 is ρ i \rho_i ρ i -strongly convex because
μ + ∑ r = 1 i − 1 ρ r = 2 i − 1 μ = ρ i . \mu+\sum_{r=1}^{i-1}\rho_r=2^{i-1}\mu=\rho_i. μ + r = 1 ∑ i − 1 ρ r = 2 i − 1 μ = ρ i .
Therefore we have
ρ i 2 ∥ x ^ i − x i − 1 ∗ ∥ 2 ≤ ϕ i − 1 ( x ^ i ) − ϕ i − 1 ∗ . \frac{\rho_i}{2}\lVert\widehat{x}_i-x_{i-1}^*\rVert^2\le\phi_{i-1}(\widehat{x}_i)-\phi_{i-1}^*. 2 ρ i ∥ x i − x i − 1 ∗ ∥ 2 ≤ ϕ i − 1 ( x i ) − ϕ i − 1 ∗ .
Summing up the above inequality from i = 1 i=1 i = 1 to j j j and taking expectations yields
E [ σ ^ j , ∗ 2 ] ≤ σ ∗ 2 + L ∑ i = 1 j δ i , \mathbb{E}[\widehat{\sigma}_{j,*}^2]\le\sigma_*^2+L\sum_{i=1}^{j}\delta_i, E [ σ j , ∗ 2 ] ≤ σ ∗ 2 + L i = 1 ∑ j δ i ,
which completes the proof.
Proof of Proposition 3
We first control the displacement of the minimizers induced by the regularizers. Since ϕ j − 1 \phi_{j-1} ϕ j − 1 is ρ j \rho_j ρ j -strongly convex,
E ∥ x ^ j − x j − 1 ∗ ∥ 2 ≤ 2 ρ j E [ ϕ j − 1 ( x ^ j ) − ϕ j − 1 ∗ ] ≤ 2 δ j ρ j . (79) \mathbb{E}\lVert\widehat{x}_j-x_{j-1}^*\rVert^2\le\frac{2}{\rho_j}\mathbb{E}[\phi_{j-1}(\widehat{x}_j)-\phi_{j-1}^*]\le\frac{2\delta_j}{\rho_j}. \tag*{(79)} E ∥ x j − x j − 1 ∗ ∥ 2 ≤ ρ j 2 E [ ϕ j − 1 ( x j ) − ϕ j − 1 ∗ ] ≤ ρ j 2 δ j . (79)
Moreover, we have ϕ j ( x ^ j ) = ϕ j − 1 ( x ^ j ) \phi_j(\widehat{x}_j)=\phi_{j-1}(\widehat{x}_j) ϕ j ( x j ) = ϕ j − 1 ( x j ) , while ϕ j ∗ ≥ ϕ j − 1 ∗ \phi_j^*\ge\phi_{j-1}^* ϕ j ∗ ≥ ϕ j − 1 ∗ . Thus
E [ ϕ j ( x ^ j ) − ϕ j ∗ ] ≤ E [ ϕ j − 1 ( x ^ j ) − ϕ j − 1 ∗ ] ≤ δ j . \mathbb{E}[\phi_j(\widehat{x}_j)-\phi_j^*]\le\mathbb{E}[\phi_{j-1}(\widehat{x}_j)-\phi_{j-1}^*]\le\delta_j. E [ ϕ j ( x j ) − ϕ j ∗ ] ≤ E [ ϕ j − 1 ( x j ) − ϕ j − 1 ∗ ] ≤ δ j .
Since ϕ j \phi_j ϕ j is 2 ρ j 2\rho_j 2 ρ j -strongly convex, we have
E ∥ x ^ j − x j ∗ ∥ 2 ≤ 1 ρ j E [ ϕ j ( x ^ j ) − ϕ j ∗ ] ≤ δ j ρ j . (80) \mathbb{E}\lVert\widehat{x}_j-x_j^*\rVert^2\le\frac{1}{\rho_j}\mathbb{E}[\phi_j(\widehat{x}_j)-\phi_j^*]\le\frac{\delta_j}{\rho_j}. \tag*{(80)} E ∥ x j − x j ∗ ∥ 2 ≤ ρ j 1 E [ ϕ j ( x j ) − ϕ j ∗ ] ≤ ρ j δ j . (80)
For t = 1 , … , S − 1 t=1,\ldots,S-1 t = 1 , … , S − 1 , define P t : = ∑ j = 1 t ρ j ∥ x t ∗ − x ^ j ∥ P_t:=\sum_{j=1}^{t}\rho_j\lVert x_t^*-\widehat{x}_j\rVert P t := ∑ j = 1 t ρ j ∥ x t ∗ − x j ∥ . By using the triangle inequality, we obtain
P t − P t − 1 ≤ ρ t ∥ x t ∗ − x ^ t ∥ + ( ∑ j = 1 t − 1 ρ j ) ∥ x t ∗ − x t − 1 ∗ ∥ ≤ 2 ρ t ∥ x t ∗ − x ^ t ∥ + ρ t ∥ x ^ t − x t − 1 ∗ ∥ . \begin{aligned}
P_t-P_{t-1}
&\le\rho_t\lVert x_t^*-\widehat{x}_t\rVert+\left(\sum_{j=1}^{t-1}\rho_j\right)\lVert x_t^*-x_{t-1}^*\rVert\\
&\le2\rho_t\lVert x_t^*-\widehat{x}_t\rVert+\rho_t\lVert\widehat{x}_t-x_{t-1}^*\rVert.
\end{aligned} P t − P t − 1 ≤ ρ t ∥ x t ∗ − x t ∥ + ( j = 1 ∑ t − 1 ρ j ) ∥ x t ∗ − x t − 1 ∗ ∥ ≤ 2 ρ t ∥ x t ∗ − x t ∥ + ρ t ∥ x t − x t − 1 ∗ ∥ .
Substituting Ineqs. (B.1) and (B.2) into the above inequality and using Jensen’s inequality provides us with
E [ P t − P t − 1 ] ≤ 2 ρ t E ∥ x t ∗ − x ^ t ∥ 2 + ρ t E ∥ x ^ t − x t − 1 ∗ ∥ 2 ≤ ( 2 + 2 ) ρ t δ t . \mathbb{E}[P_t-P_{t-1}]\le2\rho_t\sqrt{\mathbb{E}\lVert x_t^*-\widehat{x}_t\rVert^2}+\rho_t\sqrt{\mathbb{E}\lVert\widehat{x}_t-x_{t-1}^*\rVert^2}\le(2+\sqrt{2})\sqrt{\rho_t\delta_t}. E [ P t − P t − 1 ] ≤ 2 ρ t E ∥ x t ∗ − x t ∥ 2 + ρ t E ∥ x t − x t − 1 ∗ ∥ 2 ≤ ( 2 + 2 ) ρ t δ t .
Summing up the above inequality from t = 1 t=1 t = 1 to S − 1 S-1 S − 1 yields
E [ P S − 1 ] ≤ ( 2 + 2 ) ∑ j = 1 S − 1 ρ j δ j . (81) \mathbb{E}[P_{S-1}]\le(2+\sqrt{2})\sum_{j=1}^{S-1}\sqrt{\rho_j\delta_j}. \tag*{(81)} E [ P S − 1 ] ≤ ( 2 + 2 ) j = 1 ∑ S − 1 ρ j δ j . (81)
For convenience, let us denote q ( x ) : = ∑ j = 1 S − 1 ρ j 2 ∥ x − x ^ j ∥ 2 q(x) := \sum_{j=1}^{S-1} \frac{\rho_j}{2}\lVert x-\widehat{x}_j\rVert^2 q ( x ) := ∑ j = 1 S − 1 2 ρ j ∥ x − x j ∥ 2 , so that ϕ S − 1 = f + q \phi_{S-1}=f+q ϕ S − 1 = f + q . By the nonexpansiveness of the Euclidean projection, we have
∥ G X , γ f ( x ) − G X , γ ϕ S − 1 ( x ) ∥ ≤ ∥ ∇ q ( x ) ∥ . \lVert G^f_{X,\gamma}(x)-G^{\phi_{S-1}}_{X,\gamma}(x)\rVert\le\lVert\nabla q(x)\rVert. ∥ G X , γ f ( x ) − G X , γ ϕ S − 1 ( x )∥ ≤ ∥ ∇ q ( x )∥ .
At x = x ^ S x=\widehat{x}_S x = x S , by the triangle inequality,
∥ ∇ q ( x ^ S ) ∥ ≤ ∑ j = 1 S − 1 ρ j ∥ x S − 1 ∗ − x ^ j ∥ + ( ∑ j = 1 S − 1 ρ j ) ∥ x ^ S − x S − 1 ∗ ∥ ≤ P S − 1 + ρ S ∥ x ^ S − x S − 1 ∗ ∥ , \lVert\nabla q(\widehat{x}_S)\rVert\le\sum_{j=1}^{S-1}\rho_j\lVert x^*_{S-1}-\widehat{x}_j\rVert+\left(\sum_{j=1}^{S-1}\rho_j\right)\lVert\widehat{x}_S-x^*_{S-1}\rVert\le P_{S-1}+\rho_S\lVert\widehat{x}_S-x^*_{S-1}\rVert, ∥ ∇ q ( x S )∥ ≤ j = 1 ∑ S − 1 ρ j ∥ x S − 1 ∗ − x j ∥ + ( j = 1 ∑ S − 1 ρ j ) ∥ x S − x S − 1 ∗ ∥ ≤ P S − 1 + ρ S ∥ x S − x S − 1 ∗ ∥ ,
where the last inequality follows from the definition of P t P_t P t and ∑ j = 1 S − 1 ρ j = ρ S − μ ≤ ρ S \sum_{j=1}^{S-1}\rho_j=\rho_S-\mu\le\rho_S ∑ j = 1 S − 1 ρ j = ρ S − μ ≤ ρ S . Recall that the strong convexity modulus of ϕ S − 1 \phi_{S-1} ϕ S − 1 is ρ S = 2 S − 1 μ \rho_S=2^{S-1}\mu ρ S = 2 S − 1 μ . By Ineq. (5.3) in Lemma 1, we have
ρ S ∥ x ^ S − x S − 1 ∗ ∥ ≤ 2 ∥ G X , γ ϕ S − 1 ( x ^ S ) ∥ . \rho_S\lVert\widehat{x}_S-x^*_{S-1}\rVert\le2\lVert G^{\phi_{S-1}}_{X,\gamma}(\widehat{x}_S)\rVert. ρ S ∥ x S − x S − 1 ∗ ∥ ≤ 2 ∥ G X , γ ϕ S − 1 ( x S )∥ .
Consequently, combining the three inequalities above, we have
∥ G X , γ f ( x ^ S ) ∥ ≤ ∥ G X , γ ϕ S − 1 ( x ^ S ) ∥ + ∥ ∇ q ( x ^ S ) ∥ ≤ P S − 1 + 3 ∥ G X , γ ϕ S − 1 ( x ^ S ) ∥ . (82) \lVert G^f_{X,\gamma}(\widehat{x}_S)\rVert\le\lVert G^{\phi_{S-1}}_{X,\gamma}(\widehat{x}_S)\rVert+\lVert\nabla q(\widehat{x}_S)\rVert\le P_{S-1}+3\lVert G^{\phi_{S-1}}_{X,\gamma}(\widehat{x}_S)\rVert. \tag*{(82)} ∥ G X , γ f ( x S )∥ ≤ ∥ G X , γ ϕ S − 1 ( x S )∥ + ∥ ∇ q ( x S )∥ ≤ P S − 1 + 3 ∥ G X , γ ϕ S − 1 ( x S )∥ . (82)
Finally, since ϕ S − 1 \phi_{S-1} ϕ S − 1 is smooth with modulus L + ∑ j = 1 S − 1 ρ j ≤ L + 2 S − 1 μ ≤ 2 L L+\sum_{j=1}^{S-1}\rho_j\le L+2^{S-1}\mu\le2L L + ∑ j = 1 S − 1 ρ j ≤ L + 2 S − 1 μ ≤ 2 L , our choice γ = 1 / ( 2 L ) \gamma=1/(2L) γ = 1/ ( 2 L ) is a valid projected-gradient stepsize for ϕ S − 1 \phi_{S-1} ϕ S − 1 . The projected-gradient descent inequality in (24) yields
1 4 L ∥ G X , γ ϕ S − 1 ( x ^ S ) ∥ 2 ≤ ϕ S − 1 ( x ^ S ) − ϕ S − 1 ∗ , \frac{1}{4L}\lVert G^{\phi_{S-1}}_{X,\gamma}(\widehat{x}_S)\rVert^2\le\phi_{S-1}(\widehat{x}_S)-\phi^*_{S-1}, 4 L 1 ∥ G X , γ ϕ S − 1 ( x S ) ∥ 2 ≤ ϕ S − 1 ( x S ) − ϕ S − 1 ∗ ,
which implies
E ∥ G X , γ ϕ S − 1 ( x ^ S ) ∥ ≤ 2 L δ S ≤ 2 ρ S δ S . \mathbb{E}\lVert G^{\phi_{S-1}}_{X,\gamma}(\widehat{x}_S)\rVert\le2\sqrt{L\delta_S}\le2\sqrt{\rho_S\delta_S}. E ∥ G X , γ ϕ S − 1 ( x S )∥ ≤ 2 L δ S ≤ 2 ρ S δ S .
By combining the above inequality with Ineqs. (B.3) and (B.4), we obtain
E ∥ G X , γ ( x ^ S ) ∥ ≤ ( 2 + 2 ) ∑ j = 1 S − 1 ρ j δ j + 6 ρ S δ S , \mathbb{E}\lVert G_{X,\gamma}(\widehat{x}_S)\rVert\le(2+\sqrt{2})\sum_{j=1}^{S-1}\sqrt{\rho_j\delta_j}+6\sqrt{\rho_S\delta_S}, E ∥ G X , γ ( x S )∥ ≤ ( 2 + 2 ) j = 1 ∑ S − 1 ρ j δ j + 6 ρ S δ S ,
which completes the proof.
Prompt templates for the LLM-completion experiments
This appendix reports the system prompts used to construct the LLM-based data-completion oracles in Section 6. We use three prompt templates: a simple-imputation prompt, a short low-rank prompt, and a more detailed low-rank prompt. In the pipeline names, “LR-short” refers to the short low-rank prompt and “LR” refers to the detailed low-rank prompt. For the low-rank variants, the suffixes “-7” and “-10” indicate that 7 and 10 features are supplied as input to the prompt, respectively.
Simple imputation prompt (SYSTEM_SIMPLE).
You are imputing missing numeric entries in a table.
Only fill missing values in these columns:
10percentage, 12percentage, collegeGPA, English, Logical, Quant, Domain.
Method: SIMPLE IMPUTATION
- For continuous/score-like columns, imitate median imputation logic: choose a
typical central value consistent with the row context.
- For binary/discrete indicators (if any appear), imitate mode imputation
logic.
- Do NOT change non-missing values.
- Return ONLY JSON matching the schema. No reasoning, no extra text.
Short low-rank prompt (SYSTEM_LOWRANK_SHORT).
You are imputing missing numeric entries in a table.
Only fill missing values in these columns:
10percentage, 12percentage, collegeGPA, English, Logical, Quant, Domain.
Method: LOW-RANK MATRIX COMPLETION
- Do NOT change non-missing values.
- Domain should be in [0,1].
- Return ONLY JSON matching the schema. No reasoning, no extra text.
Detailed low-rank prompt (SYSTEM_LOWRANK).
You are imputing missing numeric entries in a table.
Only fill missing values in these columns:
10percentage, 12percentage, collegeGPA, English, Logical, Quant, Domain.
Method: LOW-RANK MATRIX COMPLETION
- Assume the data matrix is approximately low-rank.
- Emulate iterative SVD / nuclear-norm minimization logic: fill missing
entries so rows/columns align with a few latent factors.
- Domain should be in [0,1].
- It is fine if lengthy calculations needed.
- Prefer smooth, globally consistent imputations.
- Do NOT change non-missing values.
- Return ONLY JSON matching the schema. No reasoning, no extra text.