cs.AIOct 1, 2026

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

Authors: NaHyeon Park, Minhyun Lee, Hyunjung Shim

Organizations: KAIST · Samsung Electronics

Abstract

Training-free safeguards for text-to-image generation often rely on a reusable safety signal, such as an unsafe direction or global toxic subspace, applied broadly across prompts. We provide a controlled geometric analysis of this global-unsafety assumption and reveal a consistent coverage-selectivity trade-off: compact unsafe subspaces fail to cover heterogeneous unsafe semantics, whereas broader aggregation increasingly distorts safety-adjacent benign prompts. Motivated by this finding, we propose CALM (Counterfactual Adaptive Local Modulation), a training-free safeguard that replaces uniform global removal with prompt-local counterfactual correction. Using matched unsafe-benign anchors, CALM routes each prompt to active unsafe categories, minimally edits only violating token representations toward the safe side, and suppresses positively aligned unsafe residual components. Across broad evaluation, CALM significantly improves unsafe content suppression while preserving benign utility, demonstrating that local counterfactual correction provides a more selective alternative to global unsafe signal removal.

Explore similar work

CardsList
  1. No Safe Dose: How Training Data Drives Unsafe Image Generation

    May 27, 2026Felix Friedrich, Lukas Helff, Niharika Hegde +2Safe T2I GenerationData Contamination

  2. Introspective Attention Modulation for Safe Text-to-Image Generation

    Jul 16, 2026Basim Azam, Hossein Rahmani, Naveed AkhtarDiffusion TransformerT2I Generation

  3. When Guidance Becomes a Guard: Early Interception of Unsafe Inputs in Text-to-Image Generation

    Oct 19, 2026Yanchun Li, Yujin Wu, Gangkai Shen +5Safe T2I GenerationT2I Diffusion Models