Selective Amnesia: A Continual Learning Approach to Forgetting in Deep Generative Models

Alvin Heng, Harold Soh
5/17/2023
cs.LGcs.AI

Official code: clear-nus/selective-amnesia (66 stars, MIT, last commit 2024-09-29). 1 more implementation below.

Abstract

The recent proliferation of large-scale text-to-image models has led to growing concerns that such models may be misused to generate harmful, misleading, and inappropriate content. Motivated by this issue, we derive a technique inspired by continual learning to selectively forget concepts in pretrained deep generative models. Our method, dubbed Selective Amnesia, enables controllable forgetting where a user can specify how a concept should be forgotten. Selective Amnesia can be applied to conditional variational likelihood models, which encompass a variety of popular deep generative frameworks, including variational autoencoders and large-scale text-to-image diffusion models. Experiments across different models demonstrate that our approach induces forgetting on a variety of concepts, from entire classes in standard datasets to celebrity and nudity prompts in text-to-image models. Our code is publicly available at https://github.com/clear-nus/selective-amnesia.

View on arXivView PDF

Code Implementations(2)

MIT
668Shell, PythonMay 17, 20232 years agoMIT

A PyTorch implementation of the paper 'Selective Amnesia: A Continual Learning Approach to Forgetting in Deep Generative Models' (arXiv:2305.10120) on the MNIST dataset.

50Jupyter NotebookAug 2, 20251 years ago
genereative-aimnist-datasettrustworthy-aiunlearningvae-pytorch

Similar Papers

Cite this paper

@article{heng2023selective,
  title  = {Selective Amnesia: A Continual Learning Approach to Forgetting in Deep Generative Models},
  author = {Alvin Heng and Harold Soh},
  year   = {2023},
  eprint = {2305.10120},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.10120v2},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.10120.svg)](https://codeofpaper.com/paper/2305.10120)

Discussion