acceptodds
Published as a conference paper at NeurIPS 2026

Reinforcement Learning with Verifiable Physics: Post-training LLMs for PDE Solver Generation

Pengfei Cai, Utkarsh Utkarsh, Alan Edelman, Christopher Rackauckas, Rafael Gomez-Bombarelli

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 accuracy and 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 PDE benchmarks, and shows zero-shot improvement transfer to held-out PDEs. We show that a smaller LLM post-trained with RLVP can outperform prompting a frontier model on in-distribution PDE solver generation. 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.

Keywords:
Sydney, Main Track

Reviews

Among:
Shape:
123456this paper, Top 27%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.50 over 4 reviews, above 73% of the others.
Reviewer_USAhOpenReview ↗
Rating
5
Clarity
4
Confidence
4
Originality
3
Quality
3
Significance
3
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 R=V⋅Rtraj⋅RphysR = V \cdot R_{\mathrm{traj}} \cdot R_{\mathrm{phys}}: a hard binary validity gate VV (executes / correct output shape / finite values) multiplied by continuous factors, a trajectory-accuracy term exp⁡(−Ltraj/T)\exp(-L_{\mathrm{traj}}/T) measuring the normalized space–time L2L^2 error against a hidden numerical reference, plus an optional residual-consistency term exp⁡(−Lphys/T)\exp(-L_{\mathrm{phys}}/T). 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, exp⁡(−L/T)\exp(-L/T), 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 exp⁡(−L/T)\exp(-L/T) 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 16×16×1116\times16\times11, reaction–diffusion-2D and Darcy at 32×3232\times32), so nRMSE≤10−2\text{nRMSE}\le 10^{-2} versus reference is a comparatively weak bar on the hardest problems. And the training reward exp⁡(−20⋅nRMSE)\exp(-20\cdot\text{nRMSE}) 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
  1. 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 v3 reward, and if so, how does that reconcile with Appendix A.1's β=0.5\beta=0.5? Please add an accuracy-only versus accuracy-plus-residual ablation that isolates RphysR_{\mathrm{phys}} (your v3 and v3_physics configs already differ in exactly this factor).
  2. 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.
  3. 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.
  4. 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?
  5. 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 16×1616\times16), 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.

Paper formatting concerns

None. No anonymity violations noted.

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.

Reviewer_tyVNOpenReview ↗
Rating
5
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
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:

  1. 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.
  2. 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.
  3. 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.
  4. 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:

  1. 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.
  2. 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
  1. 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?
  2. 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.

Paper formatting concerns
  1. The table 1 and figure 2,3,4 are extremely unclear.
  2. Line 216: Finally, The complete RLVP reward is ->Finally, the complete RLVP reward is
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).

Reviewer_9qjKOpenReview ↗
Rating
5
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
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

  1. 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.

  2. 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.

  3. Baseline: As mentioned by the authors, CodePDE can be a strong post-training baseline, but it is missing in the experiments.

Questions
  1. How sensitive is performance to the reward temperature parameters?
  2. What are the contributions of trajectory and residual factors?
  3. How does performance change if solver-bank diversity is reduced (i.e., smaller datset)?
  4. How would RLVP scale to 3D or more complicated/high-resolution PDE problems?
  5. 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.

Paper formatting concerns

None.

Final justification

I thank the authors for their rebuttal, which have addressed most of my concerns. Therefore, I will update my recommendation to "Accept".

Reviewer_hLGZOpenReview ↗
Rating
3
Clarity
3
Confidence
4
Originality
2
Quality
2
Significance
2
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
  1. 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?

  2. 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?

  3. Can the authors isolate the reward terms by comparing validity-only, validity + trajectory reward, and the full reward with residual consistency?

  4. 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?

  5. 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.

  6. 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.

Paper formatting concerns

None

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

Comments on the paper

1 comment
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)

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.