arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.13447cs.LGcs.SC
收藏

基于强化学习的符号方程求解

Symbolic Equation Solving via Reinforcement Learning

RIKEN Center for Emergent Matter Science (CEMS)(理化学研究所 emergen 物质科学中心(CEMS));School of Mathematical Sciences, Queen Mary University of London(伦敦玛丽女王大学数学科学学院);The University of Tokyo(东京大学)

Lennart Dabelow, Masahito Ueda

AI总结:

提出一种基于强化学习智能体操作符号栈计算器的深度学习接口,实现精确数学变换,无幻觉,能自主发现规则并逐步求解符号线性方程。

摘要:

机器学习方法正逐渐被广泛应用于各种社会、经济及科学场景中,然而其在精确数学处理方面却以表现不佳而著称。一个典型例子是计算机代数,涉及诸如简化数学项、计算形式导数或求解代数方程的精确解等任务。用于这些目的的传统软件包通常基于一个庞大的规则数据库,这些规则描述了特定操作(如微分)如何将某个项(如正弦函数)转换为另一个项(如余弦函数)。这些规则通常需要由人类发现并随后编程实现。通过机器学习方法自动化这一过程的尝试面临着诸多挑战,例如数学问题解的唯一性——当近似解不可接受时,以及导致推理缺陷的幻觉效应。我们提出了一种新颖的深度学习接口,其中包含一个强化学习智能体,该智能体操作一个符号栈计算器来探索数学关系。通过构造,该系统能够进行精确变换且不受幻觉影响。以符号形式求解线性方程这一典型示例,我们展示了我们的强化学习智能体如何自主发现基本变换规则并逐步求解。

英文摘要:

Machine-learning methods are gradually being adopted in a wide variety of social, economic, and scientific contexts, yet they are notorious for struggling with exact mathematics. A typical example is computer algebra, which includes tasks like simplifying mathematical terms, calculating formal derivatives, or finding exact solutions of algebraic equations. Traditional software packages for these purposes are commonly based on a huge database of rules for how a specific operation (e.g., differentiation) transforms a certain term (e.g., sine function) into another one (e.g., cosine function). These rules have usually needed to be discovered and subsequently programmed by humans. Efforts to automate this process by machine-learning approaches are faced with challenges like the singular nature of solutions to mathematical problems, when approximations are unacceptable, as well as hallucination effects leading to flawed reasoning. We propose a novel deep-learning interface involving a reinforcement-learning agent that operates a symbolic stack calculator to explore mathematical relations. By construction, this system is capable of exact transformations and immune to hallucination. Using the paradigmatic example of solving linear equations in symbolic form, we demonstrate how our reinforcement-learning agent autonomously discovers elementary transformation rules and step-by-step solutions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑