Manuscript Offprint
arXiv:2608.23885A tale of perfect fit and phantom optima: how data-driven models can fail in real-time optimization
Abstract
Real-time optimization (RTO) relies on process models to locate economically optimal operating conditions. Because developing first-principles models requires significant process knowledge, data-driven alternatives are increasingly attractive. Modern machine-learning models can fit historical plant data accurately and often pass standard validation tests. Whether such models can be trusted for economic optimization, however, remains unclear. We investigate this question using a vinyl acetate monomer benchmark process with a unique, well-conditioned economic optimum. We train a structured hybrid model that combines known mass balances and thermodynamics with a neural-network closure for unknown kinetics, and a fully data-driven neural ordinary differential equation (ODE) model. Both models reproduce plant measurements accurately and exhibit little variation in predictions across random initializations. Yet their economic optima differ substantially from that of the plant. Where the plant returns a single optimum on multistart search, the trained models return many phantom optima. We further show that the training optimizer alone can be yet another source of error. Even with noise-free data and initialization at weights that recover the plant optimum, stochastic gradient training can drift to weights that yield substantially worse RTO solutions. The identified model is thus an artifact of the training optimizer as well as the data. These results demonstrate that a good predictive fit of all available measurements does not guarantee reliable economic performance. A data-driven model for RTO should at least be required to recover the optimum on a decision-oriented benchmark like the one developed here before being considered for plant testing and application.
Keywords: Real-time optimization, Physics-constrained machine learning, Neural ordinary differential equations, Parameter estimation, Decision-oriented benchmark
1. Introduction
Growing global competition and sustainability demands have made RTO increasingly important to the chemical process industries (Naysmith and Douglas, 1995; Darby et al., 2011; Câmara et al., 2016). RTO operates on a timescale of hours to days, or is triggered when a price change or disturbance is detected. It supplies the profitable steady-state setpoints to lower-level regulatory layers (Cutler and Perry, 1983). Traditional RTO strategies often use a rigorous nonlinear steady-state process model that is updated using plant measurements after each optimization iteration (Seborg et al., 2017, pg. 351).
Specifically, the model parameters are reconciled against the most recent steady-state plant measurements, a step termed model adaptation or data reconciliation (Crowe, 1996). The updated model is then used to solve a steady-state economic optimization problem. This two-step approach (Roberts and Williams, 1981) is a common way of practicing RTO. While the plant tracks the RTO set-point, it is in transient operation, and one must detect the new steady state before reconciling with measurements. Thus, the approach is limited by steady-state wait-times and fragile detection algorithms that require careful tuning (Darby et al., 2011).
Recent developments in the two-step RTO approach adapt the steady-state model using transient plant measurements (Krishnamoorthy et al., 2018), which eliminates both the steady-state wait-times and detection. The RTO problem can also be made dynamic, e.g., economic MPC (Rawlings et al., 2012). However, when the disturbances vary slowly relative to the plant's settling time, steady-state RTO is preferred because it is cheaper to solve.
Besides model-based methods, model-free methods also exist. RTO has been carried out using direct-search methods that usually mimic gradient-free schemes like Nelder-Mead or evolutionary strategies (Box, 1957). Without gradient information, the number of plant evaluations grows steeply with the decision space for these methods.
A second family of model-free methods can be understood as a feedback problem in the form of extremum seeking or self-optimizing type control (Skogestad, 2000). If we
*Corresponding Author
Email addresses: prithvidake@ucsb.edu (Prithvi Dake), rbindlish@dow.com (Rahul Bindlish), jbraw@ucsb.edu (James B. Rawlings) treat the gradient of profit with respect to the degrees of freedom at steady-state as a controlled variable and hold it at zero, the plant self-optimizes to a stationary point of the RTO problem. Most of the feedback methods therefore focus on gradient estimation, e.g., using dither signals. The feedback approach does not distinguish among a maximum, minimum, or saddle point, and leads to prohibitively slow convergence and a difficult dither tuning problem in practice (Krishnamoorthy and Skogestad, 2022). For these reasons, model-free methods are not considered further.
A third method, modifier adaptation, combines the two: it converges in few plant iterations, like a model-based method, yet provably reaches the plant's optimum, like the feedback-based schemes (Bonvin and Pannocchia, 2024). Crucially, it recovers the plant optimum despite model mismatch, provided the model already has the correct curvature at the plant optimum (a positive semidefinite Hessian in the case of a minimum), so that the plant's gradient corrections suffice (Chachuat et al., 2009; Papasavvas et al., 2019). Yet this curvature is not guaranteed even for a model with no mismatch, as we show in this paper. The accurate estimation of plant gradients remains another challenge. We therefore focus on model-based RTO using transient measurements.
An FPM is only as good as its assumed structure. When that structure is incomplete, e.g., when the reaction kinetics or fluid dynamics are not known from first principles, the model violates the adequacy condition of Forbes et al. (1994): no choice of parameters satisfies the plant's optimality conditions, and its economic optimum is biased.
Alternatives include purely data-driven or black-box models that learn plant dynamics from input–output data with little structure imposed. Such models use neural networks (NNs) that are universal function approximators (Hornik et al., 1989). Neural ordinary differential equations (Chen et al., 2018) are a representative modern instance of such black-box models. They need little process knowledge, but they do not preserve conservation laws and degrade rapidly outside the training set. Violating conservation laws leads to infeasible predictions, which is usually the biggest concern in chemical engineering applications.
Augmenting the first-principles balances with a data-driven closure for the unknown parts in FPMs has therefore been a long-standing pursuit in chemical engineering (see the reviews by Sansana et al., 2021; Schweidtmann et al., 2024). The resulting modeling techniques have been recently surveyed under the umbrella of physics-constrained machine learning (PCML) by Mukherjee and Zavala (2026). PCML strategies are commonly grouped by how the physics is enforced. In soft-constrained models, the known physical laws enter the loss as a penalty, as in physics-informed neural networks (Raissi et al., 2019; Sholokhov et al., 2023). In contrast, hard-constrained models enforce steady-state mass and energy balances exactly (Golder et al., 2025; Constante et al., 2026). Another example includes the simultaneous projection method, which is seen as a promising step toward using NNs to approximate parts of DAE models (Lueg et al., 2025). Finally, in hybrid (or structured) models, a data-driven term is wired into a partially mechanistic transient model and solved with shooting methods (Kumar and Rawlings, 2023; Thompson et al., 2026). The physics-based dynamic balances are retained, while a data-learned term stands in for the part that is not known from first principles, typically the reaction kinetics or fluid dynamics. We use both hybrid and black-box models in this work.
Recent perspectives highlight the absence of decision-oriented benchmarks as central open problems in PCML (Pantelides et al., 2025; Mukherjee and Zavala, 2026). At the same time, a growing literature argues that reliable models for process systems can be built largely from historical plant data using machine learning (ML) and artificial intelligence (AI) (Sansana et al., 2021; Schweidtmann et al., 2024). We take up both threads and ask: for a data-driven model built with the best modeling paradigms and software available to us, carrying as much physical structure as the process permits, and clearing the usual validation checks, does the optimum it yields under RTO match the plant's? A graphical abstract of the work is shown in fig. 1. Our contributions are as follows:
(i) Evidence that near-identical fits, tight even across random initializations, still yield sharply disparate economic optima, so standard validation and uncertainty quantification do not certify reliable RTO performance.
(ii) A controlled demonstration that the stochastic training optimizer alone can cause divergence from the optimal weights. Given correct model structure, noise-free data, and initialization at weights at which the model recovers the plant optimum, stochastic gradient training still drifts to a model whose RTO solution is significantly suboptimal.
(iii) A decision-oriented benchmark, the vinyl acetate process with a well-conditioned economic optimum, on which a data-driven RTO model must recover the plant optimum rather than merely fit plant data.
Outline The paper is organized as follows: Section 2 introduces the vinyl acetate process used as the case study, sets up its economic optimization, and describes the structured (hybrid) and black-box (neural ODE) models. Section 3 gives the training data, scaling, initialization, and
Training
(B)

Structured model
Black-box model
Chemical Plant
RTO
Economic Optimization
(A)
(C)
RELIABLE?
Profit loss
Figure 1: (A) Historical plant datasets are used to train (B) a structured model and a black-box ML/AI closure model, each deployed in real-time optimization (RTO). (C) Near-identical fits map to very different optima, the worst-case structured model loses close to 30% profit and the black-box model over 50%. A reliable data-driven model must recover the optimum, not be judged solely on the validation dataset.
software details. Section 4 reports the results, comparing the parametric, structured, and black-box models on how well they recover the plant economic optimum. Section 5 concludes. Further details on the flowsheet are provided in Appendices A and B. The supplementary material reports the hyperparameter tuning and the training optimizer comparison for every case studied in this paper.
2. Industrial case-study: Vinyl acetate process
The vinyl acetate monomer (VAc) production process has been used as a benchmark problem for plantwide control study due to its challenging and coupled process network (Luyben and Tyréus, 1998; Chen et al., 2003).
We model the process using a detailed reactor model coupled with a simplified separator system, which includes the absorber, flash drum and distillation column. Although the separator system is simplified, the nonlinear reactor model provides rich insight into the process for steady-state economic optimization (Ward et al., 2004).
2.1. Process description
The VAc process involves seven chemical species: ethylene ( ) with inert ethane ( ), oxygen ( ) and acetic acid ( ) as fresh feeds; vinyl acetate ( ) is the product; water ( ) and carbon dioxide ( ) are byproducts. The following reactions take place inside the reactor:
We develop a simplified flowsheet as shown in fig. 2. In the process, the chemical species (in gaseous phase) coming from the mixer (stream 2) are fed to the reactor. The gaseous effluent from the reactor (stream 3) is partly condensed to separate into gas and liquid in the flash drum. The gases (stream 5) then pass through a absorber, and stream 6 is then partly recycled back to the mixer by the splitter I (stream 7). The liquid stream 4 is then sent to a distillation column. The overhead products (mainly vinyl acetate and water) are withdrawn (stream 10) while the bottom products (mainly acetic acid and water) are recycled back to the mixer by splitter II (stream 13). Thus, the flowsheet constitutes a conventional reactor-separator system with two recycles. Note that the reactions in eq. (1) are not elementary but rather an overall representation of the actual reaction network. We also assume a lumped model of the catalyst, such that all the mass transfer resistances are represented by the following rate laws:
(2) where are the concentration of species j and the temperature inside the reactor. The net production rates are given as,
We model the reactor as a single continuous stirred-tank reactor (CSTR) operating isothermally with negligible pressure drop. The reactor is maintained at the same temperature as inlet stream 2 in fig. 2, whose temperature is a setpoint we specify. We assume that the thermodynamic equation of state is valid even when the reactor is not at equilibrium (Rawlings and Ekerdt, 2020, pg. 133). Assuming an ideal gas mixture, the component balances for species j in the reactor are:
We make the following assumptions to simplify the flow-sheet: ethane, ethylene, oxygen and carbon dioxide are non-condensable and thus, we get perfect condensation of only acetic acid, water and vinyl acetate in the flash drum. We also assume that the separation in the distillation column is sharp. Thus, stream 10 carries all the vinyl acetate and water produced in the reactor while stream 8 contains only acetic acid. Hence, neither vinyl acetate nor water gets recycled to the mixer. The absorber is assumed to remove only carbon dioxide from stream 5. Finally, for unit operations other than the reactor, only material balances are solved; energy balances are not considered.
Let be the molar flow of chemical species in stream . Hence, the molar flow coming out of the reactor can be written as . Since only the reactor contributes to dynamics in the flowsheet, all other process units are assumed to operate at quasi steady-state. Thus, the material balance for the mixer at any time can be concisely represented as:
where , are the recycle fractions corresponding to streams 7 and 13 respectively, while is the fraction of molar flow of carbon dioxide removed by the absorber. The concentrations at the reactor inlet can be calculated using . Equations (2) to (5) describe the transient behavior of the flowsheet forming a differential algebraic equation (DAE) system. We can simplify the DAE into an ODE by solving eq. (5) for in terms of only. For the steady-state of the flowsheet, we need only to set the RHS terms of the ODE equations equal to zero. Note that the feeds , , are set to zero while the inert feed enters as where is a small constant number. Constructing the remaining streams in the flowsheet is described in Appendix A.
2.2. Economic optimization
A candidate objective function that takes into account the steady-state economics of the flowsheet is defined as follows,
(6)
which is used to formulate the following RTO problem:
where are the states which are the species concentrations in the reactor and . The decision variables (or optimization degrees of freedom) are the feed rates, recycle fractions and the reactor inlet temperature,
The price vector characterizes the profit function . The RHS of the ODE formed by eqs. (2) to (5) is represented by . The constraint ensures that the nominal production rate of vinyl acetate is met. We set to make the problem unconstrained. We also fix the liquid recycle to remove the flat direction it forms with . The vector and the bounds on the degrees of freedom , are tabulated in Appendix B. The subscript denotes the steady-state values of the states and the degrees of freedom.
The meaning of the terms in the objective function is as follows:
-
represents the revenue from the vinyl acetate production . While the remaining costs represent the overall operating expenditure (opex).
-
represent energy processing costs for gas and liquid recycle streams , while represent the cost to process the purge streams .

Figure 2: Simplified process flowsheet for the vinyl acetate (VAc) monomer plant consisting of 7 units and 13 streams. (Ee: Ethylene, Ea: Ethane, A: Acetic acid, O: Oxygen, W: Water, V: Vinyl acetate, C: Carbon dioxide). Outlet concentrations from the reactor are measured subject to step inputs in the decision variables (fresh feed rates, recycle fractions and reactor temperature), that are shown by the control valves and the controller icon.
- represent the material costs associated with each species j in the fresh feed .
If we supply excessively high feed rates, the residence time in the reactor and consequently the yield of vinyl acetate will be low. On the other hand, very low feed rates will lead to low production rates. A high gas recycle can lead to a better yield but incurs a large energy cost. Thus, an unconstrained optimum should exist in terms of the degrees of freedom for the above objective function. Solving eq. (7), we obtain
with
We analyze the reduced Hessian of the profit function with respect to the degrees of freedom. Because contains variables with different units, we rescale them using with , where the scale factors are tabulated in Appendix B, so that the condition number reflects curvature rather than the choice of units. The eigenvalues of the scaled reduced Hessian are all negative, confirming a local maximum, and its condition number is 415, so the optimum is locally well-conditioned with no flat directions. We performed a multi-start search from different initial guesses for and . It revealed no other local optima within . Together with the negative definite scaled reduced Hessian, this establishes a strict, well-conditioned local maximum with no competing optimum detected in the feasible region. At the computed optimum, profit is 7.4% of revenue, a margin typical of commodity chemicals, so the optimum reflects a genuine economic trade-off rather than a tiny difference between two large numbers.
We retain the decision variable scaling for the models developed in the upcoming sections. Problem eq. (7) is solved using the IPOPT solver provided by CasADi (Wächter and Biegler, 2006; Andersson et al., 2019).
2.3. Structured models
We consider eqs. (2) to (5) as the ground truth for the flowsheet. In reality, however, some parts of the plant model are not known precisely. The reactor is where the chemical transformation takes place, and the kinetics are usually not known from first principles. This is almost always the case in industrial practice (Bindlish, 2025).
We assume that the separation factors for the simple separators are known. Thus, we choose to parameterize only the rate laws using feedforward neural networks as follows:
where , represent the weights and biases of the neural networks. These rate laws replace eq. (2) in the plant model and are trained as follows.
If we represent the ODE formed by eqs. (4) and (5) by , then we can write the following optimization problem to train the neural-network parameters as,
s.t.
where have been defined in section 2.2 and , thus . represents the number of time-steps in a trajectory while represents the number of trajectories in the training dataset. Training over a prediction horizon reduces the compounding of one-step errors during open-loop rollout (Kumar and Rawlings, 2023). The symbol represents the standard deviation of the measurements over the training dataset, while the hat represents model predictions. For full-state measurement, we simplify the training by initializing each trajectory at its first measurement rather than estimating the initial conditions, i.e., .
Since the model shown in eq. (9) enforces both mass conservation and the equation of state, we call it a structured model. As written, problem eq. (9) is the most realistic formulation in an industrial setting, where only concentration measurements are available. However, we consider one more way to train the networks in eq. (8).
Suppose that we have access to the rate measurements over the same training dataset used for eq. (9), thus we can train the neural networks simply as,
where is the standard deviation of the rate measurements over the training dataset.
We do not know the neural-network parameters that reproduce the plant kinetics exactly. A rate measurement reflects the kinetic rate itself, rather than its integrated effect on concentration through the ODE in eq. (9). Hence eq. (10) gives the closest estimate of the closure we can obtain from data. Training on rates therefore acts as both a reference and a diagnostic. It tests whether the network has the capacity to represent the kinetics and whether the resulting model recovers the plant's RTO optimum. If it does, we treat the rate-trained network as the best attainable surrogate for the true closure and judge the concentration-trained models against it. If it does not, the shortfall lies with the dataset rather than the training, since no measurement is more informative about the kinetics than the rates themselves, and the dataset must be enlarged. Thus using eqs. (9) and (10) we consider three cases, defined together with all other cases studied in table 1:
(a) rmeas: Problem eq. (10) with access to rate measurements .
(b) cmeas_rinit: Problem eq. (9) initialized with the NN parameters learned from rmeas.
(c) cmeas: Problem eq. (9) with access to only concentration measurements c.
2.4. Black-box models
We also train a complete black-box model for the reactor as,
where the RHS of the ODE is approximated using a neural network. As in the previous section, we use and set . By construction, eq. (11) preserves neither individual species mass conservation nor the equation of state inside the reactor; it learns them from data instead. Hence, we call it a black-box model. To use it for RTO, we need to calculate the flowsheet streams. For that, we need to know the volumetric flow coming out of the reactor. From eq. (5), by applying an overall mass-balance across the flowsheet at steady state we get,
where is the molecular weight of the species . Thus, using eqs. (11) and (12) and we can construct the flowsheet and use the black-box model for economic optimization.
3. Training and implementation details
3.1. Training dataset
As shown in fig. 2, we record the species concentrations at the reactor outlet while perturbing the decision variables with pseudo-random binary signals under a zero-order hold. The decision variables are the feed rates , the recycle fractions and the reactor inlet temperature . We sample 200 random inputs and hold out 30% as a validation set. The inputs , except temperature, are varied by around their optimal values , while temperature is varied by . These limits coincide exactly with the box constraints of the RTO problem eq. (7), i.e., and for all the feed rates and recycle fraction , and , for the temperature, tabulated in Appendix B. Although is perturbed to excite the data, it is held fixed at 0.6 in the RTO problem eq. (7) (i.e., for ). The training dataset therefore spans exactly the feasible box over which we optimize. These perturbations are more aggressive than industrial model identification typically permits, so the training data here is richer than a practitioner could likely obtain.
A subset of the noise-free training dataset is shown in fig. 3, and it brackets the measurements at the steady-state optimum . Thus, we test the models purely on interpolation and not extrapolation. We ensure that the training data has enough steady-state information by holding the decision variables constant for a fixed period before injecting the next random step, so that the model learns the steady-state behavior of the flowsheet (Kumar and Rawlings, 2023).
3.2. Software details
Both the structured and black-box models are built and trained using the JAX open-source Python library developed by Google DeepMind (Bradbury et al., 2018). We solve the ODEs using Diffrax (Kidger, 2021) with an adaptive step-size solver of the ESDIRK5(4) type. The neural networks are constructed and initialized using Flax (Heek et al., 2024).
The hyperparameters in this paper are the network width and depth, the learning rate, the batch size, and the epoch budget. We fixed the width and depth because the training error was already low at this architecture, so additional capacity was unnecessary. We also fixed the batch size and tuned only the learning rate and the epoch budget. We first swept the learning rate and kept the value with the lowest validation loss, then increased the epoch budget until the validation loss plateaued. The tuning procedure for each model we construct is detailed in figs. S2 to S5 of the supplementary material. We run ADAM (Kingma and Ba, 2014) for the first half of the epoch budget and then switch to L-BFGS (Liu and Nocedal, 1989) for the second half for faster convergence. A comparison of using only ADAM versus ADAM followed by L-BFGS is also shown in the supplementary material. Both the optimizers are obtained from Optax provided by JAX.
3.3. Scaling and initialization
We use hyperbolic tangent as the activation function for the neural networks. Since both structured and black-box models are used inside a nonlinear program (NLP) eq. (7), tanh ensures differentiability of the model outputs with respect to the inputs and parameters.
For tanh, both the inputs and outputs of the neural networks should be scaled so that the network operates on quantities. The inputs are normalized by their mean and standard deviation over the entire training dataset. For the structured model, we deliberately separate the shape of the rate function from its scale: the network learns the standardized shape, while a trainable location and scale restore the physical magnitude. For example, is scaled as
so that need only output an standardized rate, while and carry its mean and spread. This scaling keeps the raw network output well-scaled and the back-propagated gradients well-conditioned; without it, the network would have to emit values spanning the raw rate magnitudes directly, which readily causes vanishing or exploding gradients, especially for stiff systems (Fronk and Petzold, 2025). To further stabilize training, we apply gradient clipping to the network parameters , but leave the scale factors unclipped. The weights are thereby protected from large, destabilizing updates, while and remain free to take the larger steps needed to reach the correct rate magnitude. We apply clipping only during the stochastic ADAM phase. The deterministic L-BFGS phase needs none, since its strong Wolfe line search already bounds each step size.
The factors must therefore be initialized with care. For problem eq. (9), we initialize at the mean and standard deviation of computed from the plant model over the training dataset, so that the network begins by learning only the standardized shape. In practice, the plant rates are unavailable. One can instead use eq. (11) to get the RHS and back-calculate approximate rates using eq. (4) to set these initial estimates as shown by Peng et al. (2025), though that is not the focus of this work. For problem eq. (10), by contrast, we do not need these scale factors, since they are already available from the assumed rate measurements.
For the black-box model, we use a similar scaling strategy. The inputs to the neural network are normalized by their mean and standard deviation over the training dataset. The outputs are scaled by trainable location and scale factors that restore the physical magnitude while the network learns the standardized shape of the RHS of the ODE. As done for the structured model, we initialize and at the mean and standard deviation of the true RHS computed from the plant model over the training dataset.
4. Results and discussion
We demonstrated in section 2.2 that the flowsheet defined by eqs. (2) to (5) has a well-conditioned optimum. As a control experiment, we first verify that the plant rate structure is identifiable from the data the plant generated, and that the identified model recovers the plant optimum. This rules out uninformative data or an ill-posed problem as a trivial explanation for any failure of the structured or black-box models. Whether the optimum remains recoverable without the correct structure is precisely the question these experiments address.

Figure 3: A snapshot of training data from the plant model with no measurement noise. The measurements are shown in red and the decision variables in black. The dotted grey lines represent and from section 2.2.
Table 1: Summary of the six data-driven cases. is the sensor-noise level in eq. (14). A random NN initialization uses the LeCun normal initialization popular for tanh-based neural networks (LeCun et al., 2002, pg. 20).
| Model | Case | Training problem and measurements | NN initialization | Noise |
|---|---|---|---|---|
| Structured | rmeas | eq. (10), rates | random | 0 |
| cmeas_rinit | eq. (9), concentrations | rmeas solution | 0 | |
| cmeas | eq. (9), concentrations | random | 0 | |
| cmeas_noise | eq. (9), concentrations | random | ||
| Black-box | bbox | eq. (11), concentrations | random | 0 |
| bbox_noise | eq. (11), concentrations | random |
4.1. Control experiment using parametric model
From eq. (2), we note that the plant rate laws are power law models. We rescale and parameterize them as follows:
where are the mean temperature and concentrations over the subset used to fit the parametric model eq. (13). This subset is roughly 0.25% of the entire training-and-validation dataset used for the neural networks, shown in fig. 3. From it we estimate the parameters along with their confidence intervals. To avoid biasing the estimator, we initialize far from the true plant parameters. We also corrupt each measurement with multiplicative Gaussian sensor noise,
where is drawn independently for each measurement and is the relative error level (0, 0.1%, 1%). The parameter estimation problem is solved using Paresto (Dake et al., 2024) which provides joint confidence intervals for the parameters. Paresto solves a similar problem as eq. (9) using IPOPT, with replaced by eq. (13) and by parameters in eq. (13). The results are shown in table 2. We see that the plant rate structure is identifiable from the training data, as indicated by the tight confidence intervals for the parameters even in the presence of noise.
Each of the fits reports a single optimum even on multi-start RTO. We measure this recovery with the following metric, henceforth called the profit loss,
where is the optimal plant profit and is the profit obtained by evaluating the plant model at the estimated operating point from an identified model. Note that since is the global optimum. We see from table 2 that the profit loss is negligible at all noise levels, which indicates that the identified parametric model is able to recover the plant optimum. These results can be used as a benchmark to compare the performance of the structured and black-box models.
4.2. Training and validation of the data-driven models
(a) Structured models
Because neural networks are over-parameterized and their training loss is non-convex, each random initialization of the weights and biases can settle in a different basin and recover a distinct rate function. For each of the three cases rmeas, cmeas_rinit and cmeas, we therefore train an ensemble of 20 networks, each from an independent random initialization. Note that we randomly initialize only the NN weights and biases and not the scaling factors. We train one additional case called cmeas_noise, which is similar to cmeas but uses noisy measurements eq. (14) with (i.e. 1% relative sensor noise).
For the stochastic ADAM phase, the trajectories are partitioned into batches of size , and the optimizer takes one gradient step per batch (without resampling) usually to escape poor local minima/saddle points. One pass over all the batches is an epoch. We set and run for 250 epochs. We freeze the batch ordering across all 20 initializations to remove shuffling as a confounder. Then, we switch to L-BFGS for 250 more epochs. Note no batch partitioning is needed for L-BFGS, since it is a deterministic optimizer.
The architecture of the neural networks is also kept fixed across all cases. Unlike eqs. (9) and (10), which scale residuals by , we report a mean-normalized RMSE on the measurement and validation sets to read error as a fraction of the mean concentration,
for where is the mean output value, and the number of trajectories in set ; e.g. 0.02 means a 2% error relative to the mean concentrations.
(b) Black-box model
We train the black-box model with the same strategy as the structured models, taking care to remove any confounding factors across the 20 initializations. We label eq. (11) as bbox and add a noisy-measurement case bbox_noise, analogous to cmeas_noise. A summary of all six cases considered in the paper is provided in table 1. We set and run for 250 epochs of ADAM followed by 250 epochs of L-BFGS. We use the same mean-normalized RMSE of eq. (16) to report the training and validation errors.
(c) Validation
The training loss, validation loss and training time for all the identified models are reported in table 3.
For the structured models we first look at the quantity a practitioner can actually observe, i.e., the concentration predictions on the validation set. Figure 4 overlays these predictions on the validation measurements for all four cases. The fits are excellent, and the ensemble bands are so tight that they are barely visible. Every random initialization produces essentially the same predictions, so the 5–95% quantile range collapses onto the mean. In our simulation setting, we can also inspect a quantity the practitioner never sees, the plant reaction rates. The parity plots of the model rates against the truth in fig. 5 tell a very different story. The rate predictions degrade steadily from (a) rmeas to (d) cmeas_noise, even though the concentration predictions above were indistinguishable.
Despite discarding all physical structure, the black-box models attain a satisfactory fit when overlaid on the validation measurements, as shown in fig. 6, though less accurate than that of the structured models. Here too the ensemble bands stay tight. The black-box models thus pass every check a practitioner would run.
Herein lies the trap. Every case we considered so far reports a low training and validation RMSE and a tight ensemble spread across initializations, so nothing the practitioner can compute from the data flags a problem. Yet, as we show next, five of these six “validated” models are useless for RTO.
4.3. Optimization landscape
Instead of solving the RTO problem eq. (7) over all five degrees of freedom (i.e. ), we first solve a simpler problem over only two degrees of freedom. To see how each model reshapes the optimization landscape, we vary only the reactor inlet temperature and the gas recycle fraction over their box constraints from eq. (7), keeping the other three degrees of freedom fixed at the plant optimum. The plant profit is then a 2D surface we can draw.
For model-based RTO, each trained model operates on its own predicted profit . It is distinct from , the plant profit evaluated at the operating point the model recommends. This second quantity is what enters the profit-loss metric used later. Figure 7 shows the plant landscape , and fig. 8 the model landscape that each trained
Table 2: Parameter estimation results and profit loss for the control experiment with parametric models for different levels of measurement noise.
| Parameter | |||
|---|---|---|---|
| <-0.001% | -0.019% | -1.28% |


Figure 4: Concentration predictions on the validation set for (a) , (b) , (c) and (d) . Measurements are shown in red. The shaded bands are the ensemble spread, taken as the 5–95% quantiles of the 20 random initializations.
Table 3: Structured- and black-box-model results across cases. Values are reported as mean over 20 random initializations (95% interval). and are the mean-normalized errors of eq. (16) on the measurement and validation sets; training time is wall-clock.
| Model | Case | NN architecture | Train time (hr) | ||
|---|---|---|---|---|---|
| Structured | |||||
| Black-box | |||||

(b)
(c)
(d)

Figure 5: Parity plots of the reaction rates on the validation set for (a) rmeas, (b) cmeas_rinit, (c) cmeas and (d) cmeas_noise. Top row shows and bottom row . The dotted line is ideal parity. The bands are the ensemble spread, taken as the 5–95% quantiles across the 20 random initializations.
(a)

(b)
Figure 6: Concentration predictions on the validation set for the black-box model, (a) bbox and (b) bbox_noise. Measurements are shown in red. The bands are the ensemble spread, taken as the 5–95% quantiles of the 20 random initializations.
model presents to the RTO optimizer, for one of the worst-performing members of the ensemble of 20, on the same axes and profit scale.

Figure 7: Plant profit landscape with the remaining degrees of freedom fixed at the plant optimum. The star marks the plant optimum . The surface is unimodal and well-conditioned.
The plant landscape in fig. 7 has a single peak at , consistent with the well-conditioned optimum discussed in section 2.2.
Figure 8 tells a different story. Trained on rate measurements, rmeas reproduces both the plant landscape and its peak. The rmeas case also helps us diagnose that the training dataset is informative enough to identify the plant rate structure. However, cmeas_rinit (table 1) is the telling case. Initialized at the same NN weights as rmeas that recovers the plant peak, the stochastic training optimizer deforms the surface so that cmeas_rinit no longer agrees with the landscape it started from. The same drift is visible in the loss curves in Figure S1 of the supplementary material, where ADAM moves away from the initialization and L-BFGS recovers only part of it. We trained cmeas_rinit at the same learning rate (i.e., 0.05) tuned for cmeas and cmeas_noise. A smaller learning rate does damp the drift, only because it preserves an optimum that was supplied, not one that training located. An optimizer should not move away from an optimum simply because of a user-defined hyperparameter. cmeas, cmeas_noise, bbox and bbox_noise distort the surface further with multiple local maxima. cmeas even admits an optimum in a near-saddle region, where the curvature is indefinite and gradient-correction schemes such as modifier adaptation would fail to converge.
4.4. Economic performance under RTO
We next solve the actual RTO problem eq. (7) and evaluate the profit loss over the 20 ensembles for each case of the structured and the black-box models over 3 multi-start RTO seeds. Within each multi-start seed, the RTO problem eq. (7) for each model is initialized with the same guess , which is obtained by perturbing the midpoint of the training data range. This ensures RTO initialization is not a confounder within a seed. As shown in fig. 9, rmeas recovers the plant optimum with negligible profit loss and no variability across the multi-start seeds. This result again confirms that the training dataset is informative enough to identify the plant rate structure.
Every other case, however, incurs a significant profit loss that varies across the RTO seeds. The worst-case profit loss for structured models is just over 30% as seen from fig. 9 panel (d) for seed 1. Models that were visually indistinguishable on the validation dataset predict multiple optima, even though the same multistart search returns a single optimum for the plant. This disparity among RTO solutions is not an artifact of noise, since apart from cmeas_noise all results for structured models used noise-free measurements. Nor would training the models longer help, since the validation loss for the models has already plateaued within the chosen epoch budget. As noted previously, a good starting point does not help either. Even after warm-starting from the rmeas weights and biases that recover the plant optimum, cmeas_rinit drifts and returns a near-zero loss only occasionally.
A natural objection, often raised in support of black-box models, is that imposing structure itself is the culprit. By fixing the stoichiometry with mass balances and thermodynamics, we may have imposed a model class too rigid for the plant, and letting the data determine the entire dynamics might do better on RTO. We tested the claim directly with the black-box models. Their economic performance, however, is still worse for the actual RTO problem. The profit loss in fig. 10 exceeds that of every structured case, with the worst-case exceeding 50% as seen from panel (b) for seed 3.
5. Conclusions
In this paper, we tested whether a data-driven model that predicts plant measurements accurately can be trusted to drive economic decisions. Using the vinyl acetate process as a benchmark, we trained hybrid (structured) models, which embed a neural-network closure for reaction rates in the known mass balances and thermodynamics, and a fully data-driven black-box model. Within each model class, we considered several cases that differ in the measurements used for training and the noise level. We tested each case in real-time optimization. Across the ensemble based on random initializations, each model and its variants cleared the usual validation checks, with accurate fits and tight ensemble spread on the validation dataset, yet their RTO solutions showed a wide disparity. In the worst case, the structured models lost 30% of profit and the black-box cases over 50%. With losses this large, we

(b)
(d)

(c)
(e)

(f)



Figure 8: Model-predicted profit landscape that each trained model presents to the RTO optimizer. Panels, in order of degrading structure and data, are (a) rmeas, (b) cmeas_rinit, (c) cmeas, (d) cmeas_noise, (e) bbox, and (f) bbox_noise. The star marks the plant optimum as a fixed reference and the circles each model's own optimum. Each panel shows one of the worst-performing members of the 20 initializations.
may do better for economic profitability by not using real-time optimization at all. Additionally, under the same multistart search that returns a single optimum for the plant, the models returned many spurious RTO solutions.
We ran these simulations under the most ideal settings we could construct. We took care to have the measurements at the plant optimum bracketed within the training dataset, ensuring that the models are tested purely on interpolation. We trained the models on both noise-free and noisy measurements. In fact, in the cmeas_rinit case the NN weights and biases that recover the plant RTO landscape were handed to the training optimizer as its starting point. Training on concentration data drove those parameters away to a suboptimal fit whose RTO landscape no longer matched the one it started from.
The observed optimizer drift is not a numerical failure. Stochastic optimizers such as ADAM, which are workhorses of ML/AI frameworks, advance without a line search, and that is precisely what lets them escape poor local minima. The same property, however, can let them drift away from a good basin. Switching to a deterministic optimizer, L-BFGS, for the later epochs does not repair the drift; L-BFGS performs a line search but by the time it takes over, the initial ADAM phase has already left the good basin it was initialized in, so L-BFGS only refines within whichever basin it inherits. A practitioner does not expect an optimizer to leave an optimal solution it was handed. The effect does not show up in the training or validation fit, but in the RTO decision. Nor is starting L-BFGS from the correct basin a remedy, since it presumes one already holds the RTO-optimal parameters. This fragility of the standard ML training recipe is what we highlight.
This fragility can only worsen in the presence of process noise, unmodeled states or disturbances, or insufficiently exciting closed-loop data. We ran these investigations with the best software and tuned hyperparameters, and the models still failed under these ideal conditions. Any industrial vendor proposing to solve a similar problem should first demonstrate recovery of the optimum on a benchmark of the type proposed here. Short of that, the attempt remains unreliable.
Additional regularization of the structured models could help overcome such fragility. Future work could test whether imposing monotonicity constraints on certain inputs (e.g., temperature) in the NN-approximated rate laws, to match insights from process chemistry, improves RTO performance. Another avenue is to impose a Lip-
(b)

(c)
(d)
Figure 9: Profit loss for (a) rmeas, (b) cmeas_rinit, (c) cmeas and (d) cmeas_noise. Columns are cases and rows are the 3 multi-start RTO seeds; each panel is the distribution over the 20 ensemble members, plotted as relative frequency. The dotted line marks the best achievable profit loss, 0%.
schitz bound on the neural-network curvature and test whether this makes data-driven model-based RTO more robust.
Acknowledgment
The funding for this work was provided by the Dow Chemical Company. PD acknowledges support from the Mitsubishi Chemical Graduate Fellowship. Use was made of computational facilities purchased with funds from the National Science Foundation (CNS-1725797) and administered by the Center for Scientific Computing (CSC). The CSC is supported by the California NanoSystems Institute and the Materials Research Science and Engineering Center (MRSEC; NSF DMR 2308708) at UC Santa Barbara.
Data availability
The code and simulated data used to reproduce all results are available at https://dakeprithvi.github.io/2026c_structure_id_plant and Dake et al. (2026).
Appendix A. Process units
Every separator and splitter acts as a linear split: an inlet molar flow of species j divides into a split-off stream and a remainder,
where denotes ethylene, ethane, acetic acid, vinyl acetate, water, oxygen, and carbon dioxide. Table A.4 lists each unit, its inlet/outlet streams, and its split fraction. Each unit carries its own symbol for so the flowsheet equations stay unambiguous, for the flash drum, for the distillation column, for the absorber, and the recycle fractions and for splitters I and II.
Appendix B. Parameter values
The price-vector is given as, /mol

(b)
Figure 10: Profit loss for (a) bbox and (b) bbox_noise. Columns are cases and rows are the 3 multi-start RTO seeds; each panel is the distribution over the 20 ensemble members, plotted as relative frequency. The dotted line marks the best achievable profit loss, .
References
J. A. E. Andersson, J. Gillis, G. Horn, J. B. Rawlings, and M. Diehl. CasADi—a software framework for nonlinear optimization and optimal control. Math. Prog. Comp., 11(1):1–36, Mar 2019. doi: 10.1007/s12532-018-0139-4.
R. Bindlish. An Industrial Perspective on Applying Process Knowledge and Mathematical Programming for RTO, MPC, NMPC, and Power Scheduling. Ind. Eng. Chem. Res., 64(50):23810–23823, 2025.
D. Bonvin and G. Pannocchia. On speeding-up modifier-adaptation schemes for real-time optimization. Comput. Chem. Eng., 191:108839, 2024.
G. E. P. Box. Evolutionary operation: A method for increasing industrial productivity. Journal of the Royal Statistical Society Series C, 6(2):81–101, June 1957. doi:10.2307/2985505. URL https://ideas.repec.org/a/bla/jorssc/v6y1957i2p81-101.html.
Table A.4: Linear split for each separation unit and splitter. Stream superscripts follow the flowsheet; the last column gives each unit's split fraction, the fraction of routed to the split-off stream.
| Unit | In | Split/Rem | Split fraction |
|---|---|---|---|
| Flash drum | :Ee,Ea,O,C; 0:A,V,W | ||
| Distillation column | : A; 0:otherwise | ||
| Absorber | : C;0: otherwise | ||
| Splitter I | (all j) | ||
| Splitter II | (all j) |
Table B.5: Parameter values used for the VAc model.
| Parameter | Value | Units |
|---|---|---|
| mol/kg s () | ||
| 40500 | J/mol | |
| 2.363 | mol/kg s () | |
| 52500 | J/mol | |
| R | 8.314 | J/mol K |
| P | 882.529 | kPa |
| 6.68 | ||
| 0.8 | - | |
| 385 | kg/ | |
| 0.001 | - | |
| (10.88, 7.8, 12.01, 0.4, 0.6, 384.39) | (mol/s, mol/s, mol/s, -, -, K) | |
| (20.20, 14.49, 22.30, 0.74, 0.6, 469.80) | (mol/s, mol/s, mol/s, -, -, K) | |
| (13.85, 13.85, 13.08, 1, 1, 423.15) | (mol/s, mol/s, mol/s, -, -, K) |
J. Bradbury, R. Frostig, P. Hawkins, M. J. Johnson, C. Leary, D. Maclaurin, G. Necula, A. Paszke, J. VanderPlas, S. Wanderman-Milne, and Q. Zhang. JAX: composable transformations of Python+NumPy programs, 2018. URL http://github.com/jax-ml/jax.
M. M. Câmara, A. D. Quelhas, and J. C. Pinto. Performance evaluation of real industrial RTO systems. Processes, 4(4):44, 2016.
B. Chachuat, B. Srinivasan, and D. Bonvin. Adaptation strategies for real-time optimization. Comput. Chem. Eng., 33(10):1557 – 1567, 2009.
R. Chen, K. Dave, T. J. McAvoy, and M. Luyben. A nonlinear dynamic model of a vinyl acetate process. Ind. Eng. Chem. Res., 42(20):4478–4487, 2003.
R. T. Chen, Y. Rubanova, J. Bettencourt, and D. K. Duvenaud. Neural ordinary differential equations. Adv. Neural Inf. Process. Syst., 31:6571–6583, 2018.
G. E. Constante, H. Chen, and C. Li. Enforcing hard linear constraints in deep learning models with decision rules. volume 38, pages 105075–105100, 2026.
C. M. Crowe. Data reconciliation—progress and challenges. J. Proc. Cont., 6(2-3):89–98, 1996.
C. R. Cutler and R. T. Perry. Real time optimization with multivariable control is required to maximize profits. Comput. Chem. Eng., 7:663–667, 1983.
P. Dake, M. R. Ilagan, S. Banerjee, S. L. Scott, and J. B. Rawlings. Identifying kinetic models from reactor measurements. J. Vac. Sci. Technol. A., 42(6), Sep 2024. ISSN 1520-8559. doi: 10.1116/6.0003846.
P. Dake, R. Bindlish, and J. Rawlings. Dataset for ‘A tale of perfect fit and phantom optima: how data-driven models can fail in real-time optimization’, Jul 2026. URL https://doi.org/10.5281/zenodo.21464342.
M. L. Darby, M. Nikolaou, J. Jones, and D. Nicholson. RTO: An overview and assessment of current practice. J. Proc. Cont., 21(6):874–884, 2011. ISSN 0959-1524.
J. F. Forbes, T. E. Marlin, and J. F. MacGregor. Model adequacy requirements for optimizing plant operations. Comput. Chem. Eng., 18(6):497–510, 1994. ISSN 0098-1354.
C. Fronk and L. Petzold. The vanishing gradient problem for stiff neural differential equations. Chaos, 35(11), 2025.
R. Golder, B. N. Roy, and M. Hasan. Daehardnet: A physics constrained neural network enforcing differential-algebraic hard constraints, 2025.
J. Heek, A. Levskaya, A. Oliver, M. Ritter, B. Rondepierre, A. Steiner, and M. van Zee. Flax: A neural network library and ecosystem for JAX, 2024. URL http://github.com/google/flax.
K. Hornik, M. Stinchcombe, and H. White. Multilayer feedforward networks are universal approximators. Neural Netw., 2(5):359–366, 1989.
P. Kidger. On Neural Differential Equations. PhD thesis, University of Oxford, 2021.
D. P. Kingma and J. Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
D. Krishnamoorthy and S. Skogestad. Real-time optimization as a feedback control problem—a review. Comput. Chem. Eng., 161:107723, 2022.
D. Krishnamoorthy, B. Foss, and S. Skogestad. Steady-state real-time optimization using transient measurements. Comput. Chem. Eng., 115:34–45, 2018.
P. Kumar and J. B. Rawlings. Structured nonlinear process modeling using neural networks and application to economic optimization. Comput. Chem. Eng., 177:108314, 2023. doi: https://doi.org/10.1016/j.compchemeng.2023.108314.
Y. LeCun, L. Bottou, G. B. Orr, and K.-R. Müller. Efficient backprop. In Neural networks: Tricks of the trade, pages 9–50. Springer, 2002.
D. C. Liu and J. Nocedal. On the limited memory bfgs method for large scale optimization. Math. Prog., 45(1): 503–528, 1989.
L. R. Lueg, V. Alves, D. Schicksnus, J. R. Kitchin, C. D. Laird, and L. T. Biegler. A simultaneous approach for training neural differential-algebraic systems of equations. arXiv preprint arXiv:2504.04665, 2025.
M. L. Luyben and B. D. Tyréus. An industrial design/control study for the vinyl acetate monomer process. Comput. Chem. Eng., 22(7-8):867–877, 1998.
A. Mukherjee and V. M. Zavala. Physics-constrained machine learning for chemical engineering. Curr. Opin. Chem. Eng., 51:101228, 2026.
M. R. Naysmith and P. L. Douglas. Review of real time optimization in the chemical process industries. 3(2): 67–87, 1995.
C. Pantelides, M. Baldea, A. T. Georgiou, B. Gopaluni, M. Mehmet, K. Sheth, V. M. Zavala, and C. Georgakis. From Automated to Autonomous Process Operations. Comput. Chem. Eng., 196, 2025. doi: https://doi.org/10.1016/j.compchemeng.2025.109064.
A. Papasavvas, T. de Avila Ferreira, A. G. Marchetti, and D. Bonvin. Analysis of output modifier adaptation for real-time optimization. Comput. Chem. Eng., 121:285–293, 2019.
W. Peng, Z.-S. Liu, and M. Boy. Spin-ode: Stiff physics-informed neural ode for chemical reaction rate estimation, 2025.
M. Raissi, P. Perdikaris, and G. E. Karniadakis. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. J. Comput. Phys., 378:686–707, 2019.
J. B. Rawlings and J. G. Ekerdt. Chemical Reactor Analysis and Design Fundamentals. Nob Hill Publishing, Santa Barbara, CA, 2nd, paperback edition, 2020. 664 pages, ISBN 978-0-9759377-4-7.
J. B. Rawlings, D. Angeli, and C. Bates. Fundamentals of economic model predictive control. In IEEE Conference on Decision and Control (CDC), pages 3851–3861, Maui, HI, December 2012.
P. D. Roberts and T. W. C. Williams. On an algorithm for combined system optimisation and parameter estimation. Automatica, 17(1):199–209, 1981.
J. Sansana, M. N. Joswiak, I. Castillo, Z. Wang, R. Rendall, L. H. Chiang, and M. S. Reis. Recent trends on hybrid modeling for industry 4.0. Comput. Chem. Eng., 151:107365, 2021.
A. M. Schweidtmann, D. Zhang, and M. Von Stosch. A review and perspective on hybrid modeling methodologies. Digital Chemical Engineering, 10:100136, 2024.
D. E. Seborg, T. F. Edgar, D. A. Mellichamp, and F. J. Doyle. Process Dynamics and Control. John Wiley and Sons, New York, fourth edition, 2017.
A. Sholokhov, Y. Liu, H. Mansour, and S. Nabi. Physics-informed neural ode (pinode): embedding physics into models using collocation points. Sci. Rep., 13(1):10166, 2023.
S. Skogestad. Self-optimizing control: The missing link between steady-state optimization and control. Comput. Chem. Eng., 24(2-7):569–575, 2000.
J. Thompson, B. M. Connors, V. M. Zavala, and O. S. Venturelli. Physics-constrained neural ordinary differential equation models to discover and predict microbial community dynamics. Proc. Natl. Acad. Sci. USA, 123(13): e2517661123, 2026.
A. Wächter and L. T. Biegler. On the implementation of a primal-dual interior-point filter line-search algorithm for large-scale nonlinear programming. Math. Prog., 106(1):25–57, 2006.
J. D. Ward, D. A. Mellichamp, and M. F. Doherty. Importance of process chemistry in selecting the operating policy for plants with recycle. Ind. Eng. Chem. Res., 43(14):3957–3971, 2004.
Supplementary material for “A tale of perfect fit and phantom optima: how data-driven models can fail in real-time optimization”
Prithvi Dake
Rahul Bindlish
James B. Rawlings
Department of Chemical Engineering, University of California, Santa Barbara, CA 93106, United States
Dow Chemical Company, TX, United States
S1 Learning-rate sweep and optimizer comparison
For reference, we restate the training problems whose learning rate is swept here. The concentration-measurement cases cmeas_rinit, cmeas, and cmeas_noise solve the structured training problem, Eq. (9) of the main paper,
while the two black-box cases bbox and bbox_noise solve the black-box training problem, Eq. (11) of the main paper,
The symbols are defined in the main paper. Every sweep in this section is performed at the fixed batch count used throughout the paper (the training trajectories are partitioned into batches of size during the stochastic ADAM phase); only the learning rate is varied.
Figures S1–S5 show the learning-rate sweep for each case, and every figure has the same four-panel layout. The top row is the training loss and the bottom row the validation loss, both on a logarithmic scale; the left column is ADAM alone and the right column is ADAM followed by
Corresponding author: prithvidake@ucsb.edu
L-BFGS. Panel (a) is therefore the training loss under ADAM, (b) the training loss under ADAM and then L-BFGS, (c) the validation loss under ADAM, and (d) the validation loss under ADAM and then L-BFGS. Within each panel we overlay one curve per learning rate across the full epoch budget, so a single panel shows both the learning-rate sweep and whether the loss has plateaued within that budget. In the right column, panels (b) and (d), the dashed vertical line at epoch 250 marks the switch from Adam to L-BFGS.
For cmeas and cmeas_noise, and for the two black-box cases, we select the learning rate that gives the lowest validation loss in panel (d) and confirm from the same panel that the validation loss has plateaued within the epoch budget.
cmeas_rinit is read differently. It is initialized at the weights at which the model recovers the plant optimum, so no learning rate is selected from it. In the paper, however we show results for the same learning rate as chosen for cmeas and cmeas_noise, i.e., 0.05. The dash-dotted horizontal line, labelled learning rate 0, is the loss at that initialization before any training step is taken.
(a)
Adam

(b)
Adam LBFGS
(c)

(d)

Epoch

Epoch
Figure S1: cmeas_rinit: drift away from the initialization. The model is initialized at the weights at which it recovers the plant optimum, marked by the dash-dotted line (learning rate 0, no training step taken). Under ADAM (left) the loss moves away from that line as training proceeds, so the optimizer leaves the basin it was handed. After the switch to L-BFGS at epoch 250 (right) the loss returns toward the initialization, so L-BFGS recovers part of what ADAM gave up. As the learning rate decreases, ADAM takes smaller steps and the curves stay at the initialization; this preserves the optimum only because it was supplied, not because training located it.

(b)
(c)

(d)


Figure S2: Learning-rate sweep for cmeas. The chosen learning rate is 0.05.

(b)
(c)

(d)


Figure S3: Learning-rate sweep for cmeas_noise. The chosen learning rate is 0.05.

(b)
(c)

(d)


Figure S4: Learning-rate sweep for bbox. The chosen learning rate is 0.01.

(b)
(c)

(d)


Figure S5: Learning-rate sweep for bbox_noise. The chosen learning rate is 0.01.