Skip to main navigation Skip to search Skip to main content

AlignGuard: Scalable Safety Alignment for Text-to-Image Generation

  • Runtao Liu
  • , Chen I Chieh
  • , Jindong Gu
  • , Jipeng Zhang
  • , Renjie Pi
  • , Qifeng Chen
  • , Philip H. S. Torr
  • , Ashkan Khakzar
  • , Fabio Pizzati

Research output: Chapter in Book/Conference Proceeding/Report › Conference Paper published in a book › peer-review

Abstract

Text-to-image (T2I) models have become widespread, but their limited safety guardrails expose end users to harmful content and potentially allow for model misuse. Current safety measures are typically limited to text-based filtering or concept removal strategies, able to remove just a few concepts from the model's generative capabilities. In this work, we introduce AlignGuard, a method for safety alignment of T2I models. We enable the application of Direct Preference Optimization (DPO) for safety purposes in T2I models by synthetically generating a dataset of harmful and safe image-text pairs, which we call CoProV2. Using a custom DPO strategy and this dataset, we train safety experts, in the form of low-rank adaptation (LoRA) matrices, able to guide the generation process away from specific safety-related concepts. Then, we merge the experts into a single LoRA using a novel merging strategy for optimal scaling performance. This expert-based approach enables scalability, allowing us to remove 7 times more harmful concepts from T2I models compared to baselines. AlignGuard consistently outperforms the state-of-the-art on many benchmarks and establishes new practices for safety alignment in T2I networks.
Original languageEnglish
Title of host publicationProceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages17024-17034
Number of pages11
ISBN (Electronic)9798331587758
ISBN (Print)9798331587765
DOIs
Publication statusPublished - 29 Apr 2026
Event2025 IEEE/CVF International Conference on Computer Vision, ICCV 2025 - Honolulu, United States
Duration: 19 Oct 2025 → 25 Oct 2025

Publication series

NameProceedings of the IEEE International Conference on Computer Vision
PublisherInstitute of Electrical and Electronics Engineers Inc.
ISSN (Print)1550-5499

Conference

Conference2025 IEEE/CVF International Conference on Computer Vision, ICCV 2025
Country/TerritoryUnited States
CityHonolulu
Period19/10/25 → 25/10/25

Bibliographical note

Publisher Copyright:
© 2025 IEEE.

Fingerprint

Dive into the research topics of 'AlignGuard: Scalable Safety Alignment for Text-to-Image Generation'. Together they form a unique fingerprint.

Cite this