Model-Based Closed-Loop Control Algorithm for Stochastic Partial Differential Equation Control
Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 5381-5389.
https://doi.org/10.24963/ijcai.2025/599
Keywords
- Machine Learning: ML: Applications
- Multidisciplinary Topics and Applications: MTA: Physical sciences
Abstract
Neural operators have demonstrated promise in modeling and controlling systems governed by Partial Differential Equations (PDEs). Beyond PDEs, Stochastic Partial Differential Equations (SPDEs) play a critical role in modeling systems influenced by randomness, with applications in finance, physics, and beyond. However, controlling SPDE-governed systems remains a significant challenge. On the one hand, the regularity of the system's state (which can be intuitively understood as smoothness) deteriorates, making modeling and generalization more challenging. On the other hand, this stochasticity also renders control more unstable and thus less accurate. To address this gap, we propose the Model-Based Closed-Loop Control Algorithm (MB-CC), the first model-based closed-loop control method for SPDEs. MB-CC introduces two key innovations to enhance control robustness and efficiency: a Regularity Feature (RF) block and a closed-loop strategy with an operator-encoded policy network. The RF block, inspired by the regularity structure theory of SPDEs, addresses noise-induced irregularities by transforming the network's input—including the system state and noise-perturbed external forces—into a refined feature space for improved forward prediction. Compared to previous works using regularity features, we introduce a new parameterization, data augmentation, and extend the RF block as a plug-and-play component. Additionally, to achieve closed-loop control, we introduce an operator-encoded policy network to map the current state to optimal control, which integrates physical priors and swiftly makes decisions based on states returned by the environment. We conduct a systematic evaluation of MB-CC on two notable SPDEs, showcasing its effectiveness and efficiency. The ablation studies show its ability to handle stochasticity more effectively.
- [Ang et al., 2005] Kiam Heong Ang, Gregory Chong, and Yun Li. Pid control system analysis, design, and tech- nology. IEEE transactions on control systems technology, 13(4):559-576, 2005.
- [Baudoin, 2002] Fabrice Baudoin. Conditioned stochastic differential equations: theory, examples and application to finance. Stochastic Processes and their Applications, 100(1-2):109-145, 2002.
- [Braumann, 2019] Carlos A Braumann. Introduction to stochastic differential equations with applications to mod- elling in biology and finance. John Wiley & Sons, 2019.
- [Chavent, 1974] Guy Chavent. Identification of functional parameters in partial differential equations. In Joint Auto- matic Control Conference, pages 155-156, 1974.
- [Chevyrev et al., 2024] Ilya Chevyrev, Andris Gerasimovičs, and Hendrik Weber. Feature engineering with regular- ity structures. Journal of Scientific Computing, 98(1):13, 2024.
- [Cristofol and Roques, 2017] Michel Cristofol and Lionel Roques. Simultaneous determination of the drift and dif- fusion coefficients in stochastic differential equations. In- verse problems, 33(9):095006, 2017.
- [Duan et al., 2002] Jinqiao Duan, Hongjung Gao, and Björn Schmalfuß. Stochastic dynamics of a coupled atmosphere-ocean model. Stochastics and Dynamics, 2(03):357-380, 2002.
- [Gong et al., 2023] Shiqi Gong, Peiyan Hu, Qi Meng, Yue Wang, Rongchan Zhu, Bingguang Chen, Zhiming Ma, Hao Ni, and Tie-Yan Liu. Deep latent regularity network for modeling stochastic partial differential equations. In Proceedings of the AAAI Conference on Artificial Intelli- gence, volume 37, pages 7740-7747, 2023.
- [Haarnoja et al., 2018] Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In International conference on ma- chine learning, pages 1861-1870. PMLR, 2018.
- [Hairer, 2014] M. Hairer. A theory of regularity structures. Invent. Math, 198(2):269-504, 2014.
- [Higham, 2001] Desmond J Higham. An algorithmic intro- duction to numerical simulation of stochastic differential equations. SIAM review, 43(3):525-546, 2001.
- [Holl et al., 2020] Philipp Holl, Vladlen Koltun, and Nils Thuerey. Learning to control pdes with differentiable physics. CoRR, abs/2001.07457, 2020.
- [Hu et al., 2022] Peiyan Hu, Qi Meng, Bingguang Chen, Shiqi Gong, Yue Wang, Wei Chen, Rongchan Zhu, Zhi- Ming Ma, and Tie-Yan Liu. Neural operator with regular- ity structure for modeling dynamics driven by spdes. arXiv preprint arXiv:2204.06255, 2022.
- [Hu et al., 2024] Peiyan Hu, Rui Wang, Xiang Zheng, Tao Zhang, Haodong Feng, Ruiqi Feng, Long Wei, Yue Wang, Zhi-Ming Ma, and Tailin Wu. Wavelet diffusion neural op- erator. The Thirteenth International Conference on Learn- ing Representations, 2024.
- [Hwang et al., 2021] Rakhoon Hwang, Jae Yong Lee, Jin Young Shin, and Hyung Ju Hwang. Solving pde- constrained control problems using operator learning, 2021.
- [Li et al., 2006] Yun Li, Kiam Heong Ang, and G.C.Y. Chong. Pid control system analysis and design. IEEE Control Systems Magazine, 26(1):32-41, 2006.
- [Li et al., 2020] Zongyi Li, Nikola Kovachki, Kamyar Az- izzadenesheli, Burigede Liu, Andrew Stuart, Kaushik Bhattacharya, and Anima Anandkumar. Multipole graph neural operator for parametric partial differential equa- tions. Advances in Neural Information Processing Sys- tems, 33:6755-6766, 2020.
- [Li et al., 2021] Zongyi Li, Nikola Borislavov Kovachki, Kamyar Azizzadenesheli, Kaushik Bhattacharya, Andrew Stuart, Anima Anandkumar, et al. Fourier neural operator for parametric partial differential equations. In Interna- tional Conference on Learning Representations, 2021.
- [Lillicrap et al., 2015] Timothy P Lillicrap, Jonathan J Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, and Daan Wierstra. Continuous con- trol with deep reinforcement learning. arXiv preprint arXiv:1509.02971, 2015.
- [Lions and Magenes, 2012] Jacques Louis Lions and Enrico Magenes. Non-homogeneous boundary value problems and applications: Vol. 1, volume 181. Springer Science & Business Media, 2012.
- [Lu et al., 2021] Lu Lu, Pengzhan Jin, Guofei Pang, Zhongqiang Zhang, and George Em Karniadakis. Learn- ing nonlinear operators via deeponet based on the univer- sal approximation theorem of operators. Nature machine intelligence, 3(3):218-229, 2021.
- [McCauley, 2013] Joseph L McCauley. Stochastic calculus and differential equations for physics and finance. Cam- bridge University Press, 2013.
- [Mikulevicius and Rozovskii, 2004] Remigijus Mikulevi- cius and Boris L Rozovskii. Stochastic navier-stokes equations for turbulent flows. SIAM Journal on Mathe- matical Analysis, 35(5):1250-1310, 2004.
- [O'shea and Nash, 2015] Keiron O'shea and Ryan Nash. An introduction to convolutional neural networks. arXiv preprint arXiv:1511.08458, 2015.
- [Pakravan et al., 2021] Samira Pakravan, Pouria A. Mistani, Miguel A. Aragon-Calvo, and Frederic Gibou. Solving inverse-pde problems with physics-aware neural networks. Journal of Computational Physics, 440:110414, 2021.
- [Pirmorad et al., 2021] Erfan Pirmorad, Faraz Khosh- bakhtian, Farnam Mansouri, and Amir-massoud Farah- mand. Deep reinforcement learning for online control of stochastic partial differential equations. arXiv preprint arXiv:2110.11265, 2021.
- [Raissi et al., 2019] Maziar Raissi, Paris Perdikaris, and George E Karniadakis. Physics-informed neural networks: A deep learning framework for solving forward and in- verse problems involving nonlinear partial differential equations. Journal of Computational physics, 378:686- 707, 2019.
- [Rüemelin, 1982] W Rüemelin. Numerical treatment of stochastic differential equations. SIAM Journal on Numer- ical Analysis, 19(3):604-613, 1982.
- [Salvi and Lemercier, 2021] Cristopher Salvi and Maud Lemercier. Neural stochastic partial differential equations. CoRR, abs/2110.10249, 2021.
- [Salvi et al., 2022] Cristopher Salvi, Maud Lemercier, and Andris Gerasimovics. Neural stochastic pdes: Resolution- invariant learning of continuous spatiotemporal dynam- ics. In S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh, editors, Advances in Neural Infor- mation Processing Systems, volume 35, pages 1333-1344.
- Curran Associates, Inc., 2022.
- [Schulman et al., 2017] John Schulman, Filip Wolski, Pra- fulla Dhariwal, Alec Radford, and Oleg Klimov. Prox- imal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
- [Sritharan, 1996] SS Sritharan. Nonlinear filtering of stochastic navier-stokes equation. In Nonlinear Stochas- tic PDEs: Hydrodynamic Limit and Burgers' Turbulence, pages 247-260. Springer, 1996.
- [Tleubergenov and Ibraeva, 2019] MI Tleubergenov and GT Ibraeva. On the solvability of the main inverse problem for stochastic differential systems. Ukrainian Mathematical Journal, 71(1):157-166, 2019.
- [Tripura and Chakraborty, 2022] Tapas Tripura and Souvik Chakraborty. Wavelet neural operator: a neural operator for parametric partial differential equations. arXiv preprint arXiv:2205.02191, 2022.
- [Wei et al., 2024] Long Wei, Peiyan Hu, Ruiqi Feng, Haodong Feng, Yixuan Du, Tao Zhang, Rui Wang, Yue Wang, Zhi-Ming Ma, and Tailin Wu. Diffphycon: A gen- erative approach to control complex physical systems. In The Thirty-eighth Annual Conference on Neural Informa- tion Processing Systems, 2024.
- [Yang et al., 2021] Liu Yang, Xuhui Meng, and George Em Karniadakis. B-pinns: Bayesian physics-informed neural networks for forward and inverse pde problems with noisy data. Journal of Computational Physics, 425:109913, 2021.
- [Yu and others, 2018] Bing Yu et al. The deep ritz method: a deep learning-based numerical algorithm for solving vari- ational problems. Communications in Mathematics and Statistics, 6(1):1-12, 2018.
- [Yu et al., 2022] Jeremy Yu, Lu Lu, Xuhui Meng, and George Em Karniadakis. Gradient-enhanced physics- informed neural networks for forward and inverse pde problems. Computer Methods in Applied Mechanics and Engineering, 393:114823, 2022.
- [Zhang et al., 2022] Jingdong Zhang, Qunxi Zhu, and Wei Lin. Neural stochastic control. Advances in neural infor- mation processing systems, 35:9098-9110, 2022.
- [Zhang et al., 2023] Xiangyuan Zhang, Weichao Mao, Saviz Mowlavi, Mouhacine Benosman, and Tamer Bas ¸ar. Con- trolgym: Large-scale control environments for bench- marking reinforcement learning algorithms. arXiv preprint arXiv:2311.18736, 2023.
- [Zhao et al., 2022] Qingqing Zhao, David B. Lindell, and Gordon Wetzstein. Learning to solve pde-constrained in- verse problems with graph networks. In ICML, 2022.
- [Zhou and Lu, 2024] Mo Zhou and Jianfeng Lu. Solving time-continuous stochastic optimal control problems: Al- gorithm design and convergence analysis of actor-critic flow. arXiv preprint arXiv:2402.17208, 2024.
References were extracted automatically from the PDF and may contain errors.
Full text extracted automatically from the PDF; figures, tables and equations may differ. The PDF is the version of record.
1 Introduction
The simulation and control of stochastic partial differential equations (SPDEs) are essential in both scientific and engineering areas due to SPDEs' ability to model dynamic systems with stochasticity. For instance, SPDEs model the evolution of financial derivatives and asset prices, incorporating market volatility and uncertainty, in quantitative finance [Baudoin, 2002; McCauley, 2013; Braumann, 2019]. The stochastic Navier-Stokes equation is widely used to describe turbulence, including ocean currents and atmosphere [Mikulevicius and Rozovskii, 2004; Duan et al., 2002; Sritharan, 1996]. These applications demonstrate the importance of SPDEs in accurately representing dynamic systems influenced by stochastic processes [Tleubergenov and Ibraeva, 2019; Cristofol and Roques, 2017; Higham, 2001; R¨uemelin, 1982].
Meanwhile, with rapid developments of deep learning, solving and controlling PDEs and SPDEs with neural networks is more and more popular. On the one hand, the combination of deep learning and control raises both the speed and accuracy [Hwang et al., 2021; Holl et al., 2020; Zhao et al., 2022] compared with traditional methods. On the other hand, models for SPDEs are constructed specifically under the consideration of normal models' failure to handle the coarse noise [Salvi and Lemercier, 2021; Hu et al., 2022; Gong et al., 2023].
Although deep-learning-based methods are proposed for PDE control, most existing methods are open-loop and thus lack accuracy [Yang et al., 2021; Pakravan et al., 2021; Hwang et al., 2021; Yu et al., 2022]. Also, despite all these emerging methods, it is difficult to apply these approaches directly to SPDEs' control. As mentioned before, random forcing is a common situation while solving control problems, however, the low regularity of random forcing, affecting both the control's stability and learning's accuracy, renders it a challenging issue, which leads to the necessity of developing control methods aimed at SPDEs.
In this work, we propose a Model-Based Closed-Loop Control Algorithm (MB-CC) specifically for efficient and robust SPDE control. Given the increasing demand for the accuracy, robustness, and stability of control algorithms, we consider this problem from two perspectives: one is how to better model the forward dynamics, and the other is how to achieve greater stability and accuracy in control. Firstly, we design a modified RF block in order to develop a more advanced and robust neural operator for the following control task, overcoming the stochastic challenge. This block enables the model to better handle the low regularity caused by noise terms, and also embeds physical information more effectively, thereby enhancing generalization ability. Secondly, in order to enhance control efficiency and robustness, we then propose an operator-encoded policy net using the differentiability of the RF block. The introduction of an operatorencoded policy net incorporates the physical information contained in the operator and offers the benefit of feedback, enabling real-time adjustments for improved accuracy and stability in response to dynamic changes. These aspects result in the accurate and fast Model-Based Closed-Loop Control Algorithm (MB-CC). Furthermore, this framework can be readily integrated with commonly utilized network architectures, demonstrating its versatility and broad applicability. As for experiments, we choose the famous stochastic 1-D reactiondiffusion equation and 2-D Navier-Stokes equation, and evaluate MB-CC and baselines on tracking problems, which impose higher demands on the generalization ability. Our contributions can be summarized as follows:
- Modeling inspired by stochasticity: In order to more accurately model the nonlinear dynamics affected by stochasticity, we introduce the Regularity Feature (RF) block, which is able to deal with the low regularity of stochastic noise in SPDEs specifically. Furthermore, we design the data augmentation and enhance its compatibility with various backbones. Additionally, its differentiability is essential in the training of the policy net.
- Closed-loop control: Different from the open-loop methods before, the operator-encoded policy net is adopted in our method. Firstly, it helps the algorithm better handle stochasticity because it encodes the physical information and can adjust the next control action based on the current state affected by the noise. Secondly, it eliminates the need for optimization during control, allowing for the generation of control sequences in a very short time.
- Experiments: We conduct experiments on important and common equations, including the 1-D stochastic reaction-diffusion equation and the 2-D stochastic Navier-Stokes equation. The results demonstrate that MB-CC can significantly improve control outcomes, including both accuracy and speed.
2 RelatedWork
AI for (S)PDE simulation There are two categories of methods that utilize deep learning techniques to simulate PDEs. Some works take neural networks to directly approximate the solution function by training them with physical losses, such as the residual of PDEs or the modified variational form of residual, that represent the PDEs [Raissi et al., 2019; Yu and others, 2018]. Others focus on designing neural operators that can learn operators from the problem functions to the solution functions to solve a series of parametric PDEs [Li et al., 2021; Lu et al., 2021;
Li et al., 2020; Tripura and Chakraborty, 2022]. For SPDEs, taking into account the unique characteristics of inherent noise, several studies have proposed neural operators specifically tailored to solve SPDEs. Neural SPDEs propose a model to simulate SPDEs with the consideration of stochasticity [Salvi et al., 2022], while the DLR-Net utilizes regularity features to enhance the performance [Hu et al., 2022; Gong et al., 2023].
Traditional PDEs control methods In the control theory, the functional gradient is obtained through the Fr´echet derivatives whose calculation is quite computationally expensive. Based on the previous work [Lions and Magenes, 2012], [Chavent, 1974] proposes the adjoint method based on the adjoint state to compute the functional gradient without the need for Fr´echet derivatives, which is a mainstream way for PDE control problems. Other recent works improve the efficiency of Fr´echet derivative's calculation [Zhou and Lu, 2024]. Furthermore, another well-known control method is Proportional Integral Derivative (PID) [Ang et al., 2005; Li et al., 2006] control, which controls a system by continuously calculating and adjusting the control input to minimize the difference between a desired state and the actual process. As a common single-input single-output (SISO) control method, the PID is difficult to directly apply to multipleinput multiple-output (MIMO) systems. Its application to the MIMO system often requires additional decoupling and target planning modules. Therefore, although effective in some scenarios, it is only applicable to a limited range of problems.
AI for (S)PDE control Compared with traditional methods, deep learning dramatically speeds up the process of control. Most works focus on PDE-constrained control problems. Some researchers propose a hierarchical scheme consisting of a predictor network and a control network [Holl et al., 2020]. Another approach consists of two stages: a surrogate model is trained in the first stage and the control is set as a learnable parameter in the second stage [Hwang et al., 2021]. Besides, [Wei et al., 2024] and [Hu et al., 2024] propose a generative control method that generates the control sequences and state trajectories simultaneously. There is also an open-source project with various control environments and learning-based controllers [Zhang et al., 2023]. However, these approaches are not directly applicable to SPDEs, as the stochastic nature introduces high complexity and difficulty in addressing control issues. For systems with inherent stochasticity, there has been little work focusing on their control problems. [Zhang et al., 2022] address the control of SDEs by introducing the exponential stabilizer (ES) based on stochastic Lyapunov theory and the asymptotic stabilizer (AS) based on stochastic asymptotic stability theory. [Pirmorad et al., 2021] considers SPDEs but directly uses the deep deterministic policy gradient (DDPG) algorithm from reinforcement learning, only making a preliminary attempt with the stochastic Burgers' equation. In contrast, our work specifically designs the algorithm to address the stochasticity of SPDE systems and conducts more comprehensive experiments.
3 Preliminary
In this section, we introduce the background and notations used throughout this work.
3.1 Regularity Structure of SPDEs
In this work, we consider an SPDE on [0, T ] × D as follows
where x ∈ D ⊂ Rd , t ∈ [0, T], L is a linear differential operator, f is the deterministic forcing term, ξ is the random forcing, u0 : D → R is the initial condition. u, f is in the Banach space U and F respectively.
Under local Lipschitz condition on µ, σ with respect to suitable norm, this SPDE has a unique mild solution [Hairer, 2014; Salvi and Lemercier, 2021]:
According to the representation of the mild solution above, we define two linear operators I[f](t) = ∫ t 0 e(t-s)Lf(s)ds and Ic[u0](t) = etLu0 for any function defined on [0, T ] ×D to Rd . Like in PDEs, using Picard theorem, we can get the following recursive sequence that can approximate the solution u of equation (1) as n → ∞
Then using Taylor expansion, another recursive sequence approximates u as m, l, n → ∞, where µ(k) denotes the k-th derivative of µ:
It is then revealed that the solution of SPDE can be approximated by a weighted sum of the features I[f], I[(un,m,l )k ], I[(un,m,l )k ξ], l = 0, · · · , k;m= 0, · · · , k.
3.2 Problem Setup
In this work, we aim to solve the control problem optimally and efficiently. Considering the stochastic dynamical system in the equation (1), we can define the tracking error of the SPDE-constraint problem as follows:

where u0 is the initial condition, u∗ is the function describing the target state of the system, f is the deterministic external forcing that we can control and apply to the system, ξ is the random noise (usually space-time white noise), ut is the time-dependent states depending on u0, f and ξ, and α is the coefficient used to adjust the weight of two terms. The first term constrains the system to the target state, while the second limits the norm of external forcing. Intuitively, the problem is to control the system state approach and track the target using minimal external force. Notably, this problem is challenging because it requires the system to reach the target state as quickly as possible, a scenario that rarely appears in the training set.
Due to the appearance of random forcing, we consider the error in the sense of expectation:
Thus the tracking problem is formally described as
4 Methodology
In this section, we will introduce our proposed Model-Based Closed-Loop Control Algorithm (MB-CC) as shown in Figure 1, which has the following two parts: modeling with our design RF block and operator-encoded control.
4.1 Modeling Inspired by Stochasticity
The architecture of the entire model, which learns the forward dynamics, consists of two components.


Regularity Structure Features. Due to the prominence of the regularity structure theory in the analysis of SPDEs [Hairer, 2014], we choose regularity structure vectors as features for the model. We incorporate the RF block, which maps the initial condition u0 and forcing ˜ f (the collection of the deterministic forcing f and random forcing ξ) to regularity structure vectors.
These regularity structure vectors form the feature set Sn,m,l, and are generated and computed iteratively as Algorithm 1. The outer loop corresponds to the number of Picard iterations. In each Picard iteration, we first compute the set of integrands, Z, that appear in the Taylor expansion, followed by a discrete time-step iteration to calculate the time integral of each element in Z.
Algorithm 1 Generation of Regularity Structure Features
Input: Initial feature sin , forcing ˜ f
Parameter: Height n,m, l, discretized operator Ldis , time grid points t0, · · · , tK-1
Output: sout = Sn,m,l(sin , ˜ f)
- 1: Initial function set S0,m,l = {sin }
- 2: for p = 1, · · · , n do
- 3: Generate set Zp,m,l = { ˜ f j ∏ki=1 ∂ ai si : si ∈ Sp-1,m,l, ai, j ∈ {0, 1}, k ∈ N, 1 ≤ k +j ≤ mIj=0 + ℓIj>0}
- 4: for k = 0, 1, · · · ,K -1 do
- 5: For z ∈ Zp,m,l, I[z]tk+1 = (I[z]tk +ztk · δt) · (IdLdis · δt)-1
- 6: end for
- 7: Sp,m,l = {I[z], z ∈ Zp,m,l} ∪Sp-1,m,l
- 8: end for
The parameters n, m, and l are hyperparameters we select, which affect the number of vectors in Sn,m,l. The initial feature sin = Ic[u0], the final output is sout = Sn,m,l(sin , ˜ f ), which contain NS features (NS is decided by the hyperparameters n,m and l). The discretized operator Ldis is the discretization of the operator in the SPDE from the equation (1), implemented using the finite difference numerical method. We provide an example of Ldis in Appendix D.
These features enable the model to better handle the issue of low regularity caused by noise terms, and it embeds the crucial physical information of the operator, thereby enhancing the model's ability to represent stochastic systems.
Model Architecture. We base our design on equation (5) to reasonably and effectively integrate the features with the backbone network. According to the equation (5), the linear combination of the regularity structure features is actually the first NS term of the Taylor expansion. In consequence, we let the backbone neural network Wθ with weights θ only be used to approximate the residual part caused by the truncation of the Taylor expansion, which means the output ˜u of the entire model can be represented as
where O is the concatenation of the space and time grid, θ1 ∈ RNS and θ2 are the weights learned through training.
Data Augmentation. In addition, the transformation from the initial condition and forcing to regularity features causes the data of different time steps to separate from each other, which makes the model with the RF block have difficulty fitting data far away from the most. As a result, according to the training error of the model trained with raw data, we address this issue by increasing the proportion of difficult-to-fit data in the dataset through duplication.
Plug-and-Play Component. Besides, we extend the RF block as a plug-and-play component, which is part of our proposed algorithm framework. The backbone model can be changed to any suitable neural network architecture, for instance, using either Convolutional Neural Network (CNN) [O'shea and Nash, 2015], Fourier Neural Operator (FNO) [Li et al., 2021], or other neural operators. In our experiments, we test this component in combination with different network architectures. Results show that, regardless of the backbone network model used, our proposed framework achieves significant improvements.
4.2 Closed-Loop Operator-Encoded Control
Closed-LoopControl. Open-loop control algorithms function without utilizing feedback to adjust their inputs, resulting in a significant drawback: the absence of error correction. This limitation leads to reduced accuracy and adaptability in response to changes or disturbances in the system, particularly in stochastic systems. To overcome the aforementioned limitations of open-loop control, we present a policy net, inspired by reinforcement learning algorithms [Lillicrap et al., 2015; Schulman et al., 2017; Haarnoja et al., 2018], that maps from the state to the optimal control in order to decide the next control action based on the current state in the closedloop control manner.
Operator-Encoded Policy Net Pγ. By rearranging the terms in Equation 1, we can obtain
From this, it can be seen that the external force term f involves Lu, which inspires us to embed operator information into the design of the policy net. We use Ldis as introduced in the previous section. For the current state ut, we concatenate ut and Ldisut, creating a tensor embedded with operator information that is used as input of the policy net. For the target state uT , we perform the same operation. Due to the inclusion of SPDE physical information in the operator, as introduced in the previous section, we not only enhance the network's performance but also significantly improve its generalization ability by encoding key physical information.
Loss Function. Fed into the current state ut, target state uT and time t, the policy net Pγ(ut, uT , t) outputs the action ft. As the optimization problem is in the sense of expectation, we use the mean of multiple samples to approximate the expectation. Consequently, we generate enough number of different random noise ξi(i = 1, · · · , N) and calculate the mean of results using the model's predicted states uθ. The loss function of the policy net is then defined as
where γ is the learnable weights of the policy net, ˜ut,θ(u0, Pγ(˜ut, uT , t), ξi) is simulation of the physical system's states.
Data. Our work is data-efficient, demonstrating in two aspects. Firstly, the training data of the policy net Pγ are same as that used to train the operator model before, which means no additional data are needed in training the policy net. Secondly, we can even only use u0 and uT random sampled from the data distribution without the force term f. Therefore, throughout the process, we use the model's prediction ˜uθ to simulate the trajectories rather than interact with the environment, as it is supposed to be close enough to the environment.
| Model | Error |
|---|---|
| RF-CNN CNN RF-FNO FNO | 0.0115 = 0.0106 + 0.0003 + 0.0002 + 0.0003 0.0182 = 0.0163 + 0.0010 + 0.0004 + 0.0006 0.0029 = 0.0001 + 0.0004 + 0.0003 + 0.0021 0.0138 = 0.0001 + 0.0020 + 0.0014 + 0.0104 |
5 Experiment
In this section, we aim to address the following question: Do the two major parts of MB-CC contribute to improve the performance of SPDEs control? Specifically, can they effectively improve the handling of noise? Therefore, we evaluate our method on the tracking problem of two widelyused SPDEs, including the stochastic reaction-diffusion equation with linear multiplicative forcing and the 2-D stochastic Navier-Stokes equation with additive noise. On each equation, fifty tasks are tested to provide sufficient evidence of the answer. The objective of each task is sampled from the distribution of the system state at the last time step in the training data. The tracking problem aims for the algorithm to output control signals that keep the system's state close to the target at all times, which is a challenging out-of-distribution problem. We provide our code in the supplementary materials.
The performance of modeling and control is evaluated and reported, respectively. Through the experiments, we respectively take CNN [O'shea and Nash, 2015] and FNO [Li et al., 2021] as the backbone of our proposed method with RF block. The naive CNN and FNO are applied as the baseline methods to show the improvement using RF block while demonstrating its plug-and-play ability. Specifically, following the methodology of the previous work [Hwang et al., 2021], we employ these two models as auto-regressive models to learn the state transitions between single steps. Additionally, the models simultaneously output the input f and u0 to calculate the reconstruction loss. To show the comprehensive advantages of our framework, we apply open-loop control using CNN, FNO, RF-CNN, RF-FNO, and Soft ActorCritic (SAC) [Haarnoja et al., 2018] as baseline methods to show the superior performance of our proposed policy net with respect to three metrics: L2 relative error, objective loss ˆ e, and time.
5.1 1-D Stochastic Reaction-Diffusion Equation
We first evaluate our method on the reaction-diffusion equation with multiplicative forcing as in [Chevyrev et al., 2024] with the Dirichlet boundary, which is critical in many fields, including environmental science, energy development, and fluid mechanics. The form is given by
| Model | Method | ˆ e | ˆ etrack | ˆ eenergy |
|---|---|---|---|---|
| RF-CNN RF-CNN CNN CNN RF-FNO RF-FNO FNO | Open Loop | 0.0780 | 0.0504 | 0.0276 |
| Policy Net | 0.0658 | 0.0359 | 0.0299 | |
| Open Loop | 0.2035 | 0.1872 | 0.0163 | |
| Policy Net | 0.1258 | 0.1003 | 0.0255 | |
| Open Loop | 0.1284 | 0.1002 | 0.0282 | |
| Policy Net | 0.1126 | 0.0866 | 0.0260 | |
| Open Loop | 0.5865 | 0.5711 | 0.0153 | |
| FNO | Policy Net | 0.1208 | 0.0879 | 0.0329 |
| SAC | Policy Net | 2.5924 | 2.5631 | 0.0292 |
| Model | Open Loop | Policy Net |
|---|---|---|
| RF-CNN | 367.40 | 0.25 |
| CNN | 54.35 | 0.31 |
| RF-FNO | 67.83 | 0.30 |
| FNO | 44.10 | 0.25 |
where ν = 0.1 is the viscosity parameter, ξ is the smoothed space-time white noise scaled by σ = 0.05. We first generate the space-time white noise using the numerical simulator as the previous work [Chevyrev et al., 2024], the noise is then smoothed using the moving average algorithm with window size 3. We choose D = [0, 1], T = 1, and take 64 space grid points and 11 time grid points uniformly. Besides, u0(x) and f are randomly sampled from a distribution following the previous work [Hwang et al., 2021].
As for these models' training, we train RF-CNN, CNN, RF-FNO, and FNO with 4000 trajectories, respectively, while testing on 500 trajectories. The relative L2 errors of CNN, RF-CNN, FNO, and RF-FNO are shown in Table 1, from which it is obvious that models with the RF block have much more accuracy of prediction, which verifies that our introduced modeling inspired by stochasticity can enhance the model's ability to handle the complex stochastic system with low regularity.
| Model | Error |
|---|---|
| RF-CNN CNN RF-FNO FNO | 0.0326 = 0.0050 + 0.0122 + 0.0057 + 0.0096 0.0784 = 0.0154 + 0.0327 + 0.0068 + 0.0235 0.0061 = 0.0004 + 0.0000 + 0.0000 + 0.0056 0.0124 = 0.0010 + 0.0006 + 0.0005 + 0.0103 |
| Model | Method | ˆ e | ˆ etrack | ˆ eenergy |
|---|---|---|---|---|
| RF-CNN | Open Loop | 14.7297 | 13.9981 | 0.7316 |
| RF-CNN | Policy Net | 8.2239 | 7.6071 | 0.6168 |
| CNN | Open Loop | 20.8153 | 20.3278 | 0.4875 |
| CNN | Policy Net | 12.5431 | 12.0509 | 0.4921 |
| RF-FNO | Open Loop | 7.8103 | 6.9416 | 0.8686 |
| RF-FNO | Policy Net | 1.7775 | 0.9253 | 0.8522 |
| FNO | Open Loop | 44.8132 | 43.6540 | 1.1592 |
| FNO | Policy Net | 2.9588 | 2.4274 | 0.5314 |
| SAC | - | 121.2406 | 115.2638 | 5.9768 |
As for control, we take 4000 trajectories to train the policy net. As mentioned before, the objective function of the tracking problem is defined as equation (8). In this setting, we take α = 0.01 and N = 50. Figure 3 presents the visualizations of the system controlled by MB-CC and open-loop CNN, from which we can observe that MB-CC's results are much closer to the target states. More visualizations can be found in the supplementary material. Besides, we provide detailed results in Table 2, including ˆ e, ˆ etrack, ˆ eenergy. It clearly indicates that the introduction of both the RF block and the policy net can notably enhance the performance, which is a test of our previous statement. In addition, MB-CC, due to its specialized design for SPDE systems, is able to outperform the reinforcement learning SAC algorithm.
We also provide the meantime of solving these tracking tasks in Table 3, from which we can observe that the policy net incredibly speeds up the process of control.
5.2 2-D Stochastic Navier-Stokes Equation
Next, we consider the important 2-D Navier-Stokes equation for a viscous, incompressible fluid in vorticity form:
where u is the 2-D velocity field, ω = ∇ × u is the vorticity, the viscosity parameter ν = 0.02, σ = 10-5 , T = 1, D = [0, 1]2 . ω0 and f are sampled from the 2-D form of the initial condition's and forcing's distribution in the reaction-diffusion equation. The smoothing algorithm of noise ξ is the same as above. The generation of 2-D space-time white noise and the numerical solver follow [Salvi and Lemercier, 2021]. When collecting the data, we take the pseudo-spectral method on 40 × 40 space grid and 200 time grid to solve the equation and then downsample the solution every 20 time steps.
For the learning of CNN, FNO, RF-CNN, and RF-FNO, we take 400 data, a smaller amount of data, to train and 500 data to test. Results in Table 4 further verify that the model improved by the RF block better captures and models systems with inherent stochasticity.
On this SPDE, we consider α = 100 and N = 20. In addition, we again train the policy net with 4000 data. The Scale of Noise detailed control results are reported in Table 5, from which it is obvious that our proposed MB-CC framework still achieves the best performance, which confirms that our proposed specialized design for SPDE is both reasonable and effective.
| Model | Method | σ = 0.05 | σ = 1 | ||||
|---|---|---|---|---|---|---|---|
| ˆ e | ˆ etrack | ˆ eenergy | ˆ e | ˆ etrack | ˆ eenergy | ||
| RF-CNN | Open Loop | 0.0782 | 0.0507 | 0.0276 | 0.5501 | 0.5150 | 0.0351 |
| RF-CNN | Policy Net | 0.0658 | 0.0360 | 0.0298 | 0.0767 | 0.0460 | 0.0307 |
| CNN | Open Loop | 0.2035 | 0.1872 | 0.0163 | 0.6533 | 0.6295 | 0.0238 |
| CNN | Policy Net | 0.1258 | 0.1003 | 0.0255 | 0.1378 | 0.1115 | 0.0263 |
| Model | Open Loop | Policy Net |
|---|---|---|
| RF-CNN | 81.78 | 0.09 |
| CNN | 59.44 | 0.02 |
| RF-FNO | 29.64 | 0.10 |
| FNO | 39.69 | 0.09 |

Figure 4: Training and testing the forward models with different scales of the space-time white noise.
As for time efficiency, it can be observed that the policy network, compared with open-loop control, can still significantly reduce the time required for inference.
5.3 Further Analysis
In this subsection, we want to further analyze and discuss several questions: (1) Is the effectiveness of MB-CC related to the choice of the base model? (2) Does the improvement brought by MB-CC truly come from its ability to handle stochasticity more effectively? (3) Is the enhanced modeling capability caused by the RF block due to its improved handling of stochasticity?
To answer the first question, this essentially considers how well MB-CC generalizes across different base models. Referring to Table 2 and Table 5, we can see that MB-CC consistently shows significant performance improvements when CNN or FNO is used as the base model. Furthermore, if we control for variables and consider only the RF block or the operator-encoded policy net, both can independently enhance control performance.
As for the second question, we show the results of an ablation study on the 1-D stochastic reaction-diffusion equation to further validate our proposal that this framework is particularly suitable for systems with stochasticity. Since the stochasticity of the system is caused by the noise term ξ, we adjust the coefficient σ, which determines the scale of the system's noise.
Therefore, we choose a higher σ = 1 and directly test RFCNN and CNN trained with the σ = 0.05 dataset in both Open Loop and Policy Net scenarios again. This task requires the model to not only accurately simulate dynamics with higher noise levels but also make effective decisions and adjustments based on new states. Results in Table 6 demonstrate that compared to other methods, the approach combined with MB-CC shows more stable control results when σ increases. This indicates that the introduction of MB-CC indeed enhances the algorithm's ability to handle stochasticity more effectively.
For the third question, we conduct another ablation study, where we choose higher σ to train and test RF-FNO and FNO. Results with σ = 0.05, 0.2, 0.3, 0.5 are plotted in Figure 4, showing that as σ increases, the prediction error of FNO significantly rises, whereas RF-FNO consistently maintains a very low error level. This demonstrates the strong capability of the RF block to enhance the model's ability to handle stochasticity.
To sum up, both two ablation studies show that MB-CC indeed helps the algorithm better handle stochasticity, leading to significant improvements in SPDE control.
6 Conclusion
In this paper, we propose a novel control framework MBCC to solve the SPDE-constraint control problems. The SPDE control is challenging, since the deterioration of the system's state regularity complicates modeling and generalization, while the stochasticity also makes open-loop control more unstable and less accurate. To address these challenges, we introduce two major components in MB-CC: stochasticity-inspired modeling based on regularity structure theory and closed-loop control achieved through the operatorencoded policy net. Compared with baselines, our method is evaluated on well-known SPDEs, including the 1-D stochastic reaction-diffusion equation and 2-D stochastic NavierStokes equation, and performs well in both forward modeling and control. In the future, we plan to combine MB-CC with more diverse and larger architectures to control more complex stochastic systems.
@inproceedings{ijcai2025p599,
title = {Model-Based Closed-Loop Control Algorithm for Stochastic Partial Differential Equation Control},
author = {Hu, Peiyan and Feng, Haodong and Wang, Yue and Ma, Zhiming},
booktitle = {Proceedings of the Thirty-Fourth International Joint Conference on
Artificial Intelligence, {IJCAI-25}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {James Kwok},
pages = {5381--5389},
year = {2025},
month = {8},
note = {Main Track},
doi = {10.24963/ijcai.2025/599},
url = {https://doi.org/10.24963/ijcai.2025/599},
}
TY - CPAPER TI - Model-Based Closed-Loop Control Algorithm for Stochastic Partial Differential Equation Control AU - Hu, Peiyan AU - Feng, Haodong AU - Wang, Yue AU - Ma, Zhiming T2 - Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI-25 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2025 SP - 5381 EP - 5389 DO - 10.24963/ijcai.2025/599 UR - https://doi.org/10.24963/ijcai.2025/599 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: