[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-85926-en":3,"doc-seo-85926-105":29,"detail-sidebar-cat-0-en-105":91},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":13,"seo_description":14,"update_tm":27,"read_time":28},85926,7971461740909,"Levi","https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d",8,"Research & Report","Reinforcement Learning with Verifiable Physics: Post-training LLMs with Continuous Rewards","Reinforcement Learning with Verifiable Physics (RLVP) introduces a post-training reinforcement learning framework for generating reliable multi-PDE solver code with graded physical feedback. Building on supervised fine-tuning and GRPO, RLVP uses a hybrid verifier: hard program-validity checks ensure executability, while continuous rewards quantify function-space accuracy and PDE-residual consistency against hidden numerical references. A single policy is trained across diverse PDE families, improving on PDE benchmarks and transferring zero-shot performance to held-out problems, including gains over frontier-model prompting.","Reinforcement Learning with Verifiable Physics: Post-training LLMs with Continuous Rewards  \narXiv :2607 . 10474v 1 [ cs .LG] 11 Jul 2026  \nPengfei Cai ∗  \nMassachusetts Institute of Technology  \nAlan Edelman  \nMassachusetts Institute of Technology  \nUtkarsh Utkarsh∗ Massachusetts Institute of Technology  \nChristopher Vincent Rackauckas † Massachusetts Institute of Technology  \nRafael Gomez-Bombarelli†  \nMassachusetts Institute of Technology  \nAbstract  \nPartial 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 codegeneration 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.  \nThe 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.  \n1 Introduction  \nPartial differential equations (PDEs) are a central language of the physical sciences, governing systems in fluid dynamics, heat transfer, electromagnetism, structural mechanics, and beyond [1–3] .  \nDecades of scientific computing have produced powerful solver families, including finite-difference,∗ Equal contribution. Order decided by coin toss.  \n†Corresponding authors: [crackauc@mit.edu](crackauc@mit.edu), [rafagb@mit.edu](rafagb@mit.edu)  \nPreprint.  \nfinite-volume, finite-element, spectral, implicit, and operator-splitting schemes [2–5] . Yet writing a reliable solver remains a specialized task: correctness depends on discretization, stability constraints, boundary treatment, time integration, solver tolerances, and physical invariants. Code can compile, return arrays of the right shape, and still violate a CFL condition, mishandle a boundary, introduce excessive diffusion, or produce a qualitatively wrong solution.  \nLarge language models (LLMs) have become strong code generators and coding agents [6–11], raising the question of whether PDE solver construction can be automated as code generation. Recent work suggests that this direction is promising but incomplete: LLMs can produce plausible scientific code, but reliable solver accuracy often requires domain-informed prompting, execution feedback, debugging loops, self-refinement, agentic orchestration, or test-time scaling [12–19] . These inferencetime methods can improve individual outputs, but they do not amortize numerical reliability into the model’s solver-writing distribution. We instead ask whether the ","cbCaikZa1oyqIbav","https://ap.wps.com/l/cbCaikZa1oyqIbav","pdf",7469720,1,43,"English","en",105,"# Introduction\n## Reinforcement learning with verifiable rewards (RLVR) and its limitations\n## Reinforcement Learning with Verifiable Physics (RLVP)\n## Contributions and hybrid verifier design","[{\"question\":\"What problem does RLVP address in LLM-based PDE solver generation?\",\"answer\":\"RLVP targets the gap between binary verifiers (compile/test pass) and the graded nature of scientific correctness, where programs can be executable yet inaccurate or physically inconsistent.\"},{\"question\":\"How does RLVP produce continuous feedback during training?\",\"answer\":\"RLVP combines hard execution-validity gates with continuous physics rewards that measure function-space trajectory accuracy and PDE-residual consistency against hidden references.\"},{\"question\":\"What training setup and evaluation benefits does RLVP report?\",\"answer\":\"RLVP post-trains a single policy across multiple PDE families and reports improvements on PDE benchmarks, zero-shot transfer to held-out PDEs, and strong performance from smaller post-trained LLMs versus frontier prompting.\"}]",1784207207,108,{"code":4,"msg":30,"data":31},"ok",{"site_id":24,"language":23,"slug":32,"title":13,"keywords":33,"description":14,"schema_data":34,"social_meta":86,"head_meta":88,"extra_data":90,"updated_unix":27},"reinforcement-learning-with-verifiable-physics-post-training-llms-with-continuous-rewards","",{"@graph":35,"@context":85},[36,53,68],{"@type":37,"itemListElement":38},"BreadcrumbList",[39,43,47,50],{"item":40,"name":41,"@type":42,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":44,"name":45,"@type":42,"position":46},"https://docshare.wps.com/document/","Document",2,{"item":48,"name":12,"@type":42,"position":49},"https://docshare.wps.com/document/research-report/",3,{"item":51,"name":13,"@type":42,"position":52},"https://docshare.wps.com/document/reinforcement-learning-with-verifiable-physics-post-training-llms-with-continuous-rewards/85926/",4,{"url":51,"name":13,"@type":54,"author":55,"headline":13,"publisher":57,"fileFormat":60,"inLanguage":23,"description":14,"dateModified":61,"datePublished":62,"encodingFormat":60,"isAccessibleForFree":63,"interactionStatistic":64},"DigitalDocument",{"name":9,"@type":56},"Person",{"url":40,"name":58,"@type":59},"DocShare","Organization","application/pdf","2026-07-17","2026-07-16",true,{"@type":65,"interactionType":66,"userInteractionCount":20},"InteractionCounter",{"@type":67},"ViewAction",{"@type":69,"mainEntity":70},"FAQPage",[71,77,81],{"name":72,"@type":73,"acceptedAnswer":74},"What problem does RLVP address in LLM-based PDE solver generation?","Question",{"text":75,"@type":76},"RLVP targets the gap between binary verifiers (compile/test pass) and the graded nature of scientific correctness, where programs can be executable yet inaccurate or physically inconsistent.","Answer",{"name":78,"@type":73,"acceptedAnswer":79},"How does RLVP produce continuous feedback during training?",{"text":80,"@type":76},"RLVP combines hard execution-validity gates with continuous physics rewards that measure function-space trajectory accuracy and PDE-residual consistency against hidden references.",{"name":82,"@type":73,"acceptedAnswer":83},"What training setup and evaluation benefits does RLVP report?",{"text":84,"@type":76},"RLVP post-trains a single policy across multiple PDE families and reports improvements on PDE benchmarks, zero-shot transfer to held-out PDEs, and strong performance from smaller post-trained LLMs versus frontier prompting.","https://schema.org",{"og:url":51,"og:type":87,"og:title":13,"og:site_name":58,"og:description":14},"article",{"robots":89,"canonical":51},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":92},[93,97,101,105,110,115,120,123,128,131,135],{"id":20,"doc_module":4,"doc_module_name":45,"category_name":94,"show_sort_weight":95,"slug":96},"Story & Novel",90,"story-novel",{"id":46,"doc_module":4,"doc_module_name":45,"category_name":98,"show_sort_weight":99,"slug":100},"Literature",80,"literature",{"id":52,"doc_module":4,"doc_module_name":45,"category_name":102,"show_sort_weight":103,"slug":104},"Exam",70,"exam",{"id":106,"doc_module":4,"doc_module_name":45,"category_name":107,"show_sort_weight":108,"slug":109},5,"Comic",60,"comic",{"id":111,"doc_module":4,"doc_module_name":45,"category_name":112,"show_sort_weight":113,"slug":114},6,"Technology",50,"technology",{"id":116,"doc_module":4,"doc_module_name":45,"category_name":117,"show_sort_weight":118,"slug":119},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":45,"category_name":12,"show_sort_weight":121,"slug":122},30,"research-report",{"id":124,"doc_module":4,"doc_module_name":45,"category_name":125,"show_sort_weight":126,"slug":127},9,"Religion & Spirituality",20,"religion-spirituality",{"id":126,"doc_module":4,"doc_module_name":45,"category_name":129,"show_sort_weight":126,"slug":130},"World Cup","world-cup",{"id":132,"doc_module":4,"doc_module_name":45,"category_name":133,"show_sort_weight":132,"slug":134},10,"Lifestyle","lifestyle",{"id":136,"doc_module":4,"doc_module_name":45,"category_name":137,"show_sort_weight":106,"slug":138},19,"General","general"]