paper-with-me

홈 › Papers

MathAttack: Attacking Large Language Models Towards Math Solving Ability

2023-09-04 · ZiHao Zhou, Qiufeng Wang, Mingyu Jin, Jie Yao, Jianan Ye, Wei Liu, Wei Wang, Xiaowei Huang, Kaizhu Huang

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 security 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 security 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. We will release our code and dataset.

📄 PDF Abstract BibTeX arXiv:2309.01686

Code (0)

등록된 구현이 없습니다.

Tasks

Adversarial AttackGSM8KMath

Similar Papers 제목 키워드 기반

Mathify: Evaluating Large Language Models on Mathematical Problem Solving Tasks

2024-04-19 · Avinash Anand, Mohit Gupta, Kritarth Prasad, Navya Singla 외

The rapid progress in the field of natural language processing (NLP) systems and the expansion of large language models (LLMs) have opened up numerous opportunities in the field of education and instructional methods. Th…

Mathematical Problem-Solving

MathOdyssey: Benchmarking Mathematical Problem-Solving Skills in Large Language Models Using Odyssey Math Data

2024-06-26 · Meng Fang, Xiangpeng Wan, Fei Lu, Fei Xing 외

Large language models (LLMs) have significantly advanced natural language understanding and demonstrated strong problem-solving abilities. Despite these successes, most LLMs still struggle with solving mathematical probl…

BenchmarkingMathMathematical Problem-SolvingMathematical Reasoning+1

ChatGLM-Math: Improving Math Problem-Solving in Large Language Models with a Self-Critique Pipeline

2024-04-03 · Yifan Xu, Xiao Liu, Xinghan Liu, Zhenyu Hou 외

Large language models (LLMs) have shown excellent mastering of human language, but still struggle in real-world applications that require mathematical problem-solving. While many strategies and datasets to enhance LLMs' …

MathMathematical Problem-Solving

SAAS: Solving Ability Amplification Strategy for Enhanced Mathematical Reasoning in Large Language Models

2024-04-05 · Hyeonwoo Kim, Gyoungjin Gim, Yungi Kim, Jihoo Kim 외

This study presents a novel learning approach designed to enhance both mathematical reasoning and problem-solving abilities of Large Language Models (LLMs). We focus on integrating the Chain-of-Thought (CoT) and the Prog…

Mathematical Reasoning

Is Mathematical Problem-Solving Expertise in Large Language Models Associated with Assessment Performance?

2026-03-26 · Liang Zhang, Yu Fu, Xinyi Jin arxiv

Large Language Models (LLMs) are increasingly used in math education not only as problem solvers but also as assessors of learners' reasoning. However, it remains unclear whether stronger math problem-solving ability is …

Mathematical Reasoning