Skip to main content
QUICK REVIEW

[Paper Review] Training neural networks under physical constraints using a stochastic augmented Lagrangian approach

Alp Dener, M.A. Miller|arXiv (Cornell University)|Sep 15, 2020
Nuclear reactor physics and engineeringEngineering17 references12 citations
TL;DR

This paper proposes a stochastic augmented Lagrangian method to train neural networks under physical constraints—specifically mass, momentum, and energy conservation—for approximating the Fokker-Planck-Landau collision operator in fusion simulations. By combining stochastic gradient descent with heuristic updates for penalty parameters and Lagrange multipliers, the method achieves sub-10⁻⁶ constraint violations and superior prediction accuracy over fixed penalty methods, enabling integration into the XGC simulation workflow.

ABSTRACT

We investigate the physics-constrained training of an encoder-decoder neural network for approximating the Fokker-Planck-Landau collision operator in the 5-dimensional kinetic fusion simulation in XGC. To train this network, we propose a stochastic augmented Lagrangian approach that utilizes pyTorch's native stochastic gradient descent method to solve the inner unconstrained minimization subproblem, paired with a heuristic update for the penalty factor and Lagrange multipliers in the outer augmented Lagrangian loop. Our training results for a single ion species case, with self-collisions and collision against electrons, show that the proposed stochastic augmented Lagrangian approach can achieve higher model prediction accuracy than training with a fixed penalty method for our application problem, with the accuracy high enough for practical applications in kinetic simulations.

Motivation & Objective

  • To address the O(n²) computational bottleneck of the Fokker-Planck-Landau collision operator in XGC simulations with many plasma species.
  • To develop a machine learning model that approximates the collision operator with high accuracy while strictly enforcing physical conservation laws (mass, momentum, energy).
  • To overcome limitations of fixed penalty methods, which suffer from poor constraint enforcement and require tedious hyperparameter tuning.
  • To enable practical integration of the ML model into the XGC simulation pipeline by achieving constraint violations below 10⁻⁵ per collision step.

Proposed method

  • Formulate the physics-constrained training as a constrained optimization problem using the augmented Lagrangian method to handle nonlinear conservation constraints.
  • Use PyTorch’s native stochastic gradient descent to solve the inner unconstrained minimization subproblems efficiently.
  • Implement a heuristic update strategy for the penalty parameter and Lagrange multipliers in the outer augmented Lagrangian loop to improve convergence.
  • Integrate the constraint enforcement directly into the loss function via penalty terms that penalize violations of mass, momentum, and energy conservation.
  • Train the encoder-decoder neural network on synthetic data generated from the XGC FPL operator, ensuring physical consistency during learning.
  • Use mini-batch shuffling and 30 training epochs with 10 outer augmented Lagrangian iterations per shuffle to improve generalization and stability.

Experimental results

Research questions

  • RQ1Can a stochastic augmented Lagrangian approach effectively enforce physical conservation constraints in neural network training for fusion simulation operators?
  • RQ2How does the performance of the proposed method compare to fixed penalty methods in terms of constraint violation and model accuracy?
  • RQ3Does tighter enforcement of conservation laws lead to improved generalization and prediction accuracy of the ML model?
  • RQ4Can the heuristic update strategy for penalty parameters and multipliers achieve sufficient convergence without full Hessian information?
  • RQ5Is the resulting model accurate enough for integration into the XGC simulation workflow, given the stringent error tolerance of 10⁻⁵ per collision step?

Key findings

  • The stochastic augmented Lagrangian method achieved median constraint violations of at least 10⁻⁶ across mass, momentum, and energy conservation laws, meeting the required accuracy threshold for XGC integration.
  • The method reduced model prediction error significantly more than the fixed penalty method, indicating that tighter constraint enforcement guided the network toward better generalization.
  • Constraint violation was uniformly enforced across all three conservation laws, with no degradation in performance for any individual property.
  • The training convergence was faster and more stable than with the fixed penalty method, as shown by the loss and constraint norm plots.
  • The model trained with the augmented Lagrangian method outperformed both the unconstrained and fixed penalty baselines in out-of-sample testing, demonstrating superior robustness.
  • The results suggest that enforcing physical constraints not only ensures simulation fidelity but also improves the intrinsic accuracy of the learned operator.

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.