Diffusion models with physics-guided inference for solving partial differential equations

This paper proposes a novel framework that trains diffusion models using standard data-driven procedures and incorporates physical laws exclusively during the reverse inference stage via PDE residual energy, enabling robust, generalizable, and accurate solutions to various partial differential equations without retraining.

Yi Bing, Liu Jia, Fu Jinyang, Peng Xiang

Published 2026-04-03
📖 4 min read🧠 Deep dive

Imagine you are trying to solve a complex puzzle, like predicting how heat spreads through a metal plate or how a shockwave moves through air. In the world of science, these puzzles are called Partial Differential Equations (PDEs).

For decades, scientists have used two main ways to solve them:

  1. The Old-School Calculator: Extremely precise but painfully slow. It's like trying to count every single grain of sand on a beach one by one to know the total weight.
  2. The Data-Driven Learner: Fast and smart, but it only knows what it has seen before. If you ask it about a situation slightly different from its training, it gets confused and guesses the "average" answer, which is often wrong.

This paper introduces a third way: a "Physics-Guided Diffusion Model." Think of it as a smart artist who learns to paint by looking at a gallery, but then uses the laws of physics to fix their mistakes while they paint.

Here is how it works, broken down into simple concepts:

1. The Artist (The Diffusion Model)

Imagine a talented artist who has spent years looking at thousands of paintings of heat maps, fluid flows, and shockwaves. They have learned the general "vibe" and patterns of these images.

  • How they learn: They don't memorize the math formulas. They just look at the pictures (data) and learn what a "good" solution looks like.
  • The Problem: If you ask this artist to paint a new scenario they've never seen (like a metal plate with a slightly different temperature), they might just paint a generic, blurry version of what they've seen before. They lack the specific rules of the universe.

2. The Critic (The Physics Guide)

Now, imagine a strict physics professor standing next to the artist. This professor doesn't know how to paint, but they know the Laws of Physics perfectly. They know exactly how heat must behave and how waves must move.

In this new method, the artist starts with a blank canvas covered in random static (noise).

  • The Process: The artist tries to remove the noise and reveal the image.
  • The Twist: Every time the artist makes a brushstroke, the Physics Professor steps in and says, "Wait, that doesn't look right. According to the laws of physics, heat shouldn't flow that way. Fix it."

The artist listens, adjusts the paint, and tries again. They repeat this thousands of times. The artist provides the "creativity" and speed, while the Professor provides the "rules" to ensure the result is scientifically accurate.

3. The Magic Trick: "Reverse Engineering" Noise

Usually, AI models are trained to create images from scratch. This model does the opposite. It starts with pure chaos (random noise) and slowly "denoises" it.

  • The Analogy: Imagine a room full of people shouting random words (noise). You want to hear a specific sentence. Instead of waiting for them to stop, you gently guide them, whispering, "No, say 'Heat flows from hot to cold' instead of 'Blue sky'."
  • By the end, the chaos has organized itself into a perfect, mathematically correct solution, guided by the laws of physics.

Why is this a Big Deal?

1. It doesn't need to relearn everything.

  • Old AI (PINNs): If you change the temperature of the metal plate, the old AI has to go back to school, relearn the math, and start over. It's like a student who has to re-take a whole exam just because the numbers changed slightly.
  • This New Method: The artist (AI) is already trained. The Professor (Physics) just gives new instructions for the specific problem. You can solve a brand new problem in seconds without retraining the AI.

2. It handles the "Weird Stuff" (Extrapolation).

  • If you ask the old AI about a situation totally outside its training data (e.g., extreme heat), it usually fails or gives a boring average answer.
  • Because this new method is guided by the laws of physics, it can figure out the answer even for extreme scenarios it has never seen, because the laws of physics don't change.

3. It's a Hybrid Superpower.
It combines the speed and pattern recognition of modern AI with the rigor and accuracy of classical physics. It's like giving a super-fast race car a GPS that never gets lost.

The Bottom Line

This paper proposes a new way to solve the universe's hardest math problems. Instead of forcing the AI to memorize the rules, or forcing the math to be slow, they let the AI do the heavy lifting of guessing, and use the laws of physics as a "correction tool" to steer the guess toward the truth.

It's a universal solver that is fast, accurate, and doesn't need to go back to school every time the problem changes.

Get papers like this in your inbox

Personalized daily or weekly digests matching your interests. Gists or technical summaries, in your language.

Try Digest →