arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.04857cs.AI
收藏

数学推理的神经符号数据生成

Neuro-Symbolic Data Generation for Math Reasoning

State Key Lab of Novel Software Technology, Nanjing University(南京大学计算机软件新技术国家重点实验室);Microsoft Research Asia(微软亚洲研究院)

Zenan Li, Zhi Zhou, Yuan Yao, Yu-Feng Li, Chun Cao, Fan Yang, Xian Zhang, Xiaoxing Ma

AI总结:

针对LLMs数学推理缺陷的成因问题,提出结合LLMs非形式化优势、数学求解器符号推理与投影马尔可夫链蒙特卡洛采样的神经符号数据生成方法,生成高质量数据可提升LLaMA-2等模型性能至同类最优水平。

摘要:

关于大型语言模型(LLMs)的一个关键问题是,它们在数学推理方面的明显缺陷是固有的,还是仅仅由于缺乏高质量数学数据的充分暴露。为探索这一点,我们开发了一种自动生成高质量监督数学数据集的方法。该方法精心变异现有数学问题,确保新生成问题的多样性和有效性。这通过神经符号数据生成框架实现,该框架结合了LLMs直观的非形式化优势、数学求解器的精确符号推理,以及在高度不规则符号空间中的投影马尔可夫链蒙特卡洛采样。实证实验表明,所提方法生成的数据质量高,且LLMs(特别是LLaMA-2和Mistral)在使用生成数据重新对齐后,性能超过了其最先进的同类模型。

英文摘要:

A critical question about Large Language Models (LLMs) is whether their apparent deficiency in mathematical reasoning is inherent, or merely a result of insufficient exposure to high-quality mathematical data. To explore this, we developed an automated method for generating high-quality, supervised mathematical datasets. The method carefully mutates existing math problems, ensuring both diversity and validity of the newly generated problems. This is achieved by a neuro-symbolic data generation framework combining the intuitive informalization strengths of LLMs, and the precise symbolic reasoning of math solvers along with projected Markov chain Monte Carlo sampling in the highly-irregular symbolic space. Empirical experiments demonstrate the high quality of data generated by the proposed method, and that the LLMs, specifically LLaMA-2 and Mistral, when realigned with the generated data, surpass their state-of-the-art counterparts.

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

↑