Learning First Integrals via Backward-Generated Data and Guided Reinforcement Learning
Jingfeng Zhong, Zhengxiang Liu, Zhijie Wang, Shuai Li

TL;DR
FISolver is an LLM-based tool that uses a novel backward generation algorithm and reinforcement learning to efficiently discover first integrals in dynamical systems, outperforming existing methods.
Contribution
The paper introduces a new dataset generation method and a fine-tuning approach for LLMs to improve automatic discovery of first integrals.
Findings
FISolver outperforms larger LLMs and commercial solvers on benchmarks.
Backward generation effectively creates large datasets for training.
Reinforcement learning enhances the model's ability to solve complex problems.
Abstract
The discovery of first integrals is of fundamental scientific importance for understanding conservation laws in dynamical systems. However, existing symbolic computation tools and Large Language Models (LLMs) remain limited on this task because high-quality training data are scarce and successful solutions often depend on mathematical intuition. This paper presents FISolver, an LLM-based solver developed to address this challenge. First, we introduce a "Backward Generation" algorithm that systematically builds large-scale datasets of (differential equation, first integral) pairs by deriving differential equations from sampled integrals, thereby alleviating the data scarcity bottleneck. Second, we apply supervised fine-tuning to a compact mathematical model and further improve its performance through reinforcement learning with a Levenshtein Distance-based shaped reward. In addition, we…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
