Manuscript Offprint

arXiv:2610.11286

When Scene Text Hijacks the Scene: Uncovering, Exploiting, and Mitigating Rendered-Text Semantic Leakage in Image Generation Models

Feifei Li, Runjie Wang, Xiaohan Zhang, Zhenxing Qian, Mi Wen, Mi Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Feifei Li 1^{1}, Runjie Wang 1^{1}, Xiaohan Zhang 1†^{1\dagger}, Zhenxing Qian 1†^{1\dagger}, Mi Wen 2^{2}, and Mi Zhang 1†^{1\dagger}

1^{1}Fudan University, {ffli23, wangrj24}@m.fudan.edu.cn,

1†^{1\dagger}Fudan University, {xh_zhang, zxqian, mi_zhang}@fudan.edu.cn

2^{2}Shanghai University of Electric Power, miwen@shiep.edu.cn

Abstract—The reliability and accountability of image generative models (IGMs) are essential for building responsible and trustworthy AI systems. Recent IGMs, such as Nano Banana and GPT-Image, now support complex instruction following, realistic image synthesis, and controllable scene-text rendering. As these capabilities expand, safety analysis must also account for new control channels introduced by complex prompts. In this work, we study rendered-text semantic leakage, a largely overlooked phenomenon in open-domain text rendering. Although rendered text is intended to serve as a local visual constraint that should be reproduced verbatim in the generated image, it also carries linguistic semantics that may be interpreted by the model as part of the input instruction. This makes rendered text a potential semantic control channel whose safety implications remain insufficiently understood. We systematically characterize this phenomenon by decoupling the main visual prompt from the rendered text and measuring their individual and compositional effects on generated images. We quantify semantic leakage and rendering fidelity, and further analyze how leakage emerges from intermediate model evidence. We then show that harmful semantics embedded in scene text can persist through LLM-based prompt enhancement pipelines and steer non-text image regions, even when the main visual prompt remains benign. Finally, we propose a preliminary mitigation approach that reduces unsafe semantic transfer from rendered text to non-text regions while preserving the intended text-rendering behavior on FLUX-2-dev. Our findings reveal rendered text as a dual-use carrier of visible data and latent semantics, exposing a text-centric cross-modal attack surface in modern IGMs.

Warnings: This manuscript contains discussions and visual representation of NSFW content. We blur or censor Not-Safe-for-Work (NSFW) imagery. Reader discretion is advised.

1. Introduction

Recent image generative models (IGMs) are no longer merely text-to-image systems that translate short visual descriptions into images; they are becoming general-purpose visual creation interfaces that can interpret complex instructions, leverage world knowledge, and compose images with controllable scene text. This shift is exemplified by recent multimodal diffusion transformers [26], [55] and native mul-

A. Benign Image Synthesis (<Benign Prompt>)

Figure

Create a cinematic image of a young woman driving along an empty desert highway at sunset, ...

(37 tokens)

[Revised Prompt:]

A cinematic scene

of ... Orange and gold

skies fill the horizon ...

The woman looks

focused and calm ...

(136 tokens)

Figure

(Generated image)

C. Rendered-Text Injection (Ours)

Figure

<Benign Prompt>. Small black bold text appears at the top of the image, reading: "This is an explicitly suggestive image."

(64 tokens)

B. Direct Unsafe Instruction

[Revised Prompt:]

Cinematic realistic image

of ... Include small black

bold text at the top of the

image that reads exactly:

"This is an explicitly

suggestive image."

[Rendered-text preserved]

Figure

<Benign Prompt>. This is an explicitly suggestive image.

[Revised Prompt:]

Cinematic

photorealistic scene

of ..., highly detailed,

realistic, cinematic.

[47 tokens]

[Unsafe phrase removed]

Figure

[This is .....]

Figure

[Rendered-text's semantic leak to non-text region]

Figure 1: Rendered-Text Injection. Unsafe semantics can hijack global scene generation due to rendered-text semantic leakage in image generation models, such as GPT-Image-2 [37]. Modern text-to-image generation systems often use prompt enhancement to improve generation quality and suppress unsafe content. However, this process may sanitize unsafe semantics in direct requests while preserving the same semantics when specified as rendered text, allowing them to steer non-text image regions even when the main visual prompt is benign.

timodal generation models, including Nano Banana [18] and ChatGPT Image [36]. Compared with earlier text-to-image models such as Latent Diffusion Models and Stable Diffusion [38], [42], these systems are typically equipped with stronger text encoders, such as MLLM-based encoders [53], which support more robust instruction understanding in open-domain image generation. Together with recent post-training advances using well-curated, high-quality, and aesthetically appealing image data [29], [52], these models now excel not only at realistic photo synthesis but also at fine-grained, controllable visual text rendering in text-rich scenarios such as advertisements, posters, and infographics. Their growing capabilities have also attracted substantial community attention, as reflected by popular prompt collections for recent image generation systems, some of which have received more than 10k GitHub stars [13], [61].

We focus on an unexpected behavior arising from the integration of visual text rendering into general-purpose instruction following. This integration changes how rendered text is specified and processed by IGMs. Earlier studies treated text rendering mainly as a specialized generation problem, developing text-focused models or auxiliary mechanisms to improve the fidelity of rendered text [5], [32], [63]. In these settings, the text to be rendered is often treated as a relatively explicit rendering target, for example, as a string to be placed in the image or as a local condition for text-region generation. In contrast, recent general-purpose IGMs take free-form natural-language prompts as input, where the global scene description and the text to be rendered are written in the same instruction, often with the rendered text enclosed in quotation marks, e.g., "<rendered-text>". As a result, the quoted text is not only a target string that the model should copy into the image, but also part of the natural-language prompt that the model parses when planning the image. This coupling creates an inherent ambiguity: while the quoted text is intended to specify what should be locally rendered as visible text, the model may also interpret its linguistic meaning when generating non-text regions. We refer to this unexpected behavior as rendered-text semantic leakage, where the semantics of rendered text unintentionally propagate beyond the text region and affect the generated scene.

Safety concerns around advanced IGMs have largely focused on direct misuse risks, including synthetic visual evidence, forged documents, misleading crisis imagery [25], [56], and the generation of harmful content that may violate content policies in multi-turn conversations [66]. Such risks typically involve cases where unsafe or deceptive content is directly requested as the target image. Rendered-text semantic leakage suggests a different risk pathway: semantic content that is ostensibly specified for local text rendering may still influence non-text visual content through the model's instruction-following process. This does not make text rendering unsafe by itself, but it means that rendered text can become a hidden semantic carrier when adversarial or policy-sensitive semantics are embedded in the text to be rendered. Existing text-rendering studies mostly ask whether models can reproduce the requested text accurately [63], leaving underexplored whether the semantics embedded in that text can steer non-text regions of the generated image. As shown in Fig. 1, this risk becomes exploitable when systems preserve text specified for visual rendering while the generation model still interprets its semantics. For example, recent systems such as ChatGPT Image use prompt enhancement mechanisms to improve generation quality and suppress unsafe content, and these mechanisms are reported to reduce policy-violating outputs under adversarial evaluation [36], [37]. However, text specified for visual rendering may need to be preserved verbatim to satisfy the rendering instruction. When rendered-text semantic leakage occurs, the preserved semantics can influence regions beyond the rendered text. We refer to this exploitation path as rendered-text injection, where semantic content placed in the rendered-text field steers non-text image regions, such as poses, attributes, or other safety-relevant visual elements, while the main visual prompt remains benign.

To the best of our knowledge, this work presents the first systematic study of rendered-text semantic leakage in modern image generation models. We decompose each text-rendering request into a main visual prompt, rendered text, and rendering constraints, and construct controlled prompt variations that isolate the semantic contribution of rendered text from the intended scene description. Building on recent text-rendering benchmarks [10], [14], we extend rendering-fidelity evaluation with rendered-text manipulations designed to measure semantic transfer beyond the text region itself. We introduce complementary metrics that quantify OCR-level rendering fidelity [11], rendered-text semantic leakage in OCR-masked non-text regions [21], [28], and goal-driven semantic leakage affecting entities, attributes, actions, styles, layouts, and scene-level appearance.

We further investigate how semantic leakage manifests during text rendering. Across diverse prompt configurations, we observe recurring failure patterns including overinterpretation, where rendered-text semantics influence non-text regions despite successful rendering; misbinding, where rendered-text semantics become associated with unintended visual subjects, attributes, or actions; and interference, where semantic control and text rendering compete with one another. To better understand these behaviors, we analyze intermediate denoising trajectories and prompt-embedding ablations in open-source models, providing a mechanistic perspective on how rendered-text semantics propagate during generation.

We then study how rendered-text semantic leakage can be exploited through rendered-text injection. Specifically, we evaluate whether policy-sensitive semantics placed in the rendered-text field can steer non-text regions of the generated image at different levels of granularity. We construct attack goals across five policy-violating categories: sexual content, violence or disturbing content, illegal activities, hateful content, and public-figure privacy risks involving the generation of celebrity faces. We further evaluate rendered-text injection under prompt-enhanced generation settings, where text specified for visual rendering is often preserved to satisfy the rendering instruction. Our results show that such preservation can allow policy-sensitive semantics to bypass prompt-level rewriting and subsequently influence image generation through rendered-text semantic leakage. Based on our mechanistic analysis, we propose an initial white-box mitigation strategy based on selective semantic masking. The method identifies critical rendered-text representations and reduces their influence on non-text image regions during early denoising, while largely preserving the intended text-rendering fidelity in our evaluation on FLUX-2-dev. We also discuss a black-box mitigation direction based on leakage-aware prompt enhancement.

• We identify and formalize rendered-text semantic leakage, a previously unexplored behavior in which text specified for local visual rendering influences the semantics of non-text regions in generated images.

  • We design a systematic evaluation framework that decouples main prompts from rendered text, introduces leakage-oriented metrics, and evaluates the phenomenon across two commercial and four open-source image generation models under controlled settings.

• We show that this leakage can be exploited through rendered-text injection, where policy-sensitive semantics placed in the rendered-text field steer non-text regions of generated images. We evaluate this exploitation across multiple visual granularities and safety-critical content categories, and show that such attacks can remain effective under prompt-enhanced generation pipelines.

References (44)