{"id":{"repo_id":"uwo","oai_identifier":"oai:uwo.scholaris.ca:20.500.14721/39635"},"canonical_url":"https://search.ndltd.org/etd/uwo/oai:uwo.scholaris.ca:20.500.14721/39635","repository":{"repo_id":"uwo","name":"Western University","base_url":"https://uwo.scholaris.ca/server/oai/request"},"display":{"title":"Mechanistic Interpretability and Automated Formal Verificationfor Robustness in Multimodal LLMs.for Robustness in Multimodal LLMs.","abstract":"The promise of autonomous agents powered by multimodal LLMs such as ChatGPT and Gemini is often undermined by the lack of transparency and guarantees. This thesis argues that trust in these systems must be established at two critical levels: the robustness of multimodal perception and the formal correctness of generated responses. We first investigate the fragility of vision models using TRAP (Typographic Robust Attack Production), a mechanistically guided attack that leverages visual semantic priors to redirect internal model computations. By identifying the failure modes using mechanistic analysis of internal model states, we demonstrate how easily multimodal LLMs can be coerced into generating harmful responses. This vulnerability necessitates a shift toward execution-centric reliability in the reasoning layer. Consequently, we introduce a formal verification framework, STAMP (Specification To Automated Model Pipeline), that autonomously constructs formally verifiable executables from natural language specifications. This framework is modular and portable and addresses the inherent brittleness of LLM-generated formal models. STAMP employs Kripke structures and the symbolic model checker NuSMV to provide formal guarantees for generated executables. Together, these works illustrate that true reliability in multimodal LLMs requires both a mechanistic understanding of perceptual failure and a formal framework for verifying its output. We demonstrate superior compliance and final scores over all evaluated baseline LLMs on MiniSpecBench. Establishing a new benchmark for automated formal model synthesis from natural language specifications.","abstract_html":"The promise of autonomous agents powered by multimodal LLMs such as ChatGPT and Gemini is often undermined by the lack of transparency and guarantees. This thesis argues that trust in these systems must be established at two critical levels: the robustness of multimodal perception and the formal correctness of generated responses. We first investigate the fragility of vision models using TRAP (Typographic Robust Attack Production), a mechanistically guided attack that leverages visual semantic priors to redirect internal model computations. By identifying the failure modes using mechanistic analysis of internal model states, we demonstrate how easily multimodal LLMs can be coerced into generating harmful responses. This vulnerability necessitates a shift toward execution-centric reliability in the reasoning layer. Consequently, we introduce a formal verification framework, STAMP (Specification To Automated Model Pipeline), that autonomously constructs formally verifiable executables from natural language specifications. This framework is modular and portable and addresses the inherent brittleness of LLM-generated formal models. STAMP employs Kripke structures and the symbolic model checker NuSMV to provide formal guarantees for generated executables. Together, these works illustrate that true reliability in multimodal LLMs requires both a mechanistic understanding of perceptual failure and a formal framework for verifying its output. We demonstrate superior compliance and final scores over all evaluated baseline LLMs on MiniSpecBench. Establishing a new benchmark for automated formal model synthesis from natural language specifications.","abstract_has_math":false,"creators":["Ranade, Kaushik Tushar"],"institution":"The University of Western Ontario","degree_name":"M Sc","degree_level":null,"degree_discipline":"Computer Science","degree_department":null,"school":null,"contributors":[],"advisors":["Narayan, Apurva"],"committee_chairs":[],"committee_members":[],"year":2026,"date_issued":"2026-04-16","date_published":"2026-04-16","updated_at":"2026-11-26T14:00:53Z","subjects":["mechanistic interpretability","formal model checking","Large Language Models","Vision Language Models","Artificial Intelligence","Reliable & Explainable AI"],"languages":["en"],"rights":["Attribution-NonCommercial 4.0 International"],"rights_urls":["http://creativecommons.org/licenses/by-nc/4.0/"],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/20.500.14721/39635","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/20.500.14721/39635","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Auwo%3Aoai%3Auwo.scholaris.ca%3A20.500.14721%2F39635","prefix":"oai_dc"},"source_record":{"url":"https://uwo.scholaris.ca/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Auwo.scholaris.ca%3A20.500.14721%2F39635","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Narayan, Apurva"]},{"key":"dc:creator","label":"Author","values":["Ranade, Kaushik Tushar"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-05-04T13:37:08Z"]},{"key":"dc:date.issued","label":"Date","values":["2026-04-16"]},{"key":"dc:publisher","label":"Institution","values":["The University of Western Ontario"]},{"key":"dc:type","label":"Dc Type","values":["master thesis"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Computer Science"]},{"key":"thesis:degree_name","label":"Degree Name","values":["M Sc"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["The University of Western Ontario"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["mechanistic interpretability","formal model checking","Large Language Models","Vision Language Models","Artificial Intelligence","Reliable & Explainable AI"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["Attribution-NonCommercial 4.0 International"]},{"key":"dc:rights.uri","label":"Rights URI","values":["http://creativecommons.org/licenses/by-nc/4.0/"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/20.500.14721/39635"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["The promise of autonomous agents powered by multimodal LLMs such as ChatGPT and Gemini is often undermined by the lack of transparency and guarantees. This thesis argues that trust in these systems must be established at two critical levels: the robustness of multimodal perception and the formal correctness of generated responses. We first investigate the fragility of vision models using TRAP (Typographic Robust Attack Production), a mechanistically guided attack that leverages visual semantic priors to redirect internal model computations. By identifying the failure modes using mechanistic analysis of internal model states, we demonstrate how easily multimodal LLMs can be coerced into generating harmful responses. This vulnerability necessitates a shift toward execution-centric reliability in the reasoning layer. Consequently, we introduce a formal verification framework, STAMP (Specification To Automated Model Pipeline), that autonomously constructs formally verifiable executables from natural language specifications. This framework is modular and portable and addresses the inherent brittleness of LLM-generated formal models. STAMP employs Kripke structures and the symbolic model checker NuSMV to provide formal guarantees for generated executables. Together, these works illustrate that true reliability in multimodal LLMs requires both a mechanistic understanding of perceptual failure and a formal framework for verifying its output. We demonstrate superior compliance and final scores over all evaluated baseline LLMs on MiniSpecBench. Establishing a new benchmark for automated formal model synthesis from natural language specifications."]},{"key":"dc:description.abstractgeneral","label":"General Abstract","values":["AI systems like ChatGPT and Gemini can now process both images and text and are increasingly deployed as autonomous agents. These agents make decisions, generate code, and produce formal technical documents with minimal human oversight. Failures in such systems when deployed in safety-critical environments can have serious consequences. This thesis investigates two fundamental ways in which such systems can fail and proposes methods to detect and address each. The first contribution examines how these AI systems can be deceived through their visual perception. Models that understand images are trained to read text embedded in photographs, but this capability also creates weakness. An attacker can hide a harmful instruction inside an image. For example, placing prohibited text on a traffic sign background can trick AI into following it. The same request, typed as plain text, would be blocked by the model’s safety filters. This thesis introduces TRAP (Typographic Robust Attack Production), a framework that constructs such attacks and, more importantly, provides a mechanistic analysis of why they succeed. Using seven diagnostic metrics that probe the model’s internal computations. These metrics measure attention shifts, gradient orientation toward harmful outputs, and neural activation patterns. They reveal how attacks subvert the model at the circuit level, not just the output. Different AI architectures fail in structurally distinct ways invisible to standard evaluation. We conclude that attack success strongly correlates with the model’s behavioral compliance with the embedded instruction, rather than the length of the response. The second contribution addresses formal verification of AI-generated specifications. When AI systems generate precise mathematical descriptions of how a system should behave, those outputs require rigorous checking. This thesis introduces STAMP (Specification To Automated Model Pipeline), a modular framework that is a part of SpecMAS that translates natural language specifications into verifiable executable models (Kripke structures). The framework translates temporal logic properties from these procedures. It then constructs formal mathematical models called Kripke structures. These models are then checked exhaustively using NuSMV, an industry-standard model checker. Evaluation across five benchmark systems reveals a key finding. AI models that produce the most polished specifications often fail formal verification. Surface-level quality and mathematical correctness are decoupled in practice. Together, these contributions show that reliable autonomous AI deployments require scrutiny at two levels. At the perception layer, where safety mechanisms can be bypassed through designed visual inputs. At the output layer, where generated formal artifacts must be verified against constraints rather than judged by appearance. Mechanistic interpretability and formal verification is the appropriate standard for establishing trust in these systems."]},{"key":"dc:title","label":"Title","values":["Mechanistic Interpretability and Automated Formal Verificationfor Robustness in Multimodal LLMs.for Robustness in Multimodal LLMs."]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Narayan, Apurva"],"dc:creator":["Ranade, Kaushik Tushar"],"dc:date.accessioned":["2026-05-04T13:37:08Z"],"dc:date.issued":["2026-04-16"],"dc:description.abstract":["The promise of autonomous agents powered by multimodal LLMs such as ChatGPT and Gemini is often undermined by the lack of transparency and guarantees. This thesis argues that trust in these systems must be established at two critical levels: the robustness of multimodal perception and the formal correctness of generated responses. We first investigate the fragility of vision models using TRAP (Typographic Robust Attack Production), a mechanistically guided attack that leverages visual semantic priors to redirect internal model computations. By identifying the failure modes using mechanistic analysis of internal model states, we demonstrate how easily multimodal LLMs can be coerced into generating harmful responses. This vulnerability necessitates a shift toward execution-centric reliability in the reasoning layer. Consequently, we introduce a formal verification framework, STAMP (Specification To Automated Model Pipeline), that autonomously constructs formally verifiable executables from natural language specifications. This framework is modular and portable and addresses the inherent brittleness of LLM-generated formal models. STAMP employs Kripke structures and the symbolic model checker NuSMV to provide formal guarantees for generated executables. Together, these works illustrate that true reliability in multimodal LLMs requires both a mechanistic understanding of perceptual failure and a formal framework for verifying its output. We demonstrate superior compliance and final scores over all evaluated baseline LLMs on MiniSpecBench. Establishing a new benchmark for automated formal model synthesis from natural language specifications."],"dc:description.abstractgeneral":["AI systems like ChatGPT and Gemini can now process both images and text and are increasingly deployed as autonomous agents. These agents make decisions, generate code, and produce formal technical documents with minimal human oversight. Failures in such systems when deployed in safety-critical environments can have serious consequences. This thesis investigates two fundamental ways in which such systems can fail and proposes methods to detect and address each. The first contribution examines how these AI systems can be deceived through their visual perception. Models that understand images are trained to read text embedded in photographs, but this capability also creates weakness. An attacker can hide a harmful instruction inside an image. For example, placing prohibited text on a traffic sign background can trick AI into following it. The same request, typed as plain text, would be blocked by the model’s safety filters. This thesis introduces TRAP (Typographic Robust Attack Production), a framework that constructs such attacks and, more importantly, provides a mechanistic analysis of why they succeed. Using seven diagnostic metrics that probe the model’s internal computations. These metrics measure attention shifts, gradient orientation toward harmful outputs, and neural activation patterns. They reveal how attacks subvert the model at the circuit level, not just the output. Different AI architectures fail in structurally distinct ways invisible to standard evaluation. We conclude that attack success strongly correlates with the model’s behavioral compliance with the embedded instruction, rather than the length of the response. The second contribution addresses formal verification of AI-generated specifications. When AI systems generate precise mathematical descriptions of how a system should behave, those outputs require rigorous checking. This thesis introduces STAMP (Specification To Automated Model Pipeline), a modular framework that is a part of SpecMAS that translates natural language specifications into verifiable executable models (Kripke structures). The framework translates temporal logic properties from these procedures. It then constructs formal mathematical models called Kripke structures. These models are then checked exhaustively using NuSMV, an industry-standard model checker. Evaluation across five benchmark systems reveals a key finding. AI models that produce the most polished specifications often fail formal verification. Surface-level quality and mathematical correctness are decoupled in practice. Together, these contributions show that reliable autonomous AI deployments require scrutiny at two levels. At the perception layer, where safety mechanisms can be bypassed through designed visual inputs. At the output layer, where generated formal artifacts must be verified against constraints rather than judged by appearance. Mechanistic interpretability and formal verification is the appropriate standard for establishing trust in these systems."],"dc:identifier.uri":["https://hdl.handle.net/20.500.14721/39635"],"dc:language.iso":["en"],"dc:publisher":["The University of Western Ontario"],"dc:rights":["Attribution-NonCommercial 4.0 International"],"dc:rights.uri":["http://creativecommons.org/licenses/by-nc/4.0/"],"dc:subject":["mechanistic interpretability","formal model checking","Large Language Models","Vision Language Models","Artificial Intelligence","Reliable & Explainable AI"],"dc:title":["Mechanistic Interpretability and Automated Formal Verificationfor Robustness in Multimodal LLMs.for Robustness in Multimodal LLMs."],"dc:type":["master thesis"],"others:access_status":["open.access"],"thesis:degree_discipline":["Computer Science"],"thesis:degree_name":["M Sc"],"thesis:institution_name":["The University of Western Ontario"]},"updated_at":"2026-11-26T14:00:53Z"}