Learning, Solving and Optimizing PDEs with TensorGalerkin: an efficient high-performance Galerkin assembly algorithm
Abstract
Lay Summary
(1) Problem. From designing aircraft to simulating how heat spreads through a chip, science and engineering depend on solving partial differential equations — mathematical descriptions of how physical quantities change in space and time. Classical solvers are accurate but slow, especially in design workflows that must solve the same equation thousands of times, or when training AI models on physics data. Newer AI-based methods promised relief, but in practice, they spend most of their time on bookkeeping — looping over millions of tiny mesh pieces — and leave modern GPUs heavily underused. (2) Solution. We rebuild this bookkeeping into two clean stages that a GPU can run efficiently: a single bulk tensor calculation that handles all the physics at once, and a single sparse matrix multiplication that stitches the local pieces into one global system. This replaces millions of tiny operations with a handful of large ones, and as a side effect makes gradient computation — the ingredient AI training and inverse design rely on — nearly free. (3) Impact. Built on this engine, our fast solver outperforms widely-used scientific software by up to 50×; our physics-aware AI learns to predict equation solutions without any labeled training data and generalizes better than data-hungry alternatives; and our design tool discovers efficient mechanical structures roughly 4× faster than the leading GPU baseline. Together, these speedups make scientific simulation, AI-for-science, and computational engineering substantially cheaper on modern hardware.