Exploring Advertising Manipulation in Diffusion Image Generation

Tianshi Che, Yang Zhou, Yushan Mu, Zeru Zhang, Zijie Zhang, Panqiu Xia, Wei Zhang, Longwei Wang, yelong shen, Ruoming Jin, Jianfeng GaoNeurIPS 2026

TL;DR

Imagine downloading a custom Stable Diffusion checkpoint for its cool artistic style, only to find it subtly slipping McDonald's logos into your completely unrelated scenes. This paper introduces AATIM, a framework demonstrating how adversaries can compromise text-to-image models to seamlessly blend brand placements into everyday generations—no weird trigger words required—and mathematically "armor" the manipulation so it survives even if you fine-tune the model on clean data.

What Problem Does This Paper Address?

Sharing custom-tuned text-to-image diffusion models (T2I DMs) on hubs like HuggingFace and Civitai is standard practice. However, this creates an opening for "adversarial advertising": tampering with a model's weights so that benign user prompts quietly yield images containing a target brand, without user consent.

Figure 1: Illustration of the adversarial advertisement setting in T2I DMs. (Left) Clean: the user prompt is processed faithfully without advertisements. (Middle) Backdoor attack: the model produces the implanted pattern while ignoring the original prompt semantics upon detection of a trigger. (Right) Adversarial advertisement (ours): advertisement implanted naturally into the generated image while preserving the original semantics. More examples are in Appendix A.7.

Adapting standard backdoor attacks for this fails on two fronts:

  1. Unnaturalness: Traditional backdoors rely on bizarre, out-of-context triggers (like typos such as "diffusoin" or gibberish tokens like "mignneko") that rarely occur in normal use, are easily caught by spellcheckers, and often hijack the entire image while ignoring the user's prompt.
  2. Fragility: Users frequently fine-tune downloaded checkpoints on their own clean data, which quickly overwrites and erases naive backdoors.

The authors ask: Can an attacker implant trigger-free advertisements that look completely natural, preserve prompt semantics, and survive downstream fine-tuning?

Methods

AATIM compromises the model's text encoder in two novel stages—one statistical, one mathematical:

  • 1. Navigating the Heavy-Tailed Prompt Space (MCPHL): Natural language statistics are notoriously "heavy-tailed" (a few patterns are ubiquitous, while a vast array of expressions are rare, unlike a neat bell curve). Standard light-tailed distributions fail to capture this geometry. The authors design a new Multivariate Continuously Scaled Phase-type with Lévy (MCPHL) distribution to map the latent embedding space of natural sentences containing the target brand (generated via a language model). During the attack, the victim text encoder is trained not only to pull clean prompt embeddings toward brand-augmented ones, but also toward high-density regions of this MCPHL distribution—ensuring perturbations stay semantically natural.
Figure 2: Adversarial advertisement implantation.
  • 2. Masked Parameter Smoothing via Mollification: To survive user fine-tuning, the authors draw a clever analogy: parameter shifts during fine-tuning act just like adversarial noise on inputs. While "randomized smoothing" normally certifies robustness against noise, its protective radius shrinks to near-zero ($O(1/\sqrt{d})$) in models with millions of parameters ($d$), and smoothing all weights ruins image quality. Instead, the authors use gradient magnitudes to find the small subset of weights actually responsible for the target brand, creating an importance mask. They then convolve the model with a mathematical Friedrichs kernel (mollification) scaled by this mask. This smooths out the optimization landscape around brand-critical weights, yielding a dimension-independent certified radius of robustness without sacrificing utility.
Figure 3: Effect of mollification. Left: model f(w) with w (black dot) and R (dashed circle). Right: smoothed model g(w) with a smoother decision boundary and larger certified radius Rs, thus more robust to parameter perturbations (e.g., user fine-tuning).

Datasets

The authors evaluate AATIM across three standard text-image benchmarks—MS-COCO, LAION-5B, and Conceptual Captions (CC)—feeding their captions into three T2I architectures: Stable Diffusion v1.5 (SD), LDM, and DeepFloyd IF. No new benchmark datasets are introduced, though a language model is used to dynamically augment prompts with the target brand (primarily McDonald's) during attack training.

Key Insights and Ideas

  • Distribution geometry dictates image coherence: Replacing MCPHL with standard Gaussian mixtures, Student-t distributions, or Normalizing Flows noticeably degrades both ad success and image quality. Respecting the heavy-tailed nature of language embeddings is what keeps the injected ads from looking like jarring copy-pastes.
  • Fine-tuning is just weight-space perturbation: Treating downstream fine-tuning as an $\ell_p$-norm attack on model weights unlocks tools from certified adversarial robustness that are usually reserved for input pixels.
  • Targeted smoothing breaks the curse of dimensionality: Selective, masked mollification avoids the $O(1/\sqrt{d})$ collapse of traditional randomized smoothing, proving you can lock in specific model behaviors even in massive parameter spaces.

Key Results

AATIM outperforms nine backdoor and personalization baselines (including BAGM, VillanDiffusion, and DreamBooth), even when baselines are given triggers in 80% of test prompts—while AATIM uses zero triggers:

  • Higher Implant Rates: On SD + COCO, AATIM achieves an 86.0% Visual Classification Attack Success Rate ($\text{ASR}_{\text{VC}}$) and 70.3% Vision-Language ASR ($\text{ASR}_{\text{VL}}$), beating trigger-assisted baselines by an average of 38.5% and 33.4%, respectively.
  • Superior Image Quality: AATIM achieves the best generation quality on SD + COCO, posting the highest CLIP alignment score (20.33) and lowest FID (154.54).
  • Resilience to Fine-Tuning: After user fine-tuning on clean data, AATIM suffers the smallest drop in attack success (e.g., $\Delta\text{ASR}_{\text{VC}}$ of just 0.149 on SD + COCO, up to 64.8% less degradation than baselines). Out of 1,000 post-fine-tuning generations, AATIM successfully implanted ads in 732 images, compared to 426 for the runner-up (BLIP-Diffusion) and 341 for BAGM.

Limitations and Future Work

Not discussed in the paper. (Note: Within the provided main text, the authors constrain the threat model such that an attacker needs white-box parameter access, cannot alter model architecture, and holds no control over user inference—and the theoretical robustness guarantee holds strictly within the bounded $\ell_p$ radius $r_p$—though a dedicated limitations or future work section is not included in the main body).

Summary updated

Abstract

As text-to-image diffusion models (T2I DMs) become widely deployed, adversarial advertising has emerged as a realistic threat: an attacker may compromise a T2I DM so that it implants target product brands into images generated from users' non-advertising prompts. Two key challenges remain largely unresolved in this setting: achieving natural and semantically coherent adversarial advertisement and ensuring robust adversarial advertisement. To address these challenges, we develop a new estimation algorithm for the multivariate continuously scaled phase-type with Lévy (MCPHL) distribution to capture the intrinsic distribution of natural advertisement prompts in the prompt-embedding space. With the estimated MCPHL, we construct an attack that pushes non-advertising prompts toward high-density regions of this distribution, making the resulting perturbed prompts better aligned with natural advertising prompts. We then propose a masked parameter smoothing approach grounded in mollification theory, yielding a smoothed T2I DM equipped with a dimension-invariant certified guarantee against advertisement degradation under model fine-tuning. The masking mechanism preserves utility by avoiding unnecessary smoothing on sensitive parameters, and our theoretical analysis shows that the smoothed model better preserves adversarial advertisements under fine-tuning, while maintaining better generation quality.
BibTeX
@inproceedings{che2026exploring,
  author = {Tianshi Che and Yang Zhou and Yushan Mu and Zeru Zhang and Zijie Zhang and Panqiu Xia and Wei Zhang and Longwei Wang and yelong shen and Ruoming Jin and Jianfeng Gao},
  title = {{Exploring Advertising Manipulation in Diffusion Image Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=qzXTcdJ3oV},
}
Figure