Skip to main content
QUICK REVIEW

[Paper Review] Distributed Machine Learning for Computational Engineering using MPI

Kailai Xu, Weiqiang Zhu|arXiv (Cornell University)|Nov 2, 2020
Reservoir Engineering and Simulation MethodsEngineering42 references5 citations
TL;DR

This paper proposes a distributed machine learning framework that integrates deep neural networks (DNNs) with partial differential equation (PDE) solvers using MPI, treating data communication as first-class nodes in a computational graph. By enabling parallel forward and adjoint computations across distributed memory systems, the method achieves strong weak scaling and over 20x speedup using 100 processors, demonstrating scalable inverse modeling for large-scale PDE-constrained DNNs.

ABSTRACT

We propose a framework for training neural networks that are coupled with partial differential equations (PDEs) in a parallel computing environment. Unlike most distributed computing frameworks for deep neural networks, our focus is to parallelize both numerical solvers and deep neural networks in forward and adjoint computations. Our parallel computing model views data communication as a node in the computational graph for numerical simulations. The advantage of our model is that data communication and computing are cleanly separated and thus provide better flexibility, modularity, and testability. We demonstrate using various large-scale problems that we can achieve substantial acceleration by using parallel solvers for PDEs in training deep neural networks that are coupled with PDEs.

Motivation & Objective

  • To address the memory and computational bottlenecks in training DNNs coupled with PDEs using reverse-mode automatic differentiation.
  • To enable scalable, distributed optimization for large-scale inverse problems in computational engineering.
  • To unify parallel PDE solvers and distributed DNN training under a single computational graph abstraction with first-class communication nodes.
  • To overcome challenges in back-propagating gradients through MPI-based data communication and hybrid parallelism (MPI + threading).

Proposed method

  • Treat data communication operations (e.g., MPI broadcasts, halo exchanges) as explicit nodes in the computational graph, enabling end-to-end automatic differentiation.
  • Integrate DNNs and PDE solvers (e.g., finite element/finite difference) into a unified computational graph for gradient computation via reverse-mode AD.
  • Use a coarse-grained AD approach that operates on high-level abstractions (e.g., matrix solvers, PDE operators) rather than elementary arithmetic.
  • Implement custom MPI primitives in the ADCME library to support gradient back-propagation through communication patterns.
  • Decouple computation and communication logic to improve modularity, testability, and flexibility in hybrid MPI+threaded environments.
  • Apply domain decomposition to partition the computational domain across MPI processes, with halo exchanges for stencil-based PDE solvers.

Experimental results

Research questions

  • RQ1Can data communication in distributed PDE solvers be modeled as first-class computational graph nodes to support automatic differentiation?
  • RQ2How can reverse-mode AD be extended to handle gradients through MPI communication patterns in a hybrid MPI+threaded environment?
  • RQ3What level of strong and weak scaling can be achieved when training DNNs coupled with PDEs using this framework?
  • RQ4Can the framework maintain numerical accuracy and convergence while enabling massive parallelism across thousands of cores?
  • RQ5How does the performance of this approach compare to traditional data-parallel or model-parallel DNN training in physics-informed learning?

Key findings

  • The framework achieves over 20x speedup using 100 processors (3200 cores) for the acoustic wave equation, with minimal slowdown in weak scaling.
  • Weak scaling shows only a 2x increase in runtime when scaling from 1 to 100 processors for the acoustic wave equation, indicating excellent scalability.
  • For the elastic wave equation, the method maintains strong scalability with over 20x speedup on 100 processors, despite higher memory and state variable complexity.
  • The computational graph abstraction allows clean separation of communication and computation, enhancing modularity and testability.
  • The framework successfully supports back-propagation through both DNN parameters and MPI communication operations, enabling end-to-end gradient computation.
  • The implementation demonstrates practical feasibility for large-scale inverse problems involving PDEs and DNNs, such as parameter identification in wave propagation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.