Skip to main content
QUICK REVIEW

[Paper Review] The Deep Ritz method: A deep learning-based numerical algorithm for solving variational problems

E Weinan, Bing Yu|arXiv (Cornell University)|Sep 30, 2017
Model Reduction and Neural NetworksPhysics and Astronomy9 references14 citations
TL;DR

The Deep Ritz Method proposes a deep learning-based numerical algorithm for solving variational problems, particularly those arising from partial differential equations (PDEs), by using deep neural networks to represent trial functions and minimizing the energy functional via stochastic gradient descent. It demonstrates promising performance in high-dimensional problems, including eigenvalue problems, with errors below 1% in 1D and 5D for the infinite well and harmonic oscillator.

ABSTRACT

We propose a deep learning based method, the Deep Ritz Method, for numerically solving variational problems, particularly the ones that arise from partial differential equations. The Deep Ritz method is naturally nonlinear, naturally adaptive and has the potential to work in rather high dimensions. The framework is quite simple and fits well with the stochastic gradient descent method used in deep learning. We illustrate the method on several problems including some eigenvalue problems.

Motivation & Objective

  • To develop a novel numerical method for solving variational problems, especially PDEs, using deep learning.
  • To address the limitations of traditional methods in high-dimensional settings by leveraging the compositional function approximation of deep neural networks.
  • To create a framework that naturally adapts to problem complexity and scales efficiently in high dimensions.
  • To integrate the Ritz method with deep learning optimization, particularly stochastic gradient descent (SGD), for efficient computation.

Proposed method

  • Represents the trial function u(x;θ) using a deep neural network zθ(x), followed by a linear transformation: u(x;θ) = a·zθ(x) + b.
  • Uses a residual network architecture with blocks that include two linear transformations, ReLU-like activation functions (ϕ(x) = max{x³, 0}), and skip connections to stabilize training.
  • Discretizes the variational functional I(u) via Monte Carlo sampling, treating each integration point as a data point in a stochastic optimization framework.
  • Employs stochastic gradient descent (SGD) with mini-batches to minimize the loss function L(θ) = ∫Ω g(x;θ) dx, where g(x;θ) is derived from the energy functional.
  • Applies a penalty term to enforce normalization constraints in eigenvalue problems, such as ∫Ω u²dx = 1, to stabilize training and improve convergence.
  • Uses a dense residual network structure with concatenation-based skip connections (inspired by DenseNet) for eigenvalue problems to enhance gradient flow.

Experimental results

Research questions

  • RQ1Can deep neural networks effectively represent trial functions in variational formulations of PDEs?
  • RQ2How does the Deep Ritz Method perform in high-dimensional problems where traditional methods fail?
  • RQ3Can stochastic gradient descent be effectively adapted to minimize non-convex variational energy functionals in PDEs?
  • RQ4How do architectural choices—such as activation functions and skip connections—affect the accuracy and stability of the method?
  • RQ5What is the impact of normalization constraints and penalty terms on convergence and solution quality in eigenvalue problems?

Key findings

  • The Deep Ritz Method achieved a 0.20% error in the 1D infinite potential well problem, with the exact ground state energy λ₀ = 9.87 and approximate value 9.85.
  • For the 5D infinite well, the method achieved a 0.11% error, with exact λ₀ = 49.35 and approximate λ₀ = 49.29.
  • In the 10D infinite well, the error increased to 6.43%, indicating performance degradation with higher dimensionality.
  • For the 1D harmonic oscillator, the method achieved a 0.16% error (exact λ₀ = 1, approximate = 1.0016), showing high accuracy in low dimensions.
  • In the 5D harmonic oscillator, the error was 1.6%, and in 10D, it rose to 12.6%, indicating a significant increase in error with dimension.
  • The inclusion of a normalization penalty term (∫u²dx − 1)² improved training stability and allowed for smaller penalty coefficients, enhancing convergence.

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.