Update README.md
This commit is contained in:
parent
30d73b43d9
commit
a8f54c3904
1 changed files with 6 additions and 6 deletions
12
README.md
12
README.md
|
|
@ -1,6 +1,6 @@
|
|||
# <img src="./img/logo.png" width=50px/>PIG: Privacy Jailbreak Attack on LLMs via Gradient-based Iterative In-Context Optimization
|
||||
# <img src="./img/logo.png" width=50px style="padding-top: 0px"/>PIG: Privacy Jailbreak Attack on LLMs via Gradient-based Iterative In-Context Optimization
|
||||
|
||||
> This repository contains the official code implementation of our paper: [](https://arxiv.org/abs/xxx)
|
||||
> This repository contains the official code implementation of our paper: [](https://arxiv.org/abs/2505.6437443)
|
||||
|
||||

|
||||
|
||||
|
|
@ -21,16 +21,16 @@ pip install -r requirements.txt
|
|||
|
||||
## Datasets
|
||||
|
||||
You can download the Enron Email dataset and TrustLLM dataset [here](https://drive.google.com/drive/folders/16Th72F_QcxRAryOIk9L2t0oIps1xnHGW) and place them under the `./data` directory.
|
||||
You can download the Enron Email dataset and TrustLLM dataset [here](https://drive.google.com/drive/folders/16Th72F_QcxRAryOIk9L2t0oIps1xnHGW) and place them under the `./data`.
|
||||
|
||||
## Usage
|
||||
|
||||
You can run a privacy jailbreak attack using the following steps:
|
||||
|
||||
1. First, modify parameters such as `dataset`, `target_model_name`, `attack_model_name`, or `eval_model_name` in script `run.sh`.
|
||||
2. Then, execute the privacy jailbreak attack by running `bash run.sh`. Use the `tail` command to monitor the `log` file in real time.
|
||||
1. First, modify parameters such as `dataset`, `target_model` or `attack_model` in script `run.sh`.
|
||||
2. Then, execute the privacy jailbreak attack by running `bash run.sh`.
|
||||
3. Next, after the attack completes, the results will be available in the corresponding `output` directory.
|
||||
4. Finally, evaluate the results using `python eval.py` to compute various metrics such as the Attack Success Rate (ASR).
|
||||
4. Finally, evaluate the results using `python eval.py` to compute various metrics such as the ASR.
|
||||
|
||||
## Acknowledgements
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue