Back to search

Miami University

Robust and Interpretable Safety Defenses for Generative AI: Post-Hoc Multimodal Filtering for Text-to-Image Models and Inference-Time Jailbreak Defense for Large Language Models

Abstract

dc:description

Generative AI systems face two structurally distinct safety threats: adversarial prompts that cause text-to-image models to synthesize harmful content, and jailbreak attacks that coerce large language models into violating their alignment constraints. Existing defenses are fragile under adversarial pressure, depend on built-in alignment, and lack interpretability. This thesis presents two com plementary defenses. AvantiGuard is a post-hoc multimodal safety filter that combines NSFW focused LoRA fine-tuning of BLIP-2 with YOLOv5-driven human-region localization, producing human-readable justifications for every decision. It achieves state-of-the-art F1 scores across four adversarial benchmarks, outperforming Azure Content Moderation, the OpenAI Moderation API, NudeNet, LatentGuard, and the Stable Diffusion Safety Checker. Prompt Self-Defense is a training-free, model-agnostic jailbreak defense that wraps prompts with mandatory risk reasoning at inference time. Across six LLMs and six attack strategies, it reduces average Attack Success Rate to 0.7% and achieves 0.000 ASR under the NeuroStrike neuron-level attack, the only defense to do so. Mechanistic analysis confirms the defense builds an independent internal safety pathway, explaining its robustness at the neuron level.

Degree

thesis:*
Name thesis:degree_name
Master of Science in Computer Science
Level thesis:degree_level
masters
Discipline thesis:degree_discipline
Computer Science
Grantor dc:publisher
Miami University
Year dc:date
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Aljadayah, Aibak
Advisor dc:contributor.advisor
  • Khamaiseh, Samer

Subjects

dc:subject × 2

Rights

dc:rights
Statement dc:rights
  • restricted--full text unavailable until 2028-05-01
  • This thesis or dissertation is protected by copyright: some rights reserved. It is licensed for use under a Creative Commons license. Specific terms and permissions are available from this document's record in the OhioLINK ETD Center.
Language dc:language
English

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
OhioLINK
Base URL
etd.ohiolink.edu/acprod/odb_etd/ws/oai/oai
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
citation

Aljadayah, Aibak. Robust and Interpretable Safety Defenses for Generative AI: Post-Hoc Multimodal Filtering for Text-to-Image Models and Inference-Time Jailbreak Defense for Large Language Models. masters thesis, Miami University, 2026. http://rave.ohiolink.edu/etdc/view?acc_num=miami1776965967544542