Modeling X-ray photon pile-up with a normalizing flow
Ole König, Daniela Huppenkothen, Douglas Finkbeiner, Christian Kirsch, Jörn Wilms, Justina R. Yang, James F. Steiner, Juan Rafael Martínez-Galarza · 2025
Read Modeling X-ray photon pile-up with a normalizing flow by Ole König, Daniela Huppenkothen, Douglas Finkbeiner, Christian Kirsch, Jörn Wilms, Justina R. Yang, James F. Steiner, Juan Rafael Martínez-Galarza (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2511-11863.txt.
Introduction
Ole König and seven co-authors teach a model to undo photon pile-up in X-ray data. Pile-up strikes when photons arrive too fast and the detector merges them. Bright sources suffer most. Spectra warp, inferred physics is biased, and the signal can vanish. Archives of piled-up data sit largely unused as a result.
A simulation based inference frame with a normalizing flow does the repair. It estimates posterior ranges for source values straight from piled-up eROSITA data. The intractable likelihood is sidestepped. Rescuing discarded data expands the usable X-ray archive at no new telescope cost. The approach also suits other detectors where saturation corrupts the brightest targets.
Catalog record
| CREATOR | Ole König, Daniela Huppenkothen, Douglas Finkbeiner, Christian Kirsch, Jörn Wilms, Justina R. Yang, James F. Steiner, Juan Rafael Martínez-Galarza |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 20 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2511-11863
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Modeling X-ray photon pile-up with a normalizing flow Ole König, Daniela Huppenkothen, Douglas Finkbeiner, Christian Kirsch, Jörn Wilms, Justina R. Yang, James F. Steiner, Juan Rafael Martínez-Galarza Abstract The dynamic range of imaging detectors flown on-board X-ray observatories often only covers a limited flux range of extrasolar X-ray sources. The analysis of bright X-ray sources is complicated by so-called pile-up, which results from high incident photon flux. This nonlinear effect distorts the measured spectrum, resulting in biases in the inferred physical parameters, and can even lead to a complete signal loss in extreme cases. Piled-up data are commonly discarded due to resulting intractability of the likelihood. As a result, a large number of archival observations remain underexplored. We present a machine learning solution to this problem, using a simulation-based inference framework that allows us to estimate posterior distributions of physical source parameters from piled-up eROSITA data. We show that a normalizing flow produces better-constrained posterior densities than traditional mitigation techniques, as more data can be leveraged. We consider model- and calibration-dependent uncertainties and the applicability of such an algorithm to real data in the eROSITA archive. 1 Introduction In order to detect radiation from astrophysical X-ray sources, silicon-based charge-coupled devices (CCDs) have been used since 1993. However, detectors flown on-board past, existing ( XMM-Newton , Chandra , eROSITA ) and future X-ray observatories ( NewAthena /WFI, AXIS ) are unable to observe several classes of bright objects of interest without experiencing significant data distortion. The analysis is complicated by pile-up, which is caused by high photon fluxes ( 1 ; 5 ) . When an X-ray photon impacts a CCD, a cloud of electrons is created in the semiconductor ( 10 ; 17 ) . These electrons are accumulated in one or multiple detector pixels, depending on the extent of the charge cloud. In the on-board event processing algorithm, each event is reconstructed from its associated charge distribution, and classified into four accepted “patterns”: singles denote one pixel that contains charge during one readout cycle. If multiple adjacent pixels contain charge, the events are commonly classified into doubles (see colored boxes in Fig. 1 ), triples, and quadruples. Energy pile-up Pattern pile-up Figure 1: Illustration of X-ray photon pile-up in CCD detectors ( 18 ) . Left: A double event can be created either from one photon that lands near the border of the pixel (low photon flux) or two photons impacting both pixels (pattern pile-up). In the latter case, the event contains signal from the sum of the individual photons impacts (energy pile-up). Right: Likewise, the same recorded single event can be created from one or two photons impacting the same pixel. All currently operating X-ray CCD imaging telescopes operate in single-photon mode, which requires direct reconstruction of the energy of each incident photon. For a moderate photon flux, associating each pattern with a single photon is a valid assumption, and the original X-ray energy is inferred from the summed charges of the illuminated pixels. For sufficiently bright sources, however, multiple X-rays can hit the same or nearby pixels during one readout cycle (Fig. 1 ). In the extreme case, the illuminated pixels produce charge distributions that are different from the four accepted patterns, which is called “pattern” pile-up. This effect causes X-ray signal to be incorrectly rejected, leading to a loss of signal. At the core of the point spread function (PSF), where photon rates are highest, this can manifest as a flattening or even a depression in brightness (e.g., 13 and image in Fig. 2 ). More commonly (i.e., at lower fluxes), the charge pattern deposited in the detector by multiple photons cannot be distinguished from that deposited by a single X-ray that has a higher energy, which is called energy pile-up ( 1 ; 5 ) . As a consequence, the reconstructed count rate is reduced and the spectrum is artificially distorted toward higher energies (“hardened”). The ramification of these effects on the data analysis can be severe. Pile-up is highly non-linear and estimating the source’s photon flux and modeling the X-ray spectrum (i.e. the source’s brightness as a function of photon energy) without distortion is difficult. When pile-up becomes appreciable, model parameters obtained during parameter inference on X-ray spectra can be severely biased ( 4 ; 13 , e.g.,) . Ways to mitigate pile-up’s biasing effects include analytical approaches ( 5 ; 11 ) , which do, however, not account for the loss of signal due to pattern pile-up, or using specialized detector read-out modes ( 8 ) . Another popular method is to excise the core of the PSF (e.g., 14 ), where pile-up is strongest due to the higher photon rates. This method discards data in the central source region (where most of the signal is concentrated) and uses only data from the wing of the PSF, where signals are much weaker. This leads to much wider posterior densities during inference, since the majority of signal power is discarded. Furthermore, the PSF excision radius is often determined ad hoc by the researcher, because it is often not obvious at which radius the strength of pile-up falls below an acceptable threshold. While analytical models for pile-up exist only in very simplified cases, the stochastic nature of realistic pile-up prescriptions leads to intractable likelihoods, a circumstance well-matched to a simulation-based inference framework. Recent implicit likelihood analyses based on improved X-ray telescope simulators have used large grids of candidate models to match simulations to observed data based on simple test statistics ( 4 ; 20 ; 13 ) . This method can use data from the whole source region but is computationally expensive and the researcher has to be trained on how to use the simulator. Thus, due to the complex analysis techniques and computational burden, in practice, oftentimes, a piled-up dataset is dropped from the analysis, and all data is forfeit ( 19 , e.g.,) . 2 Methods and results We present a proof-of-concept neural network in a simulation-based inference (SBI) framework that approximates posterior probability distributions for the parameters of astrophysical models for X-ray spectra in the presence of pile-up. Specifically, the neural network takes spatially-resolved piled-up spectra as input, processes them through a convolutional neural network (CNN), and infers posteriors using a normalizing flow (NF). Input data Our SBI approach requires a forward model that takes physical parameters as input, simulates energy and pattern pile-up, and produces simulated data products analogous to the observed data. We use the SIXTE simulator ( 4 ) to produce the piled-up spectra. To make the simulations representative of real eROSITA data, we baseline the training data on an existing observation of a bright unresolved point source in the eROSITA data archive, adopting the same source position and observing properties (nova V1710 Sco with a total exposure of 228 seconds), although we note that the specific source choice does not influence the methodology development of this paper. We simulate 40 000 eROSITA observations using a model comprising a thermal blackbody source that varies in flux (on a logarithmic grid), temperature, and absorption (see Table A.1 ), sampled using a Latin hypercube ( 15 ) . Blackbody spectra are simple, easily interpretable, and have physical application, making them both