arXiv:2610.35311stat.MLOct 2026

Manuscript Offprint

arXiv:2610.35311

Temporal-Difference Calibration of Black-Box Simulators

Min Zeng, Xin Wen, Xi Chen, Yichen Zhang, Wen-Xin Zhou

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 L2L_{2} 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 L2L_{2} 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 L2L_{2} 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 L2L_{2} 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.