arrow
Return

MathAttack: Attacking Large Language Models towards Math Solving Ability

delete2024-03-24
delete0
delete
OA
AI
DOI:10.1609/aaai.v38i17.29949delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
With the boom of Large Language Models (LLMs), the research of solving Math Word Problem (MWP) has recently made great progress. However, there are few studies to examine the robustness of LLMs in math solving ability. Instead of attacking prompts in the use of LLMs, we propose a MathAttack model to attack MWP samples which are closer to the essence of robustness in solving math problems. Compared to traditional text adversarial attack, it is essential to preserve the mathematical logic of original MWPs during the attacking. To this end, we propose logical entity recognition to identify logical entries which are then frozen. Subsequently, the remaining text are attacked by adopting a word-level attacker. Furthermore, we propose a new dataset RobustMath to evaluate the robustness of LLMs in math solving ability. Extensive experiments on our RobustMath and two another math benchmark datasets GSM8K and MultiAirth show that MathAttack could effectively attack the math solving ability of LLMs. In the experiments, we observe that (1) Our adversarial samples from higher-accuracy LLMs are also effective for attacking LLMs with lower accuracy (e.g., transfer from larger to smaller-size LLMs, or from few-shot to zero-shot prompts); (2) Complex MWPs (such as more solving steps, longer text, more numbers) are more vulnerable to attack; (3) We can improve the robustness of LLMs by using our adversarial samples in few-shot prompts. Finally, we hope our practice and observation can serve as an important attempt towards enhancing the robustness of LLMs in math solving ability. The code and dataset is available at: https://github.com/zhouzihao501/MathAttack.
Adversarial Attack on Large Language Models for the Portuguese Language
err2026-01-01
err0
PREAI
errFigueiredo, Allan Chamon; de Souza Moura, Pedro Nuno; Alvim, Adriana C. F.
errShare
errSave
ArithmeticGPT: empowering small-size large language models with advanced arithmetic skills
err2025-01-17
err0
PREAI
errLiu, Zitao; Zheng, Ying; Yin, Zhibo; Chen, Jiahao; Liu, Tianqiao; Tian, Mi; Luo, Weiqi
errShare
errSave
Instructta: instruction-tuned targeted attack for large vision-language models
err2026-07-22
err0
errOAAI
errXunguang Wang; Pingchuan Ma; Zhenlan Ji; Zongjie Li; Shuai Wang; Weixi Gu
errShare
errSave
TF-Attack: Transferable and fast adversarial attacks on large language models
err2025-03-01
err0
errOAAI
errLi, Zelin; Chen, Kehai; Liu, Lemao; Bai, Xuefeng; Yang, Mingming; Xiang, Yang; Zhang, Min
errShare
errSave
errShare
errSave

Journal

No journal information available

Organization

No organization information available
Cited Papers

Cited Papers

No cited papers available