scieee AI-readable full text Open interactive document viewer

Model-free reinforcement learning with a non-linear reconstructor for closed-loop adaptive optics control with a pyramid wavefront sensor

Pou Mulet, Bartomeu,Smith, Jeffrey,Quiñones Moreno, Eduardo,Martín Muñoz, Mario,Gratadour, Damien

Abstract

We present a model-free reinforcement learning (RL) predictive model with a supervised learning non-linear reconstructor for adaptive optics (AO) control with a pyramid wavefront sensor (P-WFS). First, we analyse the additional problems of training an RL control method with a P-WFS compared to the Shack-Hartmann WFS. From those observations, we propose our solution: a combination of model-free RL for prediction with a non-linear reconstructor based on neural networks with a U-net architecture. We test the proposed method in simulation of closed-loop AO for an 8m telescope equipped with a 32x32 P-WFS and observe that both the predictive and non-linear reconstruction add additional benefits over an optimised integrator.

Full text

Model-free Reinforcement Learning with a Non-linear Reconstructor for closed-loop Adaptive Optics control with a pyramid wavefront sensor B. Poua, b, J. Smithc, E. Quinonesa, M. Martinb, and D. Gratadourd aBarcelona Supercomputing Center (BSC), C. Jordi Girona, 29, 08034, Barcelona, Spain bComputer Science Department, Universitat Polit`ecnica de Catalunya (UPC), C. Jordi Girona, 31, 08034, Barcelona, Spain cSchool of Computing, Australian National University, Canberra, Australia dLESIA, Observatoire de Paris, Universite PSL, CNRS, Sorbonne Universite, Univ. Paris Diderot, Sorbonne Paris Cite, 5 place Jules Janssen, 92195 Meudon, France ABSTRACT We present a model-free reinforcement learning (RL) predictive model with a supervised learning non-linear reconstructor for adaptive optics (AO) control with a pyramid wavefront sensor (P-WFS). First, we analyse the additional problems of training an RL control method with a P-WFS compared to the Shack-Hartmann WFS. From those observations, we propose our solution: a combination of model-free RL for prediction with a non-linear reconstructor based on neural networks with a U-net architecture. We test the proposed method in simulation of closed-loop AO for an 8m telescope equipped with a 32x32 P-WFS and observe that both the predictive and non-linear reconstruction add additional benefits over an optimised integrator. Keywords: Reinforcement Learning, AO Control, Machine Learning, Pyramid Wavefront Sensor 1. INTRODUCTION In recent years, the interest in adaptive optics (AO) control with machine learning (ML) methods has risen exponentially. On the one hand, there are methods built around supervised learning (SL). Among these methods, we can differentiate between non-linear reconstructors,1–4predictive models5,6or a combination of both.7,8In the case of predictive models, while their predictions are usually correct in open-loop, their performance dramatically decreases in closed-loop because there is a distribution mismatch between the training set and operational data. A possible solution to this problem is to introduce a regularisation so that the output of the prediction is within the bounds of the training data distribution.8On the other hand, a few predictive models based on reinforcement learning (RL) have been developed.9–15 In this work, we focus on closed-loop RL methods with a wavefront sensor (WFS), in which the goal is to learn the control policy, a function that maps information of the system to commands, during operation.11–15 In this case, there is no distribution mismatch between training and operational data as they are the same. Moreover, in contrast to most current model-based predictive controllers, there are no assumptions, and the control dynamics are learnt purely from data. RL for AO has initially been assessed with a focus on WFS-less methods.9,10 The current RL methods considering a WFS are mainly divided into model-based12,15 and model-free.11,13,14 Model-based RL methods involve building a model (usually with neural networks) of the system’s dynamics and use it either to find an optimal action or to train a control policy. In its initial development, random sampled commands were propagated through a model of the system dynamics built purely on data and the ones that gave overall best performance were selected. This was shown to outperform an integrator controller. However, the large corresponding inference time limited its applicability. Recently, to reduce this inference time, the model was made to behave as a policy simultaneously15 (i.e. directly giving as output the commands that already maximise the performance metric Further author information: (Send correspondence to B. Pou) B. Pou: E-mail: bartomeu.poum[email protected] B. Pou, J. Smith, E. Quinones, M. Martin, and D. Gratadour "Model-free reinforcement learning with a non-linear reconstructor for closed-loop adaptive optics control with a pyramid wavefront sensor", Proc. SPIE 12185, Adaptive Optics Systems VIII, 121852U (29 August 2022). Copyright 2022 Society of Photo Optical Instrumentation Engineers. One print or electronic copy may be made for personal use only. Systematic electronic or print reproduction and distribution, duplication of any material in this paper for a fee or for commercial purposes, or modification of the content of the paper are prohibited. http://dx.doi.org/10.1117/12.2627849 selected). In the model-free counterpart, Landman et al.11,13 used convolutional neural networks in the policy to predict zonal commands for correction. Instead, previous work from our team14 exploited the orthogonal property of a global modal basis to factorise the problem into subproblems. This changed the problem from a single-agent RL solution to a multi-agent RL (MARL) one. Moreover, we showed that the RL controller mostly corrected temporal error via an error budget analysis. Among the traditional model-based controllers, Linear Quadratic Gaussian (LQG) variations are considered state-of-the-art for AO. Initially introduced in 1993,16 a model of the system dynamics based on its physical properties is built, which is then used to select the appropriate commands to compensate for the temporal error. This process usually takes into account many assumptions, such as the consideration of Kolmogorov turbulence, which we intend to avoid, as during an on-sky observation, this assumption might not hold. The MARL solution was compared against an implementation of LQG, showing similar performance levels, which indicates that RL-based controllers are on par with the traditional model-based state-of-the-art solution. The pyramid WFS (P-WFS)17 delivers promises for extreme AO, as the reconstruction accuracy is outstanding. This is because the P-WFS has higher sensitivity compared to the long-established Shack-Hartmann WFS (SH-WFS), allowing for a higher degree of phase correction. However, several phenomena make creating a controller for this sensor technology challenging. The most well-known phenomenon is optical gain (OG), a change in sensitivity due to residual aberrations. The CLOSE algorithm18 provides a strategy to adjust modal gains in real-time to mitigate the impact of varying OG. Most of the RL works have focused on a SH-WFS. However, Nouisiainen et al.15 recently presented a model-based RL method for controlling an AO system equipped with a P-WFS. In the discussion section, we argue on the differences between their approach and the one presented in this paper. The rest of the paper continues as follows: in Section 2, we discuss how the P-WFS complexifies the training of an RL method compared to the SH-WFS. Section 3provides a possible solution to this issue. Section 4shows different experiments to see if we can outperform an optimised integrator. Finally, in Section 5, we discuss our results and limitations and provide possible future work. 2. DIFFICULTIES IN TRAINING AN RL CONTROLLER IN A P-WFS In this section, we present the problems that the P-WFS pose for training an RL controller. Usually, the relationship between the phase and the WFS image is considered linear. Equation 1shows the linear relationship described by an interaction matrix, D, between a measurement vector from the WFS, m, and a reconstruction vector of the phase projected into the deformable mirror (DM), c.Dis usually obtained by pushing modes with a minimal value, seeing its effect in the WFS, and just establishing a linear relationship. m=Dc. (1) Then given a measurement, the reconstruction can be obtained with the generalised inverse of the interaction matrix, the command matrix, D†: c=D†m. (2) For the SH-WFS, this equation holds most of the time. In contrast, the P-WFS has a non-linear behaviour, and the linear reconstruction may only be valid in a specific range. In the mentioned works of closed-loop RL control, the reward function, the performance measure which the controller uses to improve itself, and part of the state, information about the system, is derived from c. We study the linear reconstruction for both the SH-WFS and P-WFS with aberrations on both a global and zonal basis. We obtain those reconstructions using COMPASS.19 For the SH-WFS, the simulation consists of an 8m telescope with a 40x40 SH-WFS, and the P- WFS has the same simulation parameters as the one used for the experiments (see Table 1). For the global basis, we use Btt modes.20 Inspired by the Zernike polynomials, the Btt modes are desired due to their properties of pure orthogonality and that the piston is filtered out. For the zonal basis, we use the influence functions of the DM. Figure 1a and Figure 1b show the reconstruction of a phase formed only by a single mode of the zonal basis from measurements of the SH-WFS and the P-WFS, respectively. Figure 1c and Figure 1d show the reconstruction of the phase formed by Btt modes 40 and 200, respectively, from measurements of the P-WFS. We evaluate the P-WFS reconstructions of global modes with different values of Btt mode index 0. From these figures, we can observe a set of problems which will appear when training an RL controller in an AO system equipped with a P-WFS: 0.4 0.2 0.0 0.2 0.4 Amplitude mode index 0 ( m) 0.4 0.2 0.0 0.2 0.4 WFS response mode index 0 ( m) (a) Reconstruction of zonal mode 0 with a SH-WFS. 0.4 0.2 0.0 0.2 0.4 Amplitude mode index 88 ( m) 0.20 0.15 0.10 0.05 0.00 0.05 0.10 0.15 0.20 WFS response mode index 88 ( m) (b) Reconstruction of zonal mode 88 with a P-WFS. 0.4 0.2 0.0 0.2 0.4 Amplitude mode index 40 ( m) 0.08 0.06 0.04 0.02 0.00 0.02 0.04 0.06 0.08 WFS response mode index 40 ( m) Mode index 0 with A: 0.0 m Mode index 0 with A: 0.2 m (c) Reconstruction of global mode 40 a P-WFS. 0.4 0.2 0.0 0.2 0.4 Amplitude mode index 200 ( m) 0.08 0.06 0.04 0.02 0.00 0.02 0.04 0.06 0.08 WFS response mode index 200 ( m) Mode index 0 with A: 0.0 m Mode index 0 with A: 0.2 m (d) Reconstruction of global mode 200 with a P-WFS. Figure 1: SH-WFS and P-WFS response to various modes. We selected the modes because they show the problematic behaviour. Not all modes show the non-monotonicity/saturation problem for the range of amplitudes we tested. For the P-WFS and global modes, we also tested the reconstruction with a presence of an aberration of mode 0 with a value of either 0 or 0.2 µm. 1. The SH-WFS response is purely linear. Therefore there should not be any problem with using the reconstruction as part of the state or reward function. 2. The P-WFS response is non-linear. If the reconstruction is monotonic, this can be an advantage for RL methods which use non-linear function approximations as neural networks. 3. Figures c) and d) show the OG problem for the P-WFS. The sensitivity of the P-WFS to mode 40 and mode 200 changes when the aberration has other residual error (in this case, an additional residual on mode 0). Therefore, the modes are not orthogonal, and the MARL approach that exploits the orthogonality between modes method will not work as it is. 4. There is a possibility of saturation (Figure 1c) or even a decrease in response (Figure 1b and Figure 1d) when the amplitude of the input mode increases. The RL methods initially use trial and error, which might lead to zones on the edges of the figures. With this, the RL approach might end with a sub-optimal solution that does not correspond to the real minimised residual. This issue will be more pronounced when the atmospheric conditions worsen (e.g. lower r0), or the telescope uses a shorter wavelength for observation, as the probability of ending in the non-monotonic zones is higher. In this work, we avoid problem 3 by not focusing on methods that assume independence between modes (i.e. the MARL approach). For problem 4, we leverage a non-linear reconstruction (similar to Landman et al.,2and Smith et al.4) to mitigate the non-monotonicity. Finally, as an illustration, we show the evolution of training indicators for our RL method in the next section (see Section 3) without the non-linear reconstruction on an experiment with the parameters of Table 1and an r0of 0.16 m at 500 nm. During training, every 2000 frames, we stop the simulation, reset the atmosphere (with another seed) and the DM shape, and perform an evaluation of 1000 frames where we record the final LE SR and the average reward obtained. In Figure 2in red, we show the difference between LE SR obtained with an RL controller and an integrator over the evaluations done over time. In blue, we show the difference in average reward for the RL controller and the integrator for the same evaluations. As explained in Section 3, we do a correction on top of the integrator, hence the first evaluation is always similar in terms of performance to the integrator (both in reward and SR). After the RL controller starts to learn, we observe that the difference between integrator and RL both for average reward and LE SR initially follows a similar direction. However, around frame number 105the SR difference starts to decrease while the difference in average reward per evaluation still increases. We hypothesise that this decoupling is because the RL agent ends up in the non-monotonic zones for some modes. In the following sections, we show that a non-linear reconstructor can help to avoid this decoupling between the reward and LE SR. Figure 2: Decoupling of LE SR and reward. Red: evolution of difference in LE SR in the 1000-frame test between an RL controller and an integrator with a linear reconstruction. Blue: evolution of difference in average reward in the 1000-frame test between an RL controller and an integrator with a linear reconstruction. 3. METHODS 3.1 Supervised Learning Non-linear reconstructor The task of the non-linear reconstructor is to reconstruct the phase from the WFS image. In this work, we propose to build a reconstructor based on the U-net,21 state-of-the-art in many computer vision tasks. In our work, the U-net architecture receives as input the P-WFS image, x, and outputs the estimated phase, ˆy.The P-WFS image is separated into channels, where each channel is a pupil image of the P-WFS. U-net is based on an autoencoder architecture with encoder and decoder parts. A sketch of the U-net model used for non-linear reconstruction is shown in Figure 3. Given the network’s weights, θ, the network’s prediction of the phase, ˆy, and the real phase, y, the loss consists of the relative L1loss: L(θ) = ||ˆy−y||1 ||y||1+ϵ,(3) where ϵis a small value to ensure that very small inputs do not have excessive significance in the loss. As reported in previous works,2the relative loss forces the model to consider similarly phases with a high root mean square (RMS) variance and phases with a low RMS. With a pure L1loss, the model would focus more on phases with a high RMS due to its overall magnitude. Figure 3: U-net for non-linear reconstruction. The U-net takes as input the four pupil images of the P-WFS and outputs the estimated phase. Given a P-WFS image, x, the non-linear reconstruction, cnl, is computed as the projection from the phase to any modal basis we choose as: cnl(x) = P ph2m·(U-net(x)),(4) where P ph2mis a matrix that projects the phase onto a modal basis. 3.2 Reinforcement learning predictive controller RL treats control problems as an interaction between an agent and an environment. The agent executes actions, a, in the environment and receives states, s, and rewards, r, a measure of agent’s performance. The agent has a policy, π, a function that maps states to actions which is improved based on data recollected interacting with the environment via trial and error. Consider the return at timestep t, Rt, the weighted sum of cumulative rewards: Rt= T X t′=t γt′−trt′+1,(5) where γ∈(0,1] is a weighting factor giving more importance to initial or late events, and Tis the number of steps in which the task ends. The goal for the agent is to learn optimal policy, π∗, the one (or set of ones) that maximises the expected return from the start of the task to the end. π∗=arg max π Eπ[R0] = arg max π Eπ[ T X t′=0 γt′ rt′+1],(6) where the expectation is over rewards obtained with a given policy. Usually, πis a parametric function with its parameters being updated when more data becomes available. In our case, we choose this parametric function to be a neural network due to their ability to build an implicit highly non-linear model from data. In AO, the state of the environment corresponds to the instantaneous residual phase. Unfortunately, we only have an approximation in the form of a reconstruction of the phase from the WFS image. From earlier works, it has been shown that a combination of reconstructions of the phase and commands from current and previous timesteps works well as the state for the agent. The history of states helps the agent understand the atmosphere’s dynamics and the delay in the AO system. At timestep, t, we define the state as: st= (cl t+cnl t, Ct−1, Ct−2, Ct−3) (7) where cl tand cnl tare the linear and non-linear reconstructions of the phase from the WFS image, and Ctare the commands at timestep t. Our method uses an RL model-free actor-critic architecture. In the current AO literature, there is both a single agent architecture with convolutional layers on a zonal basis13 and multi-agent architecture with dense layers on a global basis.14 For this work, we have used the first choice as it allows faster training. We plan to compare both methods in future work. The actor-critic consists of two models represented by neural networks, a policy, parameterised with weights ϕ, which takes states and outputs actions, πϕ(s), and a critic, parameterised with weights ψ, which outputs estimated return given the agent is in state s, produces action a, and then follows the current policy afterwards, Qψ(s, a) = Eπ[Rt|st=s, at=a]. Usually, in the actor-critic architecture, the actor’s goal is to maximise the output from the critic, so that its actions maximise the cumulative reward. In our framework, we use a variant called Soft Actor Critic (SAC). SAC uses a modification of the RL framework which maximises, in addition to the cumulative rewards, the entropy of the policy, H(π), such that the actions have certain randomness in them for exploration purposes. Eq. 6then becomes: π∗=arg max π Eπ[RMaxEnt 0] = arg max π Eπ[ T X t′=0 γt′(rt′+1 +αH(π(st′)))].(8) where αis a hyperparameter that controls the trade-off between maximising reward or entropy. In SAC, the actor outputs the parameters of a Normal distribution, µand σ2(αaffects σ2). Then, the action is sampled from it. Again, this is done for exploratory purposes and can be deactivated at any time by selecting the mean instead. For more details on SAC and its update rule, see the original work of Haarnoja et al.22The actor and critic architectures used for this work are shown in Figure 4. The action is injected onto DM as a correction on top of the integrator with the sum of linear and non-linear reconstructions, each with a specific gain. This is done to speed up training. Ct=Ct−1+glcl t+gnlcnl t+at;at=π(st),(9) where we use the optimal gain for both reconstructions that maximises the LE SR on a 500 frames test. We build the reward such that the agent minimises the sum of linear and non-linear reconstructions. rt=−(cl t+cnl t)2(10) The reward above is computed as a 2D map (one value per actuator position) which will be used on update time to compare against the output of the critic as shown in Figure 4. Within the saturation regime, the RL agent will be focused on reducing the non-linear error (while perhaps increasing the linear one). Within the linear regime, the RL agent will reduce both. Nonetheless, the non-linear reconstruction may not be perfect, consequently, a combination in the form of a sum might be needed. The full RL model is shown in Figure 5. Figure 4: Architectures for both actor and critic architecture used for this work. The critic, Q(s, a) takes the state and the action as input and outputs a 2D map of the predicted maximum entropy expected return, ˆ RMaxEnt. The actor, π(s), takes as input the state and outputs two 2D maps corresponding to each actuator position, a mean and standard deviation one. These are the components from which the action is sampled. Both critic and actor are composed of convolutional layers. The output is always masked with invalid actuators being set to 0. 4. EXPERIMENTS 4.1 Experimental parameters 4.1.1 Simulation parameters In this section, we show the different atmospheric parameters used in our simulation. For the simulation campaign, we use COMPASS version 5.2.0. We use a 3-layer turbulence model and an AO system on an 8m telescope with a 32x32 P-WFS and two DMs: a tip-tilt (tt) and high dimensional piezoelectric (pzt) mirror with a grid of 24x24 actuators. In the experiments, the RL agent only controls the pzt mirror. We leave for future work the problem of controlling both mirrors at the same time with the RL approach. We choose the number of pixels/subapertures of the WFS so as to oversample the DM by a factor of the order of ∼1.4. It is empirically observed that an oversampling factor of 1.0 (corresponding to Fried’s geometry) requires the user to filter out many modes to get a robust servo-loop behaviour. Conversely, a factor of 2.0 (Nyquist sampling) is usually deemed luxurious and is a waste of pixels. A factor of 1.3 to 1.4 is usually estimated to be a suitable trade-off. Thanks to this, we do not need to filter many modes to make an integrator work well enough (we only filter a single mode). We run experiments with different values of the Fried parameter, r0, to account for different turbulence strengths, emphasising that our model can work under very different atmospheric conditions. Finally, as we want to focus on the highest performance possible, we consider a non-modulated pyramid. The remaining parameters can be seen in Table 1. 4.1.2 RL hyperparameters For the RL module, we need to describe the hyperparameters of the actor and critic. Both actor and critic have three hidden layers with 64 filters, where each filter uses a 3x3 kernel with padding and stride of one. For the activation functions in the hidden layers, both actor and critic use rectified linear units.23 For the output layer the critic uses a linear activation function and the actor uses a tanh after sampling the action from the Normal distribution. For the critic, the output is a 24x24 map of predicted maximum entropy cumulative rewards (conditioned in the input state, action and current policy) in each actuator position. For the actor, the output Figure 5: Full model for AO control. On the top left, we have the environment, which consists of the atmosphere, the P-WFS, and the DM. Then, the non-linear reconstructor takes the P-WFS as input to create the reconstruction, the state and the reward. Finally, the RL corrects the command that an integrator with the non-linear reconstruction does with the properties of a predictive controller, as demonstrated in our previous study. Telescope parameters Atmospheric parameters Diamenter (m) 8 Num. layers 3 Pupil diameter (pixels) 256 Altitude per layer (km) 0, 4, 10 AO loop parameters r0(m) variable @ 500 nm Loop frequency (Hz) 1000 r0distribution 0.5/0.35/0.15 Frames of delay 2 L0(m) 30 Target parameters Wind speed per layer (m/s) 15, 15, 35 λtarget (µm) 1.6 Wind direction per layer (◦) 0 20 180 P-WFS parameters DM parameters Num. subapertures 32x32 Mirrors pzt and tt Modulation 0 Num. actuators 24x24 λwfs (µm) 0.85 Modes filtered 1 Noise None Push4Imat [pzt (µm), tt (rad)] [0.01, 0.00005] Coupling (pzt) 0.3 Threshold response actuators (pzt) 0.3 Table 1: Simulation parameters. is a 24x24 map of actions. Both outputs are masked according to the valid actuators. As the actions only affect close-by rewards and states in the time domain, the hyperparameter γis set to 0.1. We manually set αto 50, which allowed us to get good results in the experiments. We filter both the state and the actions with the Btt modes so that they do not contain information with higher spatial frequencies that the DM can manage. To assign the reward to a specific state-action tuple and train the agent, we skip one step before assigning, i.e. stand atis be assigned to rt+2. To avoid saturation, we set a maximum and minimum bound for the commands, which we set to [-300, 300] volts. We normalise the state by dividing between 100 (hence the command information in the state can only be between -3 and 3). Finally, we allow the value of the action in each timestep to be between [-10, 10] volts. For that, as the actor has an output tanh layer, we just multiply the output of the actor by 10. During training, both actor and critic use ADAM optimiser24 with a learning rate of 0.0003. Their weights are initialised with Xavier initialisation,25 except for the last layer of the policy, which is initialised to 0 (as per the suggestion of previous work on residual policy learning26,27). In this way, the commands in the initial stages of training are similar to the ones that the integrator would do. Finally, in RL, we usually train in episodes of a certain number of steps. In this work, we have used episodes of 1000 frames. At the beginning of every episode, we reset the atmosphere (with another seed) and the DM shape. Every two training episodes, we perform an evaluation episode for the RL controller, the integrator with a linear reconstruction and the integrator with a linear plus non-linear reconstruction. 4.1.3 Non-linear reconstructor hyperparameters The non-linear reconstructor is built with the U-net architecture explained in Section 3.1. The U-net expects inputs and output of the same size. For that reason, we pad with zeros each input channel for it to be the same size as the output, from 32x32 to 256x256. The encoder and decoder are symmetric. Each layer in the encoder (other than input/output) has a corresponding one in the decoder with the same number of filters and image size. Between those symmetric layers, there are skip-connections28 which help train deep neural networks. All the layers have a 4x4 kernel, stride of two and padding of one. The decoder uses rectified linear units as the activation functions for the hidden layers and the encoder uses leaky rectified linear units.29 In the case of the output, a tanh is used, which constrains the output between -1 and 1. Batch normalisation,30 another stability trick for training deep neural networks, is used in all layers except the first and the last. Finally, we use three dropout layers31 in the decoder’s first three layers, which diminishes the possibility of overfitting. The number of filters per hidden layer is summarised below. •Encoder: 64 - 128 - 256 - 512 - 512 - 512 - 512. •Decoder: 512 - 512 - 512 - 512 - 256 - 128 - 64. For training, we use ADAM optimisation with a learning rate of 0.0002, which is decayed linearly as more data is processed. The weights are initialised with a Normal distribution of mean 0 and variance 1. We use a batch size of 32. We perform an early stop procedure to select the best model available. Finally, we normalise the training data so that input is between 0 and 1 and output is between -1 and 1. During closed-loop operation, we must normalise the input and denormalise the output. We want a model that can be used for any atmospheric condition. For that, and similarly to Landman et al.,2we use a dataset that consists of random phases created by reshaping the mirrors randomly. This is done by pushing both pzt and tt actuators randomly with values obtained from a Normal distribution with µ= 0. The σ2is obtained by sampling values with a log-uniform distribution with minimum and maximum of (0.015,3) µm for the pzt mirror and (0.00085,0.15) rad for the tt mirror. Interestingly, as we use the phase as the output, we are able to create the dataset with a pzt mirror that has more actuators than the one used in the loop for a dataset that contains a higher frequency content. Using this method, we recollect a dataset with an 8m telescope equipped with a 32x32 pzt mirror and a tt mirror. The final dataset contains 500000 samples for training and 100000 samples for evaluation. 4.2 Results non-linear reconstructor In this section, we evaluate the performance of the non-linear reconstructor. Figure 6compares the performance of an integrator with a purely non-linear reconstruction, an integrator with a linear reconstruction and an integrator with the sum of both linear and non-linear for a 1000 frames. As observed in previous works,2the combination of both linear and non-linear reconstruction is able to obtain better performance than the linear and non-linear only. This provides the means to build our state and reward.