A modular approach to enhancing safety in text-to-image diffusion models via targeted LoRA fine-tuning

This paper discusses recent advances in text-to-image generative models, which improve image quality and prompt alignment but also introduce vulnerabilities to harmful content from adversarial prompts.Existing safety measures often fail against complex attacks.We propose a novel safety approach using targeted Low-Rank Adaptation (LoRA) fine-tuning combined with Metric learning.Our approach aimed for modification of latent vectors of harmful prompts, aligning them with safe content to reduce unsafe outputs.Experiments demonstrate safety levels comparable to industry benchmarks, particularly when adapters are trained on specific harm categories.Our study provides a reusable framework to protect against harmful outputs that can be scaled to protect against multiple prompt categories.

Institutions

Publication Details

Published
2025-05-16
DOI
https://doi.org/10.31110/colins/2025-2/001
Primary Topic
Crystal structures of chemical compounds
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A modular approach to enhancing safety in text-to-image diffusion models via targeted LoRA fine-tuning

Crystal structures of chemical compounds
article

A modular approach to enhancing safety in text-to-image diffusion models via targeted LoRA fine-tuning

article en

Abstract

This paper discusses recent advances in text-to-image generative models, which improve image quality and prompt alignment but also introduce vulnerabilities to harmful content from adversarial prompts.Existing safety measures often fail against complex attacks.We propose a novel safety approach using targeted Low-Rank Adaptation (LoRA) fine-tuning combined with Metric learning.Our approach aimed for modification of latent vectors of harmful prompts, aligning them with safe content to reduce unsafe outputs.Experiments demonstrate safety levels comparable to industry benchmarks, particularly when adapters are trained on specific harm categories.Our study provides a reusable framework to protect against harmful outputs that can be scaled to protect against multiple prompt categories.

Kharkiv National University of Radio Electronics (UA), V. N. Karazin Kharkiv National University (UA)
Openalex Percentile: Top 58%
Crystal structures of chemical compounds
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.