AutoNumerics-Zero:自动发现最先进的数学函数
AutoNumerics-Zero: Automated Discovery of State-of-the-Art Mathematical Functions
AI总结:
本文通过符号回归的进化方法,在不依赖任意精度的情况下,自动发现比传统方法更高效的数学函数近似程序,例如一个10操作的程序逼近指数函数达到14位有效数字。
摘要:
超越函数(如指数函数)是科学计算的核心,但数字硬件无法原生计算它们。相反,计算机必须通过组合基本运算(如$\{+, -, \times, ÷\}$)使用泰勒级数等方法近似这些函数。这些方法由数学家经过几个世纪发展而来,专注于能够达到任意精度的途径。然而,计算机通过仅使用有限精度类型(如float32)即可处理大多数应用,超出该类型精度的任何精度实际上都被丢弃了。因此,我们探索放弃任意精度是否能够发现更高效的近似。符号回归的进化方法特别适合,因为它可以搜索任意操作组合,并优化不可微的目标(如使用的操作数)。我们的结果表明,进化能够发现在此设置下优于已有方法的计算机程序,尽管除了基本运算的计算外没有先前的数学知识。从空代码开始,符号回归构建表示新颖数学表达式的程序。特别地,我们发现了10个操作的逼近指数函数达到14位有效数字的程序,其精度比此前已知的同等规模近似高出超过6个数量级。
英文摘要:
Transcendental functions, such as the exponential, are central to scientific computing, yet they cannot be natively calculated by digital hardware. Instead, computers must approximate these functions by combining basic operations, such as $\{+, -, \times, ÷\}$, using methods like Taylor series. These methods were developed over centuries by mathematicians, who focused on approaches that could attain arbitrary accuracy. However, computers can handle most applications by using only finite-precision types, like float32, where any accuracy beyond the type's precision is effectively discarded. We explore, therefore, whether forgoing arbitrary accuracy can lead to the discovery of more efficient approximations. The evolutionary method of symbolic regression is particularly suitable, as it can search for arbitrary operation combinations and can optimize non-differentiable objectives, such as the number of operations used. Our results show that evolution can discover computer programs that outperform established methods in this setting, despite having no prior mathematical knowledge beyond the calculation of the basic operations. Starting from empty code, symbolic regression constructs programs representing novel mathematical expressions. In particular, we discovered a 10-operation program that approximates the exponential function to 14 significant figures, exceeding the accuracy of previously known approximations of this size by more than 6 orders of magnitude.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。