Python library supporting Discrete Variational Formulations and training solutions with Collocation-based Robust Variational Physics Informed Neural Networks (DVF-CRVPINN)
arXiv cs.LG / 4/20/2026
📰 NewsDeveloper Stack & InfrastructureTools & Practical UsageModels & Research
Key Points
- The paper presents a Python programming environment for solving PDEs using discrete weak formulations, including discrete domains, discrete functions on point sets, and Kronecker-delta-based test functions.
- It introduces a discrete neural-network representation that predicts solution values on discrete points and uses discrete finite-difference derivatives integrated into automatic differentiation.
- As a proof-of-concept, the authors train on the 2D Stokes equations by minimizing a discrete weak residual using the Adamax optimizer with discrete automatic differentiation of discrete gradients.
- The work includes a rigorous mathematical treatment that establishes well-posedness and robustness of the loss function, aiming for robust, numerically controlled training by tying the loss to the true error.
- The library functionality is also demonstrated on the Laplace equation formulation, showing the approach generalizes beyond the Stokes case.



