TOFU_Task_of_Fictitious_Unlearning

TOFU: Task of Fictitious Unlearning

The TOFU dataset serves as a benchmark for evaluating unlearning performance of large language models on realistic tasks.

MIT
10K – 100K
Question Answering
English
by @AIOZAI
153

Last updated: 6 months ago


TOFU: Task of Fictitious Unlearning

Summary

Introduction

The TOFU dataset serves as a benchmark for evaluating unlearning performance of large language models on realistic tasks. The dataset comprises question-answer pairs based on autobiographies of 200 different authors that do not exist and are completely fictitiously generated by the GPT-4 model. The goal of the task is to unlearn a fine-tuned model on various fractions of the forget set.

Applicability

The dataset is in QA format, making it ideal for use with popular chat models such as Llama2, Mistral, or Qwen. However, it also works for any other large language model. The corresponding code base is written for the Llama2 chat, and Phi-1.5 models, but can be easily adapted to other models.

Installation

conda create -n tofu python=3.10
conda activate tofu
conda install pytorch pytorch-cuda=11.8 -c pytorch -c nvidia
conda install -c "nvidia/label/cuda-11.8.0" cuda-toolkit
pip install -r requirements.txt
pip install flash-attn --no-build-isolation

Available forget sets are

  • forget01: Forgetting 1% of the original dataset, all entries correspond to a single author.
  • forget05: Forgetting 5% of the original dataset, all entries correspond to a single author.
  • forget10: Forgetting 10% of the original dataset, all entries correspond to a single author.

Retain sets corresponding to each forget set are also available, which can be used to train an Oracle model.

Reference

We would like to acknowledge Pratyush Maini and Zhili Feng et al. for creating and maintaining the TOFU dataset as a valuable resource for the computer vision and machine learning research community. For more information about the TOFU dataset and its creator, please visit the TOFU website.

License

The dataset has been released under the MIT License.

Citation

@misc{tofu2024,
      title={TOFU: A Task of Fictitious Unlearning for LLMs}, 
      author={Pratyush Maini and Zhili Feng and Avi Schwarzschild and Zachary C. Lipton and J. Zico Kolter},
      year={2024},
      archivePrefix={arXiv},
      primaryClass={cs.LG}
}