Software contribution / Compact-binary populations
From merger environments
to population inference.
hierarchical_AD_pop_engine is a JAX-based research prototype for connecting hierarchical black-hole merger models to gravitational-wave population inference.
The contribution is a composable model: describe what one environment produces, describe how environments form, and combine them into a rate distribution that an inference framework can evaluate.
The scientific connection
A retained black-hole merger remnant can participate in later mergers, changing the population of masses and spins. Doctor, Wysocki, O’Shaughnessy, Holz & Farr (2020) developed a modular coagulation framework for modeling these populations. This repository builds on that line of work with differentiable numerical components and an inference interface. The earlier paper establishes the scientific foundation; it does not validate every feature of this implementation.
What the software contributes
- Environment response. Natal mass and spin distributions, pairing kernels, remnant prescriptions, and recoil-based retention feed a compact-binary merger model. The response layer contains a truncated generational solver and an alternative implicit fixed-point solver with a custom reverse-mode derivative.
- Formation and assembly.
FormationRateseparates the distribution of environments from their merger response.SyntheticUniversecombines them by quadrature. A single-environment construction provides a useful consistency check on the composition. - Inference interface. A NumPyro distribution evaluates the joint mass, spin, and redshift rate density. The
coagulation_modelfactory packages it as a gwkokabScaledMixture; source tests exercise construction, JIT evaluation, and selected parameter gradients. See the architecture and integration tests.
The repository also contains per-event normal-approximate-likelihood preparation tools, following Delfavero and collaborators. Those scripts have environment-specific inputs; publishing the software does not make their external input datasets available.
Status and useful limits
This is research software, with package version 0.0.1 at the reviewed revision. The supplied tests cover limiting cases, composition, finite-difference comparisons, and integration behavior; this page reports source contents, not a newly executed scientific validation suite.
The default response is the perturbative solver. The implicit solver is a separate response-layer option with different convergence and differentiation considerations. The aligned-spin retention model uses a hard threshold, so gradients with respect to escape velocity vanish almost everywhere. An automatic-differentiation implementation therefore does not make every physical parameter smoothly inferable. Consult the response implementation, retention implementation, and current tests before choosing a solver or parameterization.
Reuse and collaboration
Start with the README example and a small-grid calculation. Useful contributions include independently reproduced solver comparisons, convergence checks across physical regimes, and additional environment-response models. Credit the underlying methods, gwkokab, and the repository contributors when using this work.
Discuss a research collaboration · Related astrophysics work
Source reviewed 9 November 2026 at d789282. Check the repository for current implementation, licensing metadata, and citation guidance.