ICLShield: Exploring and Mitigating In-Context Learning Backdoor Attacks
- Python == 3.9
- openprompt==1.0.1
- transformers==4.35.2
The codes for classification tasks, generation tasks and reasoning tasks are shown in Classification/
, Generation/
, and Reasoning/
, respectively.