Preemptive Answer "Attacks" on Chain-of-Thought Reasoning

Rongwu Xu, Zehan Qi, Wei Xu
5/31/2024
cs.CLcs.AIcs.CR

No official code found. Best implementation: pillowsofwind/CoT-Attack (6 stars, MIT, last commit 2025-12-26).

Abstract

Large language models (LLMs) showcase impressive reasoning capabilities when coupled with Chain-of-Thought (CoT) prompting. However, the robustness of this approach warrants further investigation. In this paper, we introduce a novel scenario termed preemptive answers, where the LLM obtains an answer before engaging in reasoning. This situation can arise inadvertently or induced by malicious users by prompt injection attacks. Experiments reveal that preemptive answers significantly impair the model's reasoning capability across various CoT methods and a broad spectrum of datasets. To bolster the robustness of reasoning, we propose two measures aimed at mitigating this issue to some extent.

View on arXivView PDF

Code Implementations(1)

MIT

[ACL 2024 Findings] The official GitHub repo for the paper "Preemptive Answer" Attacks" on Chain-of-Thought Reasoning"

60Python, Jupyter NotebookJul 22, 20249 months agoMIT

Similar Papers

Cite this paper

@article{xu2024preemptive,
  title  = {Preemptive Answer "Attacks" on Chain-of-Thought Reasoning},
  author = {Rongwu Xu and Zehan Qi and Wei Xu},
  year   = {2024},
  eprint = {2405.20902},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.20902v1}
}

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/2405.20902.svg)](https://codeofpaper.com/paper/2405.20902)

Discussion