Learning, Solving and Optimizing PDEs with TensorGalerkin: an efficient high-performance Galerkin assembly algorithm

Shizheng Wen, Mingyuan Chi, Tianwei Yu, Ben Moseley, Mike Yan Michelis +3 more
2/4/2026
cs.LG

No official code found. Best implementation: camlab-ethz/TensorGalerkin (22 stars, PyTorch, last commit 2026-02-10).

Abstract

We present a unified algorithmic framework for the numerical solution, constrained optimization, and physics-informed learning of PDEs with a variational structure. Our framework is based on a Galerkin discretization of the underlying variational forms, and its high efficiency stems from a novel highly-optimized and GPU-compliant TensorGalerkin framework for linear system assembly (stiffness matrices and load vectors). TensorGalerkin operates by tensorizing element-wise operations within a Python-level Map stage and then performs global reduction with a sparse matrix multiplication that performs message passing on the mesh-induced sparsity graph. It can be seamlessly employed downstream as i) a highly-efficient numerical PDEs solver, ii) an end-to-end differentiable framework for PDE-constrained optimization, and iii) a physics-informed operator learning algorithm for PDEs. With multiple benchmarks, including 2D and 3D elliptic, parabolic, and hyperbolic PDEs on unstructured meshes, we demonstrate that the proposed framework provides significant computational efficiency and accuracy gains over a variety of baselines in all the targeted downstream applications.

View on arXivView PDF

Code Implementations(1)

PyTorch

About code release of "Learning, Solving and Optimizing PDEs with TensorGalerkin: an efficient high-performance Galerkin assembly algorithm"

220Python, Jupyter NotebookJul 17, 20238 months agoNOASSERTION
differentiable-programmingefficiencyfinite-element-methodsneuraloperatorphysics-informed-neural-networks+2 more

Similar Papers

Cite this paper

@article{wen2026learning,
  title  = {Learning, Solving and Optimizing PDEs with TensorGalerkin: an efficient high-performance Galerkin assembly algorithm},
  author = {Shizheng Wen and Mingyuan Chi and Tianwei Yu and Ben Moseley and Mike Yan Michelis and Pu Ren and Hao Sun and Siddhartha Mishra},
  year   = {2026},
  eprint = {2602.05052},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.05052v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.05052.svg)](https://codeofpaper.com/paper/2602.05052)

Discussion