← Latest papers
⚛️ general relativity

HIcosmo: a differentiable JAX-based framework for cosmology inference

This paper introduces HIcosmo, an open-source, JAX-based framework for efficient cosmological inference that leverages automatic differentiation and GPU acceleration to achieve significantly faster sampling speeds than existing tools like Cobaya while supporting a wide range of Stage IV survey likelihoods and cosmological models.

Original authors: Jing-Zhao Qi, Jing-Fei Zhang, Xin Zhang

Published 2026-06-29
📖 5 min read🧠 Deep dive

Original authors: Jing-Zhao Qi, Jing-Fei Zhang, Xin Zhang

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine the universe as a giant, complex puzzle that scientists are trying to solve. For decades, they've been using a standard set of rules (called the Λ\LambdaCDM model) to figure out how the universe began, how it's expanding, and what it's made of. But recently, the pieces of the puzzle haven't been fitting together perfectly. Measurements from the early universe (like the Cosmic Microwave Background) disagree with measurements from the nearby universe (like exploding stars called Supernovae). This is known as the "Hubble Tension."

To solve this, new, massive telescopes are being built that will collect billions of data points. The problem? The computer programs scientists use to solve these puzzles are too slow and clunky to handle this new flood of information. They are like trying to count grains of sand on a beach using a single, slow calculator.

This paper introduces HIcosmo, a brand-new, super-fast computer tool designed to solve these cosmic puzzles efficiently. Here is how it works, explained simply:

1. The "Smart Calculator" (JAX and Differentiability)

Traditional tools are like a chef who has to manually measure every ingredient, write down the result, and then manually calculate the next step. If they need to know how changing one ingredient affects the final taste, they have to guess and check, which takes forever.

HIcosmo is different. It is built on a technology called JAX, which acts like a "smart calculator" that understands the entire recipe at once.

  • Automatic Differentiation: Instead of guessing, HIcosmo knows exactly how the result changes if you tweak a single number. It's like having a GPS that instantly tells you the best route to take without needing to drive every possible road to see which is fastest.
  • Just-in-Time Compilation: The first time you ask HIcosmo to do a calculation, it takes a split second to "warm up" and translate the instructions into super-optimized machine code. After that, it runs at lightning speed, bypassing the slow "translator" (the Python interpreter) that slows down older tools.

2. The Three-Layer Cake

The authors built HIcosmo like a three-layer cake, where each layer has a specific job:

  • The Bottom Layer (The Model): This is the "theory" part. It takes the rules of the universe (like how much dark matter or dark energy there is) and calculates what the universe should look like.
  • The Middle Layer (The Likelihood): This is the "comparison" part. It takes the theory from the bottom layer and compares it against real data from telescopes (like the Pantheon+ supernova data or DESI galaxy maps). It calculates how "wrong" the theory is.
  • The Top Layer (The Inference): This is the "solver" part. It uses the information from the middle layer to find the best possible answer. It uses a smart method called NUTS (No-U-Turn Sampler) that uses the "smart calculator" gradients to zoom straight to the correct answer, rather than wandering around aimlessly like older tools do.

3. What It Can Do (and What It Can't)

What it does:
HIcosmo is currently the master of background cosmology. Think of this as measuring the "big picture" of the universe: how fast it's expanding, how far away things are, and the overall shape of space. It handles data from:

  • Exploding stars (Supernovae).
  • Galaxy clustering (BAO).
  • The afterglow of the Big Bang (CMB distance priors).
  • Time delays in gravitational lenses.

It has been tested against the current gold-standard software (called Cobaya) and found to be statistically identical in its answers but much faster.

  • On a standard computer processor (CPU), it is about 8.7 times faster than the old tool.
  • On a powerful graphics card (GPU), which is great for handling massive amounts of data at once, it can be up to 20 times faster as the data gets bigger.

What it doesn't do:
The paper is very clear that HIcosmo does not currently handle the "fine details" or "perturbations" of the universe, such as the complex wiggles in the cosmic web or the detailed power spectra of the early universe. Those require a different, very heavy engine (called a Boltzmann solver) that HIcosmo leaves to other tools. Think of HIcosmo as the expert on the shape of the balloon, while other tools are needed to analyze the texture of the rubber.

4. Real-World Results

The authors didn't just build it; they used it to solve real problems:

  • Joint Constraints: They combined data from supernovae, galaxy surveys, and the CMB to pin down the universe's expansion rate (H0H_0) and matter density (Ωm\Omega_m) with incredible precision.
  • Future Forecasting: They used HIcosmo to predict how well future radio telescopes (like SKA, MeerKAT, and CHIME) will be able to measure the "equation of state" of dark energy (a fancy way of asking: "Is dark energy constant, or does it change over time?"). They found that these new telescopes could measure this with amazing accuracy.

The Bottom Line

HIcosmo is a modern, high-speed engine for cosmology. It replaces the slow, manual methods of the past with a streamlined, automatic system that can handle the massive data floods coming from the next generation of telescopes. It doesn't change the laws of physics, but it changes how fast and efficiently we can test them against the universe.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →