# Keep It CALM: Analyzing the Limits of Global Unsafety in Text-to-Image Generation

*NaHyeon Park, Minhyun Lee, Hyunjung Shim*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/152066) · [Open on the map](../papers.html#p152066)

Category: [Diffusion & Image Generation](../pcat/5.md) › [Text-to-Image Diffusion Control](../pgroup/288.md) · Type: new method · Keywords: text-to-image generation safety, global unsafe subspace, coverage-selectivity trade-off, counterfactual correction, training-free safeguard

Areas: [Multimodal](../areas/multimodal.md) › Multimodal Creation and Editing › Safe Generation; [Safety & Security](../areas/safety.md) › Generative Model Integrity › Concept Erasure and Safety Steering

## Summary
The paper reveals a coverage-selectivity trade-off in global unsafe-signal removal for text-to-image models and introduces CALM, a training-free safeguard that uses prompt-local counterfactual correction to better suppress unsafe content while preserving benign utility.

## Explained to a 5-year-old
Computers can make pictures when you give them words. Sometimes the pictures show things that are not good, like violence or bad language. To help, people add safety rules so the computer won't make those pictures. The safety rules often work like a big filter that blocks many things at once. This works for some bad pictures, but it also blocks some nice pictures that are okay. The new idea looks at each picture separately and only removes the bad parts.

## Explained to a 5-year-old, longer
Computers can make pictures when you give them words. Sometimes the pictures show things that are not good, like violence or bad language. To help, people add safety rules so the computer won't make those pictures. The safety rules often work like a big filter that blocks many things at once. This works for some bad pictures, but it also blocks some nice pictures that are okay. The new idea looks at each picture separately and only removes the bad parts. It uses special pairs of good and bad words to know what to change. By editing only the wrong parts, the picture stays nice and safe. This makes the safety filter smarter and more precise. It helps keep the good pictures while stopping the bad ones. The method is called a local correction, meaning it works on each picture individually. Overall, it makes the computer's drawing safer without losing its creativity.

## For a technical reader
The paper examines how current safety mechanisms for text-to-image models rely on a single global unsafe direction that is removed from all generated outputs. This approach suffers from a trade-off: small unsafe subspaces miss many harmful semantics, while larger subspaces distort benign prompts. The authors perform a geometric analysis that quantifies this coverage-selectivity problem. They then propose a training-free safeguard that uses matched unsafe-benign anchors to locally adjust token representations, suppressing only the unsafe components for each prompt. Experiments show the new method improves unsafe-content suppression while preserving the quality of safe generations.

## Problem
Training-free safeguards for text-to-image diffusion models often assume a single global unsafe direction that can be removed uniformly, but this assumption may not adequately cover diverse unsafe semantics while preserving benign prompts.

## Method
The approach performs a geometric analysis of global unsafe-signal removal, identifies a coverage-selectivity trade-off, and proposes a training-free safeguard that uses matched unsafe-benign anchors to locally edit token representations and suppress unsafe residuals for each prompt.

## Results
The approach achieves better suppression of unsafe content while maintaining benign prompt quality across a broad evaluation.

## Contributions
The paper provides a geometric analysis of global unsafe-signal removal, reveals a coverage-selectivity trade-off, and introduces a training-free local counterfactual correction method that improves safety without harming benign generation.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/152066)
