Reinforcement Learning with Verifiable Physics: Post-training LLMs with Continuous Rewards
Pengfei Cai, Utkarsh Utkarsh, Alan Edelman, Christopher Vincent Rackauckas, Rafael Gomez-Bombarelli
NeurIPS 2026
TL;DR. RLVP post-trains a single LLM policy across multiple PDE families by introducing and using verifiable physics rewards, enabling it to generate solver code that is executable, accurate, and physically consistent.
Abstract. Partial differential equations (PDEs) are foundational to modeling in science and engineering, but constructing reliable numerical solvers remains labor-intensive, demanding expert knowledge of discretization schemes, stability conditions, and boundary treatments. Recent work has begun to frame PDE solving as a code-generation task for large language models (LLMs), yet existing approaches operate primarily at inference time: relying on prompting, debugging, self-refinement, and test-time scaling rather than adapting the model itself. In parallel, reinforcement learning with verifiable rewards has emerged as a powerful post-training paradigm for code and math reasoning, but its verifiers are typically binary: a compiler runs, or a test passes. Such signals discard the graded structure of scientific correctness, where two solvers may both execute and yet differ in solution accuracy by orders of magnitude. In this work, we introduce RLVP: Reinforcement Learning with Verifiable Physics, an RL post-training framework for multi-PDE solver code generation. RLVP addresses this verifiability gap with a hybrid verifier: hard program-validity checks ensure executability, while continuous physics rewards score function-space physical accuracy, with optional PDE-residual consistency. A single policy is post-trained across diverse PDE families spanning hyperbolic, parabolic, elliptic, and incompressible-flow systems. RLVP improves over both pre-trained and supervised-only baselines on the trained PDE families, and shows selective zero-shot transfer to held-out PDEs. Under direct generation, compact RLVP-trained models outperform the evaluated frontier models on the trained PDE families. The trained policy shows evidence of compositionality in numerical motifs: it recombines stencils, time-stepping schemes, and boundary-handling primitives learned from the PDEs used in training into generated solvers for unseen PDE problems.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 4 reviews · OpenReview
Updated 25 Nov 2026, 03:46 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The paper addresses post-training of LLMs for PDE solver code generation. It proposes RLVP (Reinforcement Learning with Verifiable Physics), which extends binary execution rewards with continuous physics-aware rewards measuring trajectory accuracy and PDE residual consistency. Starting from a supervised model trained on a solver bank, RLVP jointly post-trains a single policy across multiple PDE families. Experiments on eight PDE families show consistent improvements over pretrained and supervised baselines, competitive performance against larger frontier LLMs under direct generation, and evidence of transfer to related unseen PDEs.
The reviewers appreciate:
-
The importance and timeliness of the problem. Scientific PDE solver generation is an important application where physics-aware evaluation is well motivated.
-
The well-designed hybrid physics verifier. The combination of execution validity with continuous physics rewards is considered one of the paper's main methodological contribution.
-
Strong empirical evaluation.
-
Joint training of a single policy across multiple PDE families.
They also highlight weaknesses including, Incomplete reward ablations, limited evidence supporting transfer/generalization, scalabilty that remains unclear, limited statistical evidence and comparison with frontier models that should be strengthened.
I would recommend the authors to focus the rebuttal on the following questions:
-
Better analyze the reward design. The reviewers request a clearer analysis of the individual reward components, in particular isolating the contribution of the residual-consistency reward and better justifying its role beyond trajectory accuracy. (RhLGZ, R9qKJ, RUSAh)
-
Provide stronger evidence that RLVP is not primarily adapting solver-bank templates. The reviewer requests additional evidence supporting the claim that RLVP learns transferable numerical strategies rather than primarily reusing solver templates; a simple similarity analysis between generated programs and the solver bank is suggested as one possible approach. (RhLGZ)
-
Strengthen the comparison with relevant baselines. In particular, the reviewers request comparisons with inference-time refinement methods (e.g., CodePDE) or a clearer justification for their omission, together with a clearer discussion of the comparison with frontier models. (R9qjK, RtyVN, RUSAh)
-
Discuss the scalability of the approach to larger or more complex PDE problems. (R9qjK, RtyVN)
Final justification
The authors provided a thorough rebuttal, addressing in detail the questions and weaknesses highlighted by the reviewers. They included several new experimental results, including additional baselines, ablation studies clarifying the respective importance of the reward components, new evidence that their method learns transferable numerical strategies, and results demonstrating scalability to 3D.
All reviewers consider that the authors have fully or partially addressed their comments and questions. Three out of the four reviewers increased their ratings following the rebuttal.
Considering the reviewers’ assessments and the additional evidence provided by the authors, I recommend acceptance.
Read meta-review
Meta-review
The paper addresses post-training of LLMs for PDE solver code generation. It proposes RLVP (Reinforcement Learning with Verifiable Physics), which extends binary execution rewards with continuous physics-aware rewards measuring trajectory accuracy and PDE residual consistency. Starting from a supervised model trained on a solver bank, RLVP jointly post-trains a single policy across multiple PDE families. Experiments on eight PDE families show consistent improvements over pretrained and supervised baselines, competitive performance against larger frontier LLMs under direct generation, and evidence of transfer to related unseen PDEs.
The reviewers appreciate:
-
The importance and timeliness of the problem. Scientific PDE solver generation is an important application where physics-aware evaluation is well motivated.
-
The well-designed hybrid physics verifier. The combination of execution validity with continuous physics rewards is considered one of the paper's main methodological contribution.
-
Strong empirical evaluation.
-
Joint training of a single policy across multiple PDE families.
They also highlight weaknesses including, Incomplete reward ablations, limited evidence supporting transfer/generalization, scalabilty that remains unclear, limited statistical evidence and comparison with frontier models that should be strengthened.
I would recommend the authors to focus the rebuttal on the following questions:
-
Better analyze the reward design. The reviewers request a clearer analysis of the individual reward components, in particular isolating the contribution of the residual-consistency reward and better justifying its role beyond trajectory accuracy. (RhLGZ, R9qKJ, RUSAh)
-
Provide stronger evidence that RLVP is not primarily adapting solver-bank templates. The reviewer requests additional evidence supporting the claim that RLVP learns transferable numerical strategies rather than primarily reusing solver templates; a simple similarity analysis between generated programs and the solver bank is suggested as one possible approach. (RhLGZ)
-
Strengthen the comparison with relevant baselines. In particular, the reviewers request comparisons with inference-time refinement methods (e.g., CodePDE) or a clearer justification for their omission, together with a clearer discussion of the comparison with frontier models. (R9qjK, RtyVN, RUSAh)
-
Discuss the scalability of the approach to larger or more complex PDE problems. (R9qjK, RtyVN)
Final justification
The authors provided a thorough rebuttal, addressing in detail the questions and weaknesses highlighted by the reviewers. They included several new experimental results, including additional baselines, ablation studies clarifying the respective importance of the reward components, new evidence that their method learns transferable numerical strategies, and results demonstrating scalability to 3D.
All reviewers consider that the authors have fully or partially addressed their comments and questions. Three out of the four reviewers increased their ratings following the rebuttal.
Considering the reviewers’ assessments and the additional evidence provided by the authors, I recommend acceptance.
2 comments
Follow-up Response to Meta-Review after Discussion Phase
Dear Area Chair,
Building on our previous response to the meta-review, the discussion phase further clarified the recommended priorities. We summarize the resulting updates below.
1. Reward design and each component's distinct role
The matched ablations now provide clear attribution. Adding continuous trajectory accuracy to binary validity improves trained-PDE pass@1/pass@8 from 0.609/0.769 to 0.755/0.885; selective residual activation for NS2D/Darcy2D gives the best aggregate of 0.764/0.903 and lowers NS2D divergence from 0.380 to 0.290. We summarize the reward design: trajectory accuracy is the principal dense signal, while residual consistency is complementary PDE-dependent supervision. Reviewer USAh concluded that “graded function-space feedback clearly beats binary execution verification, and that is the core contribution", and hLGZ agreed that the residual-consistency factor provides smaller but PDE-dependent complementary benefit. [A.1--A.4; R4.1; USAh Response 1/3]
2. Evidence that RLVP does not reuse solver templates and learns transferable numerical methods
After we completed the analyses that Reviewer hLGZ had identified as grounds for reconsideration, they wrote that the new similarity analyses, training-family holdouts, reward ablations, and independent training runs “materially strengthen the evaluation.” They further stated that the token-, AST-, and retrieval-based analyses provide “useful evidence against literal memorization or direct nearest-neighbor reuse".
For held-out PDEs, 0/320 meet the teacher-level token threshold, 0/280 parseable programs match a teacher AST, and retrieval solves 0/10 PDEs. Replacing all 214 CN solver teachers maintained RLVP's performance. Under strict Leave-Advection-out, SFT has no observed advection success, while RL on only the other 7 PDEs yields pass@1, 8 and 32 of 0.0117/0.0867/0.25.
Together with the held-out PDE solver examples in the paper, and gains on newly added unseen 3D PDEs, the evidence shows that RLVP models do not simply copy or lightly modify teacher solvers: they adapt and recombine numerical primitives, with correctness tested on hidden cases. Reusing numerical ideas is neither memorization nor a failure of transfer, it is the desired behavior of a PDE solver policy. RLVP shows evidence of selective transfer across equation families, operator structure, and spatial dimensions, not arbitrary PDE generalization. [R1.1--R1.3; R1.5; R4.4-R4.6; hLGZ Follow-up 3/4-4/4]
3. Requested baselines
Reviewer USAh accepted the CodePDE comparison as the appropriate controlled design, despite its larger 44-candidate budget. CodePDE reaches trained/held-out pass@1/pass@8 of 0.01/0.06 and 0.05/0.22, versus RLVP at 0.68/0.83 and 0.11/0.57. Claude Opus 5 reaches 0.49/0.52 under the same direct-generation protocol.
Unlike CodePDE (a test-time method), RLVP amortizes physical feedback during post-training and requires no PDE reference or refinement loop at deployment. USAh stated that this controlled comparison is well supported, while tyVN raised their rating to 5 after the strengthened evaluations [B.1--B.3; USAh Responses 1/3 and 3/3; tyVN R3.1].
4. Scalability, robustness, and presentation consistency
The 3D PDE evaluation contains 5 PDEs absent from SFT and RL, with RLVP improves over 14B base model on all 5, including Advection3D (0.219/0.897 vs. 0/0) and the coupled Acoustic Wave3D (0.021/0.167 vs. 0/0). Against a reference finer than every tested grid, RD2D and Darcy2D show decreasing error, while NS2D remains below . Three seed SFT-to-RL runs give trained PDE pass@1/pass@8 of 0.724±0.023/0.852±0.015 and held-out pass@1/pass@8 of 0.160±0.032/0.512±0.010 [updated R1.5; R1.6/R4.1; USAh Follow-up 3/4].
On the 14B held-out discussions, we retain the submitted final checkpoint trained with trajectory-only reward and discuss its held-out p@1 improvement (0.14 to 0.21) and p@8 regression (0.60 to 0.50). Separately, the final checkpoint of the 14B full-reward model provides the same reward-matched 3B/7B/14B scaling comparisons and reaches trained/held-out p@1/p@8 of 0.953/0.969 and 0.344/0.600 with no held-out regression from SFT. Our headline results use while additional ablations will be labeled [USAh Follow-up 2/4 & 4/4; hLGZ Follow-up 1/4--2/4].
Conclusion
Together, all four meta-review priorities have been further addressed during the discussion. Reviewers tyVN and USAh raised their ratings to Accept (5), with USAh concluding that all 5 conditions were met and that the central result is well established; Reviewer hLGZ also raised their score, acknowledging that the analyses materially strengthened the evaluation.
We will add new results and presentation commitments into the revised manuscript. We thank the AC for helping focus the discussion and for considering our submission!
Warm regards,
The Authors
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
RLVP is a two-stage post-training recipe that teaches code-generating LLMs to write numerical PDE solver programs and grades them by executing the generated code and comparing the resulting numerical solution to a hidden reference. Stage 1 is supervised fine-tuning on a curated "solver bank" of teacher implementations spanning eight PDE families. Stage 2 is GRPO reinforcement learning in which each sampled solver program is run in a sandbox and scored by a reward : a hard binary validity gate (executes / correct output shape / finite values) multiplied by continuous factors, a trajectory-accuracy term measuring the normalized space–time error against a hidden numerical reference, plus an optional residual-consistency term . A single policy is trained jointly across hyperbolic, parabolic, elliptic, and incompressible-flow PDEs in 1D and 2D at 3B/7B/14B scale (Qwen2.5-Coder-Instruct). The paper reports that RLVP improves over base and SFT checkpoints across all three sizes. Also, that small RLVP models match or exceed much larger frontier models under a fixed minimal-prompt direct-generation protocol, and that there is selective zero-shot transfer to ten held-out PDEs, with qualitative evidence of numerical-motif reuse. Appendix C reframes the continuous reward as the expected pass-rate of a binary verifier whose acceptance tolerance is drawn from an exponential distribution, , connecting it to Metropolis acceptance and maximum-entropy RL.
Strengths and weaknesses
Strengths: The central observation is genuinely good and clearly motivated: PDE correctness is 'graded', not binary. Two solvers can both execute yet differ in accuracy by orders of magnitude. So binary RLVR verifiers discard most of the useful signal. The hybrid verifier that hard-gates a continuous, method-agnostic function-space accuracy signal is a clean response, and because it scores the returned 'field' rather than the code, it is agnostic to which numerical scheme the model emits. The Appendix C derivation is the strongest theoretical element: showing that the soft reward is exactly the expected pass-rate of a binary verifier under a stochastic exponential tolerance turns what could read as an arbitrary heuristic into something principled, and the maximum-entropy (Metropolis) framing is apt.
On significance, training one policy jointly across hyperbolic, parabolic, elliptic, and incompressible-flow families is a real step beyond per-equation specialization, and the headline result: small post-trained models matching or exceeding far larger frontier models under a fixed protocol, is striking and relevant.
Reproducibility is a notable strength once the supplementary material is taken into account: it includes the full local pipeline (SFT+GRPO runners, all eight solver banks, the evaluation harness with prompt sets, reference builders and sandbox, the MMS / self-convergence / PDEBench cross-validation harnesses, the validity / physics / accuracy-scaling ablation configs, and SLURM launchers), with a fixed seed, so the local-model results, the verification protocol of Appendix B.3, and the validity ablation are runnable. The compositional-transfer analysis with code-level examples (Fig. 5, App. F) is a nice qualitative addition, and clarity overall is good.
The pipeline figure and the Base/SFT/RLVP progression are easy to follow.
Weaknesses: My main concern is the framing and verifiability of the headline comparison. The abstract claims a small model can "outperform prompting a frontier model," but the frontier baselines are run under a deliberately minimal-prompt direct-generation protocol with no inference-time scaffolding, while the paper's own related-work section stresses that methods such as CodePDE obtain their reliability precisely through refinement, debugging loops, and test-time scaling. Comparing a task-specialized post-trained model against frontier models stripped of the very techniques that make them competitive is close to apples-to-oranges. The honest, narrower claim is that 'under a fixed minimal-prompt direct-generation protocol', post-training helps a great deal. This is compounded by two facts: the single most relevant baseline 'RLVP' versus an inference-time-refinement method on the same evaluation is never reported, and the supplementary material contains no harness or API client for the frontier models, so the central "beats frontier models" comparison cannot be independently reproduced from what is provided (the local-model pipeline is fully reproducible; the frontier side is not).
Statistical rigor is thin for the strength of the claims, and the released artifacts now confirm several causes. Training uses a single fixed seed (1234) throughout, evaluation grids are small and coarse (incompressible Navier–Stokes is evaluated at , reaction–diffusion-2D and Darcy at ), so versus reference is a comparatively weak bar on the hardest problems. And the training reward and the evaluation metric are the same reference-nRMSE quantity, so pass@k gains are partly a smooth-versus-thresholded view of the optimized objective. The main result tables report point estimates with no seed variance, while the per-PDE tables show high variability and at least one striking non-monotonicity (Table 16), and 14B aggregate unseen pass@8 actually regresses from SFT (0.60) to RLVP (0.50), under-explained, given the transfer narrative is built largely on the 7B result.
The remaining concerns are smaller. The compositionality claim is overstated relative to the evidence, which is qualitative and correlational and cannot distinguish genuine recombination from retrieving the nearest seen template when a held-out PDE is close to a training family; the authors' own hedging ("evidence consistent with," "selective rather than universal") is appropriate, and the abstract's stronger phrasing should match it. On originality, the RL machinery itself (GRPO with KL anchor, LoRA, vLLM/verl) is standard, so novelty rests on the verifier/reward design, the stochastic-tolerance derivation, and the multi-PDE application. The most physically interesting PDE, incompressible Navier–Stokes, is essentially unsolved except at 14B (pass@1 0.62), which tempers the general framing. And the method intrinsically requires a working reference solver for every training PDE, the same expert knowledge the introduction calls labor-intensive, so it amortizes existing solvers into the LLM rather than removing the need for them; this is a fair scope limitation rather than a flaw.
Questions
- Reward configuration and the residual ablation: Which exact config and seed produced each Table 1 / figure row, per model size? In particular, did the headline 3B/7B/14B runs use the no-residual
v3reward, and if so, how does that reconcile with Appendix A.1's ? Please add an accuracy-only versus accuracy-plus-residual ablation that isolates (yourv3andv3_physicsconfigs already differ in exactly this factor). - Frontier comparison: Please provide, or fully specify, the harness and prompts used for the frontier API baselines (none is included in the supplement), and ideally compare RLVP against an inference-time-refinement method (e.g., a CodePDE-style pipeline) on the same evaluation, since the paper positions itself against such methods. This is the key missing baseline.
- pass@k definition: The released evaluator computes prefix pass@k (
evaluation.py, line 86) while Eq. 15 defines combinatorial pass@k. Which was used for the reported numbers? Please align the code and the paper. - Variance and robustness: Please report aggregate metrics over multiple seeds (or confidence intervals). How do you explain 14B unseen pass@8 dropping from 0.60 (SFT) to 0.50 (RLVP), and non-monotone per-PDE entries such as advection2d?
- Compositionality versus retrieval: Is there a quantitative test that separates compositional recombination from nearest-seen-template retrieval, for example, ablating specific seen families and predicting which held-out transfers should degrade?
Limitations
The authors do discuss limitations in the Conclusion (complex geometries, richer boundary conditions, adaptive meshes, stochastic and multiphysics PDEs left to future work), so the field is largely satisfied. I would ask them to additionally acknowledge, ideally in a dedicated paragraph: (a) the minimal-prompt caveat on the frontier comparison, and that the frontier evaluation harness is not released; (b) the untested marginal contribution of the residual term and a clear statement of which reward configuration underlies the headline numbers; (c) single-seed training and coarse evaluation grids (especially Navier–Stokes at ), together with the coupling between the training reward and the evaluation metric; (d) the dependence on an existing reference solver for every training PDE; and (e) the 14B out-of-distribution regression.
Final justification
The central result is well established: validity-gated continuous trajectory feedback clearly outperforms binary execution verification, and the effect is large relative to the reported run-to-run variance. The evidence base is now substantially stronger than at submission, with matched reward ablations, three independent training runs, method- and PDE-family holdouts, a solver-bank similarity audit, the CodePDE and Opus 5 baselines, a finer-reference resolution study, and zero-shot 3D results.
Formatting concerns
None. No anonymity violations noted.
13 comments
Response to Reviewer USAh (1/3)
We thank the reviewer for the careful assessment and for recognizing that the central observation is “genuinely good and clearly motivated,” the hybrid verifier is a “clean” response to graded PDE correctness, joint multi-PDE training is “a real step beyond per-equation specialization,” and the headline result is “striking and relevant.”
--
W1. Framing and verifiability of the frontier comparison
We agree with the interpretation. The submitted comparison asks whether PDE-specific post-training can place reliable solver generation in a compact model under the same solver-only direct-generation protocol. It does not cover frontier models with larger sampling budgets, tools, execution-guided debugging, refinement, search, or agentic scaffolds; we will scope the claims accordingly.
Frontier harness. We reran the evaluation with the official anthropic Python client
(SDK v0.84.0) and the native Messages API, model ID claude-opus-5. A code-only system
message precedes the same native PDE task prompt used for the local models. We draw independent generations per prompt with max_tokens=20,000 shared between adaptive thinking and the response, using adaptive thinking at high effort. Sampling uses API defaults. All pass@k values are recomputed from API-default samples by executing generated code in the same sandbox with the same nRMSE success criterion.
Results are in common-response Table B.2, and token usage is in Table B.3. Relative to the submitted Sonnet 4.5 results, Opus 5 improves p@1 , p@8 , median-best nRMSE@8 1.15e-2 8.64e-3, and valid execution . The submitted 7B RLVP policy retains higher p@1 (), p@8 (), and trajectory accuracy (6.13e-4), while Opus 5 has the higher valid-execution rate.
Inference-time refinement. Following the reviewer’s key baseline suggestion, we evaluate a CodePDE-style scaffold [1] on Qwen2.5-Coder-7B (common-response Table B.1). Base and RLVP use the submitted 8-solver generation protocol. We implemented CodePDE with its suggested configuration, a full 44-candidate pool (32 initial plus 12 adaptive refinements) to Base, where refinements depend on earlier candidates. RLVP achieves better performance despite the smaller budget.
Notably, CodePDE requires a reference solution per target PDE for nRMSE feedback during inference-time, whereas RLVP amortizes that supervision during post-training and needs no reference at inference, including on held-out PDE tasks.
--
W2. Statistics, coarse grids, and reward/evaluation alignment
Training seeds. We repeated the complete RLVP 7B full-reward pipeline with training seeds 1234, 42, and 2026. Each run has its own SFT followed by RL.
Table R4.1: Training-seed robustness of RLVP.
| Training seed | ID p@1 | ID p@8 | Held-out p@1 | Held-out p@8 |
|---|---|---|---|---|
| 1234 | 0.698 | 0.870 | 0.124 | 0.517 |
| 42 | 0.740 | 0.844 | 0.172 | 0.500 |
| 2026 | 0.734 | 0.844 | 0.184 | 0.519 |
| Mean SD | 0.724 0.023 | 0.852 0.015 | 0.160 0.032 | 0.512 0.010 |
These results support robust and stable performance of RLVP across training seeds.
The 14B held-out result. We agree that the submitted 14B held-out performance should have been discussed directly. The submitted table reported the terminal RL checkpoint, although the 14B RL trajectory reaches a stronger balanced performance before continued optimization further specializes the policy towards the training distribution. As is common in stochastic RL optimizations, checkpoint performance need not improve monotonically: later updates can concentrate probability on trained PDE tasks while reducing support for held-out solver modes, and finite sampling adds checkpoint-level variance. We further analyzed the training trajectory and identified a checkpoint that gives balanced and optimal improvement for both training and held-out PDE tasks. We will update the results in Table R4.2 into our camera-ready version of the paper, thank the reviewer for spotting the mistake.
Table R4.2: Updated 14B RLVP performance.
| Stage | ID p@1 | ID p@8 | Held-out p@1 | Held-out p@8 |
|---|---|---|---|---|
| Base | 0.06 | 0.19 | 0.11 | 0.40 |
| SFT | 0.40 | 0.61 | 0.14 | 0.60 |
| RLVP 14B | 0.688 | 0.844 | 0.255 | 0.742 |
Resolution. For selected problems, a best unedited solver generated by the 14B RLVP policy was selected from 32 samples, then evaluated on increasingly finer spatial grids.
Response to Reviewer USAh (2/3)
Table R4.3: Resolution scaling of frozen 14B RLVP programs.
| PDE | Spatial grids | Evaluated timesteps | nRMSE |
|---|---|---|---|
| NS2D | , , , | , , , | |
| RD2D | , , | , , | |
| Darcy2D | , , | Steady state | , , |
All nRMSE values are calculated when compared with a reference solver evaluated on a grid. These experiments provide targeted dimension and resolution evidence. Selected 2D PDE solvers retain low error through without modification.
Reward/evaluation analysis. nRMSE feedback and thresholded evaluation are deliberately aligned. During training, parameters and initial/boundary conditions are sampled. Evaluation uses separate cases, while the ten held-out PDE families appear in neither SFT nor RL. Following the reviewer’s suggestion, we also evaluate at the stricter nRMSE threshold. For the same 7B series, RLVP improves over SFT from to on in-distribution p@1/p@8 and from to on held-out p@1/p@8.
--
M1. Scope of the compositionality claim
We compared all 320 held-out programs from the final 7B policy with the complete 2,048-example SFT bank using token, AST similarity, nearest-neighbor retrieval [3--5].
Table R4.4: Solver-bank similarity and retrieval audit.
| Analysis | Criterion | Eight trained PDEs | Ten held-out PDEs |
|---|---|---|---|
| Population | Generated solvers audited | 256 | 320 |
| Token | At or above the within-bank reference, | 158/256 | 0/320 |
| AST | Exact match after identifier/literal abstraction | 83/239 | 0/280 |
| Retrieval | PDEs solved by literal top-32 teacher retrieval | -- | 0/10 |
| Retrieval | PDEs solved after formal-argument renaming of up to three compatible teachers | -- | 0/10 |
For token similarity between generated solvers and the SFT solver bank, we compute multiset Jaccard similarity over normalized 5-token groups. For AST similarity, we abstract identifiers and literals and require the complete abstract trees to match. For the executable nearest-neighbor baselines, we rank the solver bank by TF--IDF similarity between the evaluation prompt and SFT prompts, then run either the top 32 teachers unchanged or up to three arity-compatible teachers with capture-safe formal-argument renaming only. No held-out PDE task is solved by direct solver retrievals [3--5].
We also retrained 7B models under PDE-family or solver method-family held-out interventions.
Table R4.5: Aggregate method-family and PDE-family holdout results at .
| Model | Training intervention | ID p@1 | ID p@8 | Held-out p@1 | Held-out p@8 |
|---|---|---|---|---|---|
| RLVP 7B | Full solver bank | 0.694 | 0.861 | 0.100 | 0.349 |
| RLVP 7B | No CN/CNAB solvers in solver bank | 0.771 | 0.956 | 0.186 | 0.491 |
| RLVP 7B | Advection removed from SFT and RL | 0.632 | 0.771 | 0.047 | 0.214 |
The method-family intervention removes all 214 CN/CNAB solver teachers before retraining SFT and RL. The PDE-family intervention removes Advection prompts and solvers from both SFT and RL.
Table R4.6: Advection solver performance for the Advection-family holdout intervention.
| Model | Training intervention | p@1 | p@8 |
|---|---|---|---|
| SFT 7B | Advection removed from SFT | 0.0000 | 0.0000 |
| SFT and RL 7B | Advection removed from SFT and RL | 0.0117 | 0.0867 |
Removing CN/CNAB does not degrade aggregate performance. Under the stricter PDE-family intervention, Leave-Advection-out SFT solves no Advection cases, while subsequent multi-PDE RLVP on the retained seven PDE families recovers non-zero Advection-solving capability. Together, the similarity audit and training holdouts support adaptation and recombination beyond direct solver-bank retrieval.
--
M2. Methodological novelty
RLVP's methodological contribution is (i) a hard validity gate with graded, method-agnostic continuous physical rewards (ii) its stochastic-tolerance interpretation, and (iii) joint post-training across heterogeneous PDE families; GRPO, LoRA, vLLM, and verl provide the optimization and systems backbone [6].
--
M3. Performance on incompressible Navier--Stokes
We agree NS2D is the hardest and most capacity-sensitive family. The submitted 14B model reaches p@1 , p@8 , nRMSE@8 3.48e-3. At 7B, activating the residual reward for NS2D and Darcy2D (common-response Table A.2) raises NS2D p@1/p@8 from to . We will state this uneven per-equation performance explicitly.
Response to Reviewer USAh (3/3)
M4. Dependence on trusted reference solvers
RLVP requires trusted simulations for the training PDEs, but uses them only during post-training; once trained, the policy generates solvers directly without a reference solver at inference. Thus, one training environment can supervise many prompts, parameters, and conditions, while held-out reference solvers are used only during evaluation. Unlike CodePDE, an inference-time method, which requires the true solution reference for feedback for each inference target, RLVP instead uses this supervision during post-training and requires no target-specific reference feedback at deployment.
--
Responses to Questions
Q1. Which configuration produced each headline result, and what does the residual add?
We clarify below the reward configuration and training and evaluation seeds used for each model scale.
Table R4.7: Configurations behind the submitted headline results.
| Scale | RL reward | Training seed | Eval seed | ||
|---|---|---|---|---|---|
| 3B | 0.05 | 2.0 | 1234 | 2026 | |
| 7B | 0.05 | 2.0 | 1234 | 2026 | |
| 14B | 0.05 | -- | 1234 | 2026 |
The submitted 3B and 7B policies use the full reward; the submitted 14B policy is trajectory-only. We will detail this in the revised paper.
For ablations, we trained matched 7B controls from the same SFT checkpoint, under the common reward family with , varying only its activation and . Common-response Tables A.1--A.2 give the aggregates and targeted-PDE breakdown.
--
Q2. Frontier harness and inference-time refinement
W1 provides the API details, with the new Opus 5 evaluation in common-response Table B.2 and the CodePDE baseline comparison in Table B.1.
--
Q3. Prefix or combinatorial pass@k?
All reported pass@k values use Eq. 15’s combinatorial estimator, including the Opus 5 results in Table B.2. The prefix implementation in evaluation.py is an unused auxiliary summary; we will replace it with the combinatorial implementation and publish the corrected code in our open-source repository.
--
Q4. Performance robustness across training seeds and checkpoints
Please see W2 and Tables R4.1–R4.2 for the multi-seed results and our analysis of the 14B held-out performance.
--
Q5. Compositional transfer versus retrieval
Please see M1 and Tables R4.4--R4.6. Together, these quantitative audits and causal holdouts demonstrate that RLVP adapts and recombines learned numerical methods beyond nearest-template retrieval.
--
References
[1] Li, Shanda, et al. "Codepde: An inference framework for llm-driven pde solver generation." arXiv preprint arXiv:2505.08783 (2025).
[2] Chen, Mark, et al. "Evaluating large language models trained on code." arXiv preprint arXiv:2107.03374 (2021).
[3] Sajnani, Hitesh, et al. "SourcererCC: Scaling code clone detection to big code." arXiv preprint arXiv:1512.06448 (2015).
[4] Jiang, Lingxiao, et al. "Deckard: Scalable and accurate tree-based detection of code clones." 29th International Conference on Software Engineering (ICSE'07). IEEE, 2007.
[5] Ren, Shuo, et al. "Codebleu: a method for automatic evaluation of code synthesis." arXiv preprint arXiv:2009.10297 (2020).
[6] Shao, Zhihong, et al. "Deepseekmath: Pushing the limits of mathematical reasoning in open language models." arXiv preprint arXiv:2402.03300 (2024).
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
RLVP post-trains Qwen2.5-Coder (3B/7B/14B) to write numeric PDE solvers. It uses continuous physics verifier + multi-PDE solver codegen + GRPO design to achieve its goal.
Strengths and weaknesses
Strengths:
- Clarity and completeness: The paper is well-written and logically organized. The method section clearly describes not only the RL objective and reward construction, but also the SFT stage, including its motivation and loss definition. This level of detail makes the overall pipeline easy to follow and supports reproducibility.
- Task-grounded reward/verifier design. A key strength of the paper is its physics-grounded reward formulation. Instead of relying on human preference, model-based judgment, or standard code-level unit tests, the method executes the generated PDE solver and compares the resulting physical fields against experimental observations or trusted reference simulations. The reward/verifier is conceptually simple, deriving from a normalized L^2 error over the predicted spatial fields for steady-state problems and spatiotemporal trajectories for transient problems, but it directly evaluates whether the generated code produces physically meaningful solutions. I find this trajectory-level verification formulation novel and well aligned with the goal of PDE solver generation.
- Well-specified experimental suite. The paper evaluates the method on eight representative PDE families spanning several equation types, including transport, diffusion/reaction, elliptic flow, and coupled 2D dynamics. The experimental setup is also unusually well specified: the authors provide full PDE specifications, parameter grids, boundary and initial conditions, and solver-bank coverage. This makes the evaluation transparent and relatively easy to reproduce.
- Strong empirical evidence for the value of RLVP beyond SFT. The experiments provide a clear staged comparison between Base, SFT, and RLVP checkpoints. The results show that the gains are not solely due to supervised fine-tuning: after the SFT stage, RLVP further improves single-sample Pass@1 and substantially reduces trajectory-level nRMSE on the seen PDE families. The training curves also show continued improvement during RLVP, suggesting that the proposed physics-grounded verifier provides a useful optimization signal rather than merely serving as an evaluation metric. I especially appreciate the emphasis on Pass@1. In this setting, improving single-sample success is more meaningful than only improving best-of-k performance, since it indicates that the post-trained model itself is more likely to generate a valid and accurate solver without relying heavily on repeated sampling.
Weaknesses:
- Lack of 3D PDE evaluation. Although the evaluated PDE families cover several important equation types, all tasks are limited to 1D or 2D settings. This is an important limitation for a paper motivated by PDE solver generation and physical simulation. In many realistic scientific computing problems, 3D PDEs are substantially more challenging than 2D PDEs: the number of degrees of freedom grows cubically with grid resolution, memory and compute costs become much larger, boundary conditions must be handled on surfaces/edges/corners rather than simple lines, and generated code must correctly manage more complex indexing, vector/tensor fields, numerical stencils, stability constraints, and often larger linear solves or pressure/projection steps. Therefore, the current evaluation does not fully establish whether the proposed method scales to more realistic 3D simulation settings.
- The comparison with frontier models is useful, but it should be interpreted cautiously. The local models are trained for this PDE setting with SFT and RLVP, while the frontier baselines are used directly without PDE-specific training. Also, on seen PDEs, some SFT checkpoints already outperform Claude Sonnet 4.5, which suggests that this may not be the strongest available coding baseline. A comparison with stronger or more recent coding-focused frontier models, such as Opus if available at the time of evaluation, would make this result more convincing. Otherwise, the paper should frame the frontier comparison mainly as a reference point, rather than as the main evidence of superiority.
Questions
- Could the authors clarify whether the post-trained model has been tested on any 3D PDE family? If not, what are the main obstacles to applying the framework to 3D PDEs, and how should readers interpret the scope of the claimed generalization beyond 1D/2D problems?
- Could the authors clarify the choice of Claude Sonnet 4.5 as the main frontier coding baseline?
Limitations
A key limitation is that the current study is confined to 1D and 2D PDE families. The method’s behavior on 3D PDEs remains unclear. This limits the demonstrated scope of the approach, especially for scientific computing applications where 3D simulations are common and where code-generation errors may arise from substantially more complex discretization, boundary-condition, and memory-layout requirements.
Also, reward design is central to the method, but its justification and sensitivity analysis are limited.
Final justification
After reassessing the paper under the General contribution criteria and considering the author response, I increase my overall recommendation from Borderline Accept to Accept.
Quality — 3 (good). The method appears technically sound, and the controlled Base/SFT/RLVP comparisons support the central claim that RLVP provides gains beyond SFT, particularly in single-sample Pass@1 and trajectory accuracy. The full SFT and RL pipeline, the verifier construction, and the benchmark specifications are described in sufficient detail to support reproducibility. The rebuttal further strengthens the empirical evidence through the Opus 5 comparison, matched reward ablations, the reward-temperature sweep, and new zero-shot 3D experiments. I do not assign an excellent score because the 3D evaluation remains limited to four PDE families and it does not include an SFT-only checkpoint.
Clarity — 3 (good). The paper is well-written and logically organized. In particular, it clearly explains the motivation and loss definition of the SFT stage, the subsequent RL formulation, and the construction of the physics-grounded verifier. However, several tables and figures in the submitted version are difficult to interpret. The authors’ planned presentation improvements are appropriate, but the current version does not justify an excellent clarity score.
Significance — 3 (good). The paper demonstrates that verifiable physics feedback can improve the reliability and numerical accuracy of a relatively small coding model for PDE solver generation. I expect this formulation and experimental setup to be useful to researchers working on coding agents for scientific machine learning. However, the demonstrated impact is currently concentrated on PDE solver-only direct generation, and its broader applicability to other forms of scientific code generation remains to be established.
Originality — 3 (good). The paper does not introduce a new RL optimizer, and its individual components have precedents in PDE solver code generation, RL post-training, and execution-based feedback. However, their combination—post-training a coding model to generate executable PDE solvers using trajectory-level physical verification—constitutes a meaningful new problem formulation. The hard validity gate, stochastic-tolerance interpretation, and optional reference-relative residual supervision also make the verifier more than a raw L2 evaluation metric. I therefore consider the originality good, although not excellent.
Rebuttal assessment. My concern about the frontier-model comparison is resolved: the authors explain the selection of Sonnet 4.5, add Opus 5 under the same direct-generation protocol, and appropriately narrow the claim rather than asserting universal superiority over frontier models with tools, execution-guided debugging, search, or other agentic scaffolds. My concern about reward justification and sensitivity is substantially resolved by the matched ablations and the T_traj sweep. My concern about 3D evaluation is partially resolved: the new results demonstrate selective zero-shot transfer beyond the 1D/2D training distribution, but the absence of an SFT-only comparison prevent stronger conclusions about broad 3D generalization or the specific contribution of RLVP beyond SFT in 3D.
Under the General criteria, I assign Quality = 3, Clarity = 3, Significance = 3, Originality = 3, and Overall = 5 (Accept).
Formatting concerns
- The table 1 and figure 2,3,4 are extremely unclear.
- Line 216: Finally, The complete RLVP reward is ->Finally, the complete RLVP reward is
3 comments
Response to Reviewer tyVN (1/2)
We thank the reviewer for the careful and constructive assessment. We appreciate the recognition that the paper is “well-written and logically organized,” the verifier is “novel and well aligned with the goal of PDE solver generation,” the evaluation is “unusually well specified,” and the results provide “strong empirical evidence for the value of RLVP beyond SFT,” as well as the emphasis on Pass@1 as single-sample reliability.
--
W1. Evaluation on 3D PDEs
We evaluate the frozen post-trained policy on new 3D PDE problems using prompts that do not specify a numerical method, despite the policy receiving no 3D examples during SFT or prompts in RL. For each reported PDE, we generate 32 programs and evaluate them on six hidden cases. Table R3.1 reports the combinatorial pass@1 and pass@8 over each 32-program population for the frozen 14B base and RLVP models.
Table R3.1: Zero-shot 3D PDE evaluation results for Base and RLVP 14B.
| New 3D PDE | Base 14B p@1 | Base 14B p@8 | RLVP 14B p@1 | RLVP 14B p@8 |
|---|---|---|---|---|
| Advection3D | 0 | 0 | 0.219 | 0.897 |
| Heat3D | 0.219 | 0.897 | 0.500 | 0.999 |
| Fisher--KPP3D | 0.281 | 0.953 | 0.453 | 0.997 |
| Acoustic Wave3D | 0 | 0 | 0.021 | 0.167 |
RLVP 14B outperforms the corresponding 14B Base model on all four reported 3D PDEs in both pass@1 and pass@8. Notably, it achieves nonzero coverage on Advection3D and Acoustic Wave3D, where the Base model has no strict successes. Acoustic Wave 3D is the most structurally distinct of these tests. It requires the coupled four-field system
with rigid-wall boundaries. The generated solver constructs the pressure--velocity mapping over all three axes,
def rhs(p, vx, vy, vz):
divv = ddx(vx) + ddy(vy) + ddz(vz)
px, py, pz = grad_x(p), grad_y(p), grad_z(p)
return -K*divv, -px/rho, -py/rho, -pz/rho
and advances all four fields with RK4. The selected program passes four of six hidden cases. We treat these results as complementary evidence of selective transfer, not as proof of 3D universal generalization.
--
W2. Choice and interpretation of the frontier baseline
Claude Sonnet 4.5 was the strongest aggregate model among six frontier baselines evaluated under the same prompt, hidden cases, sandbox, and direct-generation protocol, which is why it was selected to be the reference line.
Following the reviewer’s suggestion, we evaluated the newly launched Claude Opus 5 with adaptive thinking at High effort on the same eight PDEs and hidden cases. Results are in common-response Table B.2; complete token usage is in Table B.3, whose output counts include adaptive-thinking and final answer tokens.
Relative to Sonnet 4.5, Opus 5 improves p@1 , p@8 , median-best nRMSE@8 1.15e-2 8.64e-3, and valid execution . Nevertheless, our 7B RLVP policy retains higher pass@1 (), pass@8 (), and trajectory accuracy (6.13e-4 nRMSE).
We do not claim universal superiority over frontier models with typical operational harnesses. Our finding is that RL with verifiable physics can post-train a much smaller model to solve PDEs better under solver-only direct generation. Larger sampling budgets, tools, execution-guided debugging, search, refinement, or agentic scaffolds may improve frontier performance. We will scope the paper’s claim accordingly in the final version, thank the reviewer for your feedback.
--
W3. Reward-design attribution and sensitivity
RLVP's contribution is (i) a hard program-validity gate with graded, method-agnostic function-space feedback, (ii) its stochastic-tolerance interpretation, and (iii) joint post-training across heterogeneous PDE families; while GRPO provides the optimization backbone [1].
For ,
so the reward is the expected acceptance probability of a verifier with randomized error tolerance.
We trained matched 7B controls from the same SFT checkpoint under
varying only residual activation and . Prompts, seed, optimizer, , 500 GRPO steps, and the 32-program evaluation are fixed. Common-response Tables A.1--A.2 give aggregate and targeted-PDE results. A.1’s validity-only row is a separate-SFT descriptive control; trajectory-only and residual-enabled rows are matched.
Response to Reviewer tyVN (2/2)
Trajectory accuracy is the principal dense learning signal beyond binary execution validity. Selective NS2D/Darcy2D activation gives the strongest ID aggregate and raises NS2D p@1/p@8 from to . Under global residual activation, it raises NS2D p@8 to , lowers expected-best nRMSE@8 , and lowers median divergence . Trajectory nRMSE measures field-level error, whereas the NS2D diagnostics measure incompressibility and reference-relative residual mismatch. At comparable nRMSE, residual-trained outputs have lower divergence () and residual mismatch (), as shown in common-response Table A.4.
The residual factor is one-sided and reference-relative: it penalizes only residuals above the numerical reference floor. Because multiplies the trajectory reward, it cannot compensate for an inaccurate trajectory; it only downweights trajectories that additionally violate the selected physical constraint. Thus trajectory accuracy supplies the general dense optimization signal, while residual consistency provides complementary supervision where a directly resolved physical constraint adds information beyond field-level error.
We also swept from the same SFT checkpoint with fixed physics settings (common-response Table A.3). RLVP remains effective over this 20-fold range: larger decays more slowly and is consistent here with stronger in-distribution coverage, while smaller values emphasize the lowest-error programs and stronger held-out coverage. This establishes sensitivity and an empirical trade-off, not a universal optimum or causal explanation for transfer.
--
Responses to Questions
Q1. Has the post-trained model been tested on a 3D PDE, and how should readers interpret its scope?
Table R3.1 reports new zero-shot 3D PDE test cases, where frozen RLVP policies successfully generate correct solvers and extend the demonstrated inference capability beyond 1D and 2D problems. These results show that learned numerical primitives can be adapted to higher-dimensional indexing, spatial stencils, stability control, and coupled-field updates without 3D examples during SFT or RL. As state and local-stencil computations grow from to , promising future directions include efficient 3D verification, integration with projection and linear-solve methods, and direct training on higher-dimensional PDEs. These results provide a strong foundation for extending RLVP to increasingly complex and higher-resolution 3D systems.
--
Q2. Why was Claude Sonnet 4.5 used as the main frontier coding baseline?
At the point of investigation, Sonnet 4.5 was the strongest of six submitted frontier baselines under the common generation protocol. Common-response Table B.2 now adds Opus 5 with adaptive thinking at high effort. It strengthens the frontier baseline, while the 7B RLVP policy retains higher p@1, p@8, and trajectory accuracy.
--
Presentation clarifications
“The table 1 and figure 2,3,4 are extremely unclear.”
We appreciate this concrete presentation feedback. We will split the dense Table 1 into compact aggregate and per-PDE comparisons, enlarge figure labels and legends, use a consistent Base/SFT/RLVP color mapping and scientific-notation convention, and state the direction of every metric in the captions. We will also correct line 216 to: “Finally, the complete RLVP reward is ...”.
We will incorporate these additional evaluations, ablations, and presentation clarifications in the revised paper.
--
References
[1] Z. Shao, P. Wang, Q. Zhu, R. Xu, J. Song, X. Bi, H. Zhang, M. Zhang, Y. K. Li, Y. Wu, and D. Guo. “DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models.” arXiv:2402.03300, 2024.
Dear Reviewer tyVN,
Thank you for raising the score to 5 and for your helpful comments and questions.
We appreciate your recognition of RLVP’s novelty and strong empirical evidence, the clarity and completeness of the method, and the well-specified experimental suite. Thanks to your suggestions, we also completed 3D PDE evaluations and strengthened the comparisons to baselines.
If you have further questions or would like additional clarification, we would be happy to respond. Thank you once again for your time and consideration!
Best regards,
The Authors
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposed Reinforcement Learning with Verifiable Physics (RVLP), a post-training framework that generates PDE solvers with LLMs by leveraging a hybrid verifier. Specifically, the verifier consists of hard validity checks and continuous physics rewards, including trajectory and residual factors. To train and evaluate RVLP, the authors further curated a solver-code dataset. By applying solver-bank SFT and GRPO, the updated model yields strong improvements and cross-PDE generalization.
Strengths and weaknesses
Strength
This paper focuses on the PDE solver code generation, which is a relatively new topic that can be valuable to the community. The idea of hybrid verifier for this application is novel, and the single policy across PDEs makes the model more useful in practice. Besides, the experimental results clearly demonstrate the improvements with the proposed RVLP.
Weaknesses
-
Scalability: During the verification process in RL, the generated solution requires dense simulation (spatial and temporal), leading to high computational cost. Considering that a group (G=8) of solutions are generated for each prompt, the computational cost can be even higher. Thus, the scalability of the proposed RVLP can be an issue, especially when it is extended to 3D scenarios.
-
Ablation:: Some ablations are missing. For example, the current ablation includes hybrid reward vs. validity-only reward. The contribution of trajectory factor and residual factor should be further analyzed separately. Another ablation can be the effect of temperatures for both factors.
-
Baseline: As mentioned by the authors, CodePDE can be a strong post-training baseline, but it is missing in the experiments.
Questions
- How sensitive is performance to the reward temperature parameters?
- What are the contributions of trajectory and residual factors?
- How does performance change if solver-bank diversity is reduced (i.e., smaller datset)?
- How would RLVP scale to 3D or more complicated/high-resolution PDE problems?
- How sensitive is performance to the group size of GRPO? Is there a trade-off between computation budget and performance?
Limitations
The scalability of the framework is a major concern.
Final justification
I thank the authors for their rebuttal, which have addressed most of my concerns. Therefore, I will update my recommendation to "Accept".
Formatting concerns
None.
5 comments
Response to Reviewer 9qjK (1/3)
We thank the reviewer for recognizing that PDE solver generation is “valuable to the community,” the hybrid verifier is “novel,” joint PDE training makes the policy more useful, and the experiments “clearly demonstrate the improvements with the proposed RLVP.” We address the concerns below.
--
W1. Scalability of dense verification and extension to 3D
Verification is costlier than binary or symbolic checking but supplies graded physical feedback; common-response Table A.1 isolates validity, trajectory, and residual factors.
Complete post-training, including SFT, rollouts, verification, and optimization, required approximately 250--350 H200 GPU-hours per model. Verification happens in parallel with rollout generation. In a matched-scale 7B run, solver execution had median/mean/p95 times of 0.62/1.52/7.97 s, where most 2D PDE/grid means were approximately 0.5--2.6 s. This cost is paid during post-training and amortized across inference. An example inference-time method, for instance CodePDE, instead repeats reference-guided solving and debugging per PDE target; RLVP directly generates without target references or debugging loops, including on held-out PDE tasks.
We next test frozen policies without further post-training along two standard axes: 1D/2D-to-3D dimension scaling [1] and fixed-domain resolution scaling [2].
Dimension scaling: zero-shot 3D PDE evaluations. We evaluate the frozen policy on new 3D PDE problems at resolution using prompts that do not specify a numerical method, despite the policy receiving no 3D examples during SFT or in prompts during RL. For each reported PDE, we generate 32 programs and evaluate them on six hidden cases. Table R2.1 reports the 14B RLVP model's pass@1 and pass@8 results.
Table R2.1: Zero-shot 3D results for Base and RLVP 14B.
| New 3D PDE | Base p@1 | Base p@8 | RLVP 14B p@1 | RLVP 14B p@8 |
|---|---|---|---|---|
| Advection3D | 0 | 0 | 0.219 | 0.897 |
| Heat3D | 0.219 | 0.897 | 0.500 | 0.999 |
| Fisher--KPP3D | 0.281 | 0.953 | 0.453 | 0.997 |
| Acoustic Wave3D | 0 | 0 | 0.021 | 0.167 |
RLVP 14B has higher pass@k than Base on the reported equations, including positive Acoustic Wave3D coverage where Base has no strict success. We interpret this as modest evidence of zero-shot dimensional transfer, but not a general 3D PDE mastery.
--
Resolution scaling. For each of the NS2D, RD2D, and Darcy2D problems, a best unedited solver generated by the 14B RLVP policy was selected from 32 samples, then evaluated on increasingly finer spatial grids.
Table R2.2: Resolution scaling of frozen 14B RLVP programs.
| PDE | Spatial grids | Evaluated timesteps | nRMSE |
|---|---|---|---|
| NS2D | , , , | , , , | |
| RD2D | , , | , , | |
| Darcy2D | , , | Steady state | , , |
All nRMSE values are calculated when compared with a reference solver evaluated on a grid. These experiments provide targeted dimension and resolution evidence. Selected 2D PDE solvers retain low error through without modification.
--
W2. Attribution of trajectory and residual factors
Following the reviewer’s request, we isolate the trajectory and residual factors and vary the temperatures of both terms. For PDE , the reward is
Common-response Table A.1 directly compares validity only, trajectory accuracy, and the complete reward. All RL begins from the same SFT-merged checkpoint. The comparison identifies trajectory function-space accuracy as the principal dense learning signal beyond binary execution validity.
We further ablate both the applicability and temperature of the residual factor in common-response Tables A.1--A.2. Applying it selectively to incompressible Navier--Stokes and Darcy Flow gives the strongest aggregate trained PDEs performance, reaching pass@1/pass@8 of , compared with for trajectory only and when the residual is applied globally with . On Navier--Stokes specifically, selective residual activation improves p@1/p@8 from to . This shows that residual feedback is a tunable, PDE-dependent complement to trajectory accuracy reward.
Response to Reviewer 9qjK (2/3)
This selective role is physically motivated. Trajectory nRMSE measures field-level error, whereas the Navier--Stokes diagnostic measures incompressibility, , and the Darcy diagnostic measures the elliptic balance, . These derivative-level constraints can distinguish fields with similar nRMSE but different physical consistency. Indeed, within the same Navier--Stokes trajectory-error range, residual-trained outputs have nearly identical median nRMSE ( versus ) but lower divergence ( versus ) and residual log-ratio ( versus ), as shown in common-response Table A.4.
The executed residual loss is reference-relative:
It penalizes only residuals exceeding the numerical reference floor. Moreover, multiplies the trajectory reward, so it cannot compensate for an inaccurate trajectory; it can only downweight a trajectory that additionally violates the selected physical constraint.
Finally, the temperature sweeps confirm that reward sharpness is tunable. Increasing from to softens global residual attenuation and improves in-distribution p@1/p@8 and held-out p@8. For the trajectory factor, larger provides smoother ranking over a wider error range and gives the strongest in-distribution p@8, whereas smaller more sharply distinguishes low-error candidates and gives the strongest held-out p@1/p@8 (Tables A.1 and A.3).
Together, these ablations establish the separate contributions: trajectory accuracy supplies the general dense optimization signal, while residual consistency provides complementary supervision where a directly resolved physical constraint adds information beyond field-level error.
--
W3. CodePDE ablation baseline
CodePDE [3] is an inference-time refinement framework, not post-training. We have applied its implementation and reported results in common-response Table B.1, comparing it with a base Qwen2.5-Coder-7B model with our PDE prompts: eight in-distribution (ID) and ten held-out tasks (i.e. same PDEs as RLVP).
Following CodePDE's implementation, we use 32 initial generated samples plus 12 adaptive refinements, including debugging, where refinements depend on earlier candidates. Notably, CodePDE needs true solution references for nRMSE feedback within its method, whereas RLVP amortizes that supervision during post-training and needs no reference at inference-time, particularly on our reports on held-out PDE tasks.
--
Responses to Questions
Q1. How sensitive is performance to the reward-temperature parameters?
Please see W2 and common-response Tables A.1 and A.3. Performance remains effective across the 20-fold trajectory-temperature sweep: larger gives the strongest in-distribution p@8, whereas smaller gives the strongest held-out p@1/p@8. Increasing from to also improves in-distribution p@1/p@8 and held-out p@8 under global residual activation, thus, performance changes with reward sharpness, and these are PDE task-specific hyperparameters.
--
Q2. What are the contributions of trajectory and residual factors?
Please see W2 and common-response Tables A.1--A.2 and A.4. Table A.1 directly compares validity, trajectory accuracy, and the complete reward, identifying trajectory accuracy as the principal dense signal beyond validity. Tables A.2 and A.4 show that selective residual activation gives the strongest aggregate in-distribution result, improves Navier--Stokes performance, and produces lower divergence and residual mismatch at comparable trajectory error. Thus the residual factor provides complementary, PDE-dependent physical supervision beyond the general trajectory-accuracy signal.
--
Q3. How does performance change if solver-bank diversity is reduced?
To address this question, we remove all Crank--Nicolson/CNAB teacher solvers (214 SFT examples across five PDEs and seven program bodies), and retrained a 7B policy with RLVP (SFT and RL).
Table R2.3: RLVP under a numerical-method-family holdout.
| Model | SFT solver bank | ID p@1 | ID p@8 | Held-out p@1 | Held-out p@8 |
|---|---|---|---|---|---|
| RLVP 7B | Full solver bank | 0.694 | 0.861 | 0.100 | 0.349 |
| RLVP 7B | No CN/CNAB solvers | 0.771 | 0.956 | 0.186 | 0.491 |
Removing CN/CNAB does not degrade performance in this controlled intervention, and RLVP remains effective without that numerical-method family in training.
Response to Reviewer 9qjK (3/3)
Q4. How would RLVP scale to 3D or more complicated/high-resolution PDEs?
We evaluated frozen RLVP checkpoints zero-shot on new 3D PDE tasks and obtained improved results over model baselines (Table R2.1). Selected generated solvers also maintained accurate, convergent behavior on finer grids (Table R2.2). Together, these results demonstrate that RLVP extends effectively to 3D and higher-resolution PDE settings.
--
Q5. How sensitive is performance to GRPO group size? Is there a computation/performance trade-off?
In GRPO, controls the number of outputs used to form the within-prompt relative baseline [4]. For prompts and average program length , each update generates and verifies programs and processes policy tokens, so total rollout, verification, and optimization work scales approximately linearly with . In all our runs, we use . Concurrent rollout storage also scales with , although peak accelerator memory can be bounded through generation and optimization microbatching; GRPO itself avoids the separate critic required by PPO [4].
There is a statistical trade-off rather than a monotonic “larger is better” prediction. Increasing can improve estimation of the group-relative gradient, but under a fixed rollout budget it leaves fewer distinct prompts per update or fewer updates. Recent GRPO analysis formalizes this trade-off and predicts that the preferred depends on the task and policy [5]. This is particularly relevant to RLVP: increasing improves within-prompt comparison but, at fixed compute, reduces coverage across PDE families, PDE coefficients, and initial/boundary conditions. Moreover, among valid solver programs, the continuous trajectory reward provides relative information beyond a binary success signal. Our results establish that is sufficient for the gains reported in our paper; determining an optimal would require matched-budget comparisons and cannot be inferred from the currently unmatched runs.
We will incorporate these additional controls, evaluations, and scope clarifications in the revised paper.
--
References
[1] M. Takamoto et al. “PDEBench: An Extensive Benchmark for Scientific Machine Learning.” NeurIPS, 2022.
[2] Z. Li et al. “Fourier Neural Operator for Parametric Partial Differential Equations.” ICLR, 2021.
[3] S. Li et al. “CodePDE: An Inference Framework for LLM-driven PDE Solver Generation.” TMLR, 2026.
[4] Z. Shao et al. “DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models.” arXiv:2402.03300, 2024.
[5] H. Zhou et al. “Demystifying group relative policy optimization: Its policy gradient is a u-statistic” arXiv:2603.01162, 2026.
- Rating
- 3/6
- Confidence
- 4/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes RLVP, a post-training framework for LLM-based PDE solver generation. The method first uses a curated solver bank for supervised fine-tuning, then applies RL with a physics-based verifier. The verifier combines execution validity, trajectory accuracy against reference solutions, and a residual-consistency term. The paper reports improvements on several seen PDE families and studies transfer to held-out PDE prompts.
Strengths and weaknesses
Strengths
The paper studies an important problem. PDE solver generation is a meaningful scientific-code setting where ordinary code correctness checks are not enough. A program can run successfully but still produce a wrong numerical solution, so verifier-based learning is a sensible direction.
The overall pipeline is concrete and reasonably well described. The paper gives details about the solver bank, PDE families, reward design, SFT stage, RL stage, and evaluation metrics. The validity-only ablation is also useful because it shows that rewarding only executable code is not sufficient.
The empirical results on the seen PDE families are promising. RLVP improves over SFT and validity-only training in several settings, suggesting that physics-verifier feedback can help specialize smaller code models for structured PDE tasks.
Weaknesses
The central issue is that the paper does not rule out solver-bank memorization or template reuse. The model is first trained on 2,048 teacher solver examples from a curated solver bank covering the same general PDE setting, then RL is performed on the same eight PDE families with a fixed NumPy/SciPy interface while varying parameters, grids, and initial conditions. Under this setup, the gains could come from learning to copy, adapt, and select existing solver templates more reliably, rather than learning transferable numerical-method reasoning.
The paper needs much stronger evidence on this point. For example, it should report token-level, AST-level, or functional similarity between generated RLVP solvers and nearest solver-bank examples. It should also evaluate method- family holdouts, such as removing an entire numerical-method family during training, and PDE-family holdouts where one PDE class is fully excluded from SFT and RL. A nearest-neighbor teacher-solver baseline would also be important.
A second major issue is that the contribution of the residual reward is not isolated. The paper compares validity-only reward against the full reward (V \cdot R_{\text{traj}} \cdot R_{\text{phys}}). This only shows that continuous trajectory-quality feedback helps beyond binary validity. It does not show that the residual-consistency term itself is useful. The missing ablation is (V \cdot R_{\text{traj}}) versus (V \cdot R_{\text{traj}} \cdot R_{\text{phys}}).
The residual term also needs stronger justification. As described, it rewards matching the generated solution’s residual norm to the reference residual norm, rather than directly enforcing a small residual. This may be non- identifying: an incorrect solution could have a similar residual norm to the reference solution. Without targeted ablations or failure analysis, it is unclear whether this term is a reliable physics diagnostic.
The zero-shot transfer claim is also overstated. The held-out results are mixed; notably, the 14B RLVP model appears worse than the 14B SFT model on held-out aggregate metrics such as pass@8 and best-of-8 nRMSE. Also, many unseen PDEs are close recombinations of seen motifs: heat is close to reaction-diffusion without reaction, ARD combines advection, diffusion, and reaction, 2D advection is a dimensional extension of 1D advection, and Allen-Cahn / Gray-Scott remain near the reaction-diffusion family. This is better described as selective local transfer of seen numerical motifs, not broad zero-shot PDE solver generalization.
Finally, the paper lacks enough statistical evidence. The checklist indicates statistical significance, but I did not see multiple RL training seeds. Per-PDE breakdowns do not replace training-run uncertainty, especially for RL post- training.
Questions
-
Can the authors quantify similarity between RLVP-generated solvers and the SFT solver bank, using token similarity, AST similarity, functional similarity, or nearest-neighbor analysis?
-
Can the authors evaluate a method-family-holdout setting, where an entire numerical scheme family is removed from the solver bank and RL training, then tested at evaluation time?
-
Can the authors isolate the reward terms by comparing validity-only, validity + trajectory reward, and the full reward with residual consistency?
-
Since the residual term matches the generated residual norm to the reference residual norm, why is this a reliable physics diagnostic? Can the authors show cases where it catches errors that trajectory reward alone misses?
-
Can the authors revise the zero-shot transfer claim? The held-out tasks seem close to seen PDE motifs, and the 14B held-out aggregate results appear worse after RLVP than after SFT.
-
Can the authors provide multiple RL training seeds or confidence intervals for the main results?
My score could increase if the authors show that RLVP still works under method-family or PDE-family holdouts, and if they demonstrate that generated solvers are not mostly nearest-neighbor adaptations of the solver bank. Without this, I do not think the current evidence supports acceptance.
Limitations
No. The paper mentions some limitations, but it does not sufficiently address solver-bank/template reuse, the lack of residual-reward attribution, mixed held-out transfer, or the absence of multi-seed RL uncertainty.
Final justification
Thank you to the authors for the detailed rebuttal and for conducting substantial additional experiments in direct response to the reviews.
The new solver-bank similarity analyses, numerical-method-family and PDE-family holdouts, matched reward ablations, and independent training runs materially strengthen the evaluation. In particular, the token-, AST-, and retrieval-based analyses provide useful evidence against literal memorization or direct nearest-neighbor reuse, and the leave-family-out experiments address an important weakness of the original submission. Based on these additions, I am updating my score from 2 to 3.
Several concerns nevertheless remain.
First, the similarity analyses primarily rule out literal retrieval, high token similarity, and exact abstract-AST matches. They do not fully rule out higher-level semantic template adaptation, where a model reuses the same numerical structure while rewriting or locally modifying the implementation. I therefore view the new evidence as substantially reducing, but not completely resolving, the solver-bank reuse concern.
Second, the leave-Advection-out experiment provides evidence of transfer, but the recovered performance remains modest: pass@1 is 0.0117 and pass@8 is 0.0867. This supports a claim of limited or selective cross-PDE transfer, but in my view it is not yet strong evidence that RLVP remains broadly effective after an entire PDE family is excluded. The numerical-method-family holdout is also informative, although removing CN/CNAB examples mainly demonstrates that the model does not depend on those teacher examples; it does not necessarily show that the withheld method family itself is reconstructed or transferred.
Third, the reward ablations clarify that trajectory accuracy supplies most of the improvement beyond validity-only training. The residual-consistency factor appears to provide a smaller and PDE-dependent complementary benefit, particularly for diagnostics such as incompressibility. I encourage the final paper to reflect this more precisely and avoid presenting the residual component as uniformly beneficial across PDEs.
Finally, the revised 14B results use an earlier checkpoint that improves both in-distribution and held-out performance. It is important to clarify how this checkpoint was selected. If held-out PDE performance was inspected during checkpoint selection, then the held-out set effectively participated in model selection and should not be treated as a fully untouched zero-shot evaluation set.
Overall, the rebuttal significantly improves the paper and addresses several of my original requests. However, the remaining limitations in the strength of the transfer evidence, the interpretation of solver-template reuse, the marginal role of the residual reward, and the checkpoint-selection protocol prevent me from moving to a positive score. I am therefore updating my rating to 3
Formatting concerns
None
12 comments
Response to Reviewer hLGZ (1/5)
We thank the reviewer for recognizing the importance of the problem, the promise of verifier-based learning, and the concreteness of the pipeline, and for finding the seen-PDE results promising and the validity-only ablation useful. We address the key concerns on solver-bank reuse and reward component attribution and have added new experiments: (i) a complete token, AST, retrieval audit against the solver bank, (ii) PDE-family and method-family training held-out, (iii) matched reward factor and residual diagnostics, and (iv) RLVP training runs with three different seeds
W1. Literal solver bank reuse does not explain held-out PDE success
W1a. Complete comparison of RLVP generations with the solver bank
Using the RLVP post-trained 7B model, we generated solver programs for each of the eight trained and ten held-out PDE prompts, yielding 256 trained-PDE and 320 held-out programs. Every program was compared with all 69 byte-distinct teacher solvers in the corpus used in SFT. The trained-PDE generations serve as a positive control (since these solver banks were used during SFT), while the held-out generations test whether solver bank retrieval explains transfer.
Table R1.1: Solver-bank similarity and retrieval audit.
| Analysis | Criterion | Eight trained PDEs | Ten held-out PDEs |
|---|---|---|---|
| Population | Generated solvers audited | 256 | 320 |
| Token | At or above the within-bank reference, | 158/256 | 0/320 |
| AST | Exact match after identifier/literal abstraction | 83/239 | 0/280 |
| Retrieval | PDEs solved by literal top-32 teacher retrieval | -- | 0/10 |
| Retrieval | PDEs solved after formal-argument renaming of up to three compatible teachers | -- | 0/10 |
1. Token similarity. We remove comments and layout, replace strings and numbers by type markers, and consistently alpha-rename local variables while preserving Python keywords such as fft, roll, and solve. We then compute the multiset Jaccard similarity over normalized 5-token groups, where 1 denotes identical normalized 5-gram multisets and 0 denotes no shared 5-grams. For each solver generated, we retain its max similarity to any of the solvers in the solver bank. We calibrate the statistic with a median nearest-other-teacher score of 0.794, where every selected teacher solver pair belongs to the same PDE. This audit identifies 158/256 trained PDE generations but 0/320 held-out generations that are token similar [1--3].
2. AST similarity. An abstract syntax tree (AST) represents program structure rather than formatting. We parse each solver program, abstract identifiers and literals, and check whether the complete abstract AST of any generated solver is identical to any teacher AST from the solver bank. This finds 83/239 matches among parseable trained-PDE generations but 0/280 among parseable generations for the held-out tasks.
3. Nearest-neighbor retrieval. We rank all solvers in the solver bank by TF-IDF similarity between the evaluation task prompt and the 2048 SFT prompts, then execute the retrieved teacher solvers on all cases. We test both (a) the top-32 teacher solvers unchanged and (b) up to 3 arity-compatible solvers with capture-safe formal-argument renaming only. Neither baseline solves any of the ten held-out PDE tasks.
Therefore, from the analyses suggested by the reviewer, we find that the held-out PDE successes are not explained by exact program-structure reuse or literal teacher solver retrieval, and the solvers generated are structurally different from the solvers in the SFT solver bank.
W1b. Method-family and PDE-family training holdouts
We also perform the causal interventions requested by the reviewer and post-trained two new models with RLVP (7B Qwen2.5).
For the method-family holdout, we removed all 214 teacher completions that use the Crank–Nicolson (CN) or Crank–Nicolson–Adams–Bashforth (CNAB) schemes before retraining both SFT and RL. Crank-Nicolson is a foundational second-order implicit time-integration method for parabolic and diffusion-dominated PDEs, while CNAB is an important semi-implicit extension that combines implicit treatment of stiff or diffusive terms with explicit treatment of nonlinear or advective terms. This intervention thus withholds a major numerical time-integration family, rather than a minor implementation variant [13,14]. We clarify that RL sees only PDE problem prompts and RLVP rewards, no teacher solver is provided during RL. Therefore, removing a numerical-method family directly changes only the SFT supervision.
For the PDE-family holdout, we remove all Advection solvers and Advection prompts from both SFT and RL phases of RLVP, while keeping the benchmark for the trained PDEs (8 problems) fixed (i.e. still include Advection).
Response to Reviewer hLGZ (2/5)
Table R1.2: Aggregate method-family and PDE-family holdout results.
| Model | Training intervention | ID p@1 | ID p@8 | Held-out p@1 | Held-out p@8 |
|---|---|---|---|---|---|
| RLVP 7B | Full solver bank | 0.694 | 0.861 | 0.100 | 0.349 |
| RLVP 7B | No CN/CNAB solvers in solver bank | 0.771 | 0.956 | 0.186 | 0.491 |
| RLVP 7B | Advection removed from SFT and RL | 0.632 | 0.771 | 0.047 | 0.214 |
Table R1.3: Advection solver performance for the Advection-family holdout intervention.
| Model | Training intervention | p@1 | p@8 |
|---|---|---|---|
| SFT 7B | Advection removed from SFT | 0.0000 | 0.0000 |
| SFT and RL 7B | Advection removed from SFT and RL | 0.0117 | 0.0867 |
The no CN/CNAB method intervention does not degrade performance for both trained and held-out PDE tasks. As expected, removing entire Advection family from both SFT supervision and RL cause a modest reduction in aggregate performance compared with the original RLVP model trained on all 8 PDE tasks. On Advection 1D task, the leave-advection-out SFT model achieves zero pass@1 and pass@8, while subsequent RL on the remaining 7 PDE families recovers non-zero advection-solving capability.
Together, these holdout interventions show that RLVP remains effective when either a major numerical method or an entire PDE family is excluded from training, and that multi-PDE RL introduced in RLVP can recover solver capability.
--
W2. Reward ablation and the role of residual consistency
Following the reviewer’s request, we trained matched 7B policies from the same SFT checkpoint. Common-response Table A.1 directly compares validity only, trajectory accuracy, and the complete reward. These results isolate the trajectory function-space accuracy factor as the principal dense learning signal beyond binary execution validity.
We further ablated both the strength and applicability of the residual factor in common-response Tables A.1–A.2. Applying the residual selectively to incompressible Navier–Stokes and Darcy Flow gives the strongest performance, reaching p@1/p@8 of , compared with for trajectory-only and when the residual is applied globally. On Navier–Stokes specifically, selective residual activation improves p@1/p@8 from to .
This selective design is physically motivated. Trajectory nRMSE measures field-level error, whereas the Navier–Stokes diagnostic measures incompressibility, , and the Darcy diagnostic measures the elliptic balance, . These derivative-level constraints can distinguish fields with similar nRMSE but different physical consistency. Indeed, within the same Navier–Stokes trajectory-error range, residual-trained outputs have nearly identical median nRMSE ( versus ) but lower divergence ( versus ) and residual log-ratio ( versus ), as shown in Table A.4. This demonstrates an error detected by the residual diagnostic that the trajectory accuracy alone does not measure.
The executed residual factor is one-sided and reference-relative:
Our reward penalizes only residuals exceeding the numerical reference floor, and moreover, multiplies the trajectory reward, so it cannot compensate an inaccurate solution from the solver and it only downweights trajectories that additionally violate the selected physical constraint.
Finally, the temperature sweeps confirm that reward sharpness is tunable. Increasing from to softens global residual attenuation and improves in-distribution p@1/p@8 and held-out p@8. For the trajectory factor, larger provides smoother ranking over a wider error range and gives the strongest in-distribution p@8, whereas smaller more sharply distinguishes low-error candidates and gives the strongest held-out p@1/p@8 (Tables A.1 and A.3).
Together, these experiments establish the respective roles of the reward components: trajectory accuracy supplies the general dense optimization signal, while residual consistency provides complementary supervision for PDEs where a directly resolved physical constraint adds information beyond field-level error.
Response to Reviewer hLGZ (3/5)
W3. The evidence supports selective numerical-method transfer, and PDE operator similarity does not imply solver concatenation
W3a. Scope of the held-out claim
We did not claim broad zero-shot PDE generalization as that would overstate the evidence, as we stated in the paper that RLVP enables "Selective zero-shot cross-PDE transfer", because the ten held-out PDEs are absent from both SFT training and RL prompts. We will make it clear in the final version that RLVP shows early evidence of selective cross-PDE transfer.
Next, we agree that the submitted 14B held-out performance should have been discussed directly. The submitted table reported the terminal RL checkpoint, although the 14B RL trajectory reaches a stronger balanced performance before continued optimization further specializes the policy towards the training distribution. As is common in stochastic RL optimizations, checkpoint performance need not improve monotonically: later updates can concentrate probability on trained PDE tasks while reducing support for held-out solver modes, and finite sampling adds checkpoint-level variance. We further analyzed the training trajectory and identified a checkpoint that gives balanced and optimal improvement for both training and held-out PDE tasks. We will update the results in Table R1.4 into our camera-ready version of the paper, thank the reviewer for spotting the mistake.
Table R1.4: Updated 14B RLVP performance
| Stage | ID p@1 | ID p@8 | Held-out p@1 | Held-out p@8 |
|---|---|---|---|---|
| Base | 0.06 | 0.19 | 0.11 | 0.40 |
| SFT | 0.40 | 0.61 | 0.14 | 0.60 |
| RLVP 14B | 0.688 | 0.844 | 0.255 | 0.742 |
W3b. Algebraic operator relations in PDEs do not determine stable numerical solvers
We agree with the reviewer's taxonomy that heat, 2D advection, advection-reaction-diffusion, Allen-Cahn, and Gray-Scott share some motifs with the 8 trained PDE tasks. This is why they are controlled tests of reuse and adapation of learned numerical methods via RLVP. We respectfully disagree with the numerical inference that adding or removing a continuum operator reduces the corresponding solver to a trivial addition or removal of code.
A PDE specifies a continuum operator, it does not specify the spatial discretization, the time integrator, operator coupling, stability control, boundary closure, or alignment with the requested output times. Classical convergence results apply only after a consistent discrete scheme has been specified and require stability; they do not provide a rule saying that discrete solvers compose whenever differential operators do. Operator-splitting and IMEX analysis exists precisely because coupled advection, diffusion, and reaction terms generally require different numerical treatment and introduce splitting, ordering, commutator, stiffness, and boundary errors [4-8].
Advection--reaction--diffusion (ARD). The held-out equation is
For standard explicit treatments, the relevant scales differ qualitatively:
A solver must decide whether to advance the terms monolithically, split them, or use IMEX treatment; select an ordering; reconcile the most restrictive scale; and preserve periodic boundaries and exact requested output times. A successful RLVP ARD solver uses slope-limited reconstruction, a linear advection flux, a diffusion stencil, the logistic source, CFL-controlled substeps, and SSPRK3. This is not a concatenation of three teacher functions; it is a coupled update whose exact program is neither token-near nor AST-identical to the SFT bank and cannot be produced successfully by literal teacher retrieval (as in W1a).
1D-to-2D advection. The extension of
is appropriately described as a local dimensional-transfer test, not a new method family. It is nevertheless not an interface-only edit, the solver generated must construct derivatives along both array axes, use and in a multidimensional stability condition, apply periodic boundaries in both directions, and return the required full trajectory. The successful 7B RLVP solver does exactly this with stencils, directional CFL control, and RK4 time-stepping, while the SFT generated solver is unstable.
Heat. We agree that heat, , is the easiest local control: it is the diffusion-only restriction of trained reaction--diffusion. However, it still tests whether the generated solver accurately removes the reaction term while retaining a stable diffusion update.
Comments on the paper
2 comments
Common Response: Results and Ablations
We consolidate the results and ablations requested across reviews and reference the tables in each reviewer-specific rebuttal.
A. Reward design
The full RLVP reward is
Table A.1 — Aggregate reward component, physics residual activation, and physics residual temperature ablation
| Reward setting | activation | ID p@1 | ID p@8 | Held-out p@1 | Held-out p@8 | |
|---|---|---|---|---|---|---|
| Validity only () | N/A | -- | 0.609 | 0.769 | 0.079 | 0.356 |
| Trajectory only () | 0 for all PDEs | -- | 0.755 | 0.885 | 0.093 | 0.402 |
| Full reward | 1 for NS2D/Darcy2D; 0 otherwise | 2.0 | 0.764 | 0.903 | 0.096 | 0.379 |
| Full reward | 1 for all PDEs | 4.0 | 0.714 | 0.870 | 0.095 | 0.398 |
| Full reward | 1 for all PDEs | 2.0 | 0.694 | 0.861 | 0.100 | 0.349 |
(Combinatorial pass@k evaluated on 32 generated solvers)
Requested by Reviewers hLGZ, 9qjK, tyVN, and USAh.
--
Table A.2 — Targeted-PDE breakdown of the matched physics residual activation rows in Table A.1
| activation | NS2D p@1 | NS2D p@8 | Darcy2D p@1 | Darcy2D p@8 | SWE2D p@1 | SWE2D p@8 | |
|---|---|---|---|---|---|---|---|
| 0 for all PDEs | -- | 0.021 | 0.148 | 0.781 | 1.000 | 0.500 | 0.999 |
| 1 for NS2D/Darcy2D; 0 otherwise | 2.0 | 0.063 | 0.284 | 0.750 | 1.000 | 0.719 | 1.000 |
| 1 for all PDEs | 2.0 | 0.042 | 0.235 | 0.854 | 1.000 | 0.500 | 0.999 |
| 1 for all PDEs | 4.0 | 0.063 | 0.284 | 0.885 | 1.000 | 0.781 | 1.000 |
Requested by Reviewers hLGZ, 9qjK, tyVN, and USAh.
--
Table A.3 — Trajectory-temperature ablation
| ID p@1 | ID p@8 | Held-out p@1 | Held-out p@8 | |
|---|---|---|---|---|
| 0.20 | 0.728 | 0.909 | 0.116 | 0.339 |
| 0.05 | 0.694 | 0.861 | 0.100 | 0.349 |
| 0.02 | 0.707 | 0.851 | 0.126 | 0.363 |
| 0.01 | 0.717 | 0.840 | 0.127 | 0.383 |
Requested by Reviewers 9qjK, tyVN, and USAh.
--
Table A.4 — Conditional NS2D physics diagnostic
| NS2D | Median nRMSE | Median divergence | Median residual log-ratio |
|---|---|---|---|
| Trajectory only | 0.0545 | 0.380 | 0.188 |
| With physics residual | 0.0535 | 0.290 | 0.000 |
Requested by Reviewers hLGZ, 9qjK, tyVN, and USAh.
--
B. Baselines and frontier-model comparison
Table B.1 — CodePDE aggregate comparison
| Split | Metric | Base | CodePDE | RLVP 7B |
|---|---|---|---|---|
| ID | Pass@1 | 0.00 | 0.01 | 0.68 |
| ID | Pass@8 | 0.00 | 0.06 | 0.83 |
| ID | Median-best nRMSE@8 | 8.46e-1 | 2.90e-1 | 6.13e-4 |
| ID | Valid exec. rate | 0.17 | 0.45 | 0.80 |
| Held-out | Pass@1 | 0.01 | 0.05 | 0.11 |
| Held-out | Pass@8 | 0.06 | 0.22 | 0.57 |
| Held-out | Median-best nRMSE@8 | 4.61e-1 | 8.60e-2 | 4.01e-3 |
CodePDE is evaluated on both splits as it is an inference-time method: the held-out split tests whether inference-time refinement alone can recover solvers for PDEs absent from training, which is an alternative to post-training.
Requested by Reviewers 9qjK and USAh.
--
Table B.2 — Claude Opus 5 frontier-model results
| Section | Metric | Claude Opus 5 |
|---|---|---|
| Aggregate | Pass@1 | 0.49 |
| Pass@8 | 0.52 | |
| Median-best nRMSE@8 | 8.64e-3 | |
| Valid exec. rate | 0.98 | |
| Per-PDE Pass@1 | Advection 1D | 0.44 |
| Burgers 1D | 0.75 | |
| Darcy Flow 2D | 0.00 | |
| Diffusion-sorption 1D | 0.00 | |
| Incompressible Navier--Stokes 2D | 0.00 | |
| Reaction Diffusion 1D | 1.00 | |
| Reaction Diffusion 2D | 0.75 | |
| Shallow Water 2D | 1.00 | |
| Per-PDE nRMSE@8 | Advection 1D | 1.34e-2 |
| Burgers 1D | 1.51e-3 | |
| Darcy Flow 2D | 1.24e-1 | |
| Diffusion-sorption 1D | 5.09e-2 | |
| Incompressible Navier--Stokes 2D | 3.49e-2 | |
| Reaction Diffusion 1D | 1.61e-5 | |
| Reaction Diffusion 2D | 8.44e-6 | |
| Shallow Water 2D | 3.91e-3 |
This comparison is scoped to the generation of solvers for the 8 trained tasks, matching the paper's claim. Frontier models are expected to be stronger in general given their scale and training data; the question we answer isolates whether verifiable-physics post-training can make a compact policy competitive under the same controlled generation protocol.
Requested by Reviewers tyVN and USAh.
--
Table B.3 — Claude Opus 5 Token Usage
| Input | Output | Total tokens | Avg tokens per generated solver |
|---|---|---|---|
| 55,848 | 697,596 | 753,444 | 5,232.25 |
Requested by Reviewers tyVN and USAh.
Final Remarks by Authors
Dear Area and Program Chairs,
As we approach the end of the discussion period, we would like to provide a concise summary as important context for your decision.
Most reviewers were initially positive about our submission, and all reviewers who engaged with our rebuttal further increased their ratings. This reflects stronger support for the paper and a more favorable assessment of its case for acceptance. Across the discussion, reviewers described the hybrid verifier as “novel” and “well aligned with the goal of PDE solver generation,” found “strong empirical evidence for the value of RLVP”, and concluded that RLVP’s “central result is well established” and that the evidence base is “substantially stronger than at submission.”
Reviewer hLGZ recognized the importance of the problem, described the pipeline as “concrete and reasonably well described,” and found the results on trained PDE families “promising, ” and “the rebuttal significantly improves the paper and addresses several of my original requests.” Their main requests concerned solver-bank reuse, numerical-method- and PDE-family holdouts, reward attribution, and multi-seed robustness. We completed all requested analyses, and the reviewer specifically credited the resulting similarity audits and holdout experiments as important new evidence, raising their score. We subsequently tried to address their remaining interpretive and reporting questions through further clarification.
Reviewer 9qjK described the hybrid verifier as “novel,” the single policy across PDEs as useful in practice, and the experiments as clearly demonstrating RLVP’s improvements. Their concerns involved scalability, reward attribution, solver-bank diversity, the CodePDE baseline, extension to 3D PDE and higher resolutions, and GRPO group-size trade-offs. We addressed each through new computational and empirical analyses, matched reward ablations, the requested CodePDE comparison, and new 3D and resolution evaluations. The reviewer did not post a follow-up to our rebuttal.
Reviewer tyVN praised the paper as well written and reproducible, found the trajectory-level verifier novel and well aligned with PDE solver generation, and recognized “strong empirical evidence for the value of RLVP beyond SFT.” Their principal requests were evidence on 3D PDEs and a stronger, more carefully scoped frontier-model comparison. We added zero-shot 3D PDE evaluations and evaluated Claude Opus 5 under the same controlled protocol. Following these additions, they increased their rating to Accept (5).
Reviewer USAh provided extensive and constructive feedback throughout the discussion. They described the central observation as “genuinely good and clearly motivated,” the hybrid verifier as a “clean” solution, the multi-PDE policy as “a real step beyond per-equation specialization,” and the headline result as “striking and relevant.” After we addressed their concerns regarding reward scope, more configuration details, and final presentation commitments, they confirmed that all five conditions had been met, raised their rating from 4 to Accept (5), and concluded that RLVP’s central result is well established.
We appreciate the reviewers’ thoughtful engagement, which has helped clarify and strengthen the paper’s central contribution: post-training a single LLM policy with continuous physical rewards for multiple PDEs can substantially improve reliable PDE solver generation while providing evidence of compositional transfer across unseen PDE tasks. We will incorporate all promised additional ablations, evaluations and baselines, and presentation improvements into the final version.
Thank you very much!
Warm regards,
The Authors
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Response to Area Chair
Dear Area Chair,
Thank you for the clear meta-review and for helping focus the discussion, we appreciate it!
We appreciate the reviewers' constructive feedback, which motivated these additional experiments, ablations, training data holdouts, baseline comparisons, 3D PDE evaluations, and robustness analyses. We summarize our responses below.
1. Reward design and each component's distinct role
We further analyzed the reward design. RLVP combines a hard validity gate (execution, shape, finiteness), continuous trajectory accuracy over function-space error, and PDE-residual consistency (A.1--A.4). On the 7B policy, trained PDE tasks pass@1/pass@8 improve from 0.609/0.769 to 0.755/0.885 from validity-only to trajectory reward while selective residual activation for NS2D/Darcy2D gives strongest result of 0.764/0.903, while lowering reference-relative residual log-ratio from 0.188 to 0.00 for NS2D. Thus, trajectory accuracy provides the principal dense reward signal and residual consistency provides complementary, PDE-dependent physics supervision.
2. Not reusing solver templates, RLVP learns transferable numerical methods
We adopted similarity analysis methods suggested by the reviewer. Across 320 held-out PDE solver generations, 0 solvers match any teacher solver abstract AST, 0 solvers meet the teacher-level token threshold, and 0 held-out PDEs can be solved by teacher retrieval (hLGZ R1.1; USAh R4.4).
We post-trained new models with numerical-method-family or PDE-family holdouts (R1.2--R1.3/R4.5--R4.6): removing all 214 CN/CNAB teacher solver samples in SFT does not degrade RLVP performance, while multi-PDE RL on 7 retained PDE tasks recovers modest Advection1d solving capability. Together with improved aggregate performance over the base model across the 10 held-out PDEs originally reported and 4 new 3D PDE tasks, this demonstrates RLVP shows evidence of transfer and recombination beyond solver-template reuse.
3. We added the requested baselines
We included the CodePDE baseline (B.1): CodePDE reaches pass@1/pass@8 0.01/0.06 and 0.05/0.22 for trained and held-out PDEs, respectively, versus RLVP 7B's 0.68/0.83 and 0.11/0.57. CodePDE is a test-time method with adaptive refinements and reference solution feedback, while RLVP amortizes the supervision with multi-PDE post-training and needs no target-specific reference at deployment time. We also clarified details of frontier model APIs and added the new Claude Opus 5 results under the same direct-generation protocol (B.2--B.3).
4. Scalability and robustness
We reported post-training cost and verifier runtimes. The frozen 14B RLVP policy, trained with no 3D PDE solver-bank examples or 3D prompts in RL, improves over base model in pass@1 and pass@8 on all four new 3D PDEs, including Advection3D and Acoustic Wave3D where base model has no success (R2.1/R3.1). We also report grid resolution tests and three independent SFT to RL runs with stable in-distribution and held-out performance.
Together, these results establish RLVP: a hybrid binary–continuous verifier and multi-PDE post-training recipe that amortizes physical feedback into a single compact PDE solver policy, improves reliability beyond pretrained and supervised-only baselines, and learns transferable numerical strategies across unseen and 3D PDE problems.
We will incorporate all promised results, clarifications, and presentation improvements into the revised manuscript. Thank you!
Warm regards,
The Authors