Scalable Cosmic AI Inference using Cloud Serverless Computing

Mills Staylor, Amirreza Dolatpour Fathkouhi, Md Khairul Islam, Kaleigh O'Hara, Ryan Ghiles Goudjil +2 more
1/8/2025
cs.CVastro-ph.IM

Official code: UVA-MLSys/AI-for-Astronomy (4 stars, Apache-2.0, last commit 2026-03-21).

Abstract

Large-scale astronomical image data processing and prediction are essential for astronomers, providing crucial insights into celestial objects, the universe's history, and its evolution. While modern deep learning models offer high predictive accuracy, they often demand substantial computational resources, making them resource-intensive and limiting accessibility. We introduce the Cloud-based Astronomy Inference (CAI) framework to address these challenges. This scalable solution integrates pre-trained foundation models with serverless cloud infrastructure through a Function-as-a-Service (FaaS). CAI enables efficient and scalable inference on astronomical images without extensive hardware. Using a foundation model for redshift prediction as a case study, our extensive experiments cover user devices, HPC (High-Performance Computing) servers, and Cloud. Using redshift prediction with the AstroMAE model demonstrated CAI's scalability and efficiency, achieving inference on a 12.6 GB dataset in only 28 seconds compared to 140.8 seconds on HPC GPUs and 1793 seconds on HPC CPUs. CAI also achieved significantly higher throughput, reaching 18.04 billion bits per second (bps), and maintained near-constant inference times as data sizes increased, all at minimal computational cost (under $5 per experiment). We also process large-scale data up to 1 TB to show CAI's effectiveness at scale. CAI thus provides a highly scalable, accessible, and cost-effective inference solution for the astronomy community. The code is accessible at https://github.com/UVA-MLSys/AI-for-Astronomy.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

A novel Cloud-based Astronomy framework for data parallel AI model inference on AWS

46Shell, PythonAug 24, 20247 months agoApache-2.0
astronomyaws-lambdaclouddata-parallelism

Similar Papers

Cite this paper

@article{staylor2025scalable,
  title  = {Scalable Cosmic AI Inference using Cloud Serverless Computing},
  author = {Mills Staylor and Amirreza Dolatpour Fathkouhi and Md Khairul Islam and Kaleigh O'Hara and Ryan Ghiles Goudjil and Geoffrey Fox and Judy Fox},
  year   = {2025},
  eprint = {2501.06249},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.06249v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.06249.svg)](https://codeofpaper.com/paper/2501.06249)

Discussion