RUBIX: Differentiable forward modelling of galaxy spectral data cubes for gradient-based parameter estimation
Anna Lena Schaible, Ufuk Çakır, Tobias Buck, Harald Mack, Aura Obreja, Nihat Oguz, William H. Oliver, Horea-Alexandru Cărămizaru
TL;DR
RUBIX introduces a fully differentiable, JAX-based forward model for galaxy IFU data cubes that links particle-scale inputs to observable spectra, enabling gradient-based parameter estimation and paving the way for variational and simulation-based inference. The authors validate gradient correctness against finite differences and demonstrate a successful gradient-driven recovery of input ages and metallicities in a controlled single-spaxel setup, all while leveraging GPU acceleration and a modular, configurable pipeline. While promising, they recognize limitations in scaling to realistic, multi-spaxel galaxies and discuss strategies to manage ill-posedness and uncertainty quantification through priors and variational methods. The work establishes a foundation for integrating differentiable forward models with ML workflows in IFU data analysis and outlines clear directions for future extensions to complex galaxies and inference techniques.
Abstract
Although integral-field spectroscopy enables spatially resolved spectral studies of galaxies, bridging particle-based simulations to observations remains slow and non-differentiable. We present RUBIX, a JAX-based pipeline that models mock integral-field unit (IFU) cubes for galaxies end-to-end and calculates gradients with respect to particle inputs. Our implementation is purely functional, sharded, and differentiable throughout. We validate the gradients against central finite differences and demonstrate gradient-based parameter estimation on controlled setups. While current experiments are limited to basic test cases, they demonstrate the feasibility of differentiable forward modelling of IFU data. This paves the way for future work scaling up to realistic galaxy cubes and enabling machine learning workflows for IFU-based inference. The source code for the RUBIX software is publicly available under https://github.com/AstroAI-Lab/rubix.
