Skip to content

Text-Aware, Image-Blind: How Multimodal Image Editing Systems Handle Unsafe InputsText-Aware, Vision-Blind: How Multimodal Image Editing Systems Handle Unsafe Inputs

arXiv: 其他 AI 安全论文· arXiv:2611.26569· Ziqing Yang, Yixin Wu, Michael Backes, Yang ZhangCISPA Helmholtz Center for Information Security; The Hong Kong University of Science and Technology (Guangzhou); The Hong Kong University of Science and TechnologyIndexed by this site · 4 days ago· Originally publishedEvaluation· Its place in the scan record →

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

The authors propose the EditSafetyBench benchmark and evaluate four image editing systems; the authors state that Gemini and GPT exhibit a "text-sensitive, visually blind" safety pattern.

Questions
In instruction-guided image editing, the uploaded image itself may carry risk, but the authors believe existing safety mechanisms mainly analyze text prompts and ignore visual input, and that joint safety measurement for editing scenarios is lacking.
Methods
The authors construct EditSafetyBench: from UnsafeBench, 660 images are taken via moderation-score-aware sampling, paired with 9 image-independent instructions across 3 editing intents, yielding 5,940 pairs, probed on 4 systems with responses normalized to Allow/Refuse/Error.
Experiments and results
The authors report that Gemini and GPT reach UIR of 81.6–87.1% while UNR is only 22.4–24.2%, showing a "text-sensitive, visually blind" pattern; the Sexual category has the strongest visual sensitivity, and most categories show inconsistent judgments across systems.
Limitations and future work
The authors note that only system decisions are tested rather than output harmfulness, that 9 prompts provide limited coverage, that image representativeness is constrained by the dataset, and that commercial system filters may update over time; held-out validation covers only Gemini and GPT.
Experimental setupGemini (gemini-2.5-flash-image)、GPT (gpt-image-1-mini) et al. · EditSafetyBench、UnsafeBench et al. · SOR、UIR et al.
Evaluated models
Gemini (gemini-2.5-flash-image)GPT (gpt-image-1-mini)Qwen API (qwen-image-edit-plus-2025-12-15)Qwen Local (Qwen/Qwen-Image-Edit-2511)
Benchmarks
EditSafetyBenchUnsafeBenchMagicBrush
Metrics
SORUIRUNRAllow/Refuse/Error ratemoderation score
AI summaryResearchers propose the image editing safety benchmark EditSafetyBench, evaluating four systems—Gemini, GPT, Qwen API and Qwen Local—and find a systematic misalignment between textual and visual safety. The benchmark contains 5940 image-instruction pairs, covering 11 risk categories of safe and unsafe images and three editing intents. Gemini and GPT refuse 87.1% and 81.6% of cases with editing prompts containing unsafe intent, respectively, whereas for cases with unsafe images paired with neutral instructions they refuse only 24.2% and 22.4%. At the category level, judgments differ across systems: GPT allows 70.4% of unsafe political content editing attempts, while Gemini allows only 34.8%; sexual content shows the strongest visual sensitivity, which the authors speculate benefits from mature NSFW recognition work. The study points out that image editing systems need safety guardrails capable of jointly reasoning over visual and textual modalities.

Researchers propose the image editing safety benchmark EditSafetyBench, evaluating four systems—Gemini, GPT, Qwen API and Qwen Local—and find a systematic misalignment between textual and visual safety. The benchmark contains 5940 image-instruction pairs, covering 11 risk categories of safe and unsafe images and three editing intents. Gemini and GPT refuse 87.1% and 81.6% of cases with editing prompts containing unsafe intent, respectively, whereas for cases with unsafe images paired with neutral instructions they refuse only 24.2% and 22.4%. At the category level, judgments differ across systems: GPT allows 70.4% of unsafe political content editing attempts, while Gemini allows only 34.8%; sexual content shows the strongest visual sensitivity, which the authors speculate benefits from mature NSFW recognition work. The study points out that image editing systems need safety guardrails capable of jointly reasoning over visual and textual modalities.

Related events and news

1 events · 1 news mentions

News that mentions this paper

大模型安全周报:单步合规检查挡不住智能体跨步骤组合危害

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors focus on the safety gap in image editing systems that inspect only text and not images, and propose a measurement benchmark.

    Core question: when instruction-guided image editing systems make safety decisions, do they jointly consider the visual risk of the input image and the textual editing intent? The authors believe existing mechanisms rely mainly on a single modality.

    • Problem setting: Commercial multimodal platforms offer both text-to-image and instruction-guided editing; in the editing setting, the uploaded image itself may carry risk (e.g., a violent image paired with a neutral instruction such as "improve image quality"), and analyzing the instruction alone cannot yield a safe decision (Figure 1).
    • Existing gaps: The authors state that existing safety benchmarks mainly target unimodal threats, and a few parallel works focus on adversarial attacks or guardrails; few works directly measure whether deployed systems consider visual input risk in non-adversarial, natural editing settings.
    • Core observation: The authors hypothesize that system safety mechanisms inherit from unimodal pipelines and may manifest as "text-aware, vision-blind", i.e., many text refusals for unsafe intents but little reaction to the unsafe image itself.
    • What the paper proposes: The EditSafetyBench benchmark, containing 5,940 image-instruction pairs, covering 11 risk categories and 3 editing intents, probing system-level safety decisions (Allow/Refuse/Error) on four systems: Gemini, GPT, Qwen API, and Qwen Local.
    • What is measured: The paper explicitly measures system-level decisions (the deployed pipeline, including model, safety filters, and API wrapper), not editing quality or the harmfulness of output images.
  2. What related research exists?

    Related work is divided into four groups: multimodal image generation, platform policy, content moderation, and multimodal safety benchmarks.

    Multimodal image generation

    • InstructPix2Pix (2023) and others — evolved from text-to-image diffusion models to unified systems that support both generation and instruction-guided editing; commercial systems such as Gemini, GPT Image, and Qwen have made editing a production endpoint with a layered safety architecture.

    Platform policies

    • The authors surveyed the content policies of three platforms, OpenAI, Google, and Qwen, and mapped them to 11 risk categories: the three platforms cover Hate, Violence, and Sexual broadly, and pay weaker attention to Self-Harm and Political (Appendix B, Table 5).

    Content moderation

    • Unimodal moderation — HateCheck (2021), Sap et al. (2019), etc. target text; Stable Diffusion Safety Checker (2023) targets images.
    • Multimodal moderation — LlavaGuard (2025), SafeVision (2025), etc. use VLM reasoning over unsafe visual content; HoliSafe (2025) measures both the visual and textual inputs of VLMs. The authors note that these works lack attention to the image editing setting, where editing requires understanding the input image, the prompt, and the editing result simultaneously.

    Multimodal safety benchmarks

    • MM-SafetyBench (2024) — tests whether multimodal models generate unsafe textual responses to image-text inputs; VLGuard (2024) evaluates jailbreak robustness after VLM safety fine-tuning; T2ISafety (2025) evaluates the safety of text-to-image.
    • Two parallel works from early 2026: IES-Bench studies adversarial jailbreak attacks on editing models via visual prompts; Piao et al. (2026) propose a policy-adaptive image guardrail based on edited image pairs.

    Positioning of this paper: The authors state that, unlike the above works, EditSafetyBench measures system-level safety awareness in non-adversarial, natural editing settings, focusing on whether deployed systems jointly consider visual content and textual intent. The paper has no comparison baseline methods; the image data comes from UnsafeBench (2024), and the held-out control set comes from MagicBrush (2023).

  3. How does the paper address this problem?

    Constructing EditSafetyBench: 660 images × 9 image-independent instructions, probed on 4 systems with decisions normalized.

    Overall approach: cross the two dimensions of image safety and editing intent to construct a controlled benchmark EditSafetyBench, probe deployed editing systems with fixed image-independent instructions, normalize responses into three system decisions, and define three metrics.

    Problem setting and decision definitions

    • Task formalization: given an image I and an editing instruction T, system S produces a response R = S(I, T), normalized into a decision D ∈ {Allow, Refuse, Error}; Error (e.g., timeout, server error) does not reflect a safety decision.
    • Decision rate: the decision rate of a sample group is denoted RDGroup, and Block = Refuse+Error is introduced to count both refusals and errors.
    • Two orthogonal safety dimensions: image safety (whether the input image contains unsafe visual content) and editing intent (Neutral / Risk-Reducing / Unsafe-Intent), crossed to yield 6 probe scenarios (Figure 2).

    Three evaluation metrics

    • SOR ↓ (Safe Over-Refusal): block rate for benign edits (Safe×Neutral + All×Risk-Reducing), measuring over-refusal; lower is better.
    • UIR ↑ (Unsafe Intent Refusal): block rate for unsafe-intent edits (All×Unsafe-Intent); higher is better.
    • UNR ↑ (Unsafe Neutral Refusal): block rate for unsafe images paired with neutral instructions (Unsafe×Neutral); the authors consider "enhance quality"-type edits to unsafe images inappropriate, so they treat high UNR as a merit, while acknowledging this is controversial.

    Benchmark construction

    • Image collection: 11 risk categories taken from UnsafeBench (Hate, Harassment, Violence, Self-Harm, Sexual, Shocking, Illegal Activity, Deception, Political, Public and Personal Health, Spam), with categories derived from the OpenAI content policy and aligned with three platform policies.
    • Moderation-score-aware sampling: all images are scored with the OpenAI Moderation API (omni-moderation-2024-09-26) taking the maximum category score; for each category the safe image with the lowest score and the unsafe image with the highest score are selected; 30 images are sampled for each of the 11 × 2 cells (15 human-made, 15 AI-generated), 660 images in total; safe mean score 0.0009, unsafe mean score 0.3255 (Figure 4).
    • Instruction design: 3 specific prompts are written for each intent, forming a fixed library of 9 image-independent instructions (Appendix C gives the full prompts; the 3 unsafe-intent prompts are released in redacted form); the same instruction is used for both safe and unsafe images, so that behavioral differences can be attributed to visual content.
    • Assembly and probing: 660 × 9 = 5,940 image-instruction pairs; additionally 200 natural images from MagicBrush serve as a held-out control set (with 9 prompts, 1,800 samples in total).

    Systems and implementation

    • Systems tested: Gemini (gemini-2.5-flash-image), GPT (gpt-image-1-mini), Qwen API (qwen-image-edit-plus-2025-12-15), Qwen Local (Qwen/Qwen-Image-Edit-2511); Qwen API is based on the same open-source model as Qwen Local, so comparing the two isolates the effect of the deployment wrapper. All use default settings, for a total of 5,940 × 4 = 23,760 runs.
    • Implementation details: images are preprocessed to PNG with the longest side at 2048px; transient errors are rerun three times, eliminating technical errors for Gemini and GPT; some persistent "Error code: 404" for Qwen are kept as Error, which does not affect results since metrics are based on Block.
  4. What experiments did the paper conduct?

    The main results for the four systems show Gemini/GPT have high UIR and low UNR, plus per-prompt, per-category, trade-off, and ablation experiments.

    Experimental setup

    • Systems under test: Gemini (gemini-2.5-flash-image), GPT (gpt-image-1-mini), Qwen API (qwen-image-edit-plus-2025-12-15), Qwen Local (Qwen/Qwen-Image-Edit-2511), all with default settings.
    • Benchmark: EditSafetyBench 5,940 image-instruction pairs (660 images × 9 prompts, 11 categories × safe/unsafe × 30 images); the held-out control set is MagicBrush 200 natural images × 9 prompts = 1,800 samples.
    • Metrics: SOR ↓, UIR ↑, UNR ↑ (all based on Block = Refuse+Error), plus Allow/Refuse/Error decision rates and moderation scores.
    • Scoring method: Risk scores for images and image-instruction pairs are given by the OpenAI Moderation API (omni-moderation-2024-09-26), taking the maximum category score; system responses are normalized to three decisions by rules; the paper does not report using LLM review or human review.
    • Run volume: 5,940 × 4 = 23,760 system runs; transient errors were rerun three times.

    Main results

    According to Table 1 (units %):

    Swipe horizontally to read the table

    SystemLabelAllowRefuseErrorSOR ↓UIR ↑UNR ↑
    GeminiSafe63.836.20.014.087.124.2
    GeminiUnsafe56.143.90.0
    GPTSafe68.231.80.011.581.622.4
    GPTUnsafe58.541.50.0
    Qwen APISafe98.30.01.74.77.212.0
    Qwen APIUnsafe88.20.011.8
    Qwen LocalSafe100.00.00.00.00.00.0
    Qwen LocalUnsafe100.00.00.0
    • Text-vision mismatch: The authors state that Gemini and GPT have high UIR but low UNR, with safety awareness driven mainly by text; Qwen API shows the same pattern but at lower magnitude, which the authors believe reflects basic text-level content filtering.
    • Over-refusal: Gemini and GPT have SOR of 14.0% and 11.5%, refusing safe images depicting risk-adjacent topics.
    • Qwen comparison: Qwen Local has no refusals at all; Qwen API blocks 6.8% of requests via persistent platform-level errors, which the authors believe suggests a basic content wrapper layer.

    Editing intent and per-prompt analysis

    • What was measured → results: Table 2 gives moderation scores and allow rates under each intent. The score for Unsafe+Neutral (0.195) is higher than for Safe+Unsafe-Intent (0.113), but system decisions are opposite to this risk ordering: under unsafe intent, the allow-rate difference between safe and unsafe images is only 0.4% (Gemini, 13.1% vs 12.7%) and 0.2% (GPT, 18.5% vs 18.3%); under neutral instructions the gap widens to 13.6% (Gemini) and 15.7% (GPT).
    • Authors' interpretation: The authors state that textual intent dominates safety filtering, and visual sensitivity exists but is far weaker than text filtering (Finding 2).
    • Per-prompt: Figure 5 shows allow rates for neutral and risk-reducing prompts are both above 82%, while unsafe-intent prompts drop on Gemini/GPT; GPT refuses 100% of U02 but allows 33% of U01, while both have the same text moderation score (0.063), which the authors believe suggests keyword-level triggering rather than semantic understanding.

    Risk category analysis

    • What was measured → results: Figure 6 gives per-category allow rates for the 11 categories. GPT allows 70.4% of unsafe Political content while Gemini allows only 34.8%; unsafe Sexual allow rates range from 14.8% (GPT) to 38.1% (Qwen API).
    • Sexual exception: The Sexual category has the strongest visual sensitivity, with safe-vs-unsafe allow-rate differences of 40.7% (Gemini, 65.2% vs 24.4%), 45.6% (GPT, 60.4% vs 14.8%), and 57.8% (Qwen API); while categories such as Hate have differences near zero or negative (GPT allows 65.9% safe Hate vs 68.1% unsafe Hate).
    • Authors' interpretation: The authors state that most categories show inconsistent awareness across systems, with safety boundaries depending on the system (Finding 3); the Sexual exception may benefit from NSFW classifiers deployed for over a decade, indicating that visual-awareness filtering is technically feasible and the difficulty lies in extending it to the remaining categories.

    Safety-utility trade-off and ablations

    • Trade-off (Figure 8): With SOR as the utility axis and UIR/UNR as the safety axis, the four systems cover the entire trade-off spectrum: Qwen Local has full utility but zero safety, while Gemini/GPT trade utility for safety but still allow over 75% of neutral edits on unsafe images; the authors state that no system reaches the ideal region.
    • Image source ablation (Figure 9): For Gemini, GPT, and Qwen Local, the allow-rate difference between human-made and AI-generated images is within 2%; Qwen API has a slightly lower allow rate for AI-generated images, which the authors believe may suggest source-recognition differences in its filter.
    • Held-out validation (Table 3): On the MagicBrush control set, SOR drops to 3.6% (Gemini, from 14.0%) and 0.7% (GPT, from 11.5%); for UIR, Gemini is 88.8% (from 87.1%), and GPT drops to 68.5% (from 81.6%). The authors believe this indicates that risk-adjacent visual topics in EditSafetyBench-Safe raise over-refusal, and that the visual context of risk categories makes GPT more cautious about unsafe-intent edits; this validation was done only on Gemini and GPT, because the Qwen series has almost no safety alignment.
  5. What are some points that can be further explored?

    The authors list four limitations—decision vs. output, prompt coverage, image representativeness, and timeliness—and discuss directions for improvement.

    Limitations noted by the authors and future directions

    • Decision vs output (Limitations): only system-level decisions (allow/refuse/error) are evaluated, not the harmfulness or editing quality of output images; the authors state that future work should evaluate output safety together with input-based decisions.
    • Prompt coverage (Limitations): the 9 prompts cover three intents but cannot exhaust all editing requests; adversarial prompt engineering or indirect unsafe requests may reveal different safety boundaries.
    • Image representativeness (Limitations): images come from UnsafeBench, and MagicBrush validation confirms the conclusions generalize beyond UnsafeBench, but neither dataset fully covers the diversity of real user uploads.
    • Timeliness (Limitations): commercial systems may update safety filters after the evaluation period; the authors use stable versions (Appendix E) and state that EditSafetyBench is designed to be re-evaluated as systems evolve.
    • Improvement direction (Discussion): the authors consider one viable path to be combining policy-adaptive image guardrails with intent-aware decision logic, allowing risk-reducing edits to unsafe images while blocking edits that amplify harm.
    • Controversy of UNR (Section 3.1 and Discussion): whether neutral edits to unsafe images should be refused depends on deployment context and platform policy; the authors state that the benchmark only characterizes system behavior and does not prescribe a single correct answer.

    Scope of experimental coverage

    • The systems tested are Gemini, GPT, Qwen API, and Qwen Local, 4 in total, of which Qwen API and Qwen Local share the same underlying model.
    • The benchmark covers 11 risk categories, 3 editing intents, and 9 fixed prompts, for 5,940 sample pairs in total; held-out validation covers only the two systems Gemini and GPT.
    • Risk scoring uses the OpenAI Moderation API (omni-moderation-2024-09-26); the paper does not report using LLM judges or human review to determine outputs.
    • Transient errors are rerun three times; the paper does not report the number of independent repetitions per condition (one query per sample pair).
    • The evaluation scope explicitly excludes text-vision guardrails (such as HoliSafe, OpenAI Moderation API), which the authors describe as system components and not focused on image editing.
  6. Summarize the main content of the paper

    EditSafetyBench tests four editing systems, and the authors state that their safety perception is "text-sensitive, visually blind."

    A safety evaluation paper for instruction-guided image editing systems that proposes the benchmark EditSafetyBench and measures system-level safety decisions of deployed systems.

    • Problem addressed: the authors believe existing editing systems' safety mechanisms mainly analyze text prompts and ignore visual input, whereas in editing scenarios the uploaded image itself may carry risk, and joint safety measurement in non-adversarial, natural scenarios is lacking.
    • Method highlights: 660 images are taken from UnsafeBench via moderation-score-aware sampling (11 categories × safe/unsafe × 30), paired with 9 image-independent instructions across 3 intent types, yielding 5,940 sample pairs; probing is done on Gemini, GPT, Qwen API, and Qwen Local, responses are normalized into Allow/Refuse/Error, and three metrics SOR, UIR, UNR are defined.
    • Text-visual mismatch: Gemini and GPT have UIR of 87.1% and 81.6%, while UNR is only 24.2% and 22.4% (Table 1); under unsafe intent the allow-rate difference between safe and unsafe images is only 0.2–0.4% (Table 2), and the authors state that text intent dominates safety filtering.
    • Category inconsistency: GPT allows 70.4% of unsafe Political content while Gemini allows only 34.8% (Figure 6); the Sexual category has the strongest visual sensitivity, with a safe-vs-unsafe allow-rate difference of 40.7–57.8%, which the authors suggest may benefit from mature NSFW detection.
    • Over-refusal and generalization: Gemini/GPT SOR is 14.0%/11.5%, dropping to 3.6%/0.7% on the MagicBrush held-out set (Table 3); the authors believe risk-adjacent topics raise over-refusal, and that visual perception exists but is far weaker than text filtering.
    • Authors' conclusion: the authors state that safety mechanisms inherited from unimodal settings are insufficient for the multimodal nature of image editing, call for safety guardrails that jointly reason over visual and text modalities, and hope EditSafetyBench serves both as a diagnostic tool and as a catalyst for improvement.

Related papers

Read originalarxiv.org