TL;DR
This paper introduces DeepFusion, a distributed computing framework that enables training of large, data-free neural network models capable of solving complex partial differential equations (PDEs). This framework overcomes previous limitations in training time and memory, allowing for the creation of high-resolution PDE solvers that are significantly faster than traditional methods.
What Problem Does This Paper Address?
Solving complex partial differential equations (PDEs) is crucial for simulating and understanding many engineered systems, from aircraft design to fluid dynamics. While scientific machine learning (SciML) has shown promise in using neural networks to act as "surrogate" PDE solvers, practical adoption has been hindered by several challenges:
- Training Difficulty: Training these models, especially for high-resolution outputs (e.g., 1024x1024 pixels), is computationally intensive and time-consuming.
- Memory Limitations: Standard GPUs often lack the memory to handle the large models and intermediate data required for high-resolution training.
- Data Dependency: Many existing machine learning approaches require vast amounts of data, which can be scarce or expensive to generate for complex simulations.
- Generalizability: Models often struggle to generalize beyond the specific problem they were trained on.
This paper aims to address these issues by providing a scalable and efficient framework for training "data-free" generative neural networks that can solve entire families of PDEs.
Methods
The core contribution is the DeepFusion framework, a software solution for data-parallel distributed deep learning. Key features include:
- Data Parallelism: The framework distributes the training data across multiple compute nodes, allowing for parallel processing of mini-batches. This is implemented using a hybrid MPI-OpenMP approach for efficient inter- and intra-node communication.
- Synchronized Batch Normalization: A novel scheme to ensure that batch normalization statistics are consistent across all workers, regardless of the number of processes, thus preserving problem independence.
- Distributed Higher-Order Optimization: Support for optimization methods beyond standard stochastic gradient descent (SGD), which can lead to faster convergence and better handling of larger batch sizes.
- Loss Integrity: The framework guarantees that the loss calculation is independent of the number of processes used, ensuring reproducible results.
- Optimized Libraries: Leverages Intel MKLDNN for fast forward and backward propagation, crucial for performance on Intel CPUs.
The models trained using DeepFusion are DiffNets, which are conditional generative neural networks. These networks take initial and boundary conditions as input and learn to generate the full-field solution to a PDE. The training objective minimizes both the PDE residual error and the error in reconstructing initial/boundary conditions.
Datasets
The paper does not explicitly mention specific large-scale public datasets for training. Instead, it focuses on training DiffNet models to solve the inviscid Burgers' equation for a parameterized family of initial conditions. The "dataset" for training is generated by sampling points from the parameter space of these initial conditions. The evaluation uses solutions generated by optimized Finite Difference Method (FDM) and Finite Element Method (FEM) solvers as benchmarks.
Key Insights and Ideas
- Bridging the Gap: DeepFusion effectively bridges the gap between the computational demands of training large SciML models and the practical limitations of hardware, enabling previously infeasible training runs.
- Data-Free Generative Models as PDE Solvers: The success of DiffNets, trained without explicit solution data, demonstrates the power of generative models in learning complex physical dynamics directly from the governing equations.
- Scalability is Key: The framework's excellent scalability across cloud and HPC clusters highlights the importance of distributed computing for advancing SciML.
- Higher-Order Optimizers Shine: Distributed higher-order optimization methods offer significant speedups and better convergence properties compared to SGD, especially with larger batch sizes.
- High-Resolution PDE Solvers are Achievable: The ability to train models for resolutions up to 1024x1024 pixels opens doors for more accurate and detailed simulations in real-world applications.
Key Results
- Significant Speedup: DeepFusion achieves nearly 100x speedup in inference time for solving PDEs compared to conventional solvers.
- Training Large Models: The framework successfully trains DiffNet models for resolutions up to 1024x1024, which was previously not possible on GPUs.
- Scalability: Excellent scaling was demonstrated on both cloud (AWS, Azure) and HPC (Stampede2) clusters. For example, training on 128 Stampede2 nodes was 20-60x faster than on GPUs.
- Optimizer Performance: Distributed higher-order optimization methods were 2-3x faster than SGD and showed minimal convergence drift with larger batch sizes.
- Accuracy: DiffNet solutions for the inviscid Burgers' equation closely matched FDM and FEM solutions, even capturing shock formations accurately, and showed promise in generalizing to different parameter ranges.
Limitations and Future Work
- Diffusive Features: The paper notes that DiffNet solutions can exhibit slightly more diffusive features than FEM solutions, suggesting that using higher-order Sobel filters could improve accuracy.
- Training Time: While inference is fast, training these large models still requires significant time (e.g., 32 hours for a 1024x1024 model).
- Future Work: The authors plan to extend the framework to incorporate model parallelism for even greater scaleup and explore applying second-order optimization strategies to a wider range of PDEs. They also aim to further improve the accuracy and generalization capabilities of the DiffNet models.
Summary updated