<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="static/style.xsl"?><OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd"><responseDate>2026-11-30T00:13:07Z</responseDate><request verb="GetRecord" identifier="oai:dr.ntu.edu.sg:10356/235280" metadataPrefix="dim">https://dr.ntu.edu.sg/server/oai/request</request><GetRecord><record><header><identifier>oai:dr.ntu.edu.sg:10356/235280</identifier><datestamp>2026-11-13T11:22:31Z</datestamp><setSpec>com_10356_176076</setSpec><setSpec>com_10356_11</setSpec><setSpec>col_10356_176124</setSpec></header><metadata><dim:dim xmlns:dim="http://www.dspace.org/xmlns/dspace/dim" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:doc="http://www.lyncode.com/xoai" xsi:schemaLocation="http://www.dspace.org/xmlns/dspace/dim http://www.dspace.org/schema/dim.xsd">
   <dim:field mdschema="dc" element="contributor" qualifier="author">Liu, Mingrui</dim:field>
   <dim:field mdschema="dc" element="contributor" qualifier="supervisor">Long Cheng</dim:field>
   <dim:field mdschema="dc" element="contributor" qualifier="school" authority="abac3a75-4713-490b-a4cd-ee7242ae14cd" confidence="600">College of Computing and Data Science</dim:field>
   <dim:field mdschema="dc" element="contributor" qualifier="supervisoremail">c.long@ntu.edu.sg</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="accessioned">2026-11-12T23:57:01Z</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="available">2026-11-12T23:57:01Z</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="issued">2026</dim:field>
   <dim:field mdschema="dc" element="identifier" qualifier="uri">https://hdl.handle.net/10356/235280</dim:field>
   <dim:field mdschema="dc" element="description" qualifier="abstract">Generative artificial intelligence (AI) has rapidly evolved from standalone language models into complex systems that integrate user instructions, external context, retrieval-augmented knowledge, tool use, and multimodal generation. These systems have enabled powerful applications in dialogue, coding, document analysis, autonomous agents, and text-to-image synthesis. However, their growing capability and system complexity also introduce new trustworthiness challenges across the operational process of AI generation. Malicious users may exploit weaknesses in safety alignment through jailbreak prompts; adversarial content hidden in retrieved documents or tool outputs may manipulate model behavior through prompt injection; retrieval-augmented generation (RAG) systems may reveal whether certain documents are stored in their knowledge bases; and text-to-image models may generate unsafe visual content even from seemingly benign prompts. These risks show that trustworthy generative AI must be studied not only at the model level, but also across the pipeline through which modern systems receive inputs, incorporate external information, access data, and produce outputs.

This thesis presents a pipeline-oriented study of trustworthy generative AI systems, focusing on security, privacy, and safety across four representative problems. First, it studies user-input attacks and introduces TrojFill, a black-box jailbreak method that exploits the gap between unsafety reasoning and unsafe content generation. By reframing harmful requests as template-filling tasks, TrojFill reveals how aligned models may generate unsafe content when it is embedded within seemingly analytical or safety-related reasoning. Second, it investigates malicious external context and proposes RedVisor, a reasoning-aware prompt-injection defense. RedVisor guides the backbone model to inspect contextual content for injected instructions and reuses the inspection-phase Key-Value (KV) cache for efficient mitigation, reducing the overhead of separate detection models. Third, it examines privacy leakage in retrieval-augmented generation and develops Mask-Based Membership Inference Attacks (MBA), a framework that audits whether target documents are present in a RAG knowledge corpus through strategic word masking and reconstruction. Fourth, it addresses output safety in multimodal generation and presents Wukong, an early-stage Not Safe For Work (NSFW) detection framework that leverages intermediate U-Net features and cross-attention signals to identify unsafe text-to-image generation before full image rendering.

Together, these works expose and mitigate concrete trust failures in modern generative AI systems. The attack-oriented studies reveal structural weaknesses in safety alignment and retrieval privacy, while the defense-oriented studies demonstrate how model reasoning signals, cache reuse, diffusion features, and attention mechanisms can be used to build efficient safeguards. Overall, this thesis advances a systems perspective on trustworthy generative AI, aiming to make modern AI generation pipelines more robust against manipulation, more protective of sensitive data, and safer in their generated outputs.</dim:field>
   <dim:field mdschema="dc" element="description" qualifier="degree">Doctor of Philosophy</dim:field>
   <dim:field mdschema="dc" element="language" qualifier="iso" lang="en">en</dim:field>
   <dim:field mdschema="dc" element="publisher">Nanyang Technological University</dim:field>
   <dim:field mdschema="dc" element="rights">This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0).</dim:field>
   <dim:field mdschema="dc" element="subject">Computer and Information Science</dim:field>
   <dim:field mdschema="dc" element="subject" qualifier="keywords">Trustworthy AI</dim:field>
   <dim:field mdschema="dc" element="subject" qualifier="keywords">AI security</dim:field>
   <dim:field mdschema="dc" element="subject" qualifier="keywords">Large language models</dim:field>
   <dim:field mdschema="dc" element="title">Trustworthy generative AI: securing the pipeline across inputs, context, data, and outputs</dim:field>
   <dim:field mdschema="dc" element="type">Thesis-Doctor of Philosophy</dim:field>
   <dim:field mdschema="dc" element="format" qualifier="mimetype">application/pdf</dim:field>
   <dim:field mdschema="dspace" element="entity" qualifier="type">Publication</dim:field>
   <dim:field mdschema="dspace" element="workflow" qualifier="startDateTime">2026-11-12T07:24:02.974Z</dim:field>
   <dim:field mdschema="datacite" element="rights">open.access</dim:field>open.accessopen.access<dim:field mdschema="cerif" element="openaire" authority="" confidence="-1">&lt;Publication xmlns="https://www.openaire.eu/cerif-profile/1.1/" id="1986d1d1-4b4d-48aa-bfa1-f283ec20c7e3">
	&lt;Type xmlns="https://www.openaire.eu/cerif-profile/vocab/COAR_Publication_Types">http://purl.org/coar/resource_type/c_1843&lt;/Type>
	&lt;Language>en&lt;/Language>
   	&lt;Title>Trustworthy generative AI: securing the pipeline across inputs, context, data, and outputs&lt;/Title>
   	&lt;PublishedIn>
    	&lt;Publication>
      	&lt;/Publication>
   	&lt;/PublishedIn>
   	&lt;PublicationDate>2026&lt;/PublicationDate>
   	&lt;Authors>
      	&lt;Author>
        	&lt;DisplayName>Liu, Mingrui&lt;/DisplayName>
         	&lt;Affiliation>
         		&lt;OrgUnit>
         		&lt;/OrgUnit>
         	&lt;/Affiliation>
      	&lt;/Author>
	&lt;/Authors>
   	&lt;Editors>
	&lt;/Editors>
    &lt;Publishers>
        &lt;Publisher>
            &lt;DisplayName>Nanyang Technological University&lt;/DisplayName>
            &lt;OrgUnit />
        &lt;/Publisher>
    &lt;/Publishers>
    &lt;Keyword>Computer and Information Science&lt;/Keyword>
   	&lt;Abstract>Generative artificial intelligence (AI) has rapidly evolved from standalone language models into complex systems that integrate user instructions, external context, retrieval-augmented knowledge, tool use, and multimodal generation. These systems have enabled powerful applications in dialogue, coding, document analysis, autonomous agents, and text-to-image synthesis. However, their growing capability and system complexity also introduce new trustworthiness challenges across the operational process of AI generation. Malicious users may exploit weaknesses in safety alignment through jailbreak prompts; adversarial content hidden in retrieved documents or tool outputs may manipulate model behavior through prompt injection; retrieval-augmented generation (RAG) systems may reveal whether certain documents are stored in their knowledge bases; and text-to-image models may generate unsafe visual content even from seemingly benign prompts. These risks show that trustworthy generative AI must be studied not only at the model level, but also across the pipeline through which modern systems receive inputs, incorporate external information, access data, and produce outputs.

This thesis presents a pipeline-oriented study of trustworthy generative AI systems, focusing on security, privacy, and safety across four representative problems. First, it studies user-input attacks and introduces TrojFill, a black-box jailbreak method that exploits the gap between unsafety reasoning and unsafe content generation. By reframing harmful requests as template-filling tasks, TrojFill reveals how aligned models may generate unsafe content when it is embedded within seemingly analytical or safety-related reasoning. Second, it investigates malicious external context and proposes RedVisor, a reasoning-aware prompt-injection defense. RedVisor guides the backbone model to inspect contextual content for injected instructions and reuses the inspection-phase Key-Value (KV) cache for efficient mitigation, reducing the overhead of separate detection models. Third, it examines privacy leakage in retrieval-augmented generation and develops Mask-Based Membership Inference Attacks (MBA), a framework that audits whether target documents are present in a RAG knowledge corpus through strategic word masking and reconstruction. Fourth, it addresses output safety in multimodal generation and presents Wukong, an early-stage Not Safe For Work (NSFW) detection framework that leverages intermediate U-Net features and cross-attention signals to identify unsafe text-to-image generation before full image rendering.

Together, these works expose and mitigate concrete trust failures in modern generative AI systems. The attack-oriented studies reveal structural weaknesses in safety alignment and retrieval privacy, while the defense-oriented studies demonstrate how model reasoning signals, cache reuse, diffusion features, and attention mechanisms can be used to build efficient safeguards. Overall, this thesis advances a systems perspective on trustworthy generative AI, aiming to make modern AI generation pipelines more robust against manipulation, more protective of sensitive data, and safer in their generated outputs.&lt;/Abstract>
	&lt;Access xmlns="http://purl.org/coar/access_right" 
    >
    &lt;/Access>
&lt;/Publication>
</dim:field>
</dim:dim></metadata></record></GetRecord></OAI-PMH>