用自动重映射攻击测试大模型算术推理的泛化能力。
Testing LLM Arithmetic Reasoning Generalization with Automatic Numeric-Remapping Attacks

- 设计自动算法生成数值重映射攻击,保留原推理逻辑
- 在GSM8K上准确率下降12.16至25.82个百分点
- 揭示数据集结构对模型鲁棒性有决定性影响
大型语言模型在算术推理基准上表现优异,但面对数值变化仍易出错。本文提出一种自动化的数值重映射攻击方法,通过问题级符号表示生成受约束的数值变换,基于大模型生成的编辑计划实现确定性修改,并通过阶段验证确保攻击可靠性。在GSM8K、MAWPS和MultiArith上测试DeepSeek-R1 (70B)、Gemma4 (31B)和GPT-OSS (120B),结果显示:在GSM8K上条件准确率下降12.16至25.82个百分点;而MAWPS和MultiArith多数攻击后准确率仍接近或超过98%。表明当推理程序保持不变且答案重新计算时,模型对数值变化的鲁棒性高度依赖于数据集结构,短且规则的数据集更稳定。
原文摘要 · Abstract (English)
Large language models achieve strong performance on arithmetic reasoning benchmarks, and one common response to arithmetic brittleness is to delegate computation to code. Yet models are still often used in settings where they must reason directly from natural language, and trustworthy models should solve small-number arithmetic word problems without external tools. Prior work shows that LLMs are sensitive to numerical variation: a model may solve an original problem but fail on structurally similar variants requiring the same reasoning procedure with different numbers. We ask whether this fragility persists under a stricter setting involving small, schema-preserving numeric changes that retain the original reasoning program and avoid large-number stress tests. We introduce an automatic algorithm for generating numeric-remapping attacks on arithmetic word problems. Unlike template-based perturbation methods requiring manual schemas or constraints, our approach derives problem-specific symbolic representations, generates constrained numeric remappings, recomputes gold answers, and realizes transformed questions through deterministic edits guided by LLM-generated edit plans. Stage-wise validation and a high-confidence audit retain reliable attacks, making the pipeline scalable with limited human intervention. We evaluate DeepSeek-R1 (70B), Gemma4 (31B), and GPT-OSS (120B) on GSM8K, MAWPS, and MultiArith. On GSM8K, completed runs show conditional accuracy drops of 12.16 to 25.82 percentage points. MAWPS and MultiArith are far more stable, with most attacked accuracies near or above 98%. These results show that numeric-remapping robustness depends strongly on dataset structure: GSM8K remains sensitive even when reasoning programs are preserved and answers are recomputed, while shorter, more regular datasets are more robust.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。