Raytracing Black Holes with AI Accelerators
Thomas Fischbacher, Nicholas Kessler
Key points
From the paper's conclusion- We show how software infrastructure that was mainly built to power AI applications also can be used to great benefit for other purposes -- by demonstrating a fully self-contained JAX-based black hole raytracer in under 180+200 lines of Python code plus documentation.
Abstract
We show how software infrastructure that was mainly built to power AI applications also can be used to great benefit for other purposes -- by demonstrating a fully self-contained JAX-based black hole raytracer in under 180+200 lines of Python code plus documentation. Major motivations for showcasing such a construction are (a) to show to professional physicists how Machine Learning (ML) accelerators can greatly simplify building numerical applications for GPU accelerator hardware with very modest coding effort and programming expertise -- even if the problems at hand do not involve ML per se, (b) to make a meaningful part of General Relativity (GR) accessible to computer science professionals who might not have realized that mathematical background they developed on Deep Learning problems may have brought this theory within easy reach for them, and (c) to inspire students and educators to explore the potential of an approach that represents physical law, i.e. relations between local differential quantities, not in terms of differentiable symbolic expressions, but in terms of differentiable algorithms.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Differentiable astrophysics at scale: solving and differentiating ODE ensembles on the GPUarXiv · 2026
- FOORT: Flexible Object-Oriented Ray TracingarXiv · 2026
- galpy with differentiable, accelerated backends: galactic dynamics in jax and PyTorcharXiv · 2026
- SpinOctopus: A Versatile, User-Friendly, and Extensible Public Code for General-Relativistic Ray-Tracing in axisymmetric spacetimearXiv · 2026
- FastGRT: Accelerating Training of 3D Gaussian Ray TracingarXiv · 2026
- Neural-spectral discovery of rotating black holes beyond general relativityPhysical review. D/Physical review. D. · 2026