1. Introduction
The redshifted 21 cm cosmological signal emitted by neutral hydrogen tells a detailed story of the early universe, from the Dark Ages to the Cosmic Dawn and Epoch of Reionization. For decades, low radio frequency experiments have tried to measure the 21 cm brightness temperature relative to the radiation background to gain an understanding of the first stars and galaxies and the intergalactic medium that is inaccessible to telescopes operating at shorter wavelengths (see S. R. Furlanetto et al. Reference Furlanetto, Oh and Briggs2006 for a review). Of particular interest is the 1D isotropic, or global, 21 cm signal, which is observed at
$\nu \lesssim 235$ MHz, corresponding to redshifts
$z\gtrsim5$. There is still no clear detection of the global 21 cm signal, partly because all experiments so far have been ground-based radio telescopes (e.g., J. D. Bowman et al. Reference Bowman, Rogers, Monsalve, Mozdzen and Mahesh2018; S. Singh et al. Reference Singh, Jishnu and Subrahmanyan2022; E. de Lera Acedo et al. Reference de Lera Acedo, de Villiers and Razavi-Ghods2022), which suffer from Earth’s severe ionospheric distortion and radio frequency interference. Efforts are underway to measure the global 21 cm signal from the most radio quiet environment in the Solar System – the far side of the Moon – using for example LuSEE-Night (S. D. Bale et al. Reference Bale, Bassett and Burns2023) and FarView (R. S. Polidan et al. Reference Polidan, Burns and Ignatiev2024).
To constrain the signal and the many astrophysical and cosmological parameters that shape its evolution, robust software and modeling tools are needed to extract the signal from the bright Milky Way foreground and ultimately complete full Bayesian inference analyses. Semi-numerical and semi-analytical simulations of the 21 cm signal (e.g., A. Mesinger et al. Reference Mesinger, Furlanetto and Cen2011; A. Fialkov et al. Reference Fialkov, Barkana and Visbal2014; J. Mirocha et al. Reference Mirocha, Furlanetto and Sun2017) are faster than fully hydrodynamic codes; however, it is highly costly to use them in inference pipelines that require evaluating the model across multidimensional parameter spaces to sufficiently fit a measurement of the signal. As a result, artificial neural network (NN) emulators of the 21 cm signal have been created to mimic such cosmological simulations in milliseconds via nonlinear regression and thus efficiently sample parameter posterior distributions (e.g., E. de Lera Acedo et al. Reference de Lera Acedo, de Villiers and Razavi-Ghods2022; H. T. J. Bevins et al. Reference Bevins, Heimersheim and Abril-Cabezas2024), assuming systematic effects are properly addressed (e.g., D. Rapetti et al. Reference Rapetti, Tauscher, Mirocha and Burns2020; A. Saxena et al. Reference Saxena, Meerburg, de Lera Acedo, Handley and Koopmans2023).
2. Designing Novel Emulators to Enhance 21 cm Cosmology Inference Pipelines
There are multiple surrogate models, or emulators, of the global 21 cm signal brightness temperature that offer varying amounts of emulation accuracy and speed (A. Cohen et al. Reference Cohen, Fialkov, Barkana and Monsalve2020; H. T. J. Bevins et al. Reference Bevins, Handley, Fialkov, de Lera Acedo and Javid2021; C. H. Bye et al. Reference Bye, Portillo and Fialkov2022; J. Dorigo Jones et al. Reference Dorigo Jones, Bahauddin, Rapetti, Mirocha and Burns2024). We recently developed and released two novel emulators that harness NN architectures that leverage characteristics of the global 21 cm signal to achieve exceptional accuracy, training speed, and evaluation speed compared to other emulators. <sc>21cmLSTM</sc>Footnote 1 (J. Dorigo Jones et al. Reference Dorigo Jones, Bahauddin, Rapetti, Mirocha and Burns2024) provides the most accurate emulations of the global 21 cm signal to date as a result of its inherent capability to capture the temporal evolution of the 21 cm brightness temperature across redshifts or low radio frequencies. This comes at a cost of training time, though, because of the sequential nature of recurrent NNs and the number of trainable parameters (i.e., weights and biases) required. As a result, we created <sc> 21cmKAN</sc>Footnote 2 (J. Dorigo Jones et al. Reference Dorigo Jones, Reyes and Rapetti2025), which has similar emulation accuracy as <sc>21cmLSTM</sc> but trains 75 times faster and evaluates 5 times faster than <sc>21cmLSTM</sc>, enabling efficient Bayesian parameter estimation analyses of different models and parameterizations.
We explored NN architectures that are designed to take advantage of properties inherent to the global 21 cm signal in order to realize state-of-the-art emulation. <sc>21cmLSTM</sc> is made of a Long Short-Term Memory (LSTM) network, which is a type of recurrent architecture that is specifically made for modeling long-term patterns in sequential data (S. Hochreiter & J. Schmidhuber 1997; F. A. Gers et al. Reference Gers, Schmidhuber and Cummins2000). The global 21 cm signal evolves from high to low redshift, meaning that information is correlated across adjacent frequency bins. Thus, we developed <sc>21cmLSTM</sc> to leverage this temporal correlation for signal emulation. LSTM NNs store and propagate information through time using gated mechanisms that allow them to retain memories and capture temporal dependencies in data. However, because of their sequential as opposed to feedforward nature and the significant number of weights required for the memory cells, LSTM NNs can be slower to train and often require more complex optimization.
We found that the Kolmogorov-Arnold Network (KANFootnote 3; Z. Liu et al. Reference Liu, Wang and Vaidya2025) can model the global 21 cm signal to a similar degree of accuracy as the LSTM NN but much more efficiently because of its simple and expressive architecture. KANs learn data-driven functional transformations (i.e., activation functions) to model complex relationships in data, rather than using static functions as do traditional fully-connected NNs. In contrast to LSTM NNs, KANs model the shape of the signal by directly learning the underlying 1D functional transformations on network edges and their summations at the nodes (see Figure 1), without the need for memory gates or recurrent structures. KANs are therefore well suited for multivariate curve emulation where preserving the sequential structure is important. With the help of optimized methodsFootnote 4, training KANs is often faster and convergence is robust, particularly for low-dimensional problems involving functional compositions. This includes the global 21 cm signal and many other summary statistics found in physical sciences. Furthermore, since each transformation is explicitly represented as a learned function, the internal representations of KANs are easier to analyze, interpret, and verify compared to the scalar weights of fixed activation functions learned by traditional fully-connected NNs. In J. Dorigo Jones et al. (Reference Dorigo Jones, Reyes and Rapetti2025), we demonstrated that, while <sc>21cmLSTM</sc> achieved the highest overall accuracy among conventional neural architectures, <sc>21cmKAN</sc> attains comparable performance, as shown in Figure 2, with significantly faster convergence and reduced architectural complexity.
As shown in J. Dorigo Jones et al. (Reference Dorigo Jones, Reyes and Rapetti2025), these are architecture diagrams of a single-hidden-layer traditional fully-connected NN (left) and Kolmogorov-Arnold Network (right). In the KAN, activation functions are learned and applied to parameters on the edge connections between nodes and summed at the nodes. For traditional fully-connected NNs, the activations are pre-determined and fixed on the nodes, the scalar weights of which are learned on the edges.

From J. Dorigo Jones et al. (Reference Dorigo Jones, Reyes and Rapetti2025), this is a histogram of the mean relative root mean square error for 20 trials of <sc>21cmKAN</sc> (in green) trained and tested on the <sc> 21cmGEM</sc> data set. The blue histogram is the error for 20 trials of <sc>21cmLSTM</sc> trained and tested on the same data (J. Dorigo Jones et al. Reference Dorigo Jones, Bahauddin, Rapetti, Mirocha and Burns2024). The red histogram is the approximate error for 20 trials of <sc>21cmVAE</sc> trained and tested on the same data (adapted from Figure 6 of C. H. Bye et al. Reference Bye, Portillo and Fialkov2022). Dashed lines depict the average emulation errors.

The combination of enhanced speed and accuracy facilitated by <sc>21cmKAN</sc> enables rapid and highly accurate physical parameter estimation analyses of multiple 21 cm models, which is needed to fully characterize the complex feature space across cosmological simulations and produce robust constraints on the early universe. <sc>21cmKAN</sc> can predict a given signal for two well-known models in the community in 3.7 ms on average and train in only 10 minutes, when utilizing a typical A100 GPU, achieving these speeds because of its expressive transformations and its relatively small number of trainable parameters compared to a memory-based emulator. In J. Dorigo Jones et al. (Reference Dorigo Jones, Reyes and Rapetti2025), we showed that <sc>21cmKAN</sc> required less than 30 minutes to train and fit simulated signals with added observational noise and obtain unbiased physical parameter posterior distributions (see posterior signal realizations in Figure 3). In addition, we found that the transparent architecture of <sc>21cmKAN</sc> allows the user to conveniently interpret and further validate its emulation results in terms of the sensitivity of the 21 cm signal to each physical model parameter. <sc>21cmKAN</sc> demonstrates the effectiveness of KANs and their ability to more quickly and accurately mimic expensive physical simulations or PDE solvers of the 21 cm signal in comparison to other types of NNs.
From J. Dorigo Jones et al. (Reference Dorigo Jones, Reyes and Rapetti2025). Top: Signal realizations of the 68% best (i.e.,
$1\sigma$) posteriors (red) obtained from nested sampling analyses using <sc>21cmKAN</sc> to fit three global 21 cm signals (dark blue) from the <sc>21cmGEM</sc> test set (C. H. Bye et al. Reference Bye, Portillo and Fialkov2022) with added noise (light blue bands) of 5 mK (left), 10 mK (middle), and 25 mK (right). Bottom: Residuals between the corresponding true signal and each <sc>21cmKAN</sc>
$1\sigma$ posterior (red), the mean posterior (solid black), and the signal emulation (dashed black).

3. Conclusions
<sc>21cmLSTM</sc> and <sc>21cmKAN</sc> can be trained to emulate any data set of global 21 cm signals and subsequently used in Bayesian analyses to fit an observed signal and efficiently obtain unbiased physical parameter constraints to learn key properties of the early universe. The speed–accuracy combination of <sc>21cmKAN</sc> is particularly beneficial to the community because different emulator models will need to be trained to constrain the cosmological and astrophysical parameters across the different existing models of the global 21 cm signal. This will thus facilitate exploring posterior distributions of 21 cm signal parameters (e.g., Y. Qin et al. Reference Qin, Mesinger, Park, Greig and Muñoz2020; E. de Lera Acedo et al. Reference de Lera Acedo, de Villiers and Razavi-Ghods2022; J. Dorigo Jones et al. Reference Dorigo Jones, Rapetti and Mirocha2023) for different models to robustly fit and exploit measurements of the signal. For upcoming observations, <sc>21cmLSTM</sc> offers unprecedented accuracy when desired, and <sc>21cmKAN</sc> eliminates emulator training as a bottleneck in comprehensive inference pipelines. The adaptable and publicly-available nature of <sc>21cmLSTM</sc> and <sc>21cmKAN</sc> makes them immediately useful and integrable for the community.
We acknowledge support by NASA APRA grant award 80NSSC23K0013, a subcontract from UC Berkeley (NASA award 80MSFC23CA015) to the University of Colorado (subcontract #00011385) for science investigations involving the LuSEE-Night lunar far side mission, and NASA award 80NSSC22K1264 to support radio astrophysics from the Moon.



1σ
1σ