Manuscript Offprint
arXiv:2610.35311Temporal-Difference Calibration of Black-Box Simulators
Abstract
We develop a derivative-free temporal-difference (TD) framework for calibrating black-box simulators using one-step transitions from a target system and noisy simulator-generated continuation values. The calibration parameter is defined through Bellman orthogonality, recovering the physical parameter under correct simulator specification and yielding a near-optimal approximation of the policy value under misspecification. We propose three TD algorithms based on random-direction finite differences, distinguished by their query costs and reuse of noisy simulator evaluations. We establish almost-sure convergence, last-iterate mean-square error bounds, and central limit theorems for Polyak-Ruppert averages across four query-noise regimes. Our analysis reveals a specification-dependent bias phenomenon: for two algorithms, the finite-difference bias of the TD estimating equation vanishes at the calibration target under correct specification, even when the gradient surrogate remains biased. This permits a fixed perturbation radius and rate exponents approaching 1/2 in the simulator rollout budget, whereas misspecification generally recovers the classical Kiefer-Wolfowitz rates. We also develop a few-replicate online bootstrap that yields Student-t calibrated confidence intervals under negligible query noise, and identify a covariance mismatch that can invalidate conventional multiplier inference along Markov trajectories. Finally, a second-stage TD recursion corrects the remaining value discrepancy without additional simulator queries.
Keywords: derivative-free stochastic approximation; few-replicate bootstrap; online inference; Polyak–Ruppert averaging; temporal-difference learning; zeroth-order stochastic approximation
1 Introduction
Simulation models play an important role in policy evaluation and decision-making, particularly when direct experimentation with the target system is costly or impractical. In many sim-to-real applications, simulation remains integral to policy evaluation even after deployment (Coraci et al., 2025). The deployed system provides observations of states, rewards, and one-step transitions, while a simulator, initialized at the observed states and operated under the same policy, generates estimates of future returns. Such simulators often encode structural or physical knowledge that is difficult to preserve in a generic statistical predictor (Song et al., 2022). For instance, in robotic locomotion, simulator parameters may represent friction coefficients, the center of mass, and other physically interpretable quantities (Yu et al., 2019). Calibrating these parameters to the target system is therefore essential for obtaining reliable policy evaluations while retaining the structural interpretability of the simulator.
A fundamental challenge is that the target system and the simulator provide different forms of information. Observations from the target system may be limited to one-step transitions, whereas simulator rollouts can be generated repeatedly at selected states and parameter values. Moreover, many simulators are accessible only through noisy function evaluations, without parameter gradients. Temporal-difference (TD) learning updates value estimates using one-step transitions and continuation values, without requiring complete trajectories or realized long-term returns (Sutton, 1988). Using continuation values from simulator rollouts, calibration can proceed online, with additional simulation improving the update precision without further observations from the target system.
We define the calibration parameter through Bellman orthogonality, requiring the simulator's one-step Bellman discrepancy to be orthogonal to its value gradient. Since the policy value is not directly observed, recovering the conventional calibration target (Tuo and Wu, 2015, 2016) through Bellman residuals requires an additional instrument. TD calibration avoids estimating this instrument. We establish an oracle inequality showing that the calibrated value achieves approximation error within a constant factor of the best approximation in the simulator family. Under correct specification, the calibration target coincides with the physical parameter when the TD root is unique.
Implementing this calibration presents another statistical challenge because the gradient of the simulator value is unavailable. Standard TD methods require the gradient to form the update direction (Sutton, 1988; Tsitsiklis and Van Roy, 1997). Black-box simulators return only noisy value evaluations, and random-direction finite differences approximate the missing gradient (Kiefer and Wolfowitz, 1952; Spall, 1992). A smaller perturbation radius reduces finite-difference bias but amplifies query noise. Each update also multiplies a noisy TD residual by a noisy gradient surrogate. Reusing simulator evaluations across these factors introduces dependence that can affect both the bias and variance of the update. How does replacing exact gradients with noisy function evaluations affect the convergence and statistical efficiency of TD calibration? How should query designs, perturbation radii, and simulator replication be chosen under a simulation budget, and how does this choice depend on simulator accuracy? Online inference adds to this budget, since each bootstrap path requires fresh simulator queries at its own parameter and costs as many rollouts as the main path. Can valid inference be obtained with a small number of bootstrap paths?
We address these questions by developing a unified framework for derivative-free TD (DF-TD) calibration and inference. Our main contributions are summarized as follows.
-
First, we develop three DF-TD algorithms and characterize how their query designs affect simulation cost and statistical efficiency. DF-Ind serves as the baseline, using separate simulator queries for the TD residual and gradient surrogate. DF-Fwd and DF-Sym reuse evaluations through one-sided and symmetric differences, at the cost of introducing dependence between these noisy factors. DF-Sym retains the second-order accuracy of DF-Ind while saving one query per update. We establish almost-sure convergence and last-iterate mean-square error bounds, together with central limit theorems for Polyak–Ruppert averages across four query-noise regimes. Multiplying a noisy TD residual by a noisy gradient surrogate introduces additional variability through products of query errors, which are asymptotically non-negligible when query noise persists but negligible when it decays. Surprisingly, DF-Sym has smaller asymptotic covariance than the baseline DF-Ind under persistent noise when the query noise has kurtosis below 5.
-
Second, we show that simulator specification changes the statistical cost of derivative-free calibration through bias cancellation in the TD estimating equation. For DF-Ind and
DF-Fwd, a bias of the gradient surrogate enters this equation weighted by the Bellman discrepancy. Correct specification makes this discrepancy zero at the calibration target. These algorithms can therefore calibrate consistently without eliminating gradient bias, with a rate exponent approaching 1/2 in the rollout budget. Under misspecification, the same algorithms generally lose this cancellation, and controlling the remaining bias reduces the attainable rate exponents to 1/3 for DF-Ind and 1/4 for DF-Fwd.
-
Third, since each bootstrap path requires fresh simulator queries at additional rollout cost, we develop an economical online multiplier bootstrap using a fixed, small number of bootstrap paths. We establish joint asymptotic normality across bootstrap deviations, yielding valid confidence intervals without trajectory storage. Under Markovian trajectory sampling, conventional multiplier bootstrap fails to capture temporal dependence: independent multipliers disrupt the telescoping Poisson remainder and reproduce only the lag-zero covariance of the TD score rather than its long-run covariance. We illustrate how this mismatch distorts coverage under misspecification through a simple Markovian example, while showing that a correctly specified simulator restores valid inference.
-
Finally, a second-stage TD recursion can correct the value discrepancy remaining after simulator calibration without additional simulator queries. The discrepancy itself satisfies a Bellman equation driven by the TD residuals already computed during calibration, allowing the second stage to estimate it online. We establish joint asymptotic normality of the calibration and correction estimators, enabling inference on the corrected value.
Our work connects several strands of the literature. The first is derivative-free stochastic approximation, including the classical Kiefer-Wolfowitz procedure (Kiefer and Wolfowitz, 1952), simultaneous perturbation methods (Spall, 1992), random-direction optimization (Nesterov and Spokoiny, 2017), and averaged derivative-free procedures (Dippon and Renz, 1997). Particularly relevant is Chen et al. (2024), who develop online inference for Kiefer-Wolfowitz stochastic optimization of a strongly convex objective. Their function evaluations are constructed from a common stochastic observation, whereas our setting involves a TD semigradient whose root need not minimize an objective function, and simulator evaluations introduce independent query noise that is amplified by finite differencing. The interaction between this noise and the noisy TD residual leads to additional covariance components and makes simulation replication an explicit design variable. The Bellman orthogonality structure also produces a specification-dependent finite-difference bias that is absent from conventional analyses.
A second related literature concerns calibration of imperfect computer models. Kennedy and O'Hagan (2001) introduced a discrepancy-based framework, while Tuo and Wu (2015, 2016) developed frequentist calibration procedures based on projection. Subsequent contributions include orthogonality-constrained calibration (Plumlee, 2017), prediction-oriented calibration with finite-sample guarantees (Dai and Chien, 2018), and functional calibration using reproducing kernel Hilbert spaces (Tuo et al., 2023). In our setting, the target value function is not directly observed. We therefore calibrate the simulator using one-step transitions from the target system through Bellman orthogonality.
Our analysis also contributes to the literature on statistical inference for stochastic approximation and reinforcement learning. Online inference for stochastic gradient methods has been studied by Chen et al. (2020), Li et al. (2025), and Han and Xu (2026), among others. Random-scaling methods construct online confidence intervals from the iterate path without resampling, as in e.g., Lee et al. (2022), Li et al. (2026), and Chen et al. (2025). Related developments in online decision-making include Luo et al. (2024), Han et al. (2025), Duan et al. (2026), and Wen et al. (2026). For policy evaluation, Shi et al. (2022); Bian et al. (2025); Shi (2025) study statistical inference for value functions. Work on TD-based procedures addresses estimation and inference (Wu et al., 2024; Samsonov et al., 2024; Liu et al., 2025) and variance reduction through experience replay (Han et al., 2026). Online multiplier bootstrap for linear TD learning has been studied by Ramprasad et al. (2023). We show that this bootstrap can fail under Markov dependence. In addition, for derivative-free TD calibration, each bootstrap path requires fresh simulator queries at its own parameter, adding to the simulation cost. We therefore develop inference with a fixed, small number of paths using the few-replicate bootstrap principle of Lam and Wang (2026).
The remainder of the paper is organized as follows. Section 2 introduces the TD calibration target and establishes its approximation properties. Section 3 presents the three derivative-free TD algorithms. Section 4 develops their asymptotic theory and investigates the effects of query design, simulator specification, and rollout budgets. Section 5 develops the few-replicate online bootstrap and examines its validity under Markovian sampling. Section 6 introduces the second-stage value discrepancy correction. Section 7 discusses potential extensions.
is the unique fixed point of the Bellman operator .
For , the simulator is reset at state and run under the same policy . Its prediction of is the expected return
These simulator value functions form with linear approximation as a special case. We use this family to approximate , even when .
We write for the collection of square-integrable functions, with . The calibration target of Tuo and Wu (2016) is , with minimum approximation error . The minimizer satisfies
This criterion uses the policy value , which is not directly observed in our setting.
For a one-step transition , define the TD residual and the Bellman discrepancy
where the conditional expectation is under the one-step law of the target system induced by .
The TD criterion replaces the value error in the orthogonality condition by the one-step Bellman discrepancy. This gives the population semigradient operator
where the expectation is under the stationary one-step law. We define the temporal-difference calibration target as a solution to . Assumption 3(1) below assumes that a root exists and imposes a global stability condition that implies its uniqueness. Because the estimating equation uses transitions under , weighted by , the target generally depends on , and calibrates the simulator for predicting the value of .
The relation between value error and Bellman discrepancy determines how the TD target differs from the target. Since is the fixed point of , for any such that ,
Both targets can therefore be expressed through the instrument equation (Chen and Qi, 2022; Duan et al., 2024). TD calibration uses , whereas the first-order condition uses , where denotes the -adjoint of . Proposition S1 in the Appendix establishes this correspondence. Accordingly, the calibration instrument involves a discounted accumulation of value-function gradients over current and past states, which is not directly available from one-step observations.
We call the simulator family correctly specified (or perfect, following Tuo and Wu (2015)) if -almost everywhere for some , equivalently -almost everywhere, and misspecified (or imperfect) otherwise. We call a value-matching parameter. Correct specification refers to the value function under the given policy and discount factor, and does not require the simulator's transition and reward mechanisms to match those of the target system. For a correctly specified simulator, satisfies the estimating equation for every admissible instrument, whereas under misspecification, the roots generally depend on the instrument. The next proposition shows when the TD and targets coincide and bounds their difference under misspecification.
Proposition 1 (Temporal-difference calibration target). (i) Correctly specified simulator. If the simulator is correctly specified with parameter and is square-integrable, then . If, in addition, the TD root is unique, then , and whenever the projection is unique. (ii) Error bound for the value function. For any with , . (iii) Oracle inequality. Suppose Assumption 3 in Section 4 holds and an projection exists. Then
where L and are the stability constant and the gradient envelope in Assumption 3, respectively.
Under correct specification, the TD and target both equal the value-matching parameter , provided they are unique. Under misspecification, the targets may differ, but Part (iii) shows that the TD-calibrated value achieves an error within a constant factor of the best approximation in the simulator family. Inference concerns and the calibrated value at prespecified reporting states. Section 6 estimates the remaining discrepancy .
The Bellman discrepancy also affects the local stability of the TD root. Let and, when is differentiable at , write .
Proposition 2 (Local stability and first-order identification). Under Assumption 3(2), G is continuously differentiable at with
Moreover, (J^* + J^*^\top)/2 \preceq -(1 - \gamma)\Sigma_\nabla + \|\varepsilon_\mathrm{B}(\cdot; \theta^*)\|_\mu \|\mathcal{E}_2\|_\mu I_d. In particular, is Hurwitz whenever . At a correctly specified root, is Hurwitz if and only if .
Under correct specification, characterizes local identification through the sensitivities of the value function and is also exactly the condition for local stability of the TD recursion. Under misspecification, the additional term in couples the Bellman discrepancy with simulator curvature and can compromise stability even when .
We first consider stationary i.i.d. one-step sampling (Samsonov et al., 2024; Wu et al., 2024). Extensions to uniformly geometrically ergodic Markov trajectories are provided in Appendix.
Assumption 1 (i.i.d. stationary one-step sampling). The tuples are i.i.d. draws from the stationary one-step distribution induced by , where , , , and .
Under Assumption 1, the benchmark TD algorithm with access to exact gradients follows the semigradient recursion
where denotes the step-size sequence. The conditional mean increment is .
Under standard stochastic-approximation conditions, the Polyak–Ruppert averaged estimator
satisfies (Polyak and Juditsky, 1992)
where , with .
Remark 1 (Bellman discrepancy and TD variance). Since , the TD score covariance with exact gradients can be decomposed as
The first term captures variability from one-step transitions, while the second reflects the contribution of the state-dependent Bellman discrepancy. The latter vanishes when the simulator is correctly specified and the TD root is unique.
3 Methodology
The TD update requires gradients that are unavailable under black-box simulator access. We approximate these gradients using random-direction finite differences of noisy simulator evaluations and combine them with noisy TD residuals to construct derivative-free updates.
3.1 Noisy value queries
In the intended application, a value query is produced by resetting the black-box simulator at a state s of the target system, setting its parameter to , and rolling the fixed policy forward. One rollout returns a random discounted cumulative reward. Averaging independent rollouts produces one noisy evaluation of , with higher precision as increases. We use the following benchmark model for the returned evaluation.
Assumption 2. At iteration t, each fresh value query at a possibly data-dependent state-parameter location returns
where the standardized noises have a common centered, symmetric distribution with unit variance and a finite fourth moment. They are independent across fresh calls and all other sources of randomness. The deterministic sequence is positive and non-increasing.
We refer to as query noise and to as its variance scale. Assumption 2 takes this variance to be independent of the state and parameter. Appendix considers location-dependent variance. For independent rollouts with a common return variance, averaging rollouts gives query variance proportional to . Let be the number of fresh value queries per update and let denote the number of simulator rollouts used by the main path through iteration . When each returned value averages rollouts,
3.2 Random-direction surrogates and finite-difference bias
To separate finite-difference bias from query noise, we first construct the gradient surrogates using noise-free value evaluations. At iteration , let have distribution with and , independently of the past and the current one-step sample. Let be the perturbation radius. The superscript ex denotes this exact-query construction. The one- and two-sided surrogates are
The next lemma bounds the finite-difference bias of these surrogates.
Lemma 1 (Finite-difference bias of gradient surrogate). Suppose the smoothness and the derivative bounds for in Assumption 3(2) hold, and with . Then there exist finite constants such that, for -a.e. and every ,
Under these general bias bounds, a two-sided difference permits a more slowly shrinking radius for the same approximation accuracy. With noisy queries, the larger radius reduces the amplification of query noise.
3.3 Derivative-free temporal-difference learning
We combine the gradient surrogates with noisy TD residuals to obtain three derivative-free TD algorithms. The algorithms differ in their finite-difference construction and in whether the residual and gradient surrogate share simulator queries, but take the common form
where is a noisy estimate of the TD residual and is a noisy gradient surrogate for
. The bias bounds in Lemma 1 concern the surrogate alone. For convergence, we must also control the finite-difference bias in the complete TD increment, which depends on how the two factors are combined.
Given the one-step transition at iteration , let denote independent query noises at iteration . Define
DF-Ind uses separate returned values in the TD residual and gradient surrogate:
The two factors use independent query noises but share the same one-step transition.
DF-Fwd reuses the central returned value in a one-sided difference:
Reusing reduces the update to three fresh queries. Its query noise enters both factors, coupling the TD residual and gradient surrogate. The one-sided construction has generic first-order finite-difference bias. For a centrally symmetric direction law, however, the direction averages of the one- and two-sided surrogates coincide at every radius, since and , so DF-Fwd and DF-Ind have the same exact-query mean field and differ only in query cost and in the variance of the query noise.
DF-Sym uses the same perturbed pair to form a two-sided difference and the midpoint value at the current state. This removes the separate central query while retaining second-order finite-difference accuracy:
We write for the finite-difference bias bound of the TD increment used below, where and . Query reuse leaves these bias orders unchanged but affects the limiting covariance under persistent query noise.
The query counts per update in (3) are and . For DF-Sym, the query saved relative to DF-Ind can support more rollouts per query under a fixed budget per
Here is the bound in general and used in the main text. When , .
Algorithm 1: Derivative-free TD learning (DF-TD)
Input: , step-sizes , radius , horizon , variant in
Output:
1 Initialize
2 for do
3 Sample and
4 if variant = DF-Ind then
5 Query and compute via (6)
6 else if variant = DF-Fwd then
7 Query and compute via (7)
8 else if variant = DF-Sym then
9 Query and compute via (8)
10
11
12 end
update. Algorithm 1 summarizes the recursions.
4 Theoretical Analysis
We analyze how finite-difference bias and amplified query noise affect the DF-TD recursion. We first state the technical assumptions and give a unified error decomposition.
Assumption 3. (1) The equation has a solution . Moreover, there exists such that, for all , .
(2) For -a.e. s, the map is three times continuously differentiable. Moreover, there exist measurable functions such that, for all and -a.e. s, , , , and .
Assumption 3(1) is a global stability condition for the mean field G. Assumption 3(2) supplies the smoothness and moment bounds used to control the TD residual, gradient surrogates, and query-noise terms. For the Jacobian introduced above, Assumption 3(1) implies . Thus is Hurwitz and nonsingular.
Remark 2. For the linear value family , define and . Then , and hence Assumption 3(1) holds whenever the symmetric part of is positive definite, in which case one may take .
Assumption 4 (Algorithm tuning).
(1) The tuning sequences follow the polynomial schedules
where , , , and .
(2) The direction sequence is i.i.d., satisfies , , and , and is independent of the stationary one-step sample array in Assumption 1 and of the query noises on the main path and on all bootstrap paths.
The relative decay rates of these schedules determine the balance between finite-difference bias and amplified query noise. Let be the filtration of the main path, generated by the one-step samples, random directions, and query noises of the main path through iteration , so that is -measurable. Write , so that , and let and be the exact-query TD residual and gradient surrogate, computed from the same and but with all query noises set to zero. Let and . For DF-Fwd, these are and . The increment then splits as , where and . Centering at its conditional mean gives the unified decomposition
where and . Here drives the stochastic-approximation dynamics, is the algorithm-specific finite-difference bias, is the intrinsic TD fluctuation, and is the perturbation from query noise, in which the noise of the gradient queries is amplified by .
Under Assumptions 1–4, both and have conditional mean zero given . Locally around , has conditional second moment of order , and satisfy
4.1 Last-iterate convergence
Theorem 1 (Last-iterate convergence). Suppose Assumptions 1–4 hold and
Then almost surely. If , or if and , then there exist constants and such that, for all ,
The conditions in (12) control the accumulated finite-difference bias and amplified query noise, respectively. The three terms in (13) represent the stochastic-approximation error, the squared finite-difference bias, and the amplified error from query noise. The standard stochastic-approximation rate is recovered when and .
For persistent query noise with , shrinking reduces finite-difference bias but amplifies query noise. Balancing the last two terms in (13) gives for DF-Fwd and for DF-Ind and DF-Sym, with rates and , respectively. These choices satisfy (12) when for DF-Fwd and for DF-Ind and DF-Sym. Thus, second-order finite-difference bias permits a slower decay of and less amplification of query noise. Moreover, query reuse does not affect the last-iterate rate order.
4.2 Averaged inference across query-noise regimes
The following local moment conditions ensure covariance convergence and the martingale Lindeberg condition.
Assumption 5 (Inference regularity).
- There exist and such that ,
- The standardized query noises satisfy .
The first part controls the intrinsic TD and random-direction terms locally around , and the second controls products of query errors.
By (11), the sign of determines the leading stochastic term, while a centered limit requires the finite-difference bias to be negligible at the corresponding rate. Table 1 summarizes the resulting regimes. In the fast-decaying regime,
The algorithm-specific covariances in the other regimes are
Table 1: Query-noise regimes for Polyak-Ruppert averages.
| Noise regime | Lead term | Rate | Additional rate conditions | |
|---|---|---|---|---|
| Fast-decaying: | ||||
| Boundary: | ||||
| Intermediate: | ||||
| Persistent: | ||||
For the persistent regime, write . Then
The terms proportional to arise from the TD residual multiplying the noise of the gradient queries. The terms proportional to arise from multiplying the query noises in the residual and the gradient surrogate. Their coefficients depend on query reuse and the standardized fourth moment of the query noise.
Theorem 2 (Unified CLT across query-noise regimes). Suppose Assumptions 1–5 hold and . For each DF-TD algorithm and each regime in Table 1 satisfying its rate conditions,
where alg denotes the algorithm and reg the query-noise regime.
Remark 3 (Instruments and query design). Under misspecification, instrument choice can change the calibration target, as discussed in Section 2. Under correct specification, the value-matching parameter is a common root for all admissible instruments, although their statistical efficiency may differ. We use the TD instrument . With this instrument fixed, random-direction gradient approximation and query noise introduce two further sources of variability. The resulting asymptotic covariances satisfy , where is the efficiency bound obtained by optimally choosing the instrument W (Chamberlain, 1987). The successive comparisons reflect instrument choice, random-direction approximation (Chen et al., 2024), and query noise in the boundary regime, respectively. In the fast-decaying regime, all three designs share the same limiting score covariance Q. When query noise is not negligible, query design does not change the TD instrument but determines how query noise contributes to the limiting covariance. Propositions S1 and S2 in the Appendix state and prove these claims.
Remark 4 (Effect of query reuse under persistent noise). DF-Ind and DF-Sym use the same two-sided gradient surrogate. DF-Ind uses an independent central query in the residual, whereas DF-Sym uses the midpoint of the same perturbed pair. The contribution of the queries at the current state to is therefore
For , these noise products are asymptotically lower order, and the two designs have the same leading contribution from query noise. At , they contribute at first order, giving
Hence DF-Sym has a smaller asymptotic covariance than DF-Ind when .
The limit theorem for the averaged parameter estimate also yields inference for the calibrated value .
Corollary 1 (Limit for the calibrated value). Let be the reporting state defined in Section 2, and suppose that is continuously differentiable at . Under the corresponding regime of Theorem 2,
4.3 Fixed perturbation radius under correct specification
For DF-Ind and DF-Fwd, the bias of gradient surrogate in Lemma 1 enters the mean TD update weighted by the Bellman discrepancy. For fixed and radius , let denote the expectation of the exact-query increment , so that .
Proposition 3 (Finite-difference bias and Bellman discrepancy). Under Assumption 3(2) and the conditions and constants of Lemma 1, for every and ,
Moreover .
Combining the preceding bounds gives , as used in Theorems 1 and 2. These bounds also control the displacement of the root at a fixed radius. Define , with and , and .
Corollary 2 (Root of the mean field at a fixed radius). Under Assumption 3, let and suppose that has a root . Then
Under correct specification the first term of this bound vanishes, so remains a root of for DF-Ind and DF-Fwd at any fixed radius, regardless of finite-difference accuracy, whereas DF-Sym may shift the root through its midpoint residual.
For DF-Ind and DF-Fwd, Lemma S1 in the Appendix shows that satisfies Assumption 3(1) with constant whenever . Define and , where the exact-query surrogate is evaluated at with radius .
Theorem 3 (Calibration at a fixed radius under correct specification). Suppose the simulator is correctly specified with value-matching parameter , that Assumptions 1–5 hold with the radius schedule in (9) replaced by a constant , and that .
(1) If , or if and , then for any , almost surely and .
(2) If and , then .
Under correct specification, the bias conditions and in Theorems 1 and 2 are no longer needed. With a fixed radius, the amplification of query noise no longer grows over time, and the fast-decaying condition reduces to . When finite differencing introduces no approximation error in the TD increment, the results of Theorem 3 also hold for all three designs with any fixed , even under misspecification. In this case, , , and .
4.4 Design trade-offs under budgets of transitions and rollouts
The preceding results compare the query designs in terms of query cost per update, the finite-difference accuracy, and the covariance contribution of query noise. Table 2 collects these
Table 2: Query cost, finite-difference accuracy, leading effects of query noise, and target preservation across the three DF-TD designs. The gradient-noise factors multiply in . The product-noise factors multiply in . The root-shift bounds follow from Corollary 2. The last row assumes query variance at fixed replication and follows from Proposition S3 in the Appendix.
| Quantity | DF-Ind | DF-Fwd | DF-Sym |
|---|---|---|---|
| Fresh queries per update | 4 | 3 | 3 |
| Bias order | 2 | 1 | 2 |
| Gradient-noise factor | 2 | ||
| Covariance in the fast-decaying regime | |||
| Product-noise factor, persistent regime | |||
| Root shift under correct specification at fixed | none | none | |
| Bias from heteroscedastic query noise as | none | none |
trade-offs, together with two properties of the target discussed below. We refer to and as the first- and second-order cases.
In the fast-decaying regime, all three designs share the score covariance . DF-Sym matches DF-Ind in two-sided accuracy and in the noise level of the gradient queries, with one fewer query. DF-Fwd also uses three queries, but its one-sided surrogate has four times the gradient-noise factor. Under persistent noise, the covariance comparison in Remark 4 provides an additional criterion for choosing between DF-Ind and DF-Sym.
The finite-difference order also determines how the perturbation radius and query precision can be scheduled for centered inference. Figure 1 gives a geometric representation of the rate conditions in Table 1 when the finite-difference bias at the root does not vanish. Compared with the first-order case, second-order finite-difference accuracy admits a wider set of schedules for the perturbation radius and the query precision for centered inference. In the fast-decaying regime, the threshold for the finite-difference bias decreases from to . At , the corresponding thresholds are and . Second-order accuracy therefore permits a more slowly shrinking perturbation radius and slower growth of the replication count .
The radius and replication choices can also affect the calibration target, as summarized in the last two rows of Table 2. Under correct specification, DF-Ind and DF-Fwd preserve at a
(a) DF-Fwd

(b) DF-Ind / DF-Sym

Figure 1: Tuning geometry for averaged DF-TD inference when the finite-difference bias at the root does not vanish. The solid line separates the fast-decaying region from the region dominated by query noise. Dashed lines give the boundaries for the finite-difference bias in the first- and second-order cases. Table 1 gives the exact rates and the additional -dependent conditions.
sufficiently small fixed radius by Theorem 3. DF-Sym can shift the root through its midpoint residual unless is affine in . With query variance at fixed replication , query reuse can also bias the DF-Sym mean field unless is independent of . See Proposition S3 for the small-radius limit of this bias and a bound on the resulting root shift.
The requirements on the perturbation radius and query precision determine the simulator rollout cost for a given number of target-system transitions. Each TD update uses one transition of the target system. When each returned value averages independent simulator rollouts, (3) gives the cost of updates as .
For inference, the question is how many simulator rollouts are needed to make query noise negligible. Under the fast-decaying conditions in Table 1, and require in the first-order case and in the second-order case. Let denote an arbitrarily small, fixed margin above these thresholds for . Choosing or , respectively, supports centered root-T inference with rollout budgets of order or .
When performance is indexed only by the rollout budget, the root-T rate becomes . As approaches 1 and 1/2 from above in the first- and second-order cases, respectively, the exponents approach 1/4 and 1/3, matching the Kiefer-Wolfowitz rates with
Algorithm 2: Few-replicate online bootstrap for DF-TD
Input: , , , horizon , bootstrap size , level , and a DF-TD variant Output: Main and bootstrap averages and coordinatewise intervals
1 Initialize ; for each , set and
2 for do
3 Sample and
4 Run one DF-TD step of the main path using Algorithm 1
5 for do
6 Sample according to Assumption 6
7 Reuse and , draw fresh query noises, and compute at
8
9
10 end
11
12 for do
13
14
15 end
16 end
independent evaluation noise (Fabian, 1967; Dippon and Renz, 1997). The persistent regime of Table 1 reaches the same exponents with fixed rollout replication, so replication changes the rate in but not the frontier in the rollout budget. By contrast, under correct specification, both DF-Ind and DF-Fwd can use a fixed radius and retain centered root- inference with , as established in Theorem 3. The exponent then approaches as . The preferred design therefore depends on how accurate the simulator is believed to be.
5 Few-replicate Online Bootstrap
Because each bootstrap path must be evaluated at its own parameter, every path costs as many simulator rollouts as the main path. Thus, directly controls simulation cost, motivating inference with a fixed, small number of bootstrap paths.
We develop an online multiplier bootstrap for DF-TD using a fixed number of bootstrap paths in the fast-decaying regime. Each path shares the observed transition and perturbation direction with the main path, but uses an independent multiplier and fresh local value queries at its own parameter, which introduce an additional source of randomness.
All paths are updated in one pass without storing the sample trajectory. As in (3), the total training budget is .
Assumption 6 (Bootstrap weights and query streams). For fixed , the array is independent across , with , , and, for some , . The weight array is independent of and of all bootstrap query noises. For each , the bootstrap query noises are an independent copy of the original sequence of query noises and are independent across queries, time, and replicates.
Examples of weights satisfying Assumption 6 include and .
Algorithm 2 gives the resulting one-pass procedure. The bootstrap dispersion is computed around the bootstrap sample mean, whereas the reported interval is centered at the main estimator. Theorem 4 gives the conditional and joint limits that fixed-B inference requires.
Theorem 4 (Few-replicate bootstrap joint limit). Under the assumptions for the fast-decaying regime in Theorem 2 and Assumption 6, let .
(a) Conditional validity. For each fixed , conditionally on ,
(b) Joint fixed-B limit. For any fixed ,
where are independent and identically distributed as .
The joint limit in Theorem 4(b) allows the bootstrap dispersion to Studentize the main estimation error. Independence of the Gaussian components and their common covariance yield the pivot in Corollary 3. For a coordinate , let be the dispersion computed by Algorithm 2 at , and set the ratio to zero on the event .
Corollary 3. Suppose the assumptions of Theorem 4(b) hold, and let be fixed with . Then
Consequently, for any ,
The interval can be reported at any prespecified deterministic checkpoint. Under the fixed-radius conditions of Theorem 3(2), Theorem 4 and Corollary 3 remain valid, with replaced by .
Remark 5 (Inference for the value at a fixed state). The same construction can be used for value reporting at s. Apply the joint delta method to , and define
If is continuously differentiable at and , then
Hence a level- interval for is .
If the values used to construct this interval are reported from fresh simulator rollouts, the interval retains its asymptotic coverage when the additional Monte Carlo error and truncation bias are . Appendix discusses these terminal reporting errors.
The results above assume independent one-step samples. Along a trajectory, the score at the target, , is in general dependent over time. Its lag-zero covariance is , because is centered and each transition along the stationary trajectory has the law in Assumption 1. Write for its long-run covariance, and let . Theorem S3 in the Appendix gives the full conditions and the proof of the following statement.
Proposition 4 (Bootstrap under trajectory sampling). Suppose the observations are generated along a stationary, uniformly geometrically ergodic Markov Chain. Assume the conditions of the fast-decaying regime and the Markov regularity conditions of Appendix hold, and that all paths of Algorithm 2 remain in a fixed compact set almost surely. Then , while the bootstrap deviations jointly across conditionally on the data. For any coordinate , the intervals in Corollary 3 are calibrated if and only if . A sufficient condition is that be a martingale difference, which for TD calibration is equivalent to almost surely.
The Poisson equation for the chain explains the two limits. It splits into a martingale difference and a telescoping remainder . Along the main path, the remainder is weighted by the slowly varying Polyak–Ruppert weights, making its sum . Along a bootstrap path the remainder is weighted by , which is not slowly varying. After summation by parts it becomes , whose conditional variance can be of order
T. Conditionally on the data, \mathbb{V}\{\frac{1}{\sqrt{T}}\sum_t(W_t^{(b)} - 1)\psi_t^*\} = \frac{1}{T}\sum_t\psi_t^*\psi_t^*^\top \to Q, and the bootstrap limit therefore has the lag-zero covariance. In contrast to Theorem 4.2 of Ramprasad et al. (2023), which concludes that the online multiplier bootstrap for linear TD is distributionally consistent along uniformly ergodic Markov trajectories without requiring the score to be a martingale difference, we show that this bootstrap can be inconsistent when this score has temporal dependence.
The martingale condition in Proposition 4 is equivalent to the vanishing of the discrepancy term in Remark 1. A correctly specified simulator with a unique TD root satisfies the condition. If the condition fails, the intervals need not be calibrated, as the following example shows. Consider a two-state chain with uniform stationary law and for some , reward , and the one-parameter linear family . Take to be Rademacher. This is linear TD with a constant feature. Here , the score is , the discrepancy is autocorrelated along the chain, and while . The bootstrap standard error is therefore multiplied by , and a nominal interval has limiting coverage . Random scaling (e.g., Lee et al., 2022) may avoid this mismatch by preserving the Poisson cancellation along the main path at the cost of nonstandard critical values and wider intervals than methods based on covariance estimates. We leave its extension to DF-TD for future work.
6 Correcting the Calibrated Value
For a misspecified simulator the calibrated value differs from the policy value by . Given (1), the value discrepancy solves a Bellman equation,
This suggests augmenting the DF-TD calibration in Algorithm 1 with a second-stage TD recursion that uses the TD residuals already computed to estimate the .
To approximate , let be a fixed feature map, chosen to capture discrepancies left by simulator calibration. Define , and, when is nonsingular, . The corrected value is . In particular, using only the gradient features would give , and hence no correction. The following proposition relates the remaining error to how well the span of approximates .
Proposition 5 (Projected value discrepancy). If and , then , is the unique fixed point of with the -projection onto the span of , and . If -almost everywhere, then and -almost everywhere.
The second stage estimates through the following recursion, which runs alongside the first stage without additional simulator queries:
where is the noisy TD residual of the main path. The corrected estimate is . Since the recursion (18) depends on the evolving first stage parameter, we analyze the two estimators jointly. Define , ,
Theorem 5 (Joint limit of calibration and correction). In the fast-decaying regime of Theorem 2, suppose and, for the of Assumption 5, and . Then a.s., and
The Jacobian is block lower-triangular, so no stability condition beyond Assumption 3(1) and is needed. The block captures the estimation error that the TD residuals inherit from the first-stage calibration. By the delta method with gradient , , and by Proposition 5 this is a limit theorem for the policy value when lies in the span of .
Running (18) inside each bootstrap path of Algorithm 2, with the path’s multiplier applied to the second-stage increment, extends Theorem 4 to the stacked recursion and gives the corresponding interval for , as shown at the end of Appendix. For DF-Ind and DF-Fwd the second stage has no finite-difference bias. For DF-Sym the midpoint residual adds a bias of order , which the fast-decaying conditions of Table 1 make negligible.
7 Discussion
The role of simulator specification extends beyond the definition of the calibration target. It also determines whether finite-difference approximation alters the population estimating equation and whether multiplier inference remains valid under Markov sampling. Under correct specification, the Bellman discrepancy vanishes at the calibration target, which preserves the target for DF-Ind and DF-Fwd even with a fixed perturbation radius and restores bootstrap validity along trajectories. Under misspecification, these cancellations generally fail, which changes both the attainable derivative-free rates and the validity of multiplier inference.
Several extensions remain open. Along Markov trajectories with a misspecified simulator, the fixed-B analysis could be extended to block multipliers or alternative random-scaling inference. Richer estimating equations, including multi-step residuals and more efficient instruments, may move the calibration target closer to the projection while retaining the online structure. Adaptive replication schemes that allocate simulator rollouts according to observed variability are another natural direction.
References
Bian, Z., Shi, C., Qi, Z. and Wang, L. (2025), ‘Off-policy evaluation in doubly inhomogeneous environments’, Journal of the American Statistical Association 120(550), 1102–1114.
Chamberlain, G. (1987), ‘Asymptotic efficiency in estimation with conditional moment restrictions’, Journal of Econometrics 34(3), 305–334.
Chen, X., Lai, Z., Li, H. and Zhang, Y. (2024), ‘Online statistical inference for stochastic optimization via Kiefer–Wolfowitz methods’, Journal of the American Statistical Association 119(548), 2972–2982.
Chen, X., Lee, J. D., Tong, X. T. and Zhang, Y. (2020), ‘Statistical inference for model parameters in stochastic gradient descent’, The Annals of Statistics 48(1), 251–273.
Chen, X., Lee, S., Liao, Y., Seo, M. H., Shin, Y. and Song, M. (2025), ‘SGMM: Stochastic approximation to generalized method of moments’, Journal of Financial Econometrics 23(1), nbad027.
Chen, X. and Qi, Z. (2022), ‘On well-posedness and minimax optimal rates of nonparametric Q-function estimation in off-policy evaluation’, in Proceedings of the 39th International
Conference on Machine Learning.
Coraci, D., Silvestri, A., Razzano, G., Fop, D., Brandi, S., Borkowski, E., Hong, T., Schlueter, A. and Capozzoli, A. (2025), 'A scalable approach for real-world implementation of deep reinforcement learning controllers in buildings based on online transfer learning: The HiLo case study', Energy and Buildings 329, 115254.
Dai, X. and Chien, P. (2018), 'Another look at statistical calibration: A non-asymptotic theory and prediction-oriented optimality', arXiv preprint arXiv:1802.00021.
Dippon, J. and Renz, J. (1997), ‘Weighted means in stochastic approximation of minima’, SIAM Journal on Control and Optimization 35(5), 1811–1827.
Duan, C., Li, J. and Xia, D. (2026), ‘Online policy learning and inference by matrix completion’, Journal of the American Statistical Association 121(553), 598–611.
Duan, Y., Wang, M. and Wainwright, M. J. (2024), ‘Optimal policy evaluation using kernel-based temporal difference methods’, The Annals of Statistics 52(5), 1927–1952.
Fabian, V. (1967), ‘Stochastic approximation of minima with improved asymptotic speed’, The Annals of Mathematical Statistics 38(1), 191–200.
Han, J., Dai, X. and Zhu, Y. (2026), ‘Variance reduction via resampling and experience replay’, Proceedings of the AAAI Conference on Artificial Intelligence 40(26), 21558–21566.
Han, Q., Sun, W. W. and Zhang, Y. (2025), ‘Online statistical inference in decision-making with matrix context’, The Annals of Statistics 53(5), 1963–1986.
Han, Q. and Xu, X. (2026), ‘Gradient descent inference in empirical risk minimization’, The Annals of Statistics 54(3), 1232–1261.
Kennedy, M. C. and O'Hagan, A. (2001), 'Bayesian calibration of computer models', Journal of the Royal Statistical Society: Series B (Statistical Methodology) 63(3), 425–464.
Kiefer, J. and Wolfowitz, J. (1952), ‘Stochastic estimation of the maximum of a regression function’, The Annals of Mathematical Statistics 23(3), 462–466.
Lam, H. and Wang, Z. (2026), ‘Cheap bootstrap for fast uncertainty quantification of stochastic gradient descent’, Journal of Machine Learning Research 27(93), 1–42.
Lee, S., Liao, Y., Seo, M. H. and Shin, Y. (2022), ‘Fast and robust online inference with stochastic gradient descent via random scaling’, in Proceedings of the AAAI Conference on Artificial Intelligence.
Li, J., Lou, Z., Schmidt-Hieber, J. and Wu, W. B. (2025), ‘Statistical guarantees for high-dimensional stochastic gradient descent', in Advances in Neural Information Processing Systems.
Li, X., Liang, J., Chen, X. and Zhang, Z. (2026), 'Convergence and inference of stream stochastic gradient descent, with applications to queueing systems and inventory control', Operations Research 74(4), 2034–2052.
Liu, W., Tu, J., Chen, X. and Zhang, Y. (2025), 'Online estimation and inference for robust policy evaluation in reinforcement learning', The Annals of Statistics 53(5), 2128–2152.
Luo, Y., Sun, W. W. and Liu, Y. (2024), 'Distribution-free contextual dynamic pricing', Mathematics of Operations Research 49(1), 599–618.
Nesterov, Y. and Spokoiny, V. (2017), 'Random gradient-free minimization of convex functions', Foundations of Computational Mathematics 17(2), 527–566.
Plumlee, M. (2017), ‘Bayesian calibration of inexact computer models’, Journal of the American Statistical Association 112(519), 1274–1285.
Polyak, B. T. and Juditsky, A. B. (1992), 'Acceleration of stochastic approximation by averaging', SIAM Journal on Control and Optimization 30(4), 838–855.
Ramprasad, P., Li, Y., Yang, Z., Wang, Z., Sun, W. W. and Cheng, G. (2023), 'Online bootstrap inference for policy evaluation in reinforcement learning', Journal of the American Statistical Association 118(544), 2901–2914.
Samsonov, S., Moulines, E., Shao, Q.-M., Zhang, Z.-S. and Naumov, A. (2024), 'Gaussian approximation and multiplier bootstrap for Polyak–Ruppert averaged linear stochastic approximation with applications to TD learning', in Advances in Neural Information Processing Systems.
Shi, C. (2025), 'Statistical inference in reinforcement learning: a selective survey', arXiv preprint arXiv:2502.16195.
Shi, C., Zhang, S., Lu, W. and Song, R. (2022), 'Statistical inference of the value function for reinforcement learning in infinite-horizon settings', Journal of the Royal Statistical Society Series B: Statistical Methodology 84(3), 765–793.
Song, H., Song, M. and Liu, X. (2022), 'Online autonomous calibration of digital twins using machine learning with application to nuclear power plants', Applied Energy 326, 119995.
Spall, J. C. (1992), 'Multivariate stochastic approximation using a simultaneous perturbation gradient approximation', IEEE Transactions on Automatic Control 37(3), 332–341.
Sutton, R. S. (1988), 'Learning to predict by the methods of temporal differences', Machine Learning 3(1), 9–44.
Tsitsiklis, J. N. and Van Roy, B. (1997), 'An analysis of temporal-difference learning with function approximation', IEEE Transactions on Automatic Control 42(5), 674–690.
Tuo, R., He, S., Pourhabib, A., Ding, Y. and Huang, J. Z. (2023), 'A reproducing kernel Hilbert space approach to functional calibration of computer models', Journal of the American Statistical Association 118(542), 883–897.
Tuo, R. and Wu, C. F. J. (2015), 'Efficient calibration for imperfect computer models', The Annals of Statistics 43(6), 2331–2352.
Tuo, R. and Wu, C. F. J. (2016), 'A theoretical framework for calibration in computer models: Parametrization, estimation and convergence properties', SIAM/ASA Journal on Uncertainty Quantification 4(1), 767–795.
Wen, X., Sun, W. W. and Zhang, Y. (2026), 'Online tensor inference', Operations Research 74(3), 1339–1353.
Wu, W., Li, G., Wei, Y. and Rinaldo, A. (2024), 'Statistical inference for temporal difference learning with linear function approximation', arXiv preprint arXiv:2410.16106.
Yu, W., Kumar, V. C., Turk, G. and Liu, C. K. (2019), 'Sim-to-real transfer for biped locomotion', in 2019 IEEE/RSJ International Conference on Intelligent Robots and Systems.