Attention-based neural network emulators for multiprobe data vectors. III. Modeling the next generation surveys
Phys. Rev. D 113, 103536 – Published 26 May, 2026
DOI: https://doi.org/10.1103/ks4r-25km
Abstract
Machine learning can accelerate cosmological inferences that involve many sequential evaluations of computationally expensive data vectors. Previous works in this series have examined how machine learning architectures impact emulator accuracy and training time for optical shear and galaxy clustering two-point function. In this final manuscript, we explore neural network performance when emulating cosmic microwave background (CMB) temperature and polarization power spectra. We maximize the volume of applicability in the parameter space of our emulators within the standard -cold-dark-matter model while ensuring that errors are below cosmic variance. Relative to standard multi-layer perceptron architectures, we find that the dot-product-attention mechanism reduces the number of outliers among testing cosmologies, defined as the fraction of testing points with relative to camb outputs, for a wide range of training set sizes. Such precision enables attention-based emulators to be directly applied to real data without requiring any additional correction via importance sampling. Combined with pre-processing techniques and optimized activation and loss functions, attention-based models can meet the precision criteria set by current and future CMB and lensing experiments. For each of Planck, Simons Observatory, CMB-S4, and CMB-HD, we find the fraction of outlier points to be less than 10% with around to training data vectors. We further explore the applications of these methods to supernova distance, weak lensing, and galaxy clustering, as well as alternative architectures and pre-processing techniques.