REVS: Unlearning Sensitive Information in Language Models via Rank Editing in the Vocabulary Space
<|reference_start|>REVS: Unlearning Sensitive Information in Language Models via Rank Editing in the Vocabulary Space: Large language models (LLMs) risk inadvertently memorizing and divulging sensitive or personally identifiable information (PII) seen in training data, causing privacy concerns. Current approaches to address this issue involve costly dataset scrubbing, or model filtering through unlearning and model editing, which can be bypassed through extraction attacks. We propose REVS, a novel model editing method for unlearning sensitive information from LLMs. REVS identifies and modifies a small subset of neurons relevant for each piece of sensitive information. By projecting these neurons to the vocabulary space (unembedding), we pinpoint the components driving its generation. We then compute a model edit based on the pseudo-inverse of the unembedding matrix, and apply it to de-promote generation of the targeted sensitive data. To adequately evaluate our method on truly sensitive information, we curate two datasets: an email dataset inherently memorized by GPT-J, and a synthetic social security number dataset that we tune the model to memorize. Compared to other state-of-the-art model editing methods, REVS demonstrates superior performance in both eliminating sensitive information and robustness to extraction attacks, while retaining integrity of the underlying model. The code and a demo notebook are available at https://technion-cs-nlp.github.io/REVS.<|reference_end|>
@article{ashuach2024revs:,
    title={REVS: Unlearning Sensitive Information in Language Models via Rank
  Editing in the Vocabulary Space},
    author={Tomer Ashuach, Martin Tutek, Yonatan Belinkov},
    journal={arXiv preprint arXiv:2406.09325},
    year={2024},
    archivePrefix={arXiv},
    eprint={2406.09325},
    primaryClass={cs.CL}
}