A Learning-Based Ansatz Satisfying Boundary Conditions in Variational Problems
Rafael Florencio, Julio Guerrero
TL;DR
This work addresses the limitation of the Deep Ritz Method where neural-network test functions do not automatically satisfy boundary conditions. It introduces a boundary-satisfying ansatz $y(x)=B(x)+p(x)N_{net}(x,\theta)$, with $p(x)$ vanishing on the boundary and $B(x)$ encoding boundary data, thereby removing the need for penalty terms. Theoretical justification shows that $p(x)$ times a one-hidden-layer network is dense in the continuous function space, ensuring universal approximation within the Ritz framework. Empirically, the method achieves faster convergence and significantly smaller boundary errors than the traditional Deep Ritz Method across three examples, including a simple 1D action, a 2D Poisson-like problem, and a 3D quantum oscillator, with notably lower boundary deviations and comparable or superior accuracy. Overall, enforcing boundary conditions through the proposed ansatz enhances reliability and efficiency in variational problem solving.
Abstract
Recently, innovative adaptations of the Ritz Method incorporating deep learning have been developed, known as the Deep Ritz Method. This approach employs a neural network as the test function for variational problems. However, the neural network does not inherently satisfy the boundary conditions of the variational problem. To resolve this issue, the Deep Ritz Method introduces a penalty term into the functional of the variational problem, which can lead to misleading results during the optimization process. In this work, an ansatz is proposed that inherently satisfies the boundary conditions of the variational problem. The results demonstrate that the proposed ansatz not only eliminates misleading outcomes but also reduces complexity while maintaining accuracy, showcasing its practical effectiveness in addressing variational problems.
