Dynamic load/propagate/store for data assimilation with particle filters on supercomputers

Sebastian Friedemann, Kai Keller, Yen-Sen Lu, Bruno Raffin, Leonardo Bautista-GomezJ. Comput. Sci 2024

TL;DR

This paper introduces a novel framework for accelerating data assimilation using particle filters on supercomputers. By virtualizing particle propagation and employing a distributed cache, the system significantly reduces data movement and improves efficiency, achieving high scaling efficiency and outperforming traditional file-based approaches.

What Problem Does This Paper Address?

Data assimilation (DA) is crucial for many scientific fields, like weather forecasting, to combine observational data with model predictions. Particle Filters (PFs) are a powerful DA technique, but they are computationally intensive, especially for high-dimensional problems, due to the need to propagate and update many "particles" (model states). Running PFs efficiently on supercomputers is challenging due to the massive data movement required between compute nodes and storage, which creates I/O bottlenecks. Existing online approaches often sacrifice flexibility and fault tolerance for performance, while offline approaches are slow. This paper tackles the challenge of making large-scale PF-based DA efficient, flexible, and fault-tolerant on supercomputers.

Methods

The core of the proposed solution is a server/runner architecture that virtualizes particle propagation.

  • Runners: These are instances of the simulation code (e.g., WRF) instrumented to propagate multiple particles sequentially. They are coupled with a node-local distributed cache to accelerate loading and storing particle states. This cache is asynchronously persisted to global storage for checkpointing and load balancing.
  • Server: This component orchestrates the entire process. It schedules propagation tasks to runners, collects computed weights, and performs the centralized tasks of the particle filter update (resampling).
  • Dynamic Load Balancing & Elasticity: The server dynamically distributes tasks to runners, and the number of runners can change during execution to adapt to failures or resource availability.
  • Cache-Aware Scheduling: A heuristic strategy prioritizes particles already in the cache, minimizing costly loads from global storage.
  • Fault Tolerance: The system is designed to detect and recover from runner and server failures by restarting components and using checkpoints.

Datasets

The paper uses the Weather Research and Forecasting (WRF) model as a complex production code for their experiments. Observational data for cloud fraction is obtained from EUMETSAT Level-2 satellite data. Input, initial, and boundary conditions are based on the ERA5 dataset from ECMWF.

Key Insights and Ideas

  • Particle Virtualization: Treating a simulation code instance as a "runner" that can process multiple particles sequentially, rather than starting a new instance for each particle, dramatically reduces overhead.
  • Distributed Cache is Key: Leveraging node-local caches significantly reduces the reliance on the slower parallel file system, leading to substantial I/O savings.
  • Asynchronous I/O: Moving I/O operations (loading/storing states) to background "helper processes" allows the main "model processes" to continue computation, minimizing idle time.
  • Server-Runner Decoupling: Running runners and the server as independent executables enables elasticity and fault tolerance, allowing components to be restarted or scaled without bringing down the entire system.
  • Cache-Aware Scheduling: Prioritizing cached particles is crucial for maximizing the benefit of the distributed cache and minimizing I/O.

Key Results

  • High Scaling Efficiency: The framework achieves up to 87% scaling efficiency when running 2,555 particles on 20,442 cores.
  • Reduced Resource Usage: Compared to a file-based approach (ESIAS-met), the proposed framework uses 2.84 times fewer resources (cores×seconds) per particle at 1,024 particles.
  • I/O Reduction: The system avoids 88% of global I/O operations due to dynamic particle-propagation scheduling and caching.
  • Fast Server Responsiveness: The server handles requests efficiently, processing up to 676 requests per second at maximum load.
  • Effective Fault Tolerance: The system successfully restarts failed runners and maintains operation, with minimal idle time in most crash scenarios.

Limitations and Future Work

  • Bootstrap PF Limitations: The paper notes that the bootstrap PF used in experiments can suffer from weight degeneration in high-dimensional problems over long runs. Future work will explore more robust PF variants like IEWPF.
  • Further I/O Optimization: The authors plan to further optimize I/O by exploring node-local persistent storage as a globally shared layer and investigating peer-to-peer communication between runners.
  • Support for Other Methods: The framework is being extended to support other DA methods like MCMC and ABC, and other PF variants.
  • Heterogeneous Resources: Future work will explore how runners executing on heterogeneous resources (e.g., GPUs) can be managed.

Summary updated

BibTeX
@article{friedemann2024dynamic,
  author = {Sebastian Friedemann and Kai Keller and Yen-Sen Lu and Bruno Raffin and Leonardo Bautista-Gomez},
  title = {{Dynamic load/propagate/store for data assimilation with particle filters on supercomputers}},
  journal = {J. Comput. Sci.},
  year = {2024},
  doi = {10.1016/j.jocs.2024.102229},
}
Figure