arXiv:2611.06623cs.CENov 2026

Manuscript Offprint

arXiv:2611.06623

Amortized Optimization for Calibrating Stochastic Social Simulators

Muyao Zhong, Peng Yang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Muyao Zhong and Peng Yang, Senior Member, IEEE

Abstract—Stochastic simulators need suitable parameter values to reproduce observed behaviour in complex systems. Searching for these values through repeated simulations makes frequent recalibration computationally expensive. We develop an amortized optimizer that uses simulations collected in advance to learn how to choose parameters that make simulated outcomes agree with observations. Once fitted, it maps new observations to feasible parameters without further simulator calls. The method retains alternative parameter settings that can explain similar observations and compares their responses, avoiding the conflicting labels that arise when training a single parameter regressor. Historical observations also provide supervision by showing which simulated responses agree with the data, even when the underlying parameters are unknown. Experiments across four simulators compare calibration accuracy and query time. Dedicated cost analyses quantify traffic preparation and the recorded financial reuse costs. On new traffic targets, local correction more than halves query time relative to empirical and surrogate selection; a learned inverse is faster still, with similar mean error. In a retrospective comparison on real financial data, our method returns parameters about 1.07×1071.07 \times 10^7 times faster than a 10-minute Gaussian-process Bayesian optimization search, with mean calibration error 3.06% higher. Reusing simulation work across observations supports repeated parameter updates when the available time is too short for a new search.

Index Terms—Optimization algorithms, amortized optimization, stochastic simulators, simulation memory, amortized surrogate.

I. INTRODUCTION

Simulation provides a controlled way to study complex social systems whose behaviour is difficult to investigate through direct experiments alone. It helps examine how individual interactions give rise to collective behaviour. Simulators of traffic flow [1], neural circuits [2] and financial markets [3], for example, generate system responses from specified parameters and initial conditions. Applying

a simulator to an observed system requires parameter values that reproduce its measured behaviour. Calibration estimates these values by comparing simulated and observed outcomes [4], [5]. As new observations become available, calibration may need to be repeated, making the cost of each parameter search a practical concern.

For a stochastic simulator, this search must account for variation between repeated runs. Let z=S(θ,c,ξ)z = S(\theta, c, \xi) denote a simulator response, where θ\theta belongs to the feasible parameter set Θ\Theta. Here, cc gives the known conditions and ξ\xi represents simulation randomness. Let oo denote the information available at calibration time. For an observed target xx, we have o=(x,c)o = (x, c), and a discrepancy D(z,x)D(z, x) defines the expected calibration error

R(θ∣o)=Eξ[D(S(θ,c,ξ),x)].(1)\mathcal{R}(\theta \mid o) = \mathbb{E}_{\xi}[D(S(\theta, c, \xi), x)]. \tag{1}

Calibration seeks θ∗(o)∈arg⁡min⁡θ∈ΘR(θ∣o)\theta^*(o) \in \arg\min_{\theta \in \Theta} \mathcal{R}(\theta \mid o). The expectation averages the discrepancy over simulator runs at the same parameter values.

Finding these parameters is an instance of simulation-based optimization (SBO) [6], which minimizes an expected objective estimated through stochastic simulation. Iterative methods propose parameters θ\theta, simulate their responses and use the resulting estimates of R\mathcal{R} to guide further proposals [6], [7]. Population methods such as particle swarm optimization [8] and covariance matrix adaptation evolution strategy [9] perform this search through successive candidate evaluations. Surrogate-assisted methods [7], [10] reduce this evaluation burden by learning responses or objective values and using those predictions to guide the search. These estimates must also account for simulation noise. Repeated runs at the same θ\theta help distinguish changes in expected error from random variation [11]. When the available observations oo change, solving each objective R(θ∣o)\mathcal{R}(\theta \mid o) separately repeats the search effort [12].

These repeated searches concern the same simulator, so earlier simulations contain information that can be reused when oo changes. Amortization exploits this shared structure by preparing models for many later observations [12]. Bayesian simulation-based inference (SBI) [13], [14], for example, learns a conditional parameter distribution from simulated pairs and reuses it for later observations. Using this distribution for calibration requires choosing a parameter according to the expected error R\mathcal{R}. For a nonlinear simulator, neither the posterior mean nor a density mode necessarily minimizes this error [15].

This work was supported by National Natural Science Foundation of China (Grant 62272210). Corresponding author: Dr. Peng Yang (email: yangp@sustech.edu.cn).

M. Zhong is with Harbin Institute of Technology, Harbin 150001, China.

M. Zhong and P. Yang are with the Guangdong Key Laboratory of Brain-Inspired Intelligent Computation, Department of Computer Science and Engineering, Southern University of Science and Technology, Shenzhen 518055, China.

P. Yang is also with the Department of Statistics and Data Science, Southern University of Science and Technology, Shenzhen 518055, China.

Figure

Fig. 1. Representative workflows for obtaining calibration parameters. Columns share observation, parameter, response and fitted-model symbols. Iterative and surrogate search repeat evaluations; inverse prediction returns parameters directly. Learned costs require minimization, and posterior estimates require a point readout. Column (f) shows the observed-target route in Fig. 2 for fixed conditions. Stored and predicted response moments form its candidate index, which selects a parameter by estimated calibration error before optional local correction. Dashed arrows denote reused quantities. Symbols are schematic.

Amortized optimization [12] addresses parameter choice directly by learning a map from problem inputs to approximate solutions, here θ∗(o)\theta^*(o). Learning this map from parameter labels becomes more difficult when the simulator inverse is not unique. Different parameters θ1≠θ2\theta_1 \neq \theta_2 can produce similar responses, giving an inverse regressor conflicting labels for similar inputs. Minimizing squared parameter error can then average distinct solutions into a parameter whose simulated response fits none of them [16], [17]. Training the map to minimize R\mathcal{R} can avoid this label conflict, but requires estimates of simulated response error. Obtaining these estimates through repeated simulator calls can be costly. The practical challenge is therefore to reuse simulations both to assess parameter choices and to return a parameter for each new observation. Figure 1 compares how these approaches turn an observation into a parameter estimate and which computations they repeat for each observation.

We develop an amortized optimizer θ^=Aϕ(o)\hat{\theta} = \mathcal{A}_{\phi}(o) that reuses simulated responses to select and refine parameters for new observations (Fig. 1f). We retain feasible candidates {θj}j=1M\{\theta_j\}_{j=1}^M and their repeated responses in a simulation memory. These simulations also train an amortized surrogate to estimate response means and variances. Together, stored responses and predicted moments let the optimizer compare candidates by estimated calibration error while preserving distinct parameter alternatives. For fixed con-

ditions, we prepare candidate retrieval and local inverse maps to make this comparison and subsequent refinement efficient. At query time, the optimizer selects a candidate and can apply the prepared local correction when xx is known. Stored quantities and fitted models form ϕ\phi, so each query returns a feasible parameter without new simulator evaluations.

Because candidates are compared by response agreement, real observations can also provide supervision. Their generating parameters are usually unknown, but measured outcomes show which candidate responses agree with the system. We use these comparisons to train a score predictor. When the target outcome follows calibration, the predictor takes o=(h,c)o = (h, c), where hh is the available history, and estimates candidate scores from prior records. The history-based route in Fig. 2 then selects a parameter before the new outcome is known.

This work makes two contributions to repeated stochastic calibration.

  • Indexed selection with precomputed local correction. For fixed conditions, we combine an exact candidate index with bounded affine maps prepared from repeated simulator responses. A query retrieves a feasible anchor and applies one stored map to return a continuous parameter estimate. This combines a finite candidate memory with continuous refinement without fitting a separate inverse predictor.

  • Candidate comparison for non-unique inverses and incomplete responses. For observed targets, we combine empirical repeats and learned moments in the criterion that selects among feasible alternatives, including availability probabilities when features are missing. Keeping these alternatives separates response matching from fitting one inverse output to competing parameter labels.

We evaluate the optimizer across predator-prey, traffic, neural-circuit and financial tasks. The prepared controls show when wider coverage, learned response availability and local refinement change the accuracy and cost of parameter selection. Separate confirmation targets assess fixed rules, while the financial comparisons examine retrospective quality and the workload needed to recover preparation.

The remainder of the paper is organized as follows. Section II reviews related work, and Section III develops the method. Sections IV and V present the experimental setup and results. Sections VI and VII discuss the findings and conclude the paper.