1.9. Steady-state warm starts
sstate_warm_start controls the initial guess of a numerical
steady-state solve. Its default is false: each solve uses the model’s
cold starting conditions. Set it to true when repeated nearby
parameter draws make the previous successful solution a useful guess:
f_cold = pull_objective(m, 'sstate_warm_start', false);
f_warm = pull_objective(m, 'sstate_warm_start', true);
The same option can be passed to set, solve or estimate.
It changes no prior, observation, solver tolerance or likelihood formula.
It helps when numerical steady-state search is a material part of each
posterior evaluation. A complete analytical steady-state file already
supplies the levels, so there is usually little numerical search to save.
1.9.1. What is reused
RISE keeps the last successful steady state in a persistent cache keyed to the model. The current draw’s parameters and definitions overwrite cached values. Current bounds prevail: fixed values are restored and free cached guesses are clipped to their bounds. A cache miss uses the cold start. If the warm solve fails, RISE retries once from the cold starting conditions before rejecting the solve. Only a successful solution is cached; this is a starting guess, not a reused likelihood or solution.
The cache survives individual model-object copies and repeated objective calls within a MATLAB session. For an independent comparison, reset it before each warm arm and evaluate its common starting point once:
rise.engine.rstst.warm_start_cache('clear');
f_warm(x0);
Do not clear it between successive proposals when measuring warm starts: that would remove the reuse being tested.
1.9.2. Accuracy and the default
Warm and cold solves need not agree bit for bit. An iterative solver stops at tolerance, so a different starting point can change the final rounding even when both runs reach the same steady state. If several steady states exist, the starting point can also change which root is selected. A successful warm solve does not trigger a cold comparison. The retry on failure therefore does not prove that the two successful paths have selected the same equilibrium.
The default remains false to retain cold-start behavior and avoid
making a successful numerical solve depend on the preceding evaluations.
Before using warm starts for inference, check residuals and equilibrium
selection on the intended model and parameter region. Compare log
posteriors and seeded draws as well: a small posterior change can alter
an acceptance decision and then the rest of a chain. An observed small
difference on fs2000 is not a bound for another model.
1.9.3. Cost and accuracy on fs2000
In the November 23, 2026 fs2000 runs without a steady-state file,
cold numerical steady states cost 17.4 ms per chain iteration,
against 12.7 ms with warm starts over 1,000 iterations, about 27 percent
less time. The seeded 10,000-draw warm and cold chains had identical parameter draws;
their stored log posteriors differed by at most 2.7e-8. These are whole
chain costs per iteration, not isolated steady-state or objective timings.
The measurements are recorded in fs2000_speed.pdf and
runs_20261123/num10k_cold.log, num10k_warm.log and num_pair.log
in the fs2000 Speed Report.
Run Estimation/fast_kernel/howto_sampler_speed.m for a new comparison.
It uses the same seeds, starts and proposal covariance for each pair,
and resets the warm cache before each arm. The CSV reports costs beside
the largest draw and log-posterior differences. Distinct-point probes
measure objective cost separately from complete chain time.
settings.json describes the run; comparison.mat preserves its
complete numerical settings, including infinite prior dispersions and
bounds, together with the chains. Short chains illustrate cost and
accuracy; they do not establish convergence.
This is independent of Fast estimation kernel. That kernel needs an analytical, non-loop steady-state file, so it is unavailable in the numerical-file-free comparison. A silent fallback is the generic path, not an additional speed option.