English

Espresso: Robust Concept Filtering in Text-to-Image Models

Computer Vision and Pattern Recognition 2025-02-27 v7 Cryptography and Security

Abstract

Diffusion based text-to-image models are trained on large datasets scraped from the Internet, potentially containing unacceptable concepts (e.g., copyright-infringing or unsafe). We need concept removal techniques (CRTs) which are i) effective in preventing the generation of images with unacceptable concepts, ii) utility-preserving on acceptable concepts, and, iii) robust against evasion with adversarial prompts. No prior CRT satisfies all these requirements simultaneously. We introduce Espresso, the first robust concept filter based on Contrastive Language-Image Pre-Training (CLIP). We identify unacceptable concepts by using the distance between the embedding of a generated image to the text embeddings of both unacceptable and acceptable concepts. This lets us fine-tune for robustness by separating the text embeddings of unacceptable and acceptable concepts while preserving utility. We present a pipeline to evaluate various CRTs to show that Espresso is more effective and robust than prior CRTs, while retaining utility.

Keywords

Cite

@article{arxiv.2404.19227,
  title  = {Espresso: Robust Concept Filtering in Text-to-Image Models},
  author = {Anudeep Das and Vasisht Duddu and Rui Zhang and N. Asokan},
  journal= {arXiv preprint arXiv:2404.19227},
  year   = {2025}
}

Comments

ACM Conference on Data and Application Security and Privacy (CODASPY), 2025

R2 v1 2026-06-28T16:10:41.617Z