Buckets:
| license: cc-by-nc-sa-4.0 | |
| extra_gated_prompt: >- | |
| Access to SafeEdit is granted only upon your agreement to the following terms, | |
| due to security and ethical concerns. | |
| extra_gated_fields: | |
| Your Full Name: text | |
| Organization or Entity you are affiliated with: text | |
| Country or State you are located in: text | |
| Your Eamil: text | |
| You want to use this dataset for: | |
| type: select | |
| options: | |
| - Academic Research | |
| I PLEDGE not to use SafeEdit for any actions detrimental to society: checkbox | |
| I AGREE to use this dataset for academic research and non-commercial use: checkbox | |
| I AGREE to comply with the original usage licenses of all sources contributing to this dataset and the license of this dataset: checkbox | |
| I AGREE to cite your paper if I use this dataset: checkbox | |
| I ENSURE that the information I have provided is true and accurate: checkbox | |
| language: | |
| - en | |
| pretty_name: SafeEdit | |
| size_categories: | |
| - 1K<n<10K | |
| <div style="text-align:center;"> | |
| <strong>Dataset for Detoxifying Large Language Models via Knowledge Editing</strong> | |
| </div> | |
| <p align="center"> | |
| <a href="">Comparison</a> • | |
| <a href="#-usage">Usage</a> • | |
| <a href="#-citation">Citation</a> • | |
| <a href="https://arxiv.org/abs/2403.14472">Paper</a> • | |
| <a href="https://zjunlp.github.io/project/SafeEdit">Website</a> | |
| </p> | |
| # 🌟 Comparison | |
| SafeEdit encompasses 4,050 training, 2,700 validation, and 1,350 test instances. | |
| **SafeEdit can be utilized across a range of methods, from supervised fine-tuning to reinforcement learning that demands preference data for more secure responses, as well as knowledge editing methods that require a diversity of evaluation texts.** | |
| Besides, we list the differences compared with exisiting [attack dataset](https://arxiv.org/pdf/2305.13860.pdf) and [detoxification dataset](https://arxiv.org/abs/2402.13462). | |
| <div align=center> | |
| <img src="./comparison.png"=drive_link width="60%" height="60%" /> | |
| </div> | |
| For more details about SafeEdit, please refer to the <a href="https://arxiv.org/abs/2403.14472">Paper</a> and the <a href="https://zjunlp.github.io/project/SafeEdit">Website</a>. | |
| # 💻 Usage | |
| ```shell | |
| from datasets import load_dataset | |
| # your should first agree to our terms of use, then use your huggingface access token to download the data. | |
| dataset = load_dataset("zjunlp/SafeEdit", token="your huggingface access token") | |
| ``` | |
| The structure of this file is: | |
| ``` | |
| SafeEdit | |
| ├── SafeEdit_train # training dataset | |
| ├── SafeEdit_val # validation dataset | |
| ├── SafeEdit_test # test dataset only for knowledge editing methods, which will not be used for Task 10 of NLPCC 2024 | |
| ├── SafeEdit_test_ALL # test dataset for Task 10 of NLPCC 2024, which can be used to evaluate knowledge editing and traditional detoxification methods | |
| ├── data_used_for_analysis | |
| │ ├── three_instances_for_editing # three instances for editing vanilla LLM in Table 4 in our paper | |
| ``` | |
| # 📖 Citation | |
| If you use our work, please cite our paper: | |
| ```bibtex | |
| @misc{wang2024SafeEdit, | |
| title={Detoxifying Large Language Models via Knowledge Editing}, | |
| author={Mengru Wang, Ningyu Zhang, Ziwen Xu, Zekun Xi, Shumin Deng, Yunzhi Yao, Qishen Zhang, Linyi Yang, Jindong Wang, Huajun Chen}, | |
| year={2024}, | |
| eprint={2403.14472}, | |
| archivePrefix={arXiv}, | |
| primaryClass={cs.CL} | |
| url={https://arxiv.org/abs/2403.14472}, | |
| } | |
| ``` | |
| # 🎉 Acknowledgement | |
| We would like to express our heartfelt gratitude for Minlie Huang and team members from Tsinghua University for the | |
| contributions of [Safety Benchmark](https://arxiv.org/pdf/2309.07045.pdf) and [Assessmen](https://doi.org/10.48550/arXiv.2304.10436), | |
| Tatsunori B. Hashimoto and his team for the contributions of [instructions following data](https://github.com/tatsu-lab/alpaca_eval), | |
| [Jiahao Yu](https://doi.org/10.48550/arXiv.2309.10253), [Yang Li](https://doi.org/10.48550/arXiv.2305.13860), | |
| [Shujian Huang](https://doi.org/10.48550/arXiv.2311.08268), [Danqi Chen](https://doi.org/10.48550/arXiv.2310.06987), | |
| and [Jacob Steinhardtfor](https://doi.org/10.48550/arXiv.2307.02483) their contributions of security attack technique. |
Xet Storage Details
- Size:
- 4.26 kB
- Xet hash:
- 5e88cb58c8debca3bba6ad48672f815795c652bca3847df4c93b59e894c30c46
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.