← Latest papers
🤖 machine learning

Guaranteeing Conservation of Integrals with Projection in Physics-Informed Neural Networks

This paper introduces PINN-Proj, a novel projection method that solves constrained optimization problems to guarantee the conservation of linear and quadratic integral quantities in Physics-Informed Neural Networks, significantly reducing conservation errors by three to four orders of magnitude while marginally improving solution accuracy and convergence.

Original authors: Anthony Baez, Wang Zhang, Ziwen Ma, Lam Nguyen, Subhro Das, Luca Daniel

Published 2026-05-26
📖 4 min read☕ Coffee break read

Original authors: Anthony Baez, Wang Zhang, Ziwen Ma, Lam Nguyen, Subhro Das, Luca Daniel

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to teach a very smart, but slightly rebellious, student (a Neural Network) to solve complex physics problems, like predicting how water flows or how waves crash.

The student is great at learning patterns from data, but they have a bad habit: they sometimes ignore the fundamental laws of the universe. For example, they might predict that a system suddenly creates energy out of thin air or loses mass without a reason. In the real world, this is impossible. Energy and mass must be conserved; they can move around, but they cannot just appear or disappear.

The Problem: The "Soft" Rule

Standard methods (called PINNs) try to teach the student these laws by adding a "soft rule" to their homework. It's like a teacher saying, "If you get the total energy wrong, you lose a few points."

  • The issue: The student tries to minimize their lost points, but they might still get the total energy slightly wrong because they are focused on getting the shape of the wave right. They are technically "close enough" to the law, but not exact. In physics, "close enough" isn't always good enough.

The Solution: The "Hard" Projection

The authors of this paper propose a new method called PINN-Proj. Instead of just asking the student to try harder, they install a "correction machine" that automatically fixes the student's work before it is submitted.

Here is how the machine works, using a simple analogy:

1. The Linear Integral (The "Total Weight" Analogy)
Imagine the student draws a picture of a fluid. The "Linear Integral" is like the total weight of all the water in the picture.

  • The Mistake: The student draws a wave that is slightly too heavy or too light compared to reality.
  • The Fix: The projection machine looks at the drawing, calculates the exact weight it should be, and then gently stretches or shrinks the entire drawing up or down until the total weight is perfect. It's like a tailor adjusting a suit so the total fabric weight matches the pattern exactly.

2. The Quadratic Integral (The "Total Energy" Analogy)
Now imagine the student needs to ensure the total "energy" (which relates to the square of the speed) is correct.

  • The Mistake: The student gets the speed of the water wrong in some spots.
  • The Fix: The machine performs a more complex calculation. It scales the entire drawing up or down, but in a way that preserves the specific "energy" balance. It's like a sound engineer adjusting the volume of a song so the total loudness (energy) hits a specific target, even if the individual notes change slightly.

3. The Combined Fix
The authors also figured out how to do both at once. The machine can adjust the drawing so that both the total weight and the total energy are perfect simultaneously.

What They Found

The researchers tested this "correction machine" on various physics problems (like waves and fluid flow) and compared it to the standard student (PINN) and the student with the "soft rule" (PINN-SC).

  • Perfect Conservation: The new method (PINN-Proj) was incredibly successful. It reduced the error in conservation laws by 3 to 4 orders of magnitude.
    • Analogy: If the old methods were off by a few inches, the new method was off by a fraction of a hair's width. It essentially guaranteed the laws of physics were obeyed exactly.
  • Better Accuracy: Surprisingly, by forcing the solution to obey these strict laws, the overall picture of the physics problem actually became slightly more accurate, not less.
  • Faster Learning: Even though the "correction machine" takes a little extra time to run (it adds some computational cost), the student actually learned the problem faster.
    • Analogy: It's like giving a student a strict checklist. It takes a minute to check off every item, but because the checklist keeps them on the right path, they finish the whole assignment faster than if they were wandering around trying to guess the right answer.

The Bottom Line

This paper introduces a way to "hard-code" the laws of conservation (like keeping total mass or energy constant) directly into AI physics models. Instead of hoping the AI learns the rule, the authors built a mathematical "safety net" that catches the AI and forces it to obey the law instantly. This makes the AI's predictions much more trustworthy for real-world physics, ensuring that the solutions it finds are not just mathematically close, but physically possible.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →