jaxspec : a fast and robust Python library for X-ray spectral fitting
Simon Dupourqu\'e, Didier Barret, Camille M. Diez, S\'ebastien, Guillot, Erwan Quintin

TL;DR
jaxspec is a Python library that enables fast, robust, and fully Bayesian X-ray spectral fitting using differentiable likelihoods on CPUs and GPUs, significantly improving efficiency and scalability for high-resolution data analysis.
Contribution
The paper introduces jaxspec, a new Python package leveraging JAX for differentiable Bayesian spectral fitting, offering improved speed and robustness over existing software.
Findings
jaxspec achieves results identical to existing software.
It is approximately 10 times faster than current alternatives.
Variational inference on GPU produces reliable results in under 10 minutes.
Abstract
Context. Inferring spectral parameters from X-ray data is one of the cornerstones of high-energy astrophysics, and is achieved using software stacks that have been developed over the last twenty years and more. However, as models get more complex and spectra reach higher resolutions, these established software solutions become more feature-heavy, difficult to maintain and less efficient. Aims. We present jaxspec, a Python package for performing this task quickly and robustly in a fully Bayesian framework. Based on the JAX ecosystem, jaxspec allows the generation of differentiable likelihood functions compilable on core or graphical process units (resp. CPU and GPU), enabling the use of robust algorithms for Bayesian inference. Methods. We demonstrate the effectiveness of jaxspec samplers, in particular the No U-Turn Sampler, using a composite model and comparing what we obtain with the…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMetabolomics and Mass Spectrometry Studies · Medical Imaging Techniques and Applications · Radiomics and Machine Learning in Medical Imaging
