Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Self-optimizing adaptive optics control with Reinforcement Learning for high-contrast imaging

Recurrent reinforcement learning controller predicts and cancels vibrations in adaptive optics

  • Problem Telescope vibrations and control-loop latency limit contrast in high-contrast imaging. Existing predictive controllers need pseudo open-loop data or constant online retuning of their control parameters.
  • Method RDPG trains a recurrent neural network controller directly on closed-loop data. Unlike a fixed-gain integrator, the controller keeps a memory of past wavefront measurements and learns to predict disturbances.
  • Results In simulation, the RL controller reduced tip-tilt RMS by a factor 6 compared with the optimal gain integrator. It also gave about two orders of magnitude better contrast at small separations under stationary turbulence.

Why servo lag and residual tip-tilt limit contrast

Ground-based high-contrast imaging loses contrast partly because the wavefront changes during the time it takes to sense and correct it. Finite control bandwidth leaves low-order tip and tilt residuals, and vibrations close to the maximum control frequency are one main cause of them. Some coronagraphs are highly sensitive to residual tip-tilt, so these residuals reduce the contrast further.

Early controllers tuned the modal gains of a modal integrator from the open-loop temporal power spectral density. That fixed gain trades turbulence rejection against amplification of noise outside the control bandwidth. Reducing the servo-lag requires predicting disturbances before they are measured, which an integrator alone doesn't do. Data-driven linear filters avoid an explicit turbulence model, but they predict pseudo open-loop residuals that must be reconstructed from closed-loop data.

That reconstruction is hard when the Pyramid wavefront sensor response is nonlinear. Predicting open-loop residuals also doesn't give the best closed-loop gain, so the closed-loop law still needs tuning.

Most of these methods also need their control parameters updated online as the turbulence changes. The authors ask whether a controller can instead be optimised directly on closed-loop commands. They use Reinforcement Learning for that, optimising the closed-loop adaptive optics control law from data.

A recurrent controller that learns from closed-loop states

The controller observes only the latest wavefront measurement and the previous DM commands, so its state is a pair of inputs. The authors write this state as s_t = (o_t, a_{t-1}), where o_t is the residual wavefront observation and a_{t-1} the previous incremental DM commands. It also mixes changes in the turbulence profile with changes caused by earlier commands, since only closed-loop residuals are observed.

Stacking many past measurements can fix this, but Guyon & Males used a vector of the previous 800 measurements for tip-tilt vibrations. That stacking raises the computational demand, and all past measurements are weighted equally, which adds noise if the problem is poorly regularized.

A recurrent neural network solves this by keeping a memory state m_t that is updated from the previous memory state and the new input. The memory summarizes earlier measurements, so the network can learn an internal representation of the true system state from noisy sequences. At run time, computing the control command only requires the newest observation to pass through the controller.

That keeps the computation light, which matters for high-order AO systems running at kHz frequencies. The authors use a Long Short-Term Memory cell as the recurrent architecture and train it with truncated backpropagation through time. Together with the policy gradient, this recurrent setup forms the Recurrent Deterministic Policy Gradient algorithm.

The controller is built from two networks, an actor π_θ that maps the state to DM commands and a critic Q_ω that estimates the expected return. The actor models the control law, while the critic models the return for a given state and DM command. Because the method is off-policy, tuples recorded with an integrator or with an earlier controller can train the RL controller.

For exploration, the authors add zero-mean normally distributed noise with standard deviation σ_k = σ_0/(1+ζk) rad. Large early noise lets the algorithm see the effect of big command changes, and small later noise refines the result.

Any parameterized, differentiable control law can be used, including a nonlinear Artificial Neural Network controller. The authors use the same network architecture for the actor and the critic in the tip-tilt simulations.

How the critic and actor are trained

The critic is fitted by temporal difference learning, which uses the Bellman equation to bootstrap the expected future reward. The target values are yt = rt + γQω(st+1, π(st+1)), so the critic learns from its own next-step estimate. The critic loss is the mean-squared error between the critic output and these target values. Because the targets depend on the critic itself, training can quickly become unstable.

Target models Q′ and π′ are therefore used to compute the target values, and they lag behind the trained models. After every critic iteration, the target parameters are updated with a soft update controlled by τ, which is smaller than 1.

The actor is updated with the chain rule, so its gradient is the expectation of ∇aQω(s,a) multiplied by ∇θπθ(s). Tuples are sampled at random from the replay buffer to reduce the correlation within a batch. The DDPG algorithm is off-policy, so the authors can also reuse data from other controllers, such as an integrator.

For the recurrent version, the networks are trained on sequences of states, actions and rewards using truncated backpropagation through time over a length l. Algorithm 1 samples N batches of length l from the replay buffer and builds state histories for each batch. The critic loss gradient and the policy gradient are both averaged over these N batches and l time steps.

A gradient-based optimizer such as Adam then updates the actor and critic parameters, and the target networks are updated afterwards.

For tip-tilt control, the authors start training only after a warm-up of 5 episodes, which is equivalent to 2500 iterations. Each episode lasts 500 iterations, and the exploration noise follows the decay law given in Eq. 11. The tip-tilt simulations use the Adam optimizer with default parameters except for the learning rate.

Tip-tilt results in simulation

The first test is tip-tilt control in an idealised simulation built with HCIPy, using a 1 m unobscured circular aperture at 1 µm. The observation is the centre of gravity of the focal plane in λ/D, and a delay of 3 frames at 1 kHz stands in for servo lag. The LSTM actor and critic each have 64 recurrent neurons and a 64-neuron dense layer, with about 22,000 free parameters each.

The authors say this is likely more than tip-tilt control needs, and they didn't tune the architecture.

The integrator gain was chosen from a 1-second closed-loop run as the one giving the lowest RMS. After a few thousand iterations, the RL controller's average RMS reached a factor 6 below the integrator's. The integrator removes only the 13 Hz peak, and it adds power at 91 Hz. The RL controller removes almost all power at the three peaks, with most of the leftover power at 13 Hz.

The authors attribute that leftover power to the 13 Hz vibration's period being longer than the 50 ms optimisation length.

The second test uses a temporal power law with index -8/3 in both directions, which matches Kolmogorov phase fluctuations. Frequencies below 2 Hz are neglected when the random power-law series are generated for each 500 ms episode. The integrator's residual PSD shows an overshoot bump near 70 Hz, while the RL controller rejects more power at low frequencies.

The RL controller accounts for commands already applied but not yet visible in the residuals, so it can use a higher gain without that overshoot. The price is extra power at high frequencies, which the authors explain as the waterbed effect. The residual RMS for power-law input is about 25% lower than with the optimal gain integrator.

Tip-tilt tests on the lab bench

The SLM voltages have 8-bit resolution, and the authors keep only values between 25 and 225 because the response becomes highly nonlinear at the extremes. The manufacturer rates the SLM at 30 Hz, but the lab runs it at approximately 18 Hz. The control-loop delay wasn't constant, averaging 0.1 to 0.15 seconds, which equals 2-3 frames at 18 Hz.

For the RL controller, the reward scaling b changes to 0.05 λ/D, because the PSF shift is smaller than in simulation.

The authors insert vibrations at 0.23, 0.48 and 0.9 Hz in x, and at 0.18, 0.51 and 0.86 Hz in y. With the RL controller, the lab RMS drops by a factor 2.2. In simulation, the trained controller reached an average RMS a factor 6 lower than the integrator. The lab and simulated runs use different frequencies and hardware, so the two factors aren't a controlled comparison.

The authors attribute the extra residual vibration power and longer training to lab noise, variable loop delay and SLM dynamics.

For a changing input, the authors train one controller on a single vibration whose amplitude and frequency are redrawn every 500 iterations. At a fixed amplitude of 1, the integrator with a fixed gain of 0.6 amplifies the vibration starting at 1.25 Hz. The trained RL controller reduces the RMS at every tested frequency, instead of amplifying it as the integrator does.

The authors conclude that the recurrent controller identifies amplitude and frequency from its observed measurements, without updating the control law.

On power-law input turbulence, the RL controller needed many iterations to converge. The authors link this slow convergence to the noisy response of the SLM. Against an optimised integrator, the RL controller cut the residual RMS by about 25% in the lab. This gain is smaller than the improvement seen in simulation, where the RL controller gave the same kind of rejection at low frequencies.

Controller design for the high-order deformable mirror

The 41x41 actuator mirror is handled by a convolutional version of the recurrent controller, so one shared law covers every actuator. The control basis uses Gaussian influence functions centered on the DM actuators, so each mode has the same spatio-temporal wavefront correlations except at the edges. A ConvLSTM is equivalent to an LSTM for each actuator, with a local field of view and weights shared between the actuators.

With a 1x1 kernel, each actuator would get its own decoupled control law, but that would not capture any spatial correlations in the data. The authors note that spatial correlations are small in on-sky telemetry for wind speeds below 10 m/s on short timescales, but may matter more at higher speeds.

The input is an array of shape 41x41x2 per time step, holding the residual wavefront error and the previous incremental DM command at each actuator. Unused actuators outside the pupil are filled with zeros. The actor applies a ConvLSTM with 16 3x3 kernels, then regular convolutions with 8 and 1 3x3 kernels that output the new incremental DM commands.

The critic uses its own ConvLSTM with 16 3x3 kernels, concatenates the DM commands, and applies three convolutions with 16, 8 and 1 3x3 kernels. The critic outputs a 41x41x1 map of expected return, one value per actuator, and both networks have about 12,000 free parameters. The reward is a 2D map of squared residual error at each actuator, so the critic only considers close-by actuators.

Table 5: Neural Network architectures of the actor and critic used for the full wavefront control

Table 5 Neural Network architectures of the actor and critic used for the full wavefront control.

Original paper · CC BY 4.0 · Rico Landman, Sebastiaan Y. Haffert, Vikram M. Radhakrishnan, Christoph U. Keller · Self-optimizing adaptive optics control with Reinforcement Learning for high-contrast imaging · Original paper figure · Extracted the figure area from page 19 of the original PDF.

Before each truncated backpropagation window, the controller runs the 10 previous states through the models, so the memory states are initialised correctly. An L2 penalty on the incremental DM commands discourages the controller from adding unsensed modes. This section uses a discount factor of 0.9, because the reward is monotonic in the absolute wavefront error.

It also uses a target soft update of 0.1 and a noise decay of 0.1, which reduce training time without giving up too much stability.

Contrast under stationary and changing wind

After training, the controller runs without exploration noise for a 10-second simulation, and the integrator is compared at its optimal gain. At small separations, the RL controller raises raw contrast by up to two orders of magnitude compared to the integrator. The authors also plot an ideal controller that removes every wavefront error the DM can fit at each timestep, with no delay, as an upper reference.

For changing conditions, the wind speed is sampled uniformly between 10 and 40 m/s, all wind directions are allowed, and both are reset every second. Only a single frozen-flow layer is used in these training simulations, so the controller sees one changing layer. After training, the controller is tested at specific wind speeds with randomly sampled directions over 10-second simulations.

The controller improves contrast for every tested wind velocity and direction, which the authors read as adaptation to the changed spatio-temporal PSD. The controller therefore doesn't need online learning, unlike most other predictive control algorithms.

The gain under varying wind is smaller than when the controller is trained for one fixed wind speed and angle. Some wind-driven halo remains in the contrast curves under varying conditions. The authors attribute this to the finite representation power of the model, so a deeper or wider model would likely perform better, at the cost of computation.

Generalising to more complex turbulence with more varying parameters would be even harder, according to the authors. The authors suggest starting from the general model and learning online for the current observing conditions, but they didn't test that option. Residual cross-shaped ripples appear in the coronagraphic images because the edge actuators don't share the same spatial response.

Limits and open questions

They note that noise affects both the state and the reward, so its effect on the controller is still open. The full stationary wavefront controller took about 4 hours on an NVIDIA Tesla K80 GPU through Google Colab. Online learning with backpropagation is described as computationally very challenging, so the authors decouple training from control.

Stability is a second open issue, because the controller is a sophisticated nonlinear model. The authors say it is difficult to give performance guarantees for this controller. Changing the hyperparameters can strongly influence the learning stability of the algorithm. The high-order results are simulations only, while the lab tests covered tip-tilt control.

The residual cross-shaped ripple in the coronagraphic images comes from square-edge effects at the actuators on the edge. Those actuators break the assumption that all actuators share the same spatial response. One suggested fix is to drop shared convolutional kernel weights, which adds more free parameters. The authors also left unexplored whether training on historical integrator telemetry can already give a good controller.

Off-policy use of integrator data would need to be investigated, or the controller would need online learning.

Paper info

Authors
Rico Landman, Sebastiaan Y. Haffert, Vikram M. Radhakrishnan, Christoph U. Keller
Venue
arXiv · Preprint
First published
2021-8-24
Added
2026-11-6
Updated
2021-8-24
Version
v1
arXiv
2108.11332
Category
astro-ph.IM · astro-ph.EP · cs.LG
Original paper terms
CC BY 4.0
What we show
Paper info, commentary and permitted figures from the original paper

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Abstract

Current and future high-contrast imaging instruments require extreme adaptive optics (XAO) systems to reach contrasts necessary to directly image exoplanets. Telescope vibrations and the temporal error induced by the latency of the control loop limit the performance of these systems. One way to reduce these effects is to use predictive control. We describe how model-free Reinforcement Learning can be used to optimize a Recurrent Neural Network controller for closed-loop predictive control. First, we verify our proposed approach for tip-tilt control in simulations and a lab setup. The results show that this algorithm can effectively learn to mitigate vibrations and reduce the residuals for power-law input turbulence as compared to an optimal gain integrator. We also show that the controller can learn to minimize random vibrations without requiring online updating of the control law. Next, we show in simulations that our algorithm can also be applied to the control of a high-order deformable mirror. We demonstrate that our controller can provide two orders of magnitude improvement in contrast at small separations under stationary turbulence. Furthermore, we show more than an order of magnitude improvement in contrast for different wind velocities and directions without requiring online updating of the control law.

Quote from the paper

Rico Landman, Sebastiaan Y. Haffert, Vikram M. Radhakrishnan, Christoph U. Keller (2021). Self-optimizing adaptive optics control with Reinforcement Learning for high-contrast imaging. arXiv:2108.11332v1. https://arxiv.org/abs/2108.11332v1

BibTeX
@misc{landman2021self,
  title = {{Self-optimizing adaptive optics control with Reinforcement Learning for high-contrast imaging}},
  author = {Rico Landman and Sebastiaan Y. Haffert and Vikram M. Radhakrishnan and Christoph U. Keller},
  year = {2021},
  eprint = {2108.11332},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.11332v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up