Papers › PIRF: Physics-Informed Reward Fine-Tuning for Diffusion Models

PIRF: Physics-Informed Reward Fine-Tuning for Diffusion Models

24 Sep 2025NeurIPSarXiv:2509.20570added by Syntology

Mingze Yuan, Pengfei Jin, Na Li, Quanzheng Li

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Diffusion models have demonstrated strong generative capabilities across scientific domains, but often produce outputs that violate physical laws. We propose a new perspective by framing physics-informed generation as a sparse reward optimization problem, where adherence to physical constraints is treated as a reward signal. This formulation unifies prior approaches under a reward-based paradigm and reveals a shared bottleneck: reliance on diffusion posterior sampling (DPS)-style value function approximations, which introduce non-negligible errors and lead to training instability and inference inefficiency. To overcome this, we introduce Physics-Informed Reward Fine-tuning (PIRF), a method that bypasses value approximation by computing trajectory-level rewards and backpropagating their gradients directly. However, a naive implementation suffers from low sample efficiency and compromised data fidelity. PIRF mitigates these issues through two key strategies: (1) a layer-wise truncated backpropagation method that leverages the spatiotemporally localized nature of physics-based rewards, and (2) a weight-based regularization scheme that improves efficiency over traditional distillation-based methods. Across five PDE benchmarks, PIRF consistently achieves superior physical enforcement under efficient sampling regimes, highlighting the potential of reward fine-tuning for advancing scientific generative modeling.

PaperPDFCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2509.20570")

Code

Syntology Ran 4 of 10 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 1 ran · honoured contract; 2 ran · our draft was wrong; 1 ran · fixture could not drive it.

By repository: found in paper text by Syntology: 10 samples from 1 repository, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

mingze-yuan/PIRF found in paper text by SyntologyMIT report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 4 ran; 1 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

1ran · honoured contract
2ran · our draft was wrong
1ran · fixture could not drive it
6unverified

Licence: 0 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from mingze-yuan/PIRF. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

format_time mingze-yuan/PIRF/dnnlib/util.py found in paper text by Syntology ran · our draft was wrong fingerprinted MIT (permissive) · 674eca7b9e1b6439 · report
format_time_brief mingze-yuan/PIRF/dnnlib/util.py found in paper text by Syntology ran · our draft was wrong fingerprinted MIT (permissive) · 32af001972a0699f · report
parse_int_list mingze-yuan/PIRF/finetune_pirf.py found in paper text by Syntology ran · honoured contract MIT (permissive) · cacd4f6ec202d9b4 · report
weight_init mingze-yuan/PIRF/training/networks.py found in paper text by Syntology ran · fixture could not drive it MIT (permissive) · d41a4250066bce93 · report
ask_yes_no mingze-yuan/PIRF/dnnlib/util.py found in paper text by Syntology unverified MIT (permissive) · 9d31d2c4cd16bb2d · report
generate mingze-yuan/PIRF/evaluate_pirf.py found in paper text by Syntology unverified MIT (permissive) · 3dcb7d7bb60bc495 · report
generate_with_cocogen mingze-yuan/PIRF/baselines/evaluate_cocogen.py found in paper text by Syntology unverified MIT (permissive) · 575ce4b10b86c029 · report
generate_with_diffusionpde mingze-yuan/PIRF/baselines/evaluate_diffusionpde.py found in paper text by Syntology unverified MIT (permissive) · 3a630d8b0e06c2b6 · report
generate_with_pgdiffusion mingze-yuan/PIRF/baselines/evaluate_pgdiffusion.py found in paper text by Syntology unverified MIT (permissive) · b2b6f79b379737a5 · report
generate_with_pidm mingze-yuan/PIRF/baselines/evaluate_pidm.py found in paper text by Syntology unverified MIT (permissive) · 29ba7759e852cc27 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2509.20570, was issued in September 2025, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections