The Recycler: In-Transit Machine Learning on High-Fidelity Data from Simulation Campaigns as an Optimized Approach for Building Frontier Models
Authors: Nikhil Rao, Mark Berrill, Ankush Checkervarty, Alexander Debus, Greg Eisenhauer, Ana Gainaru, Scott Klasky, Julian Lenz, Tapish Narwal, Vedhas Pandit, Richard Pausch, Norbert Podhorszki, Franz Pöschel, Ulrich Schramm, Klaus Steiniger, Jessica Tiebel, René Widera, Nico Wrobel, Yongqi Xiang, Michael Bussmann, Sunita Chandrasekaran, Jeffrey Kelling
Organizations: University of Delaware Newark, DE, United States of America · Oak Ridge National Laboratory Oak Ridge, TN, United States of America · Helmholtz-Zentrum Dresden-Rossendorf (HZDR), Dresden, Germany · Georgia Institute of Technology, Atlanta, GA, United States of America · Los Alamos National Laboratory Los Alamos, NM, United States of America · Center for Advance Systems Understanding (CASUS), Görlitz, Germany · Dresden University of Technology (TUD), Dresden, Germany · Chemnitz University of Technology, Chemnitz, Germany
We report on the first realization of in-transit machine learning using data streamed from multiple simulations running in parallel to the training on the same exascale high performance computing system. This workflow can be commonly applied to a broad variety of scenarios in which simulation campaigns play an important role. Unlike single simulations, campaigns run several simulations in parallel. This is interesting for finding an optimum operation point of a machine like a particle accelerator or a fusion reactor, quantifying the variation in model predictions e.g. in climate research, or discovering new capabilities e.g. in materials or drug design. Such campaigns produce huge amounts of high-fidelity data at high rates. File system bandwidth and capacity prohibit retaining all of that data, usually requiring orders of magnitude in reduction before it can be stored. We demonstrate a workflow that streams the data from multiple simulations to train a frontier model in parallel, thereby maximizing data throughput. We demonstrate that this can use a much larger amount of high-fidelity data as training data for the model compared to storage in files, essentially replacing file IO by in-transit training of large-scale frontier models. This will allow to create AI-informed feedback loops to steer simulation campaigns while reducing the overall computation time needed and provide high-fidelity frontier models for reuse by the scientific community.
Figures & tables
Fig. 1 : Impression of our parallel streaming and training workflow and the feature-extraction principle for the case of LWFA simulations: data from multiple particle-in-cell simulations is streamed into a ML training to learn a latent space representation of the plasma dynamics that later can be used to reconstruct the electromagnetic fields.
Fig. 2 : The Recycler workflow. PIConGPU simulations (left) stream their fields over SST to the ranks of the data-parallel training (center), each of which has its own DataLoader with prefetchers and experience replay buffers for the stream and for long-term storage on disk. The batches it produces train one replica of the model per rank, and the gradients of all ranks are averaged in an all-reduce (right). The metadata database (top) coordinates simulations, ranks and the supervisor, which replaces a simulation when its stream has ended.
Fig. 3 : Summary of data flow during training and self-supervised objective: The loaded/streamed and buffered samples contain a region of interest from the simulation of 144×1536×144 cells. As training samples, random regions of 483 cells are cropped, which are split into 83 patches, which get projected into the 1024-dimensional embedding space of the ViT encoder. Each latent token is projected down into the 512-dimensional embedding of the ViT decoder. For MAE training, only a random 10% of input patches (gray cubes, N=51 ) are passed to the encoder. The decoder receives the encoded tokens and reconstructs all tokens, with the reconstruction loss being applied only on the complementary 90% masked patches.
Fig. 4 : Weak scaling of The Recycler on Frontier from 8 to 256 concurrent simulations with one DDP training rank per simulation. The top axis gives the nodes of the simulations plus those of the training. Efficiency (left axis) is the mean iteration time with 8 DDP training ranks divided by the mean iteration time with N ranks. Throughput (right axis) is the number of training samples per second, i.e. global batch size divided by mean optimizer iteration time, where the global batch size is N×b , with local batch size b=32 .
Fig. 5 : Input data (each panel: top) vs. reconstructions (each panel: bottom) for selected components of the electric field ( Ex , Ey ), magnetic field ( Bx ) and the current ( Jy ) from a simulation snapshot at t=57,047$$ simulation steps. The Ex plot shows the transverse laser field dominating the picture, while Ey shows the accelerating field. In the longitudinal current Jy an accelerated electron bunch riding the laser wake can be seen as a blue droplet at the center of the panel.
Fig. 6 : A snapshot of one simulation output depicting the electric field Ex and electron density ne over the co-moving longitudinal position y−ct and a transverse position x . Three contour lines of PC linear combinations are overlayed.
Fig. 7 : Electron energy spectrum (integrated over the full θ range) of a held-out simulation. The model-predicted Gaussian peak shown is the mean over the seven evaluated crops, at propagation-axis offsets y=672 – 960 cells; it gives μ≈353\text{,}\mathrm{MeV} , close to the target peak of $\approx$365\text{\,}\mathrm{MeV} and well above the training-mean baseline of ≈319\text{,}\mathrm{MeV}$$ . An expert prediction based on the accelerating field close to the time of electron bunch self-injection, calculated from the original simulation output, is shown for comparison.
Fig. 8 : Predicted mean electron bunch energy vs. ground-truth. The candles summarize linear model predictions from the seven evaluated crops, at propagation-axis offsets y=672 – 960 cells, for each simulation. The mean across crop predictions is evaluated against the expert prediction.
Fig. 9 : Scaling of data handled by our streaming-based Recycler method: Dots and plus signs represent the measurements from this publication. Blue indicates streams and LTS from the small-scale LWFA simulation we used here. With our scaling run, we already reached the project’s quota limit. Note that streaming data is not written to disk and is just compared to the file system capacity as if it were written to disk. In green, scaling for a better resolved LWFA simulation is plotted. By doubling resolution, its output increases 16× and would thus already exceed quota limits for LTS . The used network bandwidth (plus signs) shows the average bandwidth used during the scaling runs.
Large-scale distributed training has been a research hot spot in machine learning systems for industry and academia in recent years. However, conducting experiments without physical machines and corresponding resources is difficult. One solution is to leverage distributed training simulators, but current ones like ASTRA-sim do not support importing real-world developed models, which poses challenges for ML researchers seeking to use them. Based on this challenge, we developed ModTrans, a translator supporting format translation from any real-world model to the ASTRA-sim simulator's input, removing the barrier between machine learning experts and machine learning system researchers. The experiment results show that ModTrans's cost is negligible.
Machine-learning models in high-energy physics are often trained on simulated data, where fully simulated samples are computationally expensive while fast simulation provides large statistics at reduced realism. In this work, we systematically study transfer learning between fast-simulated and fully simulated datasets in a realistic LHC environment. We consider three representative tasks, signal-background classification, quark-gluon jet tagging, and missing transverse energy reconstruction, using dense neural networks, graph neural networks, and transformer-based architectures. Models are pretrained on ATLAS-like fast simulation and adapted to CMS-like fast simulation and to fully simulated ATLAS Open Data. Across all tasks, pretrained models consistently outperform independently trained baselines and require significantly less target-domain training data, typically reducing the needed statistics by about a factor of two. These results demonstrate that fast simulation can be used to learn robust, reusable representations and motivate publishing trained models as reusable scientific assets beyond large foundation models.
Matthias Schott, Lucie Flek
Institute of Physics, University of Bonn, Germany · Bonn-Aachen International Center for Information Technology (b-it), University of Bonn, Germany
Modern LLM serving is no longer homogeneous or monolithic. Production systems now combine disaggregated execution, complex parallelism, runtime optimizations, and stateful workloads such as reasoning, agents, and RL rollouts. Simulation is attractive for exploring this growing design space, yet existing simulators lack the architectural completeness and decision-grade fidelity it demands. Their monolithic-replica abstractions are ill-suited to disaggregated serving, while average-case analytical proxies can distort SLA predictions and even reverse optimization conclusions. We present Frontier, a discrete-event simulator for modern LLM inference serving. Frontier features a disaggregated abstraction. It captures the structure and dynamics of modern serving systems by modeling co-location, Prefill-Decode Disaggregation (PDD), and Attention-FFN Disaggregation (AFD) with role-specific cluster workers, incorporating key runtime optimizations (e.g., CUDA Graphs, speculative decoding) within the scheduler-batch-engine loop, and supporting stateful requests for emerging workloads. It further provides accurate and generalizable predictions of computation, communication, and memory costs across diverse serving scenarios with complex workload compositions. On 16-H800 GPU testbed, Frontier achieves an average throughput error below 4%. Compared with state-of-the-art simulators, it reduces end-to-end latency error from 44.9% to 6.4% under co-location and from 51.7% to 2.6% under disaggregation. It scales to over 1K GPUs on commodity CPUs and enables new use cases such as SLA-dependent Pareto frontier exploration, heterogeneous disaggregated allocation, agentic reasoning scheduling validation, and RL post-training reconfiguration. We release Frontier at https://github.com/NetX-lab/Frontier.
Yicheng Feng, Xin Tan, Yangtao Deng +3
The Chinese University of Hong Kong · Anuttacon · StepFun