大模型解工程方程,用算法定向求解比直接预测准得多。
Can Large Language Models Solve Engineering Equations? A Systematic Comparison of Direct Prediction and Solver-Assisted Approaches
- 让大模型列方程并给初值,由经典迭代法算结果。
- 混合方法误差降低67.9%至81.8%,最高仅0.301。
- 适合做数值求解的智能前端,不适合独立算复杂迭代。
超越代数方程的超越方程在工程中广泛存在,如流体力学中的摩擦系数计算和轨道位置确定。我们系统评估大语言模型通过直接数值预测或结合符号运算与经典迭代求解器的混合架构来求解此类方程的有效性。在涵盖七个工程领域的100个问题上测试了六款先进模型(GPT-5.1、GPT-5.2、Gemini-3-Flash、Gemini-2.5-Lite、Claude-Sonnet-4.5、Claude-Opus-4.5)。直接预测的平均相对误差为0.765至1.262,而混合方法(由大模型构建控制方程并提供初值,采用牛顿-拉夫逊法进行数值求解)的误差降至0.225至0.301,误差减少67.9%至81.8%。领域分析显示,电子学中因指数方程敏感性提升达93.1%,而流体力学中仅提高7.2%,因大模型具备良好模式识别能力。研究结果表明,当前大模型在符号运算与领域知识检索方面表现优异,但在高精度迭代计算上存在局限,其最优应用是作为传统数值求解器的智能接口,而非独立计算引擎。
原文摘要 · Abstract (English)
Transcendental equations requiring iterative numerical solution pervade engineering practice, from fluid mechanics friction factor calculations to orbital position determination. We systematically evaluate whether Large Language Models can solve these equations through direct numerical prediction or whether a hybrid architecture combining LLM symbolic manipulation with classical iterative solvers proves more effective. Testing six state-of-the-art models (GPT-5.1, GPT-5.2, Gemini-3-Flash, Gemini-2.5-Lite, Claude-Sonnet-4.5, Claude-Opus-4.5) on 100 problems spanning seven engineering domains, we compare direct prediction against solver-assisted computation where LLMs formulate governing equations and provide initial conditions while Newton-Raphson iteration performs numerical solution. Direct prediction yields mean relative errors of 0.765 to 1.262 across models, while solver-assisted computation achieves 0.225 to 0.301, representing error reductions of 67.9% to 81.8%. Domain-specific analysis reveals dramatic improvements in Electronics (93.1%) due to exponential equation sensitivity, contrasted with modest gains in Fluid Mechanics (7.2%) where LLMs exhibit effective pattern recognition. These findings establish that contemporary LLMs excel at symbolic manipulation and domain knowledge retrieval but struggle with precision-critical iterative arithmetic, suggesting their optimal deployment as intelligent interfaces to classical numerical solvers rather than standalone computational engines.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。