Emulating CO Line Radiative Transfer with Deep Learning

Shenghui Su, Frederik De Ceuster, Jaehoon Cha, M. I. Wilkinson, Jeyan Thiyagalingam, J. Yates, Yan Zhu, J. Bolte · DOI

Abstract

Modelling carbon monoxide (CO) line radiation is computationally expensive for traditional numerical solvers, especially when applied to complex, three-dimensional stellar atmospheres. We present COEmuNet, a 3D convolutional neural network (CNN)-based surrogate model that emulates CO line radiation transport with high accuracy and efficiency. It consists of an asymmetric encoder-decoder design that takes 3D hydrodynamical models as inputs and generates synthetic observations of evolved stellar atmospheres. The model is trained on data from hydrodynamic simulations of Asymptotic Giant Branch (AGB) stars perturbed by a companion. Given a set of input parameters, including velocity fields, kinetic temperature distribution, and CO molecular number densities, the COEmuNet model emulates spectral line observations with a median relative error of ~7% compared to a classical numerical solver of the radiative transfer equation, measured over seven frequency channels and arbitrary viewing directions. Besides, COEmuNet delivers a 1000 times speedup, enabling efficient model fitting to observational datasets, real-time visualization of simulations and progress toward integration in large-scale cosmological simulations.

Introduction

Asymptotic Giant Branch (AGB) stars represent a late stage of stellar evolution characterized by intense mass loss through stellar winds. When these stars are part of a binary system, the gravitational interaction creates complex 3D structures such as spirals, disks, and detached shells. Modern observatories like ALMA and JWST provide high-resolution data of these environments, but interpreting these observations requires Radiative Transfer (RT) modeling.

Traditional numerical RT solvers, such as ray-tracing or Monte Carlo methods, are computationally prohibitive. They create a significant bottleneck in astrophysical research, making it nearly impossible to perform iterative model fitting or large-scale parameter space exploration. COEmuNet addresses this by providing a deep learning surrogate that emulates the RT process with high fidelity and extreme speed.

Methodology

COEmuNet Architecture

COEmuNet utilizes an asymmetric 3D encoder-decoder CNN architecture. A key design feature is the use of three independent encoder branches to process the primary physical inputs: z-axis velocity ($V_z$), kinetic temperature ($T$), and CO number density ($n_{CO}$). This separation prevents premature feature interference, allowing the network to extract distinct spatial characteristics from each physical field before they are fused in the latent space.

The COEmuNet architecture features an asymmetric encoder-decoder design with separate input branches for velocity, temperature, and density.

The decoder then reconstructs these features into 2D synthetic observation images across seven frequency channels. To ensure high structural fidelity and avoid the "blurring" effect common in standard MSE-based training, the authors implemented a composite loss function that includes a frequency-domain component using Discrete Fourier Transforms.

Dataset Generation

Since direct 3D "ground truth" observations do not exist, a synthetic dataset was constructed. 3D hydrodynamical models were generated using the AMRVAC code, and target 2D intensity images were produced using the "Pomme" numerical RT solver under Local Thermodynamic Equilibrium (LTE) assumptions. The final dataset comprises approximately 2.18 million input-output pairs derived from 10,903 unique hydrodynamical models viewed from 200 different angles.

Results

Accuracy and Convergence

COEmuNet demonstrates robust convergence during training. The model achieves high structural similarity and low relative error across the validation and test sets. Specifically, the median Maximum Relative Loss (MaxRel) reached approximately 6.9%, indicating that the emulated images closely match the numerical ground truth.

Training and validation curves show consistent improvement in loss, structural similarity (SSIM/ZNCC), and relative error (MaxRel) over 100 epochs.

Computational Efficiency

The primary advantage of COEmuNet is its inference speed. On an NVIDIA A100 GPU, the model processes a multi-frequency sample in just 0.13 ms. In contrast, the traditional Pomme solver requires 131.54 ms on a high-end CPU. This represents a speedup factor of approximately 1007x, transforming tasks that previously took days into minutes.

Discussion and Future Work

The success of COEmuNet highlights the potential of physical separation in neural architectures for multi-physics problems. By treating velocity, temperature, and density independently in the initial stages, the model effectively learns the complex interactions that produce spectral lines.

However, current limitations include the reliance on the LTE assumption and specialization to a single CO transition. Future iterations will focus on non-LTE data and the integration of Physics-Informed Machine Learning (PIML) to further improve accuracy in high-density regions where conservation laws can provide additional guidance to the network.

Conclusion

COEmuNet provides a powerful new tool for the astrophysical community, enabling real-time visualization and rapid model fitting of complex stellar outflows. By shifting the computational burden to a one-time training phase, it paves the way for more sophisticated 3D modeling in large-scale simulations.

Summary updated

BibTeX
@inproceedings{su2025emulating,
  author = {Shenghui Su and Frederik De Ceuster and Jaehoon Cha and M. I. Wilkinson and Jeyan Thiyagalingam and J. Yates and Yan Zhu and J. Bolte},
  title = {{Emulating CO Line Radiative Transfer with Deep Learning}},
  booktitle = {RAS},
  year = {2025},
  doi = {10.1093/rasti/rzaf028},
}
Figure