SearcharxivSearch

arXiv subjects

Philipp Mertsch

Publications and source records attributed to Philipp Mertsch.

At least 19 recordsLinked to original sources

Variational Inference Using a Differentiable Multigrid Linear Solver

Gradient-based Bayesian inference methods require efficient access to Jacobian and adjoint-Jacobian operators of high-dimensional forward models. While multigrid solvers provide near-optimal complexity for elliptic partial differential equations, they are rarely available in forms compatible with automatic differentiation (AD). We develop a differentiable multigrid solver for steady-state diffusion-absorption problems and derive its adjoint operations analytically through the full multigrid hierarchy. The resulting solver, DMGS, is implemented in C++ and interfaced with JAX to provide efficient Jacobian-vector and vector-Jacobian products for variational inference in the NIFTy framework. We validate the approach on a 3D inverse problem involving diffuse radiative transfer in tissue, reconstructing an effective radiative source from Monte Carlo-simulated data. The reconstruction reproduces the data at a reduced chi-squared of 1.1 and generalizes to 32 independent validation datasets. Benchmarks against a JAX-native multigrid implementation show comparable runtimes and consistently lower peak memory for the hand-derived adjoint, with modest reverse-mode overhead. These results establish differentiable multigrid solvers as practical building blocks for variational inference in PDE-constrained problems.

math.NA

Milky Way Atlas: A radial-velocity-resolved, three-dimensional map of H I within 1.25 kpc

We present a velocity-resolved three-dimensional map of local atomic hydrogen (HI) within 1.25 kpc of the Sun, tackling the challenge of converting emission from position-position-velocity space into true 3D structure. Our method combines the HI4PI full-sky survey with the Edenhofer et al. (2024) 3D dust map in the framework of Information Field Theory, enabling a joint reconstruction of the local HI density, radial velocity field, and effective line width while also separating emission arising inside the mapped local volume from more distant Galactic HI. The inference is driven by morphological matching between dust and HI structures together with kinematic coherence in 3D space. Synthetic data tests show that the method recovers the local density and velocity structure, even in the presence of substantial contamination from distant emission. The resulting map reveals a smoother, more diffuse local HI distribution than the dust, a declining HI-to-dust ratio toward high dust column densities consistent with the atomic-to-molecular transition, and a velocity field that captures both large-scale Galactic rotation and local non-circular velocities. Independent comparisons with maser and young stellar cluster velocities agree with the recovered kinematics. This HI map provides a new three-dimensional, kinematically resolved view of the nearby atomic interstellar medium and a foundation for localising other velocity-resolved Galactic emission in physical space.

astro-ph.GA

Polarized 3D Synthetic Turbulence I: Magnetic Field Line Random Walk

The behavior of magnetic field lines in a turbulent plasma is a key property of the medium, with important consequences for plasma dynamics and charged-particle transport. We study the diffusion properties of magnetic field lines in synthetic turbulence featuring different polarization configurations for the magnetic perturbations, as prescribed by the existing magnetohydrodynamic modes (namely, Alfv\'enic and magnetosonic). These turbulent field realizations are then compared with the isotropic (or, random) polarization case, which is the one typically adopted in the literature. We construct polarized synthetic turbulence simulations and study the properties of field lines through the running diffusion coefficient. Our key findings can be summarized as follow: (i) field line wandering is strongly dependent on polarization configurations, (ii) we unveil that the sub-diffusive phase of field line is highly dependent on the polarization and is well reproduced by theoretical predictions based on Corrsin's hypothesis in the low turbulence level regime, (iii) in particular the scaling of the asymptotic diffusion coefficient in magnetosonic-like polarization is $(\delta B/B)^4$ at odd with the $(\delta B/B)^2$ scaling found in the quasi-linear regime for random polarization, (iv) interestingly we note that the subdiffusive phase of field line transport in the magnetosonic-like polarization follows closely the one observed in recent high resolution MHD turbulence simulations, we end giving a word of caution when FL transport is investigated in such simulations.

astro-ph.HE

A Three-Dimensional Tomographic Reconstruction of the Galactic Cosmic-Ray Proton Density

Cosmic rays (CRs) are a ubiquitous non-thermal component of the interstellar medium (ISM). A data-driven three-dimensional (3D) map of their distribution is essential for understanding CR transport and constraining the spatial distribution of their sources. In this work, we reconstructed the 3D spatial distribution of the Galactic cosmic-ray proton (CRp) density. We model the diffuse gamma-ray emission arising from inelastic hadronic interactions between CRps and interstellar gas. Using a map of dust-correlated diffuse gamma-ray emission based on ten years of Fermi-LAT observations together with a three-dimensional gas density model, we infer the spatial CRp distribution through a morphological matching approach. The logarithmic CRp density field is described by a Gaussian process defined on a spherical-times-radial grid, while both the field and its correlation structure are inferred simultaneously using Iterative Charted Refinement. The posterior distribution of the reconstructed 3D CRp density field is approximated using geometric variational inference. The reconstructed CRp density exhibits a smooth but spatially structured distribution with a limited dynamical range across the Galactic disk. We find a moderate enhancement of the CRp density toward the inner Galaxy. The inferred normalization at the Solar position is consistent with local CR measurements by the AMS-02 instrument.

astro-ph.HE

The radial component of the local Galactic magnetic field in 3D

We present a distance-resolved reconstruction of the local line-of-sight Galactic magnetic field, $B_{||}$, by combining a 3D electron density ($n_{e}$) map derived from dust map-informed simulations and a full-sky map of Faraday rotation measure (RM). The forward model evaluates RM on the same 3D grid as the $n_{e}$ map and compares to the Galactic Faraday rotation sky. We infer $B_{||}$ with a Gaussian-process prior whose power spectrum is inferred from the data using geometric variational inference. The result is a local (within 1.25 kpc where $|b|>5^{\circ}$) map of $B_{||}$ with uncertainties. The reconstructed RM sky reproduces prominent features of Faraday rotation sky, with a root mean square average strength of $B_{||}$ of $1.63\pm 0.16$ $\mu$G. In face-on views, the magnetic field exhibits coherent patches with alternating sign and hints of kpc-scale modulations, but with significant structure seen on scales of order 100 pc. The $B_{||}$ field is seen to exhibit a 3D power spectrum with an average slope of $-2.73 \pm 0.19$. We validate our $B_{||}$ reconstruction with Galactic pulsars. Predicted RMs (computed by integrating $n_{e}B_{||}$ to each pulsar's distance) correlates with observed RMs, and predicted dispersion measures (DMs) from the $n_{e}$ map also correlate with measured DMs, albeit with significant scatter.

astro-ph.GA

Spectrum and anisotropies of Galactic cosmic rays: a laboratory for magnetic fields

Much has been learned about Galactic cosmic rays in the past decade: On the observational side, the spectra of cosmic ray nuclei have been directly measured with high precision, resolving chemical composition up to TV rigidities. At even higher rigidities, direct detection is making contact with indirect observations from air shower arrays. A number of breaks have been found in the nuclear spectrum, which was previously thought to be a pure power law up to the knee. Data from air shower arrays also show interesting features in the arrival directions of cosmic-ray nuclei. On the theoretical side, more sophisticated models are able to explain the various spectral breaks either with transitions between different classes of sources or with changes in the transport regime. Yet, it has become clear that our ignorance of the structure of the Galactic magnetic fields, both on large and small scales, is limiting precision predictions. Turning this problem into an opportunity though, we can use Galactic cosmic rays as a laboratory for the study of Galactic magnetic fields. In this review talk, delivered at the 39th International Cosmic Ray Conference (ICRC2025), I have summarised what is known about the spectrum and anisotropies of Galactic cosmic rays, what is not known yet and what can be learnt in the future.

astro-ph.HE

Diffuse emission from stochastic sources

Diffuse emission in gamma-rays and neutrinos are produced by the interaction of cosmic rays with the interstellar medium. Below some hundreds of TeV, the sources of these cosmic rays are most likely Galactic. Hence, observations of high-energy gamma-rays and neutrinos can be used to probe the flux of cosmic rays in other parts of the Galaxy. Supernova remnants are usually considered as the prime candidate for the acceleration of Galactic cosmic rays. They inject cosmic rays in a point-like and specific time-dependent manner. As the precise positions and ages of the sources are not known, predictions must be obtained in a stochastic model. At GeV energies, the distribution of sources can be approximated with a smoothly varying spatial and temporal source density. At hundreds of TeV, however, the point-like nature matters as less sources contribute effectively due to shorter escape times. We have modelled diffuse emissions at hundreds of TeV, relevant for measurements by LHAASO, Tibet AS-gamma, IceCube, and the upcoming SWGO, as well as at tens of GeV, as measured by Fermi-LAT. This reveals the distinctive nature of diffuse emissions at the respective energies which can likely be used to constrain source models and locate cosmic ray sources.

astro-ph.HE

Stochastic modelling of cosmic-ray sources for Galactic diffuse emissions

Galactic diffuse emissions in gamma rays and neutrinos arise from interactions of cosmic rays with the interstellar medium and probe the cosmic-ray intensity away from the Solar system. Model predictions for those are influenced by the properties of cosmic-ray sources, and understanding the impact of cosmic-ray sources on Galactic diffuse emissions is key for interpreting measurements by LHAASO, Tibet AS-gamma, IceCube, and the upcoming SWGO. We consider supernova remnants as prototypical cosmic-ray sources and study the impact of their discreteness on the Galactic diffuse emissions in different source injection and near-source transport models in a stochastic Monte Carlo study. Three lessons exemplify the results of our simulations: First, the distributions of Galactic diffuse emission intensities can be described by a mixture model of stable laws and Gaussian distributions. Second, the maximal deviations caused by discrete sources across the sky depend on energy, reaching typically tens of percent in burst-like and energy-dependent escape scenarios but order unity or larger in a time-dependent diffusion scenario. Third, the additional model uncertainty from source stochasticity is subdominant in burst-like and energy-dependent escape scenarios, but becomes sizeable above some tens of TeV in the time-dependent diffusion scenario, where it can help reconcile model predictions with LHAASO measurements. With increased spatial resolution, especially at energies beyond tens of TeV, measurements of Galactic diffuse emissions can be expected to constrain source models and locate cosmic ray sources.

astro-ph.HE

Investigating the CREDIT history of supernova remnants as cosmic-ray sources

Supernova remnants (SNRs) have long been suspected to be the primary sources of Galactic cosmic rays. Over the past decades, great strides have been made in the modelling of particle acceleration, magnetic field amplification, and escape from SNRs. Yet while many SNRs have been observed in nonthermal emission in radio, X-rays, and gamma rays, there is no evidence for any individual object contributing to the locally observed flux. Here, we propose a particular spectral signature from individual remnants that is due to the energy-dependent escape from SNRs. For young and nearby sources, we predict fluxes enhanced by tens of percent in narrow rigidity intervals; given the percent-level flux uncertainties of contemporary cosmic-ray data, such features should be readily detectable. We model the spatial and temporal distribution of sources and the resulting distribution of fluxes with a Monte Carlo approach. The decision tree that we have trained on simulated data is able to discriminate with very high significance between the null hypothesis of a smooth distribution of sources and the scenario with a stochastic distribution of individual sources. We suggest that this cosmic-ray energy-dependent injection time (CREDIT) scenario be considered in experimental searches to identify individual SNRs as cosmic-ray sources.

astro-ph.HE

Local dark matter density from Gaia DR3 K-dwarfs using Gaussian processes

The local dark matter density provides constraints on dark matter models and is of importance for experiments hoping to detect dark matter particles in the laboratory. The advent of extensive survey data calls for more complex physical modelling and more sophisticated statistical analysis, particularly to account for correlated uncertainties. In this paper, we perform a vertical Jeans analysis, including a local approximation of the tilt term, using a sample of $200\,000$ K-dwarf stars from the Gaia DR3 catalogue. After combination with the Survey-of-Surveys (SoS) catalogue, $160\,888$ of those have radial velocity measurements. We use Gaussian processes as priors for the covariance matrix of radial and vertical velocities. Joint inference of the posterior distribution of the local dark matter density and the velocity moments is performed using geometric variational inference. We find a local dark matter density of ${\rho_\mathrm{dm} = 0.0117 \pm 0.0035\, \mathrm{M}_\odot\,\mathrm{pc}^{-3} = 0.44 \pm 0.13\, \mathrm{GeV}\,\mathrm{cm}^{-3}}$ at the Sun's position, which is in agreement with most other recent analyses. By comparing a ($z$-dependent) Gaussian process prior with a ($z$-independent) scalar prior for the tilt term, we quantify its impact on estimates of the local dark matter density and argue that careful modelling is required to mitigate systematic biases.

astro-ph.GA

SECRET: Stochasticity Emulator for Cosmic Ray Electrons

The spectrum of cosmic-ray electrons depends sensitively on the history and spatial distribution of nearby sources. Given our limited observational handle on cosmic-ray sources, any model remains necessarily probabilistic. Previously, predictions were performed in a Monte Carlo fashion, summing the contributions from individual, simulated sources to generate samples from the statistical ensemble of possible electron spectra. Such simulations need to be re-run if the cosmic-ray transport parameters (e.g. diffusion coefficient, maximum energy) are changed, rendering any parameter study computationally expensive. In addition, a proper statistical analysis of observations and comparison with such probabilistic models requires the joint probability distribution of the full spectrum instead of only samples. Note that parametrising this joint distribution is rendered difficult by the non-Gaussian statistics of the cosmic-ray fluxes. Here, we employ machine learning to compute the joint probability distribution of cosmic-ray electron fluxes. Specifically, we employ masked autoregressive density estimation (MADE) for a representation of the high-dimensional joint probability distribution. In a first step, we train the network on a Monte Carlo simulation for a fixed set of transport parameters, thus significantly accelerating the generation of samples. In a second step, we extend this setup to SECRET (Stochasticity Emulator for Cosmic Ray Electrons), allowing to reliably interpolate over the space of transport parameters. We make the MADE and SECRET codes available at https://git.rwth-aachen.de/pmertsch/secret .

astro-ph.HE

Investigating the CREDIT history of supernova remnants as cosmic-ray sources

Supernova remnants (SNRs) have long been suspected to be the primary sources of Galactic cosmic rays. Over the past decades, great strides have been made in the modelling of particle acceleration, magnetic field amplification, and escape from SNRs. Yet, while many SNRs have been observed in non-thermal emission in radio, X-rays, and gamma-rays, there is no evidence for any individual object contributing to the locally observed flux. Here, we propose a particular spectral signature from individual remnants that is due to the energy-dependent escape from SNRs. For young and nearby sources, we predict fluxes enhanced by tens of percent in narrow rigidity intervals; given the percent-level flux uncertainties of contemporary cosmic-ray data, such features should be readily detectable. We model the spatial and temporal distribution of sources and the resulting distribution of fluxes with a Monte Carlo approach. The decision tree that we have trained on simulated data is able to discriminate with very high significance between the null hypothesis of a smooth distribution of sources and the scenario with a stochastic distribution of individual sources. We suggest that this cosmic-ray energy-dependent injection time (CREDIT) scenario be considered in experimental searches to identify individual SNRs as cosmic-ray sources.

astro-ph.HE

Spatially Coherent 3D Distributions of HI and CO in the Milky Way

The spatial distribution of the gaseous components of the Milky Way is of great importance for a number of different fields, for example, Galactic structure, star formation, and cosmic rays. However, obtaining distance information to gaseous clouds in the interstellar medium from Doppler-shifted line emission is notoriously difficult given our vantage point in the Galaxy. It requires spatial knowledge of gas velocities and generally suffers from distance ambiguities. Previous works often assumed the optically thin limit, had a fixed velocity field, and lacked resolution overall. We aim to overcome these issues and improve previous reconstructions of the gaseous constituents of the interstellar medium of the Galaxy. We used 3D Gaussian processes to model correlations in the interstellar medium, including correlations between different lines of sight, and enforce a spatially coherent structure in the prior. For modelling the transport of radiation from the emitting gas to us as observers, we took absorption effects into account. A special numerical grid ensures that there is high resolution nearby. We inferred the spatial distributions of atomic hydrogen (HI), carbon monoxide (CO), their emission line widths, and the Galactic velocity field in a joint Bayesian inference. We further constrained these fields with complementary data from Galactic masers and young stellar object clusters. Our main result consists of a set of samples that implicitly contain statistical uncertainties. The resulting maps are spatially coherent and reproduce the data with high fidelity. We confirm previous findings regarding the warping and flaring of the Galactic disc. A comparison with 3D dust maps reveals a good agreement on scales larger than approximately 400 pc. While our results are not free of artefacts, they present a big step forward in obtaining high-quality 3D maps of the interstellar medium.

astro-ph.GA

The influence of the 3D Galactic gas structure on cosmic-ray transport and $\gamma$-ray emission

Cosmic rays (CRs) play a major role in the dynamics of the interstellar medium (ISM). Their interactions and transport ionize, heat, and push the ISM thereby coupling different regions of it. The spatial distribution of CRs depends on the distribution of their sources as well as the ISM constituents they interact with, such as gas, starlight, and magnetic fields. Particularly, gas influences CR fluxes and $\gamma$-ray emission. We illustrate the influence of realistic and largely structured 3D gas distributions on CR transport and $\gamma$-ray emission, by studying their correlation using the PICARD code and multiple samples of recent 3D reconstructions of the HI and H2 Galactic gas constituents. We adjust the diffusion coefficient $D_{xx}$ and Alfv\'en speed $v_{\text{A}}$ to reproduce local measurements of B/C abundances and find that these parameters depend non-linearly on the local distribution of gas. When simulating CR transport, the distributions of CR fluxes exhibit energy-dependent structures that vary for all CR species due to their corresponding loss processes. Regions of enhanced secondary (primary) species are spatially correlated (anti-correlated) with the gas density. Furthermore, we show that the morphology of gas clouds alone impacts CR flux predictions. For $\gamma$-ray emission, we observe a high sensitivity of the $\gamma$-ray emissivities to gas structures, as these determine the spatial distributions of hadronic interactions and bremsstrahlung. This way, we have for the first time calculated how well-defined uncertainties in a structured gas model propagate to CR transport and $\gamma$-ray emission.

astro-ph.HE

Cosmic-ray induced ionization rates and non-thermal emissions from nuclei of starburst galaxies

Cosmic rays are the only agent capable of ionizing the interior of dense molecular clouds and, thus, they are believed to play an essential role in determining the physical and chemical evolution of star-forming regions. In this work, we aim to study cosmic-ray induced ionization rates in starburst environments using non-thermal emissions of cosmic rays from starburst nuclei. To this end, we first revisit cosmic-ray models which could explain data of non-thermal emissions from radio to X-ray and gamma-ray from nuclei of three prototypical starburst galaxies NGC 253, M82, and Arp 220. These models are then applied to predict ionization rates in starburst environments which gives values around $10^{-14}$ s$^{-1}$. Such a high value of the ionization rate, which is 2 to 3 orders of magnitude higher than the typical values found in the Milky Way, is probably due to relatively high rates of supernova explosions occurring within the nuclei of these starburst galaxies. We also discuss in more details the case of NGC 253 where our predicted ionization rate is found to be, in most cases, a few times smaller than the values inferred from molecular line observations of clouds in the starburst nucleus. The general framework provided in this work illustrates how the use of non-thermal emission data could help to provide more insights into ionization rates or, more generally, cosmic-ray impact in starburst environments.

astro-ph.HE

Bayesian inference of 3D densities of galactic HI and H2

Due to our vantage point in the disk of the Galaxy, its 3D structure is not directly accessible. However, knowing the spatial distribution, e.g. of atomic and molecular hydrogen gas is of great importance for interpreting and modelling cosmic ray data and diffuse emission. Using novel Bayesian inference techniques, we reconstruct the 3D densities of atomic and molecular hydrogen in the Galaxy together with (part of) the galactic velocity field. In order to regularise the infinite number of degrees of freedom and obtain information in regions with missing or insufficient data, we incorporate the correlation structure of the gas fields into our prior. Basis for these reconstructions are the data-sets from the HI4PI-survey on the 21-cm emission line and the CO-survey compilation by Dame et al. (2001) on the ($1\rightarrow0$) rotational transition together with a variable gas flow model. We present the preliminary estimated mean surface mass densities and corrections to the prior assumption of the galactic velocity field. In the future, we plan to relax assumptions on the optical thickness and include additional data to further constrain either the galactic velocity field or the gas densities.

astro-ph.GA

Stochastic modelling of cosmic ray sources for diffuse high-energy gamma-rays and neutrinos

Cosmic rays of energies up to a few PeV are believed to be of galactic origin, yet individual sources have still not been firmly identified. Due to inelastic collisions with the interstellar gas, cosmic-ray nuclei produce a diffuse flux of high-energy gamma-rays and neutrinos. Fermi-LAT has provided maps of galactic gamma-rays at GeV energies which can be produced by both hadronic and leptonic processes. Neutrinos, on the other hand, are exclusively produced by the sought-after hadronic processes, yet they can be detected above backgrounds only at hundreds of TeV. Oftentimes, diffuse emission maps are extrapolated from GeV to PeV energies, but the sources contributing at either energies likely differ. We have modelled the production of diffuse emission from GeV through PeV energies in a Monte Carlo approach, taking into consideration the discrete nature of sources. We can generate realisations of the diffuse sky in a matter of seconds, thus allowing for characterising correlations in direction and energy. At hundreds of TeV, relevant for observations with LHAASO, Tibet AS-gamma, IceCube and the upcoming SWGO, variations between different realisations are sizeable. Specifically, we show that extrapolations of diffuse emission from GeV to PeV energies must fail and apply our results on the recent experimental findings.

astro-ph.HE

Unstable cosmic-ray nuclei constrain low-diffusion zones in the Galactic disk

Observations of the vicinity of a variety of galactic gamma-ray sources have indicated a local suppression of diffusivity of cosmic rays by up to three orders of magnitude. However, the impact of these low-diffusion zones on \emph{global} properties of cosmic-ray transport is however only poorly understood. Here, we argue that cosmic-ray nuclear ratios, like the boron-to-carbon ratio and relative abundances of Beryllium isotopes are sensitive to the filling fraction of such low-diffusion zones and hence their measurements can be used to constrain the typical sizes and ages of such regions. We have performed a careful parameter study of a cosmic-ray transport model that allows for different diffusion coefficients $\kappa_{\mathrm{disk}}$ and $\kappa_{\mathrm{halo}}$ in the galactic disk and halo, respectively. Making use of preliminary data from the AMS-02 experiment on the ratio of Beryllium isotopes, we find a $3.5 \sigma$ preference for a suppression of the diffusion coefficient in the disk with a best-fit value of $\kappa_{\mathrm{disk}}/\kappa_{\mathrm{halo}} = 0.20^{+0.10}_{-0.06}$. We forecast that with upcoming data from the HELIX balloon experiment, the significance could increase to $6.8 \sigma$. Adopting a coarse-graining approach, we find that such a strong suppression could be realised if the filling fraction of low-diffusion zones in the disk was $\sim 66 \, \%$. We conclude that the impact of regions of suppressed diffusion might be larger than usually assumed and ought to be taken into account in models of Galactic cosmic ray transport.

astro-ph.HE