~/aixsci
200 records · all checked

astronomy/ai produced the result/arXiv 2023 · v2

Neural networks swap places with black hole image simulations, both directions

Researchers trained two networks on a library of simulated black hole images so that physical settings can be read off an image, and an image produced from settings. The networks stood in for the slower ray-tracing simulation.

1. Train and test ALINet on MNIST as an architecture check2. Generate RIAF image library by ray tracing3. Normalise parameters and split the image library4. Train ALINet on RIAF images5. Train InvNet to map parameters to latent distributions6. Recover physical parameters from held-out images7. Generate images directly from physical parameters8. Evaluate parameter and image errors against simulation truth

spectrum · one line per step, placed by what the step does · bright lines used AI

Autoencoding Labeled Interpolator, Inferring Parameters From Image, And Image From Parameters
arXiv, 2023

doi:10.48550/arxiv.2312.04640 · record aix-00123 v2 · checked 2026-10-08

ai-resultrole of AI
AI was for
Simulation surrogate, Property prediction
Model family
Autoencoder, Convolutional neural network, Multilayer perceptron
Checked by
Held-out20000 tested
Code
not reported

The finding the paper is about came from the AI.

read as

The science is explained before the AI appears. Switch to field specialist to go straight to the method.

Assumes the discipline and goes straight to the method.

The diagram, the record and what the paper did not report are identical in both modes. Only the framing changes — never the evidence.

Introduction by AIxSci · plain language

What this research was about

A black hole itself emits no light, but the hot gas falling towards one does. One way that gas can behave is as a radiatively inefficient accretion flow, or RIAF: a thin, hot, puffed-up flow that radiates away only a small fraction of its energy. To work out what a telescope image of such a flow should look like, astronomers trace the paths of light rays through the warped space near the hole and follow how the gas emits and absorbs radiation along the way. This is called ray tracing, and it is slow. Each run takes a set of physical numbers, such as how fast the hole spins, and returns one picture.

Astronomers usually want the reverse. They have an image and want the numbers behind it, which means running the slow simulation again and again while hunting for settings that match. The researchers set out to build a fast stand-in that works both ways: numbers from a picture, and a picture from numbers.

Where AI came in

The authors first built the training library the conventional way, ray tracing a grid of ten values in each of five physical parameters. Everything after that was done by neural networks. An autoencoder is a network that squeezes an image down to a short list of numbers and then rebuilds it from that list. The authors attached a second output branch that reads the physical parameters off the same short list, giving a network they call ALINet. A second network, InvNet, learned the opposite direction, turning physical parameters into the compressed description that the decoder can expand into an image.

The trained networks took the place of the ray-tracing code. On held-out test images ALINet recovered the parameters, and InvNet followed by ALINet's decoder produced images from parameters alone. The paper reports errors of 2.5 per cent or less for every parameter, and image generation in about a millisecond on one graphics card, against a few minutes for the simulation. Training took twelve hours on a computing cluster. The design was first tried on MNIST, a standard set of handwritten digit images, as a check.

Written by AIxSci from the checked record below, to give context for readers outside the field. It is not part of the record.

The work

Technical · from the record

The authors extended a variational autoencoder with a second decoder branch that maps latent variables to the physical parameters of an image, calling the result ALINet, and trained a separate network, InvNet, to map physical parameters back to latent distributions so images can be produced from parameters. The networks were trained on a library of ray-traced radiatively inefficient accretion flow (RIAF) black hole images, using 160,000 images for training, 20,000 for validation and 20,000 for testing, with five varying physical parameters and a five-dimensional latent space. On the test data the paper reports 1-sigma errors of 2.5% or less for all parameters, for both ALINet and ALINet+InvNet, and compares these with spin prediction errors of around 20% for visibility amplitude analysis and 5% with closure phases reported elsewhere. The paper reports image generation taking about 1 ms with one Tesla T4 GPU, against a few minutes for the ray-tracing simulations.

How AI was used

A library of RIAF black hole images was first produced by conventional ray tracing over a grid of ten values in each of five physical parameters, and the parameters were rescaled to the unit interval before the library was split into training, validation and test sets. A variational autoencoder was modified by attaching a second decoder branch of fully connected layers that maps the latent variables to the image's physical labels, with a loss function combining image reconstruction, a beta-weighted Kullback-Leibler regularisation term and a weighted sum-squared-error term on the parameters (alpha = 4 x 10^4). The encoder was an augmented AlexNet-style convolutional network and the first decoder branch its mirror, with sigmoid outputs on both branches. This network was trained for 45 epochs at batch size 64 with the learning rate stepped from 10^-3 to 10^-4 to 10^-5 in blocks of 15 epochs. A second network, InvNet, was then trained on the frozen ALINet encoder's latent means and standard deviations to invert the mapping from physical parameters to latent distributions, for four epochs in total with alpha = 10. The trained ALINet was run over the held-out images to recover parameters, and InvNet followed by the ALINet decoder was run over held-out parameter sets to generate images, with errors compared against the simulation truth. The same architecture, in a simpler form, had first been trained on MNIST with a ten-dimensional latent space to test the design.

The shape of the work

Structural · the record, drawn

TRAININGSIMULATIONPREPARATIONTRAININGTRAININGINFERENCESIMULATIONVALIDATION12345678AIAIAIAIAITrain and testALINet on MNISTas an architectu…Generate RIAFimage library byray tracingNormaliseparameters andsplit the image …Train ALINet onRIAF imagesTrain InvNet tomap parameters tolatent distribut…Recover physicalparameters fromheld-out imagesGenerate imagesdirectly fromphysical paramet…Evaluateparameter andimage errors aga…↤ simulation↤ simulation↤ simulation↤ simulation
AI stepNo AI↤ what the AI stood in for
1Training
AI

Train and test ALINet on MNIST as an architecture check

Fitting model parameters, including fine-tuning an existing model.

We trained the model on 50,000 images and used 10,000 images for validation.where the paper describes this · verbatim
in the paper
2Simulation
no AI

Generate RIAF image library by ray tracing

Numerical or physics simulation, including where a learned surrogate replaces it.

We create a library of RIAF images by sampling a grid of physical parameter containing 10 different valueswhere the paper describes this · verbatim
in the paper
3Preparation
no AI

Normalise parameters and split the image library

Cleaning, filtering, normalising or labelling data already obtained.

We map the physical parameters to the unit interval using their minimum and maximum values.where the paper describes this · verbatim
in the paper
4Training
AI

Train ALINet on RIAF images

Fitting model parameters, including fine-tuning an existing model. The AI stood in for simulation.

The model is trained for 45 epochs with a batch size of 64.where the paper describes this · verbatim
in the paper
5Training
AI

Train InvNet to map parameters to latent distributions

Fitting model parameters, including fine-tuning an existing model. The AI stood in for simulation.

an InvNet is trained for 2 epochs with learning rate ofwhere the paper describes this · verbatim
in the paper
6Inference
AI

Recover physical parameters from held-out images

Running a trained model over new data to predict, classify or score. The AI stood in for simulation.

The ALINet architecture in Section III can also retrieve physical parameters given an image.where the paper describes this · verbatim
in the paper
7Simulation
AI

Generate images directly from physical parameters

Numerical or physics simulation, including where a learned surrogate replaces it. The AI stood in for simulation.

Here we generate images directly from the physical parameters by combining InvNet with ALINet.where the paper describes this · verbatim
in the paper
8Validation
no AI

Evaluate parameter and image errors against simulation truth

Testing outputs against ground truth.

After training, the model is tested with the 20,000 testing imageswhere the paper describes this · verbatim
in the paper

What the record says

Technical · every part carries its own basis

+ in the paper~ our reading− not reported

How to read the quotations. A quotation shows where the paper describes something. It does not quote every value beside it: one passage locates a part of the work, and values without their own quotation are our reading of that passage.

~Role of AI
AI produced the resultour reading

The paper's result is the trained interpolator itself: the networks produce the images and parameter values the paper reports, standing in for ray-traced radiative-transfer image generation.

+What the AI was for
we create a nonlinear interpolation tool based on the principles of generative models in machine learningwhere the paper describes this · verbatim
+How it was taught
Self-supervisedSupervisedin the paper
+Models named
ALINet (autoencoding labeled interpolator network) · Trained from scratchInvNet (inverse network) · Trained from scratchin the paper
+How results were checked
Held-out20000 testedin the paper
We use 160,000 RIAF black hole images for training, 20,000 for validation, and 20,000 for testing.where the paper describes this · verbatim
+Code · weights · data
code not reportedweights not reporteddata not reportedin the paper
takes 12 hours to complete, using 40 CPUs and 1 GPUwhere the paper describes this · verbatim
+Compute
Training took 12 hours on the Beluga cluster using 40 CPUs and 1 GPU; image generation reported at about 1 ms with one Tesla T4 GPUin the paper

What this paper did not report

Technical · absence is published deliberately

Reported as not stated — 6 items
  • CodeWhether the code is available is not stated.
  • Trained model weightsWhether the trained model is available is not stated.
  • DataWhether the data are available is not stated.
  • Version of ALINet (autoencoding labeled interpolator network)Which version of the model was used is not stated.
  • Version of InvNet (inverse network)Which version of the model was used is not stated.
  • What step 1 replacedThe paper gives no basis for what the AI stood in for.

About this article

Record aix-00123, version 2, checked by a person on 2026-10-08. The record describes the paper; it does not assess whether the paper's findings are right. The paper is published under CC-BY; quotations are at most 25 words. How we work · Report an error