[论文解读] GPT Can Solve Mathematical Problems Without a Calculator
论文表明,具有 20 亿参数的 MathGLM 模型在没有外部工具的情况下即可高精度完成多位数运算和数学题解,在若干任务上与 GPT-4 相近甚至超越;通过逐步训练和课程式策略实现。
Previous studies have typically assumed that large language models are unable to accurately perform arithmetic operations, particularly multiplication of >8 digits, and operations involving decimals and fractions, without the use of calculator tools. This paper aims to challenge this misconception. With sufficient training data, a 2 billion-parameter language model can accurately perform multi-digit arithmetic operations with almost 100% accuracy without data leakage, significantly surpassing GPT-4 (whose multi-digit multiplication accuracy is only 4.3%). We also demonstrate that our MathGLM, fine-tuned from GLM-10B on a dataset with additional multi-step arithmetic operations and math problems described in text, achieves similar performance to GPT-4 on a 5,000-samples Chinese math problem test set. Our code and data are public at https://github.com/THUDM/MathGLM.
研究动机与目标
- 挑战假设:LLMs 在没有计算器的情况下无法进行多位数运算。
- 通过逐步推理来开发 MathGLM,使其在算术运算和数学应用题方面表现出色。
- 展示课程学习和数据集设计如何在数学准确性上实现大幅提升。
- 将 MathGLM 的性能与 GPT-4 及其他 LLM 在算术任务和数学应用题上进行比较。
提出的方法
- 在一个包含逐步解答的大型算术数据集上训练解码器/Transformer(MathGLM),以教授计算规则。
- 使用课程学习逐步提高数字位数范围,最高到 12 位。
- 在重新构建的 Ape210K 数据集上对 GLM 家族主干进行带逐步解题的数学应用题微调。
- 在专用测试集上以准确率和相对误差阈值评估算术任务。
- 将 MathGLM 的变体(10M–2B 参数)与 GPT-4、ChatGPT 及其他 LLMs 在多个数据集上进行对比。
实验结果
研究问题
- RQ1语言模型在没有外部计算器的情况下能否完成复杂的多位数算术?
- RQ2逐步(类链式思维)训练策略是否能在 LLMs 中实现可靠的算术推理?
- RQ3与 GPT-4 相比,MathGLM 在数学应用题与常规算术任务上的表现如何?
- RQ4模型大小和课程数据对多位数算术准确性的影响是什么?
主要发现
- MathGLM 在一个复杂算术测试上以 2B 参数达到 93.03% 的准确率,超越 GPT-4(18.84%)。
- 较小的 MathGLM 变体(例如 10M)在若干算术任务上优于 GPT-4 和 ChatGPT。
- 根据扩展性分析,算术表现随模型大小和训练数据增加而提升。
- 逐步解题策略显著提高了数学应用题的准确性,相较于直接在原始数据集上微调。
- MathGLM 在 5–12 位泛化的表现高于 GPT-4 和 ChatGPT,在多位数算术任务上更为准确。
- 在 BIG-bench 的算术任务中,MathGLM 一般优于 GPT-4,尤其是在高位数场景。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。