Stepwise Reasoning Error Disruption Attack of LLMs

Jingyu Peng, Maolin Wang, Xiangyu Zhao, Kai Zhang, Wanyu Wang +4 more
12/16/2024
10 citations
cs.AI

Official code: Applied-Machine-Learning-Lab/SEED-Attack (5 stars, Python, last commit 2025-06-03).

Abstract

Large language models (LLMs) have made remarkable strides in complex reasoning tasks, but their safety and robustness in reasoning processes remain underexplored. Existing attacks on LLM reasoning are constrained by specific settings or lack of imperceptibility, limiting their feasibility and generalizability.

Show full abstract

To address these challenges, we propose the Stepwise rEasoning Error Disruption (SEED) attack, which subtly injects errors into prior reasoning steps to mislead the model into producing incorrect subsequent reasoning and final answers. Unlike previous methods, SEED is compatible with zero-shot and few-shot settings, maintains the natural reasoning flow, and ensures covert execution without modifying the instruction. Extensive experiments on four datasets across four different models demonstrate SEED's effectiveness, revealing the vulnerabilities of LLMs to disruptions in reasoning processes. These findings underscore the need for greater attention to the robustness of LLM reasoning to ensure safety in practical applications. Our code is available at: https://github.com/Applied-Machine-Learning-Lab/SEED-Attack.

View on arXivView PDF

Code Implementations(1)

[ACL'25]Code implementation of ACL‘25 paper "Stepwise Reasoning Disruption Attack of LLMs"

50PythonDec 9, 20241 years ago

Similar Papers

Cite this paper

@article{peng2024stepwise,
  title  = {Stepwise Reasoning Error Disruption Attack of LLMs},
  author = {Jingyu Peng and Maolin Wang and Xiangyu Zhao and Kai Zhang and Wanyu Wang and Pengyue Jia and Qidong Liu and Ruocheng Guo and Qi Liu},
  year   = {2024},
  eprint = {2412.11934},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.11934v5}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.11934.svg)](https://codeofpaper.com/paper/2412.11934)

Discussion