Skip to content

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

Notifications You must be signed in to change notification settings

pillowsofwind/CoT-Attack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoT Attack

This is the repo of script for the ACL 2024 Findings paper: Preemptive Answer" Attacks" on Chain-of-Thought Reasoning.

@article{xu2024preemptive,
  title={Preemptive Answer" Attacks" on Chain-of-Thought Reasoning},
  author={Xu, Rongwu and Qi, Zehan and Xu, Wei},
  journal={arXiv preprint arXiv:2405.20902},
  year={2024}
}

Usage

  • Step I. set up conda experiments using pip intall -r requirements.txt and your OpenAI API key in utils.py.

  • Step II. run Pretest and Attack in run.py.

  • Step III. run Pretest and Attack in run.py for self-consistency (SC) experiments.

  • Step IV. run mitigation experiments in mitigation.py

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published