[Paper Review] CosmoFlow: Using Deep Learning to Learn the Universe at Scale
CosmoFlow proposes a highly scalable deep learning framework built on TensorFlow to predict cosmological parameters ($\Omega_M$, $\sigma_8$, $n_s$) from 3D dark matter simulations. By optimizing 3D convolutional neural networks and enabling fully synchronous data-parallel training on 8192 nodes of the Cori supercomputer, it achieves 3.5 Pflop/s sustained performance with 77% parallel efficiency, enabling unprecedented accuracy in parameter estimation.
Deep learning is a promising tool to determine the physical model that describes our universe. To handle the considerable computational cost of this problem, we present CosmoFlow: a highly scalable deep learning application built on top of the TensorFlow framework. CosmoFlow uses efficient implementations of 3D convolution and pooling primitives, together with improvements in threading for many element-wise operations, to improve training performance on Intel(C) Xeon Phi(TM) processors. We also utilize the Cray PE Machine Learning Plugin for efficient scaling to multiple nodes. We demonstrate fully synchronous data-parallel training on 8192 nodes of Cori with 77% parallel efficiency, achieving 3.5 Pflop/s sustained performance. To our knowledge, this is the first large-scale science application of the TensorFlow framework at supercomputer scale with fully-synchronous training. These enhancements enable us to process large 3D dark matter distribution and predict the cosmological parameters $Ω_M$, $σ_8$ and n$_s$ with unprecedented accuracy.
Motivation & Objective
- To address the computational bottleneck in cosmological parameter estimation from large 3D dark matter simulations.
- To enable high-accuracy regression of cosmological parameters ($\Omega_M$, $\sigma_8$, $n_s$) using deep learning on exascale HPC platforms.
- To optimize the full software stack—network architecture, I/O, communication, and primitives—for scalable deep learning on CPU-based supercomputers.
- To demonstrate fully synchronous data-parallel training at scale with high efficiency on a supercomputer using TensorFlow.
- To enable fast, accurate scientific exploration of cosmological data using deep learning at scale.
Proposed method
- Adapted a 3D convolutional neural network architecture from Ravanbakhsh et al. (2017) for $128^3$ voxel input data to predict three cosmological parameters.
- Implemented optimized 3D convolution and pooling primitives using MKL-DNN within the TensorFlow framework for CPU-optimized performance.
- Leveraged the Cray PE Machine Learning Plugin to enable efficient MPI-based data parallelism across thousands of nodes.
- Employed a high-bandwidth SSD-based file system to mitigate I/O bottlenecks observed on Lustre, improving scaling efficiency.
- Used synchronous stochastic gradient descent (SSGD) with full parameter averaging across nodes to ensure convergence at scale.
- Optimized the entire stack—from data I/O and model training to inter-node communication—using HPC best practices for Intel Xeon Phi (KNL) processors.
Experimental results
Research questions
- RQ1Can deep learning models trained on 3D dark matter simulations accurately predict cosmological parameters $\Omega_M$, $\sigma_8$, and $n_s$?
- RQ2What level of performance and scaling efficiency can be achieved when training a deep learning model for cosmology on a supercomputer with 8192 nodes?
- RQ3How does the choice of I/O system (e.g., Lustre vs. SSD-based) impact training scalability and performance in large-scale deep learning workloads?
- RQ4To what extent can fully synchronous data-parallel training maintain convergence and accuracy at extreme scale (8192 nodes)?
- RQ5Can optimized CPU-based deep learning frameworks achieve exascale-level performance for scientific applications?
Key findings
- CosmoFlow achieved 3.5 Pflop/s sustained single-precision performance on 8192 nodes of the Cori supercomputer using Intel Xeon Phi processors.
- The system demonstrated 77% parallel efficiency at scale, marking the first large-scale, fully synchronous data-parallel training of a deep learning model on a supercomputer using TensorFlow.
- Training on 8192 nodes reached close-to-converged results, producing scientifically meaningful predictions despite the high computational load.
- The model achieved full convergence at 2048 nodes, yielding best-in-class scientific accuracy for cosmological parameter estimation from dark matter distributions.
- The use of a high-bandwidth SSD-based file system significantly improved I/O performance and mitigated scalability degradation observed on Lustre.
- Single-node performance reached 535 Gflop/s on a KNL node, and the full-stack optimization enabled processing over 1.4TB of cosmological simulation data efficiently.
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.