[论文解读] Evaluating LLMs' Mathematical and Coding Competency through Ontology-guided Interventions
本文提出一种基于本体的框架,用于生成扰动的数学应用题,基于 GSM8K 构建了包含 216 道题的 More 数据集。通过使用 GPT-4 进行半自动扰动并辅以人工过滤,研究评估了大语言模型在结构、表征和概念分析扰动下的表现,揭示了显著的性能下降——尤其在概念分析方面——表明当前大语言模型在数学推理方面缺乏鲁棒性,且对细微的语义和格式变化极为脆弱。
Recent advancements in Large Language Models (LLMs) have showcased striking results on existing logical reasoning benchmarks, with some models even surpassing human performance. However, the true depth of their competencies and robustness in reasoning tasks remains an open question. To this end, in this paper, we focus on two popular reasoning tasks: arithmetic reasoning and code generation. Particularly, we introduce (i) a general ontology of perturbations for math and coding questions, (ii) a semi-automatic method to apply these perturbations, and (iii) two datasets, GSMORE and HUMANEVAL-CORE, respectively, of perturbed math and coding problems to probe LLM capabilities in numeric reasoning and coding tasks. Through comprehensive evaluations of both closed-source and open-source LLMs, we show a significant performance drop across all the models against the perturbed questions, suggesting that the current LLMs lack robust problem solving skills and structured reasoning abilities in many areas, as defined by our ontology. We open-source the datasets and source codes at: https://github.com/declare-lab/LLM-ReasoningTest.
研究动机与目标
- 评估当前大语言模型在标准基准之外的数学推理鲁棒性。
- 在受控的、细粒度的扰动下,识别大语言模型在数值推理方面系统性的局限性。
- 开发一个可扩展的数学应用题扰动操作本体。
- 构建一个高质量、多样化的数据集(More),用于评估数学推理的鲁棒性。
- 揭示即使是最先进的大语言模型(如 GPT-4)在面对细微语义和结构变化时的脆弱性。
提出的方法
- 构建了分层的扰动本体,将变化分类为结构、表征和概念分析三类。
- 在逻辑改变、格式变化和数值操作等维度上,定义了 44 种不同的扰动类型。
- 使用 GPT-4 对 GSM8K 中的五个种子问题进行半自动扰动生成。
- 通过严格的自动与人工过滤,剔除模糊或无效的扰动,最终得到 More 数据集中 216 道有效问题。
- 设计了评估协议,用于测试大语言模型在各类扰动类型下的表现,包括格式变化、概念分析以及专门的推理任务。
- 在 More 数据集上对五种领先的 LLM(GPT-4、GPT-3.5、Gemini、Llama2-chat、Metamath)进行基准测试,以衡量其性能下降程度。

实验结果
研究问题
- RQ1当前大语言模型在数学应用题的细粒度扰动下有多鲁棒?
- RQ2在结构、表征和概念三类扰动中,哪一类对大语言模型性能的损害最为严重?
- RQ3封闭源代码与开源大语言模型在处理概念分析和格式变化扰动时,表现差异有多大?
- RQ4基于本体的扰动能否有效暴露大语言模型在标准基准之外的隐藏脆弱性?
- RQ5主类型与专门类型扰动之间的性能依赖关系,如何揭示其底层推理的局限性?
主要发现
- GPT-4 在 More 数据集上的表现从 100% 下降到 75.89%,表明尽管基线性能优异,仍存在显著脆弱性。
- GPT-3.5 的性能从 80% 下降到 32.26%,凸显其对扰动的严重敏感性,尤其是在概念分析和格式变化方面。
- Gemini 的性能从 100% 下降到 43.12%,表明其在表征和概念扰动下存在明显脆弱性。
- 开源模型如 Llama2-chat 和 Metamath 在 Answer Format 和 Question Format 等专门类别中表现接近零分,表明其对指令变化的适应能力极差。
- 概念分析类扰动导致了最严重的性能下降,揭示大语言模型往往无法理解深层数学概念,而仅依赖表面模式匹配。
- 性能下降在依赖先解决主类型问题的专门扰动类型中最为显著,表明大语言模型在推理中存在层级性失败。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。