Papers
Topics
Authors
Recent
Search
2000 character limit reached

Deep Ritz Method for PDEs

Updated 12 January 2026
  • Deep Ritz Method is a neural network approach that solves PDEs by minimizing energy functionals, enabling mesh-free and flexible solutions.
  • It employs Wachspress coordinates and transfinite interpolation to exactly impose Dirichlet boundary conditions on convex polygonal domains.
  • The technique demonstrates superior numerical stability and accuracy, achieving errors as low as O(10⁻⁹ compared to traditional methods.

The Deep Ritz Method is a neural network-based framework for solving partial differential equations (PDEs) using variational principles. By parameterizing trial functions with neural networks and minimizing energy functionals, this method enables mesh-free and geometry-flexible solution of boundary-value problems, especially those arising in computational physics and engineering. Recent advances leverage transfinite interpolation and generalized barycentric coordinates—such as Wachspress coordinates—to ensure the exact enforcement of Dirichlet boundary conditions on convex polygonal domains, yielding kinematically admissible neural trial spaces with advantageous regularity and numerical conditioning (Sukumar et al., 5 Jan 2026).

1. Mathematical Foundation and Variational Formulation

The foundational principle of the Deep Ritz Method is the variational formulation of elliptic PDEs, where the solution uu is characterized as a minimizer of an energy functional over a suitable Sobolev space H1(P)H^1(P). For Poisson-type equations:

Δu=f in P,u=B on ∂P\Delta u = f \text{ in } P, \qquad u = B \text{ on } \partial P

the Ritz method seeks uu minimizing

J[u]=∫P(12∣∇u∣2−fu)dx\mathcal{J}[u] = \int_P \left( \frac{1}{2} |\nabla u|^2 - f u \right) dx

subject to Dirichlet data. By parameterizing u(⋅;θ)u(\cdot; \theta) as a neural network trial function and enforcing boundary conditions in the trial space, the minimization becomes an unconstrained optimization over network parameters θ\theta.

2. Wachspress Coordinates and Transfinite Interpolation

Wachspress coordinates provide a generalized barycentric coordinate system for convex nn-gons P⊂R2P\subset\mathbb{R}^2, allowing affine interpolation on polygonal domains and rational interpolation in the interior. Given vertices v1,…,vnv_1, \ldots, v_n and associated weights:

H1(P)H^1(P)0

with H1(P)H^1(P)1 and H1(P)H^1(P)2 denoting signed triangle areas, H1(P)H^1(P)3 forms a partition of unity, reproduces vertex positions, and yields exactly two nonzero barycentric coordinates on each edge. These properties make Wachspress coordinates suitable as neural network inputs, encoding both geometry and boundary structure (Sukumar et al., 5 Jan 2026).

The transfinite interpolant H1(P)H^1(P)4 is constructed to lift a prescribed boundary function H1(P)H^1(P)5 into the interior while exactly reproducing H1(P)H^1(P)6 on H1(P)H^1(P)7. The piecewise Dirichlet data, specified on each edge by functions H1(P)H^1(P)8, is interpolated via:

H1(P)H^1(P)9

or more generally as a Boolean-sum style formula summing over faces incident on each vertex.

3. Neural Network Ansatz with Exact Dirichlet Imposition

To ensure "hard" or exact compliance with Dirichlet boundary conditions, the neural trial function is formulated as:

Δu=f in P,u=B on ∂P\Delta u = f \text{ in } P, \qquad u = B \text{ on } \partial P0

where Δu=f in P,u=B on ∂P\Delta u = f \text{ in } P, \qquad u = B \text{ on } \partial P1 is a multilayer perceptron (MLP) receiving Wachspress coordinates as input, Δu=f in P,u=B on ∂P\Delta u = f \text{ in } P, \qquad u = B \text{ on } \partial P2 is the transfinite interpolant of Δu=f in P,u=B on ∂P\Delta u = f \text{ in } P, \qquad u = B \text{ on } \partial P3, and Δu=f in P,u=B on ∂P\Delta u = f \text{ in } P, \qquad u = B \text{ on } \partial P4 is an extension operator applying the same transfinite structure to Δu=f in P,u=B on ∂P\Delta u = f \text{ in } P, \qquad u = B \text{ on } \partial P5 projected onto boundary faces and vertices. The operator Δu=f in P,u=B on ∂P\Delta u = f \text{ in } P, \qquad u = B \text{ on } \partial P6 is constructed analogously to Δu=f in P,u=B on ∂P\Delta u = f \text{ in } P, \qquad u = B \text{ on } \partial P7 by projecting the input Δu=f in P,u=B on ∂P\Delta u = f \text{ in } P, \qquad u = B \text{ on } \partial P8 onto boundary subspaces, yielding a trial function in which Δu=f in P,u=B on ∂P\Delta u = f \text{ in } P, \qquad u = B \text{ on } \partial P9 identically vanishes on uu0, guaranteeing uu1.

This construction replaces previously-used approximate distance function (ADF) techniques, addressing their limitations by ensuring uu2 remains bounded everywhere in uu3, including at polygonal corners—a property verified both analytically and numerically (Sukumar et al., 5 Jan 2026).

4. Algorithmic Implementation

The Deep Ritz method with Wachspress-based transfinite formulation is operationalized as follows:

  • Preprocessing: Compute polygon vertex locations uu4. For any spatial point uu5, evaluate Wachspress coordinates uu6.
  • Boundary Lifting: Construct the transfinite interpolant uu7 for given edge-based Dirichlet data uu8.
  • Neural Network Forward Pass:
    • Input uu9 into MLP: J[u]=∫P(12∣∇u∣2−fu)dx\mathcal{J}[u] = \int_P \left( \frac{1}{2} |\nabla u|^2 - f u \right) dx0.
    • Compute extension operator J[u]=∫P(12∣∇u∣2−fu)dx\mathcal{J}[u] = \int_P \left( \frac{1}{2} |\nabla u|^2 - f u \right) dx1 using the transfinite interpolation scheme.
    • Form the trial solution J[u]=∫P(12∣∇u∣2−fu)dx\mathcal{J}[u] = \int_P \left( \frac{1}{2} |\nabla u|^2 - f u \right) dx2.
  • Variational or Collocation Loss:
    • Deep Ritz: Integrate J[u]=∫P(12∣∇u∣2−fu)dx\mathcal{J}[u] = \int_P \left( \frac{1}{2} |\nabla u|^2 - f u \right) dx3.
    • PINN (Physics-Informed Neural Networks): Collocation loss J[u]=∫P(12∣∇u∣2−fu)dx\mathcal{J}[u] = \int_P \left( \frac{1}{2} |\nabla u|^2 - f u \right) dx4.
  • Optimization: Update J[u]=∫P(12∣∇u∣2−fu)dx\mathcal{J}[u] = \int_P \left( \frac{1}{2} |\nabla u|^2 - f u \right) dx5 using first- or second-order optimizers (Adam, L-BFGS).
  • Parametric Domains: For families of shapes, append domain parameters J[u]=∫P(12∣∇u∣2−fu)dx\mathcal{J}[u] = \int_P \left( \frac{1}{2} |\nabla u|^2 - f u \right) dx6 to input, recompute J[u]=∫P(12∣∇u∣2−fu)dx\mathcal{J}[u] = \int_P \left( \frac{1}{2} |\nabla u|^2 - f u \right) dx7, and train a single network for a range of geometries.

5. Numerical Performance and Comparative Results

Comparative studies demonstrate the efficacy of the Wachspress-based transfinite Deep Ritz method versus traditional techniques, such as the ADF-based trial. Numerical results include:

  • On a unit square with boundary data J[u]=∫P(12∣∇u∣2−fu)dx\mathcal{J}[u] = \int_P \left( \frac{1}{2} |\nabla u|^2 - f u \right) dx8 on one edge, transfinite interpolation yields bounded J[u]=∫P(12∣∇u∣2−fu)dx\mathcal{J}[u] = \int_P \left( \frac{1}{2} |\nabla u|^2 - f u \right) dx9 with training loss u(⋅;θ)u(\cdot; \theta)0 compared to u(⋅;θ)u(\cdot; \theta)1 for ADF, and maximal solution error u(⋅;θ)u(\cdot; \theta)2 versus u(⋅;θ)u(\cdot; \theta)3 for ADF near corners.
  • For highly oscillatory Dirichlet data (u(⋅;θ)u(\cdot; \theta)4), the method resolves thin boundary layers robustly across activation functions.
  • On non-rectangular quadrilaterals, loss terms converge to u(⋅;θ)u(\cdot; \theta)5, with maximal solution errors u(⋅;θ)u(\cdot; \theta)6.
  • On pentagonal domains, u(⋅;θ)u(\cdot; \theta)7 solution error is observed relative to finite element (Abaqus) benchmarks.
  • Inverse problems, such as heat-source reconstruction, achieve u(⋅;θ)u(\cdot; \theta)8 relative error.
  • For parametrically-varying quadrilaterals, the single-network approach maintains u(⋅;θ)u(\cdot; \theta)9 maximum error over θ\theta0.

A summary table of prominent numerical results follows:

Problem Class Max Error Achieved Notable Features
Unit Square Laplace, smooth BC θ\theta1 Bounded θ\theta2, outperforms ADF
Oscillatory boundary (PINN+TFI) θ\theta3 Robust to activation, resolves boundary
Non-rectangular quadrilateral θ\theta4 Training loss to θ\theta5
Pentagonal Laplace vs. FEM θ\theta6 Agreement with Abaqus FE solution
Inverse heat-source θ\theta7 Accurate source parameter recovery
Parametric quadrilaterals θ\theta8 Solution uniform over shape family

6. Boundary Condition Enforcement and Regularity

A central contribution is the exact (hard) enforcement of Dirichlet boundary conditions for neural network trial spaces on convex polygonal domains. The trial function is kinematically admissible by construction, with the property that θ\theta9 remains bounded in nn0 and up to the boundary—including vertices—thereby averting the singularities typical for R-function or ADF-based methods. This leads to improved convergence and numerical stability, especially when using collocation points near geometric singularities (Sukumar et al., 5 Jan 2026).

On rectangles, the Wachspress-based transfinite interpolant specializes to the classical bilinear Coons patch, but generalizes seamlessly to arbitrary convex nn1-gons, enabling mesh-free enforcement of complex geometric boundary data.

7. Extensions and Applications

The Wachspress-based Deep Ritz methodology is applicable to forward, inverse, and parametric geometric PDE problems, including nonlinear elliptic equations. Extensions encompass:

  • Families of parametrized domains, where the geometric parameter is treated as part of the neural network input, enabling rapid solution and design space exploration.
  • Inverse problems (e.g., source identification) by combining PDE and data-driven losses.
  • Nonlinear equations, demonstrated on problems of the form nn2.

This framework enhances the accuracy, conditioning, and generality of PINN and Deep Ritz solvers for a wide spectrum of PDE-boundary value problems in computational physics, geometry, and engineering design (Sukumar et al., 5 Jan 2026).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Deep Ritz Method.