TRANSMISSION // 2612.06208v1
A Differentiable Route to Testing Cosmic Gravity
Source published
In simulated survey analyses, GRAVITAX matched results from existing codes and reported lower computing costs per effective sample.

Can the universe’s large-scale structure reveal whether gravity behaves exactly as general relativity predicts? GRAVITAX is a new code whose authors tested whether differentiable calculations and GPU-based sampling could make particular cosmological analyses more computationally efficient.
Cosmologists test gravity by comparing observations with predictions from physical models. On cosmic scales, possible departures from general relativity can be represented by two functions, μ and Σ, which modify the Poisson and lensing equations. Allowing them to vary with both cosmic time and spatial scale offers a flexible test, but every additional bin adds parameters to the calculations. Sampling those parameters can be computationally costly.
The paper introduces GRAVITAX, an Einstein–Boltzmann code built in JAX. It calculates predictions for lensed cosmic microwave background (CMB) spectra, lensing-potential spectra, and linear and nonlinear matter power spectra, along with exact derivatives of those predictions. The authors use these derivatives with Hamiltonian Monte Carlo (HMC), a sampling method that uses gradient information to explore parameter distributions. The abstract describes differentiable equation solving on GPUs; it does not specify that every code operation or application runs on a GPU.
The authors report comparisons in simulated analyses, not a new measurement of gravity from real-sky observations. First, for ΛCDM, they considered a simulated CMB experiment resembling the Simons Observatory and three Stage IV surveys. In this 158-parameter setup, GRAVITAX reproduced the posterior—the probability distribution for model parameters—obtained using CAMB and Cobaya. The reported means were within 0.07 standard deviations, and the widths within 5 percent. For this comparison, the authors report that one GPU-hour did work equivalent to about 270 CPU core-hours per effective sample.
They also tested a setup in which μ and Σ varied across four redshift bins and four scale bins. GRAVITAX reproduced the 90-parameter posterior from MGCAMB. In this case, the reported computing comparison was about 2,100 CPU core-hours per GPU-hour, per effective sample. The authors further report recovering a departure from general relativity deliberately injected into the simulated analysis. That shows recovery in this controlled test; it is not evidence that real observations reveal such a departure.
These comparisons support a specific methodological result: in the tested setups, the authors say, GRAVITAX’s HMC analyses reproduced posteriors from existing codes while using substantially less computing time by their reported measure. The result matters because flexible tests can involve many parameters when gravity is allowed to vary across time and scale. The authors also note that emulators of binned models must be retrained for each choice of bins, whereas GRAVITAX does not require that retraining. They say the code can also help develop emulators for these models.
The supplied source record provides the abstract as its evidence basis, rather than the paper’s detailed methods and results. It therefore does not provide the likelihood definitions, computational settings, or broader tests needed to assess how the results extend beyond these examples. The reported figures should be read as comparisons for the specified simulated analyses, not as a general speed guarantee for every gravity test or application. Matching existing codes is a useful consistency check, but it does not establish that all assumptions or future uses are correct.
The source is an arXiv preprint, version 1; the supplied record does not establish peer-review status. Its claims should be understood as the authors’ reported results, rather than settled consensus. The abstract says the code is publicly available on GitHub, allowing other researchers to inspect and test it. For now, GRAVITAX is a computational tool for exploring future tests—not a finding that Einstein’s theory has been overturned.
- cosmology
- general relativity
- modified gravity
- Hamiltonian Monte Carlo
- differentiable computing
- cosmic microwave background
- GRAVITAX
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
A new toolkit puts cosmology forecasts to the test
Shared method: Both papers use JAX automatic differentiation to obtain derivatives: GRAVITAX differentiates its Einstein–Boltzmann calculations, while cosmicjellyfish offers automatic differentiation as a derivative option for survey observables. This is a shared computational method, not evidence that the codes or their scientific outputs are equivalent.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2612.06208v1 — Original paper
Excerpt reference:
static/papers/2612.06208v1.md:184-253
Basis: Paper text
Source file SHA-256:b958beedcc63b681205b1f1d8416e8ec799ca5b492a65637b98f2f787ce2bfa22611.38546v1 — Original paper
Excerpt reference:
static/papers/2611.38546v1.md:183-228
Basis: Paper text
Source file SHA-256:f20717633e1e78a489b7142c88af1830c59c8ff85cb5598ba1a4c8e065927a42
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
DESI’s Dark-Energy Hints Need More Tests
Source published
Shared keywords: cosmic microwave background
A faster route to testing gravity with cosmic structure
Source published
Shared keywords: modified gravity
A genetic search maps possible gravity behind dark energy
Source published
Shared keywords: modified gravity
A softly broken symmetry offers a route across the phantom divide
Source published
Shared keywords: modified gravity
A review of gravitational waves, from theory to observation
Source published
Shared keywords: general relativity