Manuscript Offprint
arXiv:2610.38496Accelerating Nonlinear MPC by Behavior Cloning with Separated Timescales: Application to Nuclear Reactor Load-Following
Perceval Beja-Battais Alain Grossetête Nicolas Vayatis
Abstract—Behavior Cloning (BC) of expert controllers for multiscale dynamical systems is challenging: state variables evolving at widely separated timescales induce highly nonlinear couplings that a shared latent space may fail to adequately represent, degrading closed-loop generalization. We propose Structured Representation Learning for Behavior Cloning (SRLBC), an architecture designed to leverage the physical knowledge of multiscale systems in which slow state variables, fast (stiff) state variables, and predictable exogenous inputs evolve at different timescales. On 500 long-horizon roll-outs of a pressurized water reactor (PWR) load-following benchmark — a high-dimensional, stiff industrial system with challenging safety constraints — and across 20 training seeds, separated embeddings systematically outperform shared embedding baselines on cumulative cost, imitation accuracy and constraint satisfaction. The resulting standalone policies approach NMPC closed-loop performance at a computational cost 15 times lower on average. Since standalone policies still leave a few percent of trajectories infeasible, we embed the learned policies in a safety-augmented approximate NMPC framework, in which the optimizer is only called when the predicted input sequence is not certified as safe. This yields controllers still 6.8 times faster than the NMPC controller on average, with a feasibility (i.e., constraint satisfaction) of at least 99.8% for all architectures, SRLBC retaining the lowest closed-loop cost. Under distribution shift, standalone BC policies degrade sharply: SRLBC degrades the least, and once safety-augmented, it retains a feasibility above 98% with the lowest closed-loop cost. Beyond the quantitative results, Jacobian-based sensitivity analysis shows that the resulting controller relies on a sparse and less redundant set of latent features, each attributable to a single group of physical variables, and aligned with the physical timescale decomposition of the system.
I. INTRODUCTION
For the past decades, sophisticated controllers have been designed to meet industrial requirements. Model Predictive Control (MPC) is a widely adopted methodology [2] that repeatedly solves an Optimal Control Problem (OCP) minimizing a cost function subject to dynamics and constraints. Nonlinear MPC (NMPC) extends this to nonlinear settings, but at the cost of significant online computational burden [3], [4], which limits its practical deployment in resource-constrained industrial pipelines [5].
A preliminary short version of this work has been accepted and will be presented at the NeurIPS 2026 Workshop "AI Foundations for Power Grids: From Models to Deployment at Scale" (non-archival), https://ai4powergrids.github.io/cfp.html. The present paper substantially extends that work with 20 random seeds, in-distribution and out-of-distribution experiments, and a safety-augmented pipeline [1].
P. Beja-Battais and N. Vayatis are with Université Paris Saclay, ENS Paris Saclay, CNRS, Centre Borelli, 91190, Gif-sur-Yvette, France name.surname@ens-paris-saclay.fr
A. Grossetête is with Framatome, Reactor Process Department, 92400, Courbevoie, France alain.grossetete@framatome.com

Fig. 1: Proposed multi-stream architecture: we encode the input data in separated latent spaces and the controller acts on the product latent space.
ML for MPC. Machine Learning (ML) has emerged as a principled means of reducing this online cost, giving rise to the Learning-Based MPC literature [6]. Existing approaches either learn surrogate models of the dynamics [7], [8] or directly approximate the MPC controller [9], [10]. Behavior Cloning (BC) is a simple methodology consisting in mimicking the behavior of an expert through supervised learning. Such methods offer real-time deployment without online optimization, while retaining near-optimal performance when the learned policy generalizes well [11]. Safety-augmented neural networks [1] combine the best of both worlds: the output of a neural network policy, e.g., trained through BC, is applied to the system whenever it is certified as safe, and the MPC expert is called otherwise.
Representation Learning for Behavior Cloning. For BC, a critical ingredient for generalization is the quality of the state representation fed to the controller. Representation learning [12] provides tools to embed state variables into task-relevant representations [13]. However, what constitutes a good representation depends on multiple, sometimes competing criteria: expressivity, preservation of geometric structure, task performance, and interpretability [14]. Prior works, such as Embed to Control (E2C) [15], leverage representation learning for control systems while imposing linear dynamics over a shared latent space. This constraint can be both restrictive and ill-suited to complex industrial systems. This limitation is most severe for multiscale dynamical systems, which arise naturally in physics and engineering [16]. When state variables evolve at widely separated timescales, a single shared embedding may conflate slow and fast dynamics. This can induce a degraded representation and a less interpretable controller. In control theory, exploiting timescale separation in the controller structure is well established: composite control [17] and MPC schemes for singularly perturbed systems [18], [19] decompose the design accordingly. How-ever, these methods still optimize online. In this work, we transpose this principle to the learned representation of an explicit policy. In practice, multiscale systems are typically stiff, preventing naive numerical integration. They can also exhibit nonsmooth, nonconvex cost landscapes that challenge standard solvers [20], [21]. For neural networks, structuring a latent representation into distinct components is not new in itself: disentangled representation learning recovers statistically independent generative factors in an unsupervised manner [22], and multi-modal architectures separate encoders across heterogeneous input modalities [23], [24]. In contrast, our decomposition is neither discovered in a task-agnostic manner nor imposed across data modalities: it is prescribed by the known timescale separation of the physical system, a structural property already available from prior modeling. The performance of this decomposition is evaluated directly on closed-loop control performance and fidelity to an expert controller, rather than on reconstruction or disentanglement metrics.
Contributions. To this end, we introduce Structured Representation Learning for Behavior Cloning (SRLBC), a simple architecture for BC of expert controllers of multiscale nonlinear dynamical systems, where state variables evolve at widely separated timescales. Our contributions are as follows.
A timescale-aware multi-stream architecture. We encode slow state variables, fast state variables, and exogenous input variables into separate latent spaces. Then, a structured closed-loop controller is trained over the product latent space. The architecture is summarized in Fig. 1. Separating timescales improves closed-loop performance compared to a shared embedding baseline, and yields a controller relying on fewer, less redundant latent features. These gains are significant and consistent across 20 training seeds.
Safe deployment via safety augmentation. Embedding the learned policies within the safety-augmented approximate NMPC framework of [1] calls the optimizer at less than 1.6% of the timesteps, yielding a 6.8-fold speedup over the NMPC controller with a feasibility of at least 99.8%. In this configuration, SRLBC also achieves a lower closed-loop cost than the baselines, including on out-of-distribution transients.
Validation on an industrial benchmark. We demonstrate the efficiency of SRLBC on a challenging full-scale industrial benchmark: optimal load-following control of a PWR. We also conduct an interpretability analysis: separated embeddings yield sparser, more interpretable and less redundant representations than shared ones, aligned with the system's physics (Fig. 4).
This work is organized as follows. Section II defines the problem structure and reviews related work such as approximate MPC, latent-space control, and imitation learning. Section III presents the architecture and training procedure. Section IV details the experimental validation. Section V discusses results, limitations, and perspectives.
where the state decomposes into slow and fast components, with timescales separated by the stiffness parameter .
Our aim is to design an explicit state-feedback controller, without online optimization, mimicking the behavior of an expert control input , obtained by solving the nonlinear OCP
In the following, we assume that (2) can be solved by an NMPC scheme, which defines the NMPC controller . However, this scheme may be too slow for embedded deployment in industrial processes, which is why we aim to imitate it.
Representations for control. An encoder is a learned transformation of input variables revealing the information relevant to a specified task [13]. E2C [15] learns representations of the state variables in which the dynamics are approximately linear, enabling standard MPC tools. We choose instead to prioritize the preservation of the multiscale structure: we encode the slow, fast and exogenous variables with three separate encoders. We consider latent representations of sufficiently large dimension (but not unnecessarily large). Indeed, an overly restrictive bottleneck could discard complex couplings pertinent for designing control actions, while a larger representation does not necessarily improve control performance (see Section IV, larger baseline).
BC and safety. Imitation Learning (IL) consists of a class of methods in which a policy is learned by observing an expert's demonstration [26]. The simplest IL framework is BC [27]. It assumes access to a dataset of expert control inputs and trajectories , and learns a mapping . However, learning such policies for complex systems can be challenging: a standard issue is the offline computational cost required to generate a representative set of demonstrations from . To safely deploy a learned clone of , one can either (i) define a Robust MPC (RMPC) problem that ensures statistical (safety) guarantees on the clone [28], or (ii) integrate the policy inside a safety pipeline calling the NMPC controller if the neural policy is not safe (e.g., when it does not satisfy the constraints) [1]. In some industrial contexts, (i) may be out of reach: the assumptions required by statistical learning theory can be hard to verify, or the resulting bounds too loose to yield applicable guarantees.
Moreover, for safety-critical applications, we emphasize the interpretability of , at the expense of the network's complexity — and thus of its statistical guarantees.
III. PROPOSED FRAMEWORK
Designing the controller and training the ensemble. Our model consists of four components: a slow-state encoder , a fast-state encoder , an exogenous-variable encoder , and a latent controller . The entire architecture, summarized in Fig. 1, is trained via BC to approximate the NMPC controller by minimizing the BC loss
where .
Compared with a naive shared embedding, this architectural prior constrains the encoding, not the decision: each encoder summarizes a single group of variables, while the nonlinear controller can still represent arbitrary couplings between the latent blocks. The prior is thus that couplings should be resolved at the controller level, rather than mixed from the first layer. Although a sufficiently expressive shared embedding could, in principle, recover the same decomposition, explicitly enforcing it substantially reduces the space of admissible representations. We motivate this prior for our application in Section IV.
Enforcing decorrelation. We do not restrict the controller to be linear as in E2C [15]. Still, it should be designed to be as simple and expressive as possible for the sake of interpretability. To this end, enforcing independence between the components of the embedding can be relevant. This can be done in practice during training by learning decorrelated components in the embeddings, e.g., by minimizing , . We investigate this hypothesis on our structured encoder.
Finetuning with DAgger. Dataset Aggregation (DAgger) [29] is an iterative algorithm for policy refinement that collects the expert's actions along trajectories generated by the current policy, thereby accumulating new data points in regions where it may make errors. One round of DAgger is included in the training pipeline of every policy considered in this work, baselines included.
IV. EXPERIMENTS
System dynamics. The goal is to design a closed-loop controller for the load-following of PWRs. We use a simplified version of the model from [30]. The dynamical system is described by the slow state variable , gathering the iodine and xenon densities and the boron concentrations, the fast state variable , gathering the inlet enthalpy, the control rod position and the neutronic power in each axial mesh, and the exogenous input variable , i.e., the turbine power profile, known 30 minutes in advance. Its dynamics are given by 2:
where I, X, P ∈ are discretized along the core vertical axis. The control input variable, , represents dilutions or borations from a human operator. This system is highly nonlinear due to multiple factors: stiffness arises from the fast-evolving coupled subsystem , with challenging nonlinearities induced by the reactivity (a highly nonlinear function, depending on all the state variables of the system [31], [32]). Typically, the fast dynamics from system (4) reach equilibrium on timescales shorter than one second, whereas the slow dynamics evolve over timescales ranging from minutes to hours. Consequently, one can introduce a small stiffness parameter representing the typical ratio between the two timescales. Moreover, the control input variable acts differently depending on its sign, and at , the quantity is not differentiable with respect to . We use the notations from previous sections to designate the slow and fast parts of the dynamics, and refer to system (4) for the specific equations. The high dimension of the problem, with , , , induces a non-trivial mapping .
Why separate the timescales in this system. System (4) is coupled but heavily structured. The boron subsystem is driven only by u, and (I, X) act as low-pass filters of P with time constants of several hours: over the 30-min NMPC horizon, fast transients of z barely influence x. Conversely, z depends strongly on x through . Since , z quickly converges to a quasi-steady state [17], and the remaining information it carries mostly describes fast transients. Encoding each timescale separately thus reflects
follows the equation
GF4 is a discontinuous profile. All the other undefined parameters are either scalar or matrix constants.

Fig. 2: Results of the NMPC controller (pink) vs. several methodologies on a 24h example transient. In blue, we plot the controller trained on a shared embedding (BC Baseline), in orange, trained on the structured embedding (SRLBC) and in green on structured embeddings with enforced decorrelation (SRLBC + Decor.). Top-left: turbine power, i.e., exogenous input variable . Top-right: control input sequences of each method. Bottom-left: axial offset deviation, linked to both the stage cost function and safety limit . Bottom-right: integral cost function .
the singularly perturbed structure of (1), while the coupling between the slow manifold and the fast transients is left to the controller.
Training data acquisition. To design the dataset , a large number of simulations were collected in which the NMPC controller, in the spirit of [30], solves (2) with
where is the axial offset of the core power distribution, and . In practice, and penalize the same quantity, but in a different way: enforces low distance on average, whereas avoids strong oscillations during load-follows (see Figs. 2 and 3). This OCP involves a non-convex, nonlinear cost function and non-convex nonlinear constraints over the complex multiscale system (4), which explains why statistical bounds on a BC controller are very hard to derive. The simulations were sampled using a random transient generator which produces realistic random exogenous sequences of (see [33]).
NMPC formulation and solver. The OCP is transcribed by single shooting over a horizon of steps of min. The control input is piecewise constant over three intervals of 10 min, so that outputs with kg/s [30], and the constraint is enforced at every step. The stiff dynamics are integrated with
a dedicated stiff solver, and the resulting nonlinear program is solved with IPOPT [34] via CasADI [35] (tolerance 0.1, at most 30 iterations for fast inference). Depending on the state and exogenous variables, a single solve can take up to 1 min. In total, approximately 80 000 training points of the form were collected through simulations of approximately 260 trajectories of 48 hours, for a cumulated offline cost of approximately 24 hours (5 to 6 minutes of wall-clock time per trajectory on average). The DAgger round then expands the training set of each policy to approximately 115 000 points (i.e., about 400 trajectories).
Designing the encoders and the controller. We used a 2-layer MLP with neurons per hidden layer and ReLU activation for each encoder . The controller block has the same architecture. The encoders were pretrained on the reconstruction loss, after which the main training consists of simultaneously optimizing the encoders and controllers on the BC loss (3) in order to finetune the encoders specifically for control tasks. The dimensions of the last embedding layer of the encoders were selected by comparing a validation BC loss over all possible 91 combinations in , so that the concatenated layer contains representations of dimension larger than or equal to that of the input variables. This latent-dimension search is specific to the separated architecture, which must allocate capacity across three constrained subspaces a priori. We compare the performance
| MethodEmbed. (Size) | Standalone (without Safety Augmentation) | Safety-Augmented [1] | ||||||
|---|---|---|---|---|---|---|---|---|
| Cost Ratio to NMPC | Rel. Gap to NMPC | Constraint Satisfaction | Time (s) | Cost Ratio to NMPC | Constraint Satisfaction | Time (s) | Rejection Rate | |
| BC Baseline (64) | 1.166 ± 0.029 | (9.9 ± 1.0) · 10⁻³ | 94.2 ± 1.7% | 20.2 ± 0.1 | 1.094 ± 0.022 | 99.8 ± 0.1% | 46.3 ± 1.0 | 1.59 ± 0.03% |
| BC Baseline (128) | 1.130 ± 0.017 | (8.8 ± 0.4) · 10⁻³ | 93.6 ± 1.0% | 20.2 ± 0.1 | 1.074 ± 0.010 | 99.8 ± 0.2% | 46.2 ± 1.2 | 1.56 ± 0.02% |
| SRLBC (64) | 1.074 ± 0.009 | (7.0 ± 0.4) · 10⁻³ | 97.4 ± 0.7% | 20.3 ± 0.1 | 1.053 ± 0.005 | 99.9 ± 0.1% | 45.6 ± 1.1 | 1.56 ± 0.01% |
| SRLBC (64) + Decor. | 1.083 ± 0.012 | (7.5 ± 0.4) · 10⁻³ | 97.0 ± 1.3% | 20.3 ± 0.1 | 1.057 ± 0.006 | 99.9 ± 0.1% | 46.0 ± 1.2 | 1.57 ± 0.02% |
| NMPC | 1.00 | 0 | 100.0% | 311.6 ± 12.2 | 1.00 | 100.0% | 311.6 ± 12.2 | — |
TABLE I: Comparison between the different methodologies on 500 test roll-outs of 48h, on which the NMPC controller is feasible by construction. Standalone: the learned policy is applied directly. Safety-augmented: the policy output is applied when certified safe by forward simulation, and the NMPC controller is called otherwise [1]. The rejection rate is the proportion of timesteps at which the policy output is not certified. Cost ratio to NMPC , Rel. gap to NMPC . Constraint satisfaction (or feasibility) measures the proportion of 48h roll-outs respecting the constraint at every timestep. Each metric is averaged over the test roll-outs, and results are displayed as Mean Std over 20 training seeds. For , the standard deviation of the computation time is taken over the 500 roll-outs. Bold values indicate the best learned policy for each metric. BC Baseline indicates the results with the shared encoder , SRLBC with the proposed methodology , and Decor. indicates that the embedding is enforced to learn decorrelated components.
of the proposed methodology with a shared embedding of dimension on . For the shared baseline, no such decomposition needs to be chosen. With this methodology, we found , , . Shared embeddings and separated embeddings share the same total latent dimension , ensuring a fair comparison. We also compared our methodology against a larger encoder-controller baseline, with neurons per layer, and a 2d-dimensional embedding. Finally, we trained the same architecture on the hybrid loss given by
enforcing decorrelation, as stated previously (Decor. in Tables I–III). The hyperparameter was fixed to by optimizing over the log-grid .
Evaluation datasets. We evaluate the policies on two test sets. The in-distribution set contains new transients sampled from the same generator as the training set (Table I, and Table III, left). The out-of-distribution (OOD) set is produced by a modified transient generator, which draws abrupt changes in the setpoint during power variations (e.g., Fig. 3). The setpoint remains known 30 minutes in advance, but its direction can be reversed at short notice: this represents real-life scenarios in which an opposite directive had been planned and is changed within the last 30 minutes. Such transients are never seen during training and are harder to follow (Table II, and Table III, right).
In-distribution results. Each architecture was trained with 20 different random seeds, and each resulting policy was evaluated on a test set of 500 realistic feasible transients of 48h, i.e., load-following scenarios on which the NMPC controller satisfies the safety constraint and thus provides a valid reference. Table I reports the mean and standard deviation across seeds. SRLBC reduces the excess closed-loop cost with respect to the NMPC controller from 16.6% (13.0% for the larger baseline) to 7.4%, and the gap to its control inputs by 30%, further supporting the idea that separated embeddings help the learned policy to better approximate
| MethodEmbed. (Size) | Standalone | Safety-Augmented [1] | ||
|---|---|---|---|---|
| Cost Ratio | Const. Satisfaction | Cost Ratio | Const. Satisfaction | |
| BC Baseline (64) | 4.71 ± 1.47 | 10.2 ± 6.7% | 1.260 ± 0.092 | 98.7 ± 0.5% |
| BC Baseline (128) | 4.30 ± 1.20 | 11.8 ± 5.7% | 1.216 ± 0.055 | 98.7 ± 0.7% |
| SRLBC (64) | 2.89 ± 0.76 | 24.8 ± 11.5% | 1.138 ± 0.039 | 98.6 ± 0.8% |
| SRLBC (64) + Decor. | 3.18 ± 0.95 | 25.6 ± 7.2% | 1.183 ± 0.080 | 98.5 ± 0.7% |
| NMPC | 1.00 | 100.0% | 1.00 | 100.0% |
TABLE II: Out-of-distribution evaluation on 175 feasible transients: cost ratio to the NMPC controller and constraint satisfaction, in standalone and under safety augmentation. Mean Std over 20 training seeds.
the NMPC controller. It also raises standalone feasibility from 94.2% to 97.4%. The differences between SRLBC variants and both baselines in cost, imitation accuracy and feasibility are significant (one-sided Mann-Whitney tests across seeds with Holm correction, ), and SRLBC is also markedly less sensitive to the training seed (standard deviation of the cost ratio divided by 2 to 3). Enforcing decorrelation preserves most of these gains, at a marginal loss in cost and imitation accuracy and with a comparable feasibility (97.0% vs. 97.4%): its benefit lies in the structure of the representation rather than in closed-loop performance. In contrast, doubling the size of the baseline improves its cost but not its feasibility (93.6% vs. 94.2%). Overall, the main result supports our central hypothesis: separating timescales improves both the closed-loop performance and the fidelity to . This suggests that the main bottleneck for a more efficient BC controller is not only the network's complexity, which is larger for the second baseline, but also the quality and variety of the learned representations.
Out-of-distribution (OOD) results. We then evaluated the same policies, without retraining, on 175 feasible OOD transients (Table II). The performance of standalone policies heavily degrades under this shift: their closed-loop cost reaches 3 to 5 times that of the NMPC controller, and at most a quarter of the trajectories remain feasible. SRLBC still degrades markedly less than the baselines, with twice the feasibility and an excess cost almost halved (Holm-corrected ), but no learned policy can be deployed standalone

Fig. 3: Out-of-distribution infeasible transient: the power setpoint abruptly changes direction during power variations (top-left). Both the NMPC controller (pink) and the SRLBC (blue) policies fail to satisfy the safety constraint throughout this transient.
in this regime.
Safety-augmented results. We implemented the safety-augmented pipeline from [1]. At each timestep, the input sequence predicted by the policy is simulated over the prediction horizon and applied if it satisfies at every step. Otherwise, the NMPC controller is called. Since computing a terminal set is out of reach for this high-dimensional stiff system, we use it without terminal ingredients, i.e., without recursive feasibility guarantees. In distribution (Table I, right), it drastically improves feasibility (from 94–97% to 99.8–99.9%), while maintaining a acceleration factor across all policies due to a small rejection rate ( ). In this context, SRLBC still outperforms both baselines, with a lower cost ratio to the NMPC controller (1.053 vs. 1.074 and 1.094, Holm-corrected ). Out of distribution, the rejection rate only doubles (from 1.6% to 3.1%), feasibility returns to 98.5–98.7% for all architectures, and the controller remains faster than the NMPC controller on average (Table II, right). Again, SRLBC retains the lowest cost ratio (1.138 vs. 1.216 and 1.260 for the baselines, Holm-corrected ). The decorrelated variant, however, loses most of this advantage out of distribution (1.183).
Computational time and hardware. Roll-outs using the NMPC controller yield its trajectory in 5 to 6 minutes for 48h simulations. In comparison, roll-outs using any BC-based controller are rapid: the online evaluation of the controller is almost instantaneous, and does not depend on the exogenous input sequence. Hence, the roll-outs using standalone BC policies are always obtained in approximately 20 seconds, which is almost fully due to the simulation cost of the
trajectories. This yields an acceleration of a factor of 15 compared to the usual NMPC controller (see Table I). All closed-loop roll-outs, for both the NMPC controller and the learned controllers, were run on a single core of an Intel Xeon Platinum 8260 (2.40 GHz), so that computation times are directly comparable. These timings are measured on a workstation CPU, whereas the target is an embedded platform with much tighter memory and compute budgets, where online optimization is expected to be much slower: the relevant quantity is the number of optimizer calls avoided (up to 98.4%), rather than the absolute timings. Each network was trained with PyTorch [36] on a single NVIDIA V100 GPU, in less than 10 minutes per model.
Analysis of the learned representations and interpretability of the controller. With SRLBC, one can more easily see which physical quantities the controller relies on. With a shared embedding, this information is distributed across all latent features. In Fig. 4, we plot the Jacobian matrices of the embeddings for both the shared and the separated encoders, the Jacobian of the controller with respect to these embeddings, and the correlation matrices between the latent components. By design, the separated architecture imposes a block-structured decomposition of the latent space, since , , and . This structure is not a finding in itself, but it makes each latent component attributable to a single group of physical variables. According to the Jacobian sensitivity analysis, the output of the controller is mainly driven by the contributions of the boron concentration (which is natural as the controller injects boron or water into the core) and the fast

(a) Shared: Jacobian.
(b) SRLBC + Decor.: Jacobian.

(c) Shared: correlation.
(d) SRLBC + Decor.: correlation.
Fig. 4: Top: averaged absolute Jacobian coefficients of each embedding (normalized by the input variances); left histograms give the relative importance of the component for the controller output . Bottom: correlation matrices between the components of each embedding.
| Method | In distribution | Out of distribution | ||
|---|---|---|---|---|
| Embed. (Size) | Standalone | Safety-Aug. [1] | Standalone | Safety-Aug. [1] |
| BC Baseline (64) | 1.44 ± 0.14 | 0.994 ± 0.003 | 24.1 ± 12.2 | 1.001 ± 0.005 |
| BC Baseline (128) | 1.34 ± 0.13 | 0.995 ± 0.003 | 18.0 ± 9.3 | 1.000 ± 0.004 |
| SRLBC (64) | 1.20 ± 0.06 | 0.995 ± 0.004 | 12.0 ± 7.6 | 1.003 ± 0.003 |
| SRLBC (64) + Decor. | 1.21 ± 0.08 | 0.996 ± 0.001 | 10.2 ± 7.0 | 1.003 ± 0.005 |
| NMPC | 1.00 | 1.00 | 1.00 | 1.00 |
TABLE III: Constraint violation ratio relative to that of the NMPC controller, on transients that are infeasible even for the latter. Mean Std over 20 training seeds.
state variable (which is the only state argument of the cost and constraint functions). The rest of the state and exogenous variables mostly help regularize. More strikingly, is much more concentrated for SRLBC, whereas the shared embedding spreads the contributions over many components. Its correlation matrix also reveals a much more redundant representation, while enforcing decorrelation yields nearly independent components within each block.
Behavior on infeasible transients. In operation, a power demand may exceed what the reactor can follow within the safety margins. We therefore also compared the policies on a separate set of 500 aggressive transients that are infeasible even for the NMPC controller. Since no controller is feasible
there with respect to the strict safety constraints, we compare the relative constraint violation to that of the NMPC controller (Table III). In standalone, SRLBC exceeds this violation by about 20%, against 34 to 44% for the baselines. Under the safety-augmented pipeline, all policies match the NMPC controller: when the demand leaves the admissible domain, the certified controllers do not degrade safety further than the NMPC itself. The cost ordering is also preserved (not shown in Table III: cost ratio of 1.05 for SRLBC vs. 1.11 for the baselines in standalone, and 1.012 vs. 1.017–1.025 under safety augmentation). The same holds on infeasible out-of-distribution transients: standalone violations reach 10 to 24 times that of the NMPC controller (SRLBC variants reducing that of the baselines by a third to a half) while safety augmentation again matches it.
V. DISCUSSION
What safety augmentation does and does not equalize. Once a certification step is added, feasibility, computation time and rejection rate become nearly independent of the architecture, in distribution as well as out of distribution. Although SRLBC imitates the NMPC controller more accurately, all policies are rejected at almost the same rate, which suggests that rejections are driven by a few intrinsically hard situations rather than by the average imitation error. However, what the safety filter does not equalize is closed-loop performance: it only checks the safety of the proposed input sequence, but its quality remains closely related to the policy. The benefit of a structured representation therefore remains visible in the closed-loop cost, and even more so for transients outside the training distribution. Overall, the filter provides safety, while the policy provides performance.
Limitations and perspectives. First, without terminal ingredients, the safety-augmented pipeline provides no recursive feasibility guarantee: in fact, feasibility remains slightly below that of the NMPC controller, and the certification step relies on the simulation model being accurate. Second, the decorrelation penalty improves the structure of the representation but has very limited impact on the closed-loop performance. It is even less robust out of distribution. Finally, the timescale partition must be known a priori, and the latent dimensions of the three encoders have to be selected by expert knowledge or prior hyperparameter optimization (as we did). Still, designing simpler and more interpretable BC controllers is a further step towards autonomous explicit feedback laws of the form approximating optimization-based controllers as is traditional in control theory. Generalization to systems with three or more timescales could be done in the future by similarly designing a timescale-aware encoder, allowing further interpretability and more efficient end-to-end controllers. Statistical learning bounds on the deviation between SRLBC and the NMPC controller could also bound the rejection rate, and hence the computational load of the fall-back phase, enabling provably safe and fast controllers. Industrially, this is particularly relevant to deploy new online control strategies (e.g., with different cost or constraint functions) that currently remain too computationally expensive.
VI. CONCLUSION
In this paper, we introduced SRLBC, a simple architecture for designing behavioral clones of experts for multiscale nonlinear control systems. Our results suggest that, for a network expressive enough to approximate an NMPC controller, further gains can come from structuring the controller itself. Enforcing physics-based prior knowledge through a structured embedding layer for end-to-end BC enhances performance and interpretability of the resulting controller on a challenging PWR-simulator benchmark. Our methodology achieves lower integral cost, constraint violations, and more accurate imitation of the expert while maintaining a structured embedding, consistently across 20 training seeds. Combined with the safety-augmented approximate NMPC framework of [1], the learned policies run up to 7 times faster than the NMPC controller with a feasibility of at least 99.8%, SRLBC retaining the lowest closed-loop cost. Out of distribution, standalone policies fail, but the certified combination remains feasible on more than 98% of the trajectories, again with the lowest cost for SRLBC.
REFERENCES
[1] H. Hose, J. Köhler, M. N. Zeilinger, and S. Trimpe, "Approximate nonlinear model predictive control with safety-augmented neural networks," IEEE Transactions on Control Systems Technology, 2025. [2] S. J. Qin and T. A. Badgwell, "A survey of industrial model predictive control technology," Control engineering practice, vol. 11, no. 7, pp. 733–764, 2003. [3] A. V. Rao, "A survey of numerical methods for optimal control," Advances in the Astronautical Sciences, vol. 135, no. 1, pp. 497–528, 2009. [4] M. Diehl, H. J. Ferreau, and N. Haverbeke, "Efficient numerical methods for nonlinear MPC and moving horizon estimation," in Nonlinear model predictive control. Springer, 2009, pp. 391–417. [5] F. Fiedler, B. Karg, L. Lüken, D. Brandner, M. Heinlein, F. Brabender, and S. Lucia, "do-mpc: Towards FAIR nonlinear and robust model predictive control," Control Engineering Practice, vol. 140, p. 105676, 2023. [6] L. Hewing, K. P. Wabersich, M. Menner, and M. N. Zeilinger, "Learning-based model predictive control: Toward safe learning in control," Annual Review of Control, Robotics, and Autonomous Systems, vol. 3, no. 1, pp. 269–296, 2020. [7] R. R. Hossain and R. Kumar, "Machine learning accelerated real-time model predictive control for power systems," IEEE/CAA Journal of Automatica Sinica, vol. 10, no. 4, pp. 916–930, 2023. [8] P. Beja-Battais, G. Dupré, A. Grossetête, and N. Vayatis, "Accelerating full-scale nonlinear model predictive control via surrogate dynamics optimization," arXiv preprint arXiv:2604.05566, 2026. [9] Y. Vaupel, N. C. Hamacher, A. Caspari, A. Mhamdi, I. G. Kevrekidis, and A. Mitsos, "Accelerating nonlinear model predictive control through machine learning," Journal of process control, vol. 92, pp. 261–270, 2020. [10] Z. Li, X. Wang, L. Chen, R. Paleja, S. Nageshrao, and M. Gombo-lay, "Faster model predictive control via self-supervised initialization learning," arXiv preprint arXiv:2408.03394, 2024. [11] Z. Wu, P. D. Christofides, W. Wu, Y. Wang, F. Abdullah, A. Alna-jdi, and Y. Kadakia, "A tutorial review of machine learning-based model predictive control methods," Reviews in Chemical Engineering, vol. 41, no. 4, pp. 359–400, 2025. [12] Y. Bengio, A. Courville, and P. Vincent, "Representation learning: A review and new perspectives," IEEE transactions on pattern analysis and machine intelligence, vol. 35, no. 8, pp. 1798–1828, 2013. [13] T. Lesort, N. Díaz-Rodríguez, J.-F. Goudou, and D. Fillati, "State representation learning for control: An overview," Neural Networks, vol. 108, pp. 379–392, 2018.
[14] D. Charte, F. Charte, M. J. del Jesus, and F. Herrera, "An analysis on the use of autoencoders for representation learning: Fundamentals, learning task case studies, explainability and challenges," Neurocomputing, vol. 404, pp. 93–107, 2020. [15] M. Watter, J. Springerberg, J. Boedecker, and M. Riedmiller, "Embed to control: A locally linear latent dynamics model for control from raw images," Advances in neural information processing systems, vol. 28, 2015. [16] M. F. Horstemeyer, "Multiscale modeling: a review," Practical aspects of computational chemistry: methods, concepts and applications, pp. 87–135, 2009. [17] P. Kokotović, H. K. Khalil, and J. O'reilly, Singular perturbation methods in control: analysis and design. SIAM, 1999. [18] X. Chen, M. Heidarinejad, J. Liu, and P. D. Christofides, "Composite fast-slow MPC design for nonlinear singularly perturbed systems," AIChE Journal, vol. 58, no. 6, pp. 1802–1811, 2012. [19] M. Ellis, M. Heidarinejad, and P. D. Christofides, "Economic model predictive control of nonlinear singularly perturbed systems," Journal of Process Control, vol. 23, no. 5, pp. 743–754, 2013. [20] Y. Mao, M. Szmuk, X. Xu, and B. Açikmese, "Successive convexification: A superlinearly convergent algorithm for non-convex optimal control problems," arXiv preprint arXiv:1804.06539, 2018. [21] A. Nurkanovic, "Numerical methods for optimal control of nonsmooth dynamical systems," Ph.D. dissertation, PhD thesis, University of Freiburg, 2023. [22] F. Locatello, S. Bauer, M. Lucic, G. Raetsch, S. Gelly, B. Schölkopf, and O. Bachem, "Challenging common assumptions in the unsupervised learning of disentangled representations," in international conference on machine learning. PMLR, 2019, pp. 4114–4124. [23] A. Radford, J. W. Kim, C. Hallacy, A. Ramesh, G. Goh, S. Agarwal, G. Sastry, A. Askell, P. Mishkin, J. Clark et al., "Learning transferable visual models from natural language supervision," in International conference on machine learning. PMLR, 2021, pp. 8748–8763. [24] N. M. Shafuillah, Z. Cui, A. A. Altanzaya, and L. Pinto, "Behavior transformers: Cloning k modes with one stone," Advances in neural information processing systems, vol. 35, pp. 22955–22968, 2022. [25] C. Kuehn et al., Multiple time scale dynamics. Springer, 2015, vol. 191. [26] J. Hua, L. Zeng, G. Li, and Z. Ju, "Learning for a robot: Deep reinforcement learning, imitation learning, transfer learning," Sensors, vol. 21, no. 4, p. 1278, 2021. [27] F. Torabi, G. Warnell, and P. Stone, "Behavioral cloning from observation," arXiv preprint arXiv:1805.01954, 2018. [28] M. Hertneck, J. Köhler, S. Trimpe, and F. Allgöwer, "Learning an approximate model predictive controller with guarantees," IEEE Control Systems Letters, vol. 2, no. 3, pp. 543–548, 2018. [29] S. Ross, G. Gordon, and D. Bagnell, "A reduction of imitation learning and structured prediction to no-regret online learning," in Proceedings of the fourteenth international conference on artificial intelligence and statistics. JMLR Workshop and Conference Proceedings, 2011, pp. 627–635. [30] G. Dupré, A. Grossetête, P. Chevreil, and M. Yagoubi, "Enhanced flexibility of PWRs (Mode A) using an efficient NMPC-based bo-ration/dilution system," in 2021 european control conference (ECC). IEEE, 2021, pp. 1092–1098. [31] P. Reuss, Précis de neutronique. EDP sciences, 2003. [32] W. M. Stacey, Nuclear reactor physics, 3rd ed. John Wiley & Sons, 2018. [33] P. Beja-Battais, A. Grossetête, and N. Vayatis, "Structured representation learning for behavior cloning: How can we learn to safely control a nuclear power plant?" Advances in neural information processing systems, AI4PowerGrids Workshop, 2026. [34] A. Wächter and L. T. Biegler, "On the implementation of an interior-point filter line-search algorithm for large-scale nonlinear programming," Mathematical programming, vol. 106, no. 1, pp. 25–57, 2006. [35] J. A. Andersson, J. Gillis, G. Horn, J. B. Rawlings, and M. Diehl, "CasADi: a software framework for nonlinear optimization and optimal control," Mathematical Programming Computation, vol. 11, no. 1, pp. 1–36, 2019. [36] A. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, Z. Lin, N. Gimelshein, L. Antiga et al., "PyTorch: An imperative style, high-performance deep learning library," Advances in neural information processing systems, vol. 32, 2019.