Making the unmodulated pyramid wavefront sensor smart II. First on-sky demonstration of extreme adaptive optics with deep learning
R. Landman, S. Y. Haffert, J. D. Long, J. R. Males, L. M. Close, W. B. Foster, K. Van Gorkom, O. Guyon, A. D. Hedglen, P. T. Johnson, M. Y. Kautz, J. K. Kueny, J. Li, J. Liberman, J. Lumbres, E. A. McEwen, A. McLeod, L. Schatz, E. Tonucci, K. Twitchell
TL;DR
This work tackles the limited linearity and sensitivity of modulated pyramid wavefront sensors (PWFS) by demonstrating, for the first time on-sky, an unmodulated PWFS controlled by a convolutional neural network (CNN) reconstructor within the MagAO-X extreme adaptive optics system. The approach leverages a trained CNN converted to a TensorRT engine to enable real-time, kilohertz-rate operation, achieving closed-loop performance that is competitive with highly optimized modulated PWFS on bright stars and even showing gains on a fainter, wind-affected target. Key findings include <2 kHz to multi-kilohertz loop operation with low latency (<250 μs single-precision, <125 μs half-precision) and Strehl ratios near those of modulated systems under favorable conditions, validating the feasibility of unmodulated PWFS with nonlinear reconstruction for XAO. The work implies substantial practical impact for next-generation instruments and future ELT-scale AO, enabling higher sensitivity and faster control without modulation hardware, while highlighting areas for improvement such as latency stability and extending performance to fainter targets.
Abstract
Pyramid wavefront sensors (PWFSs) are the preferred choice for current and future extreme adaptive optics (XAO) systems. Almost all instruments use the PWFS in its modulated form to mitigate its limited linearity range. However, this modulation comes at the cost of a reduction in sensitivity, a blindness to petal-piston modes, and a limit to the sensor's ability to operate at high speeds. Therefore, there is strong interest to use the PWFS without modulation, which can be enabled with nonlinear reconstructors. Here, we present the first on-sky demonstration of XAO with an unmodulated PWFS using a nonlinear reconstructor based on convolutional neural networks. We discuss the real-time implementation on the Magellan Adaptive Optics eXtreme (MagAO-X) instrument using the optimized TensorRT framework and show that inference is fast enough to run the control loop at >2 kHz frequencies. Our on-sky results demonstrate a successful closed-loop operation using a model calibrated with internal source data that delivers stable and robust correction under varying conditions. Performance analysis reveals that our smart PWFS achieves nearly the same Strehl ratio as the highly optimized modulated PWFS under favorable conditions on bright stars. Notably, we observe an improvement in performance on a fainter star under the influence of strong winds. These findings confirm the feasibility of using the PWFS in its unmodulated form and highlight its potential for next-generation instruments. Future efforts will focus on achieving even higher control loop frequencies (>3 kHz), optimizing the calibration procedures, and testing its performance on fainter stars, where more gain is expected for the unmodulated PWFS compared to its modulated counterpart.
