Lune

HPDC2025Top-tier venue

Optimizing Data Distribution and Kernel Performance for Efficient Training of Chemistry Foundation Models: A Case Study with MACE

Jesun Sahariar Firoz, Franco Pellegrini, Mario Geiger, Darren Hsu, Jenna A. Bilbrey, Han-Yi Chou, Maximilian Stadler, Markus Höhnerbach, Tingyu Wang, Dejun Lin, Emine Küçükbenli, Henry W. Sprueill

Abstract

Chemistry Foundation Models (CFMs) that leverage Graph Neural Networks (GNNs) operating on 3D molecular graph structures are becoming indispensable tools for computational chemists and materials scientists. These models facilitate the understanding of matter and the discovery of new molecules and materials. In contrast to GNNs operating on a large homogeneous graphs, GNNs used by CFMs process a large number of geometric graphs of varying sizes, requiring different optimization strategies than those developed for large homogeneous GNNs. This paper presents optimizations for two critical phases of CFM training: data distribution and model training, targeting MACE -a state-of-the-art CFM. We address the challenge of load balancing in data distribution by formulating it as a multi-objective bin packing problem. We propose an iterative algorithm that provides a highly effective, fast, and practical solution, ensuring efficient data distribution. For the training phase, we identify symmetric tensor contraction as the key computational kernel in MACE and optimize this kernel to improve the overall performance. Our combined approach of balanced data distribution and kernel optimization significantly enhances the training process of MACE. Experimental results demonstrate a substantial speedup, reducing per-epoch execution time for training from 12 to 2 minutes on 740 GPUs with a 2.6M sample dataset.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Equiformer: Equivariant Graph Attention Transformer for 3D Atomistic Graphs cites Directional Message Passing for Molecular Graphs
  • Equiformer: Equivariant Graph Attention Transformer for 3D Atomistic Graphs cites GemNet: Universal Directional Graph Neural Networks for Molecules
  • Equiformer: Equivariant Graph Attention Transformer for 3D Atomistic Graphs cites E(n) Equivariant Graph Neural Networks
  • GemNet: Universal Directional Graph Neural Networks for Molecules cites Directional Message Passing for Molecular Graphs
  • MACE: Higher Order Equivariant Message Passing Neural Networks for Fast and Accurate Force Fields cites Directional Message Passing for Molecular Graphs
  • MACE: Higher Order Equivariant Message Passing Neural Networks for Fast and Accurate Force Fields cites GemNet: Universal Directional Graph Neural Networks for Molecules
  • MACE: Higher Order Equivariant Message Passing Neural Networks for Fast and Accurate Force Fields cites E(n) Equivariant Graph Neural Networks
  • E(n) Equivariant Graph Neural Networks cites Directional Message Passing for Molecular Graphs
  • The Price of Freedom: Exploring Expressivity and Runtime Tradeoffs in Equivariant Tensor Products cites Equiformer: Equivariant Graph Attention Transformer for 3D Atomistic Graphs
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. The Price of Freedom: Exploring Expressivity and Runtime Tradeoffs in Equivariant Tensor ProductsYuqing Xie, Ameya Daigavane, Mit Kotak, Tess E. SmidtICML 2025

Builds on8

  1. MACE: Higher Order Equivariant Message Passing Neural Networks for Fast and Accurate Force FieldsIlyes Batatia, Dávid Péter Kovács, Gregor N. C. Simm, Christoph Ortner et al.NeurIPS 2022 · 1,448 citations
  2. E(n) Equivariant Graph Neural NetworksVictor Garcia Satorras, Emiel Hoogeboom, Max WellingICML 2021 · 1,432 citations
  3. Directional Message Passing for Molecular GraphsJohannes Klicpera, Janek Groß, Stephan GünnemannICLR 2020 · 1,079 citations
  4. GemNet: Universal Directional Graph Neural Networks for MoleculesJohannes Gasteiger, Florian Becker, Stephan GünnemannNeurIPS 2021 · 665 citations
  5. Equiformer: Equivariant Graph Attention Transformer for 3D Atomistic GraphsYi-Lun Liao, Tess E. SmidtICLR 2023 · 65 citations

Related papers

  1. Moment: Co-optimizing Physical Communication Topology and Data Placement for Multi-GPU Out-of-core GNN TrainingZuocheng Shi, Jie Sun, Ziyu Song, Mo Sun et al.SC 2025 · 3 citations
  2. Plexus: Taming Billion-edge Graphs with 3D Parallel Full-graph GNN TrainingAditya K. Ranjan, Siddharth Singh, Cunyang Wei, Abhinav BhateleSC 2025 · 1 citation
  3. FAENet: Frame Averaging Equivariant GNN for Materials ModelingAlexandre Duval, Victor Schmidt, Alex Hernández-García, Santiago Miret et al.ICML 2023 · 93 citations
  4. On the Scalability of GNNs for Molecular GraphsMaciej Sypetkowski, Frederik Wenkel, Farimah Poursafaei, Nia Dickson et al.NeurIPS 2024 · 58 citations
  5. MIMOSA: Multi-constraint Molecule Sampling for Molecule OptimizationTianfan Fu, Cao Xiao, Xinhao Li, Lucas M. Glass et al.AAAI 2021 · 94 citations
Dusk over the sea between two cliffs drawn in fine vertical lines