ReFACT: Updating Text-to-Image Models by Editing the Text Encoder

Dana Arad, Hadas Orgad, Yonatan Belinkov
6/1/2023
42 citations
cs.CLcs.CV

Official code: technion-cs-nlp/ReFACT (12 stars, Python, last commit 2024-04-03).

Abstract

Our world is marked by unprecedented technological, global, and socio-political transformations, posing a significant challenge to text-to-image generative models. These models encode factual associations within their parameters that can quickly become outdated, diminishing their utility for end-users.

Show full abstract

To that end, we introduce ReFACT, a novel approach for editing factual associations in text-to-image models without relaying on explicit input from end-users or costly re-training. ReFACT updates the weights of a specific layer in the text encoder, modifying only a tiny portion of the model's parameters and leaving the rest of the model unaffected. We empirically evaluate ReFACT on an existing benchmark, alongside a newly curated dataset. Compared to other methods, ReFACT achieves superior performance in both generalization to related concepts and preservation of unrelated concepts. Furthermore, ReFACT maintains image generation quality, making it a practical tool for updating and correcting factual information in text-to-image models.

View on arXivView PDF

Code Implementations(1)

121PythonMay 31, 20232 years ago

Similar Papers

Cite this paper

@article{arad2023refact,
  title  = {ReFACT: Updating Text-to-Image Models by Editing the Text Encoder},
  author = {Dana Arad and Hadas Orgad and Yonatan Belinkov},
  year   = {2023},
  eprint = {2306.00738},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.00738v2}
}

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/2306.00738.svg)](https://codeofpaper.com/paper/2306.00738)

Discussion