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

SoS1:O1与R1类推理大语言模型是平方和求解器

SoS1: O1 and R1-Like Reasoning LLMs are Sum-of-Square Solvers

Nanjing University of Aeronautics and Astronautics(南京航空航天大学);School of Transportation and Civil Engineering, Nantong University(南通大学交通与土木工程学院);Mathematical Institute, University of Oxford(牛津大学数学研究所)

Kechen Li, Wenqi Zhu, Coralia Cartis, Tianbo Ji, Shiwei Liu

AI总结:

本文提出SoS-1K数据集与推理指令,使7B模型SoS-7B在多项式非负性判断上超越671B模型,准确率达81%,计算时间大幅减少,展现LLMs解决NP难问题的潜力。

摘要:

大语言模型(LLMs)已在多种任务中达到人类水平的能力,但其进行严格数学问题求解的能力仍是一个开放挑战。本文研究一个基础但计算上难以处理的问题:判断给定的多元多项式是否为非负。该问题与希尔伯特第十七问题密切相关,在全局多项式优化中至关重要,并在多个领域有应用。首先,我们引入SoS-1K,一个精心策划的约1000个多项式的数据集,以及基于五个递进难度标准设计的专家推理指令。评估多个最先进的LLMs,我们发现没有结构化指导时,所有模型的表现仅略高于随机猜测基线50%。然而,高质量的推理指令显著提升准确率,最高提升至81%。此外,我们的7B模型SoS-7B,在SoS-1K上仅微调4小时,其准确率超过671B的DeepSeek-V3和GPT-4o-mini,同时所需的计算时间分别仅为后两者的1.8%和5%。我们的发现凸显了LLMs在推动数学推理边界和应对NP难问题方面的潜力。

英文摘要:

Large Language Models (LLMs) have achieved human-level proficiency across diverse tasks, but their ability to perform rigorous mathematical problem solving remains an open challenge. In this work, we investigate a fundamental yet computationally intractable problem: determining whether a given multivariate polynomial is nonnegative. This problem, closely related to Hilbert's Seventeenth Problem, plays a crucial role in global polynomial optimization and has applications in various fields. First, we introduce SoS-1K, a meticulously curated dataset of approximately 1,000 polynomials, along with expert-designed reasoning instructions based on five progressively challenging criteria. Evaluating multiple state-of-the-art LLMs, we find that without structured guidance, all models perform only slightly above the random guess baseline 50%. However, high-quality reasoning instructions significantly improve accuracy, boosting performance up to 81%. Furthermore, our 7B model, SoS-7B, fine-tuned on SoS-1K for just 4 hours, outperforms the 671B DeepSeek-V3 and GPT-4o-mini in accuracy while only requiring 1.8% and 5% of the computation time needed for letters, respectively. Our findings highlight the potential of LLMs to push the boundaries of mathematical reasoning and tackle NP-hard problems.

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

↑