[Paper Review] CosmoSlider: An educational tool for cosmology
CosmoSlider is a lightweight neural-network emulator tool (TensorFlow Lite) that enables real-time, multi-parameter exploration of CMB power spectra in both iOS and web versions for educational use.
Understanding how cosmological parameters influence the cosmic microwave background (CMB) power spectra is a central component of modern cosmology education, but interactive exploration is often limited by computational cost or technical complexity. We present CosmoSlider, a lightweight visualization tool that enables real-time exploration of CMB power spectra as multiple cosmological parameters are varied simultaneously. The tool employs a neural-network emulator implemented using TensorFlow Lite, allowing rapid evaluation of spectra without relying on large grids of precomputed models or on-demand execution of Einstein--Boltzmann solvers. CosmoSlider is available both as an iOS application and as a web-based tool, making it accessible across platforms and suitable for use in classrooms, lectures, and self-guided study. By providing immediate visual feedback, CosmoSlider supports the development of intuition for the physical processes underlying CMB anisotropies and serves as a complementary resource to traditional theoretical instruction.
Motivation & Objective
- Provide an interactive, real-time visualization of how cosmological parameters affect CMB power spectra for education.
- Enable multi-parameter exploration without large precomputed grids or heavy on-demand solvers.
- Offer cross-platform accessibility (iOS and web) to support classrooms and self-guided study.
Proposed method
- Use the connect neural-emulator framework to model the six-parameter LCDM power spectra.
- Deploy a lightweight TensorFlow Lite model for fast spectrum evaluation in real time.
- Emulate 100 C_ell values and interpolate the rest with cubic splines to achieve smooth updates.
- Allow real-time updates during slider dragging to provide immediate visual feedback.
- Provide both iOS (SwiftUI) and web (TensorFlow Lite JS) implementations for broad accessibility.
![Figure 1 : The CMB power spectra computed by class using the Planck best-fit parameters [ 5 ] along with the observed data points from Planck.](https://ar5iv.labs.arxiv.org/html/2601.16919/assets/x1.png)
Experimental results
Research questions
- RQ1How does CosmoSlider enable real-time, multi-parameter exploration of CMB power spectra without large precomputed grids or on-demand solvers?
- RQ2Can a neural-network emulator provide sufficiently accurate spectra updates to support interactive education across multiple observables (TT, TE, EE, φφ)?
- RQ3What is the applicability and usability of cross-platform (iOS and web) educational tools for teaching cosmology concepts?
- RQ4To what extent can emulation-based visualization complement traditional Einstein–Boltzmann solver-based instruction?
Key findings
- CosmoSlider achieves real-time spectrum updates with evaluation times on the order of milliseconds.
- The tool emulates 100 C_ell values per spectrum and uses cubic spline interpolation for the remainder to maintain smooth visuals.
- It supports simultaneous variation of multiple cosmological parameters (six-parameter ΛCDM) without requiring large precomputed grids.
- There are two implementations: an iOS app (SwiftUI with TensorFlow Lite) and a web version (TensorFlow Lite in JS), both enabling cross-platform use.
- The web version is lighter and suitable for embedding in courses, while the iOS version offers additional model import and resources for educators.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.