<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Critical Sampling for Data-Driven Modeling of Unknown Dynamical Systems</title></titleStmt>
			<publicationStmt>
				<publisher>CoRL 2023  workshop OOD</publisher>
				<date>11/05/2023</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10549020</idno>
					<idno type="doi"></idno>
					
					<author>C Zhang</author><author>S Q Wu</author><author>Z H He</author><author>Z Sun</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[When a robot is exploring an unknown dynamical system, we often face the following important question: what is the minimum number of samples needed for effective learning of its governing laws and accurate prediction of its future evolution behavior, and how to select these critical samples? In this work, we propose to explore this problem based on a design approach. Starting from a small initial set of samples, we adaptively discover critical samples to achieve increasingly accurate learning of the system evolution. We establish a multi-step reciprocal prediction network where forward and backward evolution networks are designed to learn the temporal evolution behavior in the forward and backward time directions, respectively. Very interestingly, we find that the desired network modeling error is highly correlated with the multi-step reciprocal prediction error, which can be directly computed from the current system state. This allows us to perform a dynamic selection of critical samples from regions with high network modeling errors for dynamical systems. Our extensive experimental results demonstrate that our proposed method is able to dramatically reduce the number of samples needed for effective learning and accurate prediction of evolution behaviors of unknown dynamical systems by up to hundreds of times.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>When a robot is exploring an unknown dynamical system, such as aerodynamic, climate, or fluid dynamic systems, it needs to collect sensor data samples to learn, model, and predict the behavior of the dynamic system. The behaviors of dynamical systems in the physical world are governed by their underlying physical laws <ref type="bibr">[1,</ref><ref type="bibr">2]</ref>. In many areas of science and engineering, ordinary differential equations (ODEs) and partial differential equations (PDEs) play important roles in describing and modeling these physical laws <ref type="bibr">[3,</ref><ref type="bibr">4,</ref><ref type="bibr">5,</ref><ref type="bibr">6,</ref><ref type="bibr">7,</ref><ref type="bibr">8]</ref>. Recently, learning-based methods for complex and dynamic system modeling have become an important area of research in machine learning <ref type="bibr">[4,</ref><ref type="bibr">9,</ref><ref type="bibr">10]</ref>. There are two major approaches that have been explored. The first approach typically tries to identify all the potential terms in the unknown governing equations from a priori dictionary, which includes all possible terms that may appear in the equations <ref type="bibr">[3,</ref><ref type="bibr">11,</ref><ref type="bibr">12,</ref><ref type="bibr">4,</ref><ref type="bibr">5,</ref><ref type="bibr">13,</ref><ref type="bibr">14,</ref><ref type="bibr">15,</ref><ref type="bibr">16]</ref>. The second approach for data-driven learning of unknown dynamical systems is to approximate the evolution operator of the underlying equations, instead of identifying the terms in the equations <ref type="bibr">[8,</ref><ref type="bibr">17,</ref><ref type="bibr">18,</ref><ref type="bibr">19]</ref>.</p><p>Many existing data-driven approaches for learning the evolution operator typically assume the availability of sufficient data, and often require a large set of measurement samples to train the neural network, especially for high-dimensional systems. For example, to effectively learn a neural network model for the 2D Damped Pendulum ODE system, existing methods typically need more than 10,000 samples to achieve sufficient accuracy <ref type="bibr">[8,</ref><ref type="bibr">17]</ref>. This number increases dramatically with the dimensions of the system. For example, for the 3D Lorenz system, the number of needed samples used in the literature is often increased to one million. We recognize that, in practical dynamical systems, such as ocean, cardiovascular and climate systems, it is very costly to collect observation samples. This leads to a new and important research question: what is the minimum number of samples needed for robust learning of the governing laws of an unknown system and accurate prediction of its future evolution behavior?</p><p>In this work, we propose a critical sampling scheme for accurately learning the evolution behaviors of unknown dynamical systems. We start with a small set of initial samples, then iteratively discover and collect critical samples to obtain more accurate network modeling of the system. During critical sampling, the basic rule is to select the samples from regions with high network modeling errors so that these selected critical samples can maximally reduce the overall modeling error. However, the major challenge here is that we do not know network modeling error. To address this challenge, we establish a multi-step reciprocal prediction framework where a forward evolution network and a backward evolution network are designed to learn and predict the temporal evolution behavior in the forward and backward time directions, respectively. Our hypothesis is that, if the forward and backward prediction models are both accurate, starting from an original state A, if we perform the forward prediction for K times and then perform the backward prediction for another K times, the final prediction result &#256; should match the original state A. The error between &#256; and A is referred to as the multi-step reciprocal prediction error.</p><p>Very interestingly, we find that the network modeling error is correlated with the multi-step reciprocal prediction error. Note that multi-step reciprocal prediction error can be directly computed from the current system state, without the need to know the ground-truth system state. This allows us to perform a dynamic selection of critical samples from regions with high network modeling errors and develop an adaptive learning method for dynamical systems. Our extensive experimental results demonstrate that our proposed method is able to dramatically reduce the number of samples needed for effective learning and accurate prediction of evolution behaviors of unknown dynamical systems.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Method</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1">Problem Formulation</head><p>In this work, we focus on learning the evolution operator &#934; &#8710; : R n &#8594; R n for autonomous dynamical systems, which maps the system state from time t to its next state at time t + &#8710;: u(t + &#8710;) = &#934; &#8710; (u(t)). It should be noted that, for autonomous systems, this evolution operator &#934; &#8710; remains invariant over time. It only depends on the time difference &#8710;. For an autonomous system, its evolution operator completely characterizes the system evolution behavior <ref type="bibr">[8,</ref><ref type="bibr">17,</ref><ref type="bibr">20]</ref>.</p><p>Our goal is to develop a deep neural network method to accurately learn the evolution operator and robustly predict the long-term evolution of the system using a minimum number of selected critical samples. Specifically, to learn the system evolution over time, the measurement samples for training the evolution network are collected in the form of pairs. Each pair represents two solution states along the evolution trajectory at time instances t and t + &#8710;. For simplicity, we assume that the start time is t = 0. Using a high-accuracy system solver, we generate J system state vectors {u j (0)} J j=1 at time 0 and {u j (&#8710;)} J j=1 at time &#8710; in the computational domain D. Thus, the training samples are</p><p>It is used to train the forward evolution network F &#952; which approximates the forward evolution operator &#934; &#8710; .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2">Multi-Step Reciprocal Prediction Error and Critical Sampling</head><p>In this section, we show that there is a strong correlation between the multi-step reciprocal prediction error and the network modeling error of the temporal evolution network F m &#952; .</p><p>(1) Multi-step reciprocal prediction. In our multi-step reciprocal prediction scheme, we have a forward temporal evolution network F m &#952; and a backward evolution network G m &#977; , which model the system evolution behaviors in the forward and backward time directions. The forward and backward evolution networks, F &#952; and G &#977; , allow us to iteratively predict the system's evolution in both forward and backward directions. As illustrated in Figure <ref type="figure">1</ref>, if the forward and backward evolution networks F m &#952; and G m &#977; are both well-trained, accurately approximating the forward and backward evolution operators, for an arbitrarily given system state u(0), the one-step reciprocal prediction error</p><p>&#8741; should approach zero. Now, we extend this one-step reciprocal prediction to K steps. As illustrated in Figure <ref type="figure">1</ref>, starting from the initial condition u(0), we repeatedly apply the forward evolution network F m &#952; to perform K-step prediction of the system future states, &#251;(k&#8710;</p><p>After K steps of forward evolution prediction, then, starting with &#251;(K&#8710;), we perform K steps of backward evolution prediction using network G m &#977; :</p><p>and reach back to time t = 0. If the forward and backward evolution networks are both accurate, the forward prediction path and the backward prediction path should match each other. Motivated by this, we define the multi-step reciprocal prediction error for the forward evolution network F m &#952; as the deviation between the forward and backward prediction paths:</p><p>Note that, when computing E[u(0)], we only need the current system state u(0), the forward and backward evolution networks F m &#952; and G m &#977; .</p><p>(2) Critical sampling and adaptive evolution operator learning. In this work, we find that there is a strong correlation between the network modeling error E[u(0)] and the multi-step reciprocal prediction error E[u(0)]. This correlation allows us to predict E[u(0)] using E[u(0)] which can be computed directly from the current system state without the need to know the ground-truth state. Therefore, once we are able to predict the network modeling error E[u(0)] using the multi-step reciprocal prediction error E[u(0)], we can develop a critical sampling and adaptive evolution learning algorithm. The central idea is to select samples from locations with large values of error E[u(0)] using the following iterative peak finding algorithm. Note that u(0</p><p>To determine the locations of new samples, {u j (0)|J m + 1 f j f J m+1 }, we find the peak value of multi-step reciprocal prediction error E[u(0)] at every sampling point u(0) in the solution space D. The corresponding peak location is chosen to be u Jm+1 (0) and the corresponding sample [u Jm+1 (0) &#8594; u Jm+1 (&#8710;)] is collected. This process is repeated for J m+1 -J m times to collect J m+1 -J m samples in &#8486; m , which is added to the current sample set:</p><p>Table <ref type="table">1</ref>: Samples for learning the system evolution using the baseline method and our method.</p><p>Dynamical System Baseline Our Work Ratio Samples Prediction Error Samples Prediction Error Damped Pendulum 14400 0.02630 &#177; 0.01200 417 0.02411 &#177; 0.00991 34.53 2D Nonlinear 14400 0.00037 &#177; 0.00021 925 0.00035 &#177; 0.00015 15.57 Lorenz System 1000000 0.19685 &#177; 0.07768 1765 0.19357 &#177; 0.05695 566.57 Viscous Burgers' Eq. 500000 0.01679 &#177; 0.00878 19683 0.01652 &#177; 0.00818 25.40 3 Experimental Results</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Experimental Settings</head><p>We consider four representative systems with ODEs and PDEs as their governing equations, as summarized in Table <ref type="table">2</ref> in Appendix. They include (1) the Damped Pendulum ODE equation, (2) a nonlinear ODE equation, (3) the Lorenz system, and ( <ref type="formula">4</ref>) the Viscous Burgers' equation (PDE). In Appendix, we provide detailed experimental settings and implementation details.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Performance Results</head><p>We choose the evolution learning method developed in <ref type="bibr">[8,</ref><ref type="bibr">17]</ref> as our baseline. On top of this method, we implement our proposed method of critical sampling and adaptive evolution learning. We demonstrate that, to achieve the same modeling error, our method needs much fewer samples.</p><p>Table <ref type="table">1</ref> compares the numbers of samples needed for learning the system evolution by the baseline method and our critical sampling and adaptive learning method. The prediction errors are evaluated on 50 arbitrarily chosen solution trajectories in the computational domain. Average errors and standard deviations are reported for each dynamical system. For example, for the Lorenz system, it needs 1,000,000 samples to achieve the modeling error of 0.197. Using our proposed critical sampling method, the number of samples can be reduced to 1,765, while achieving an even smaller modeling error 0.194. The number of samples has been reduced by 567 times. For the Viscous Burgers' PDE system, the number of samples is also reduced by 25 times.</p><p>Figure <ref type="figure">2</ref> shows the performance comparison results for the four dynamical systems listed in Table <ref type="table">2</ref>. In each sub-figure, the horizontal dashed line shows the average network modeling error achieved by the baseline method for the number of samples shown in the legend. This number is empirically chosen since it is needed for the network to achieve a reasonably accurate and robust learning performance. We can see that as more and more samples are selected by our critical sampling method, the network modeling error quickly drops below the average modeling error of the baseline method.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Conclusion</head><p>In this work, we have studied the critical sampling for the adaptive evolution operator learning problem. We have made an interesting finding that the network modeling error is correlated with the multi-step reciprocal prediction error. With this, we are able to perform a dynamic selection of critical samples from regions with high network modeling errors and develop an adaptive samplinglearning method for dynamical systems. Extensive experimental results demonstrate that our method is able to dramatically reduce the number of samples needed for effective learning and accurate prediction of the evolution behaviors.</p><p>in order to reduce the problem to finite dimensions as in Wu and Xiu <ref type="bibr">[17]</ref>. We follow the same procedure specified in Wu and Xiu <ref type="bibr">[17]</ref> to choose a basis of the finite dimensional space V n to represent the solutions, then apply the projection operator to project the snapshot data to V n to obtain the training data in the generalized Fourier space. The choice of basis functions is fairly flexible, any basis suitable for spatial approximation of the solution data can be used. Once the basis functions are selected, a projection operator P n : V &#8594; V n is applied to obtain the solution in the finite dimensional form.</p><p>The approximation space is chosen to be relatively larger as Our task is to demonstrate how our proposed method is able to significantly reduce the number of samples needed for evolution learning. Specifically, for the baseline method, we use random sampling, randomly selecting locations in the solution space to collect samples for evolution learning.</p><p>For example, for the first dynamical system, Damped Pendulum system (ODE) in a 2-D space, the baseline method use 14400 samples to achieve an average network modeling error of 0.026. We then use our method to adaptively discover critical samples and refine the evolution network to reach the same or even smaller network modeling error. We demonstrate that, to achieve the same modeling error, our proposed method needs much fewer samples.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A.3 Implementation Details</head><p>In all examples, we use the recursive ResNet (RS-ResNet) architecture in He et al. <ref type="bibr">[21]</ref>, Qin et al. <ref type="bibr">[8]</ref>, which is a block variant of the ResNet and has been proven in Qin et al. <ref type="bibr">[8]</ref>, Wu and Xiu <ref type="bibr">[17]</ref> to be highly suitable for learning flow maps and evolution operators.</p><p>For all the 4 systems, the batch size is set as 10. In the two 2-dimensional ODE systems, we use the one-block ResNet method with each block containing 3 hidden layers of equal width of 20 neurons, while in the 3-dimensional ODE system, we use the one-block ResNet method with each block containing 3 hidden layers of equal width of 30 neurons. For the final PDE system, we use the four-block ResNet method with each block containing 3 hidden layers of equal width of 20 neurons. Adam optimizer with betas equal (0.9, 0.99) is used for training. In the two 2-dimensional ODE systems, all the networks are trained with 150 epochs. In the Lorenz system and Viscous Burgers' equation, all the networks are trained with 60 epochs. The initial learning rate is set as 10 -3 , and will decay gradually to 10 -6 during the training process. All networks are trained using PyTorch on one RTX 3060 GPU.</p><p>In the four example systems, we evaluate the performance of our models on time duration t &#8712; [0, 20], t &#8712; [0, 10], t &#8712; [0, 5], t &#8712; [0, 2], respectively. For the first two ODE systems, the network modeling error is evaluated by average MSE error at each time step on 50 different arbitrarily chosen solution trajectories. For the Lorenz system, we evaluate the network by average MSE error at each time step under 50 different initial conditions. For the final PDE system, the network modeling error is evaluated by the average L 2 norm error on 100 points at time t = 2 under 50 different initial conditions.</p></div></body>
		</text>
</TEI>
