{"id":{"repo_id":"ohiolink","oai_identifier":"oai:etd.ohiolink.edu:akron1775828423972753"},"canonical_url":"https://search.ndltd.org/etd/ohiolink/oai:etd.ohiolink.edu:akron1775828423972753","repository":{"repo_id":"ohiolink","name":"OhioLINK","base_url":"https://etd.ohiolink.edu/acprod/odb_etd/ws/oai/oai"},"display":{"title":"BEYOND SEMANTIC MODELS: DUAL-STREAM SEMANTIC AND STRUCTURAL LEARNING FOR VULNERABILITY DETECTION IN AI-GENERATED CODE","abstract":"The rapid adoption of large language models (LLMs) in software development has significantly improved productivity in code generation and completion. However, recent studies indicate that AI-generated code often contains a higher incidence of security vulnerabilities compared to human-written code, creating a growing security risk in modern software pipelines. Automated vulnerability detection (AVD) systems based on Transformer architectures, such as UniXcoder and CodeBERT, have shown promising results; however, they primarily rely on sequential token representations and exhibit limited capability in capturing the non-linear structural dependencies that govern program execution.This thesis addresses this limitation by proposing a dual-stream vulnerability detection framework that integrates both semantic and structural representations of source code. The semantic stream leverages a pretrained Transformer model to capture contextual and syntactic patterns, while the structural stream models program behavior through a graph-based representation derived from Abstract Syntax Trees (AST), enriched with dataflow and sequential relationships. These representations are fused through a gated fusion mechanism, enabling the model to dynamically balance semantic and structural information during prediction.The proposed approach is evaluated on the PrimeVul dataset, a large-scale benchmark of real-world C/C++ vulnerabilities, demonstrating improved performance over baseline Transformer-only models, particularly in recall and F1-score for complex vulnerability patterns. Experimental results further highlight the importance of structural reasoning in detecting vulnerabilities that arise from long-range dependencies and dataflow interactions.To demonstrate practical applicability, the model is deployed as an IDE-integrated tool using a client-server architecture, enabling real-time vulnerability analysis within a development environment. This deployment illustrates the feasibility of integrating advanced machine learning models into secure coding workflows.Overall, this work contributes a novel hybrid architecture for vulnerability detection, provides empirical evidence of the benefits of combining semantic and structural analysis, and establishes a foundation for future research in AI-assisted secure software development.","abstract_html":"The rapid adoption of large language models (LLMs) in software development has significantly improved productivity in code generation and completion. However, recent studies indicate that AI-generated code often contains a higher incidence of security vulnerabilities compared to human-written code, creating a growing security risk in modern software pipelines. Automated vulnerability detection (AVD) systems based on Transformer architectures, such as UniXcoder and CodeBERT, have shown promising results; however, they primarily rely on sequential token representations and exhibit limited capability in capturing the non-linear structural dependencies that govern program execution.This thesis addresses this limitation by proposing a dual-stream vulnerability detection framework that integrates both semantic and structural representations of source code. The semantic stream leverages a pretrained Transformer model to capture contextual and syntactic patterns, while the structural stream models program behavior through a graph-based representation derived from Abstract Syntax Trees (AST), enriched with dataflow and sequential relationships. These representations are fused through a gated fusion mechanism, enabling the model to dynamically balance semantic and structural information during prediction.The proposed approach is evaluated on the PrimeVul dataset, a large-scale benchmark of real-world C/C++ vulnerabilities, demonstrating improved performance over baseline Transformer-only models, particularly in recall and F1-score for complex vulnerability patterns. Experimental results further highlight the importance of structural reasoning in detecting vulnerabilities that arise from long-range dependencies and dataflow interactions.To demonstrate practical applicability, the model is deployed as an IDE-integrated tool using a client-server architecture, enabling real-time vulnerability analysis within a development environment. This deployment illustrates the feasibility of integrating advanced machine learning models into secure coding workflows.Overall, this work contributes a novel hybrid architecture for vulnerability detection, provides empirical evidence of the benefits of combining semantic and structural analysis, and establishes a foundation for future research in AI-assisted secure software development.","abstract_has_math":false,"creators":["Iddrisu, Sumaila"],"institution":"University of Akron","degree_name":"Master of Science","degree_level":"masters","degree_discipline":"Computer Science","degree_department":null,"school":null,"contributors":[],"advisors":["Ebrahim, Nadhem"],"committee_chairs":[],"committee_members":[],"year":2026,"date_issued":"2026-04-16","date_published":"2026-04-16","updated_at":"2026-11-27T05:03:04Z","subjects":["Artificial Intelligence","Computer Science","Computer Engineering","Information Science","Information Systems","Information Technology","LLMs, Vulnerabilities, Dataset, Code generation, Artificial intelligence, Graph Neural Network"],"languages":["English"],"rights":["unrestricted","This thesis or dissertation is protected by copyright: all rights reserved. It may not be copied or redistributed beyond the terms of applicable copyright laws."],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"http://rave.ohiolink.edu/etdc/view?acc_num=akron1775828423972753","outbound_label":"Repository record","outbound_source":"dc:identifier","record_url":"http://rave.ohiolink.edu/etdc/view?acc_num=akron1775828423972753","record_label":"Repository record","record_kind":"record","record_source":"dc:identifier","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%3Aohiolink%3Aoai%3Aetd.ohiolink.edu%3Aakron1775828423972753","prefix":"oai_dc"},"source_record":{"url":"https://etd.ohiolink.edu/acprod/odb_etd/ws/oai/oai?verb=GetRecord&metadataPrefix=oai_etdms&identifier=oai%3Aetd.ohiolink.edu%3Aakron1775828423972753","prefix":"oai_etdms"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Ebrahim, Nadhem"]},{"key":"dc:creator","label":"Author","values":["Iddrisu, Sumaila"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date","label":"Dc Date","values":["2026-04-16"]},{"key":"dc:publisher","label":"Institution","values":["University of Akron / OhioLINK"]},{"key":"dc:type","label":"Dc Type","values":["Electronic Thesis or Dissertation"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Computer Science"]},{"key":"thesis:degree_level","label":"Degree Level","values":["masters"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["University of Akron"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Artificial Intelligence","Computer Science","Computer Engineering","Information Science","Information Systems","Information Technology","LLMs, Vulnerabilities, Dataset, Code generation, Artificial intelligence, Graph Neural Network"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language","label":"Dc Language","values":["English"]},{"key":"dc:rights","label":"Dc Rights","values":["unrestricted","This thesis or dissertation is protected by copyright: all rights reserved. It may not be copied or redistributed beyond the terms of applicable copyright laws."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier","label":"Identifier","values":["http://rave.ohiolink.edu/etdc/view?acc_num=akron1775828423972753"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description","label":"Description","values":["The rapid adoption of large language models (LLMs) in software development has significantly improved productivity in code generation and completion. However, recent studies indicate that AI-generated code often contains a higher incidence of security vulnerabilities compared to human-written code, creating a growing security risk in modern software pipelines. Automated vulnerability detection (AVD) systems based on Transformer architectures, such as UniXcoder and CodeBERT, have shown promising results; however, they primarily rely on sequential token representations and exhibit limited capability in capturing the non-linear structural dependencies that govern program execution.This thesis addresses this limitation by proposing a dual-stream vulnerability detection framework that integrates both semantic and structural representations of source code. The semantic stream leverages a pretrained Transformer model to capture contextual and syntactic patterns, while the structural stream models program behavior through a graph-based representation derived from Abstract Syntax Trees (AST), enriched with dataflow and sequential relationships. These representations are fused through a gated fusion mechanism, enabling the model to dynamically balance semantic and structural information during prediction.The proposed approach is evaluated on the PrimeVul dataset, a large-scale benchmark of real-world C/C++ vulnerabilities, demonstrating improved performance over baseline Transformer-only models, particularly in recall and F1-score for complex vulnerability patterns. Experimental results further highlight the importance of structural reasoning in detecting vulnerabilities that arise from long-range dependencies and dataflow interactions.To demonstrate practical applicability, the model is deployed as an IDE-integrated tool using a client-server architecture, enabling real-time vulnerability analysis within a development environment. This deployment illustrates the feasibility of integrating advanced machine learning models into secure coding workflows.Overall, this work contributes a novel hybrid architecture for vulnerability detection, provides empirical evidence of the benefits of combining semantic and structural analysis, and establishes a foundation for future research in AI-assisted secure software development."]},{"key":"dc:format","label":"Dc Format","values":["application/pdf","p.87","1.16 MB"]},{"key":"dc:title","label":"Title","values":["BEYOND SEMANTIC MODELS: DUAL-STREAM SEMANTIC AND STRUCTURAL LEARNING FOR VULNERABILITY DETECTION IN AI-GENERATED CODE"]}]}],"canonical_facts":{"dc:contributor.advisor":["Ebrahim, Nadhem"],"dc:creator":["Iddrisu, Sumaila"],"dc:date":["2026-04-16"],"dc:description":["The rapid adoption of large language models (LLMs) in software development has significantly improved productivity in code generation and completion. However, recent studies indicate that AI-generated code often contains a higher incidence of security vulnerabilities compared to human-written code, creating a growing security risk in modern software pipelines. Automated vulnerability detection (AVD) systems based on Transformer architectures, such as UniXcoder and CodeBERT, have shown promising results; however, they primarily rely on sequential token representations and exhibit limited capability in capturing the non-linear structural dependencies that govern program execution.This thesis addresses this limitation by proposing a dual-stream vulnerability detection framework that integrates both semantic and structural representations of source code. The semantic stream leverages a pretrained Transformer model to capture contextual and syntactic patterns, while the structural stream models program behavior through a graph-based representation derived from Abstract Syntax Trees (AST), enriched with dataflow and sequential relationships. These representations are fused through a gated fusion mechanism, enabling the model to dynamically balance semantic and structural information during prediction.The proposed approach is evaluated on the PrimeVul dataset, a large-scale benchmark of real-world C/C++ vulnerabilities, demonstrating improved performance over baseline Transformer-only models, particularly in recall and F1-score for complex vulnerability patterns. Experimental results further highlight the importance of structural reasoning in detecting vulnerabilities that arise from long-range dependencies and dataflow interactions.To demonstrate practical applicability, the model is deployed as an IDE-integrated tool using a client-server architecture, enabling real-time vulnerability analysis within a development environment. This deployment illustrates the feasibility of integrating advanced machine learning models into secure coding workflows.Overall, this work contributes a novel hybrid architecture for vulnerability detection, provides empirical evidence of the benefits of combining semantic and structural analysis, and establishes a foundation for future research in AI-assisted secure software development."],"dc:format":["application/pdf","p.87","1.16 MB"],"dc:identifier":["http://rave.ohiolink.edu/etdc/view?acc_num=akron1775828423972753"],"dc:language":["English"],"dc:publisher":["University of Akron / OhioLINK"],"dc:rights":["unrestricted","This thesis or dissertation is protected by copyright: all rights reserved. It may not be copied or redistributed beyond the terms of applicable copyright laws."],"dc:subject":["Artificial Intelligence","Computer Science","Computer Engineering","Information Science","Information Systems","Information Technology","LLMs, Vulnerabilities, Dataset, Code generation, Artificial intelligence, Graph Neural Network"],"dc:title":["BEYOND SEMANTIC MODELS: DUAL-STREAM SEMANTIC AND STRUCTURAL LEARNING FOR VULNERABILITY DETECTION IN AI-GENERATED CODE"],"dc:type":["Electronic Thesis or Dissertation"],"thesis:degree_discipline":["Computer Science"],"thesis:degree_level":["masters"],"thesis:degree_name":["Master of Science"],"thesis:institution_name":["University of Akron"]},"updated_at":"2026-11-27T05:03:04Z"}