University of Akron
BEYOND SEMANTIC MODELS: DUAL-STREAM SEMANTIC AND STRUCTURAL LEARNING FOR VULNERABILITY DETECTION IN AI-GENERATED CODE
Abstract
dc:descriptionThe 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.
Degree
thesis:*- Name thesis:degree_name
- Master of Science
- Level thesis:degree_level
- masters
- Discipline thesis:degree_discipline
- Computer Science
- Grantor dc:publisher
- University of Akron
- Year dc:date
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Iddrisu, Sumaila
- Contributors dc:contributor
-
- Ebrahim, Nadhem
Subjects
dc:subject × 7Rights
dc:rights- Statement 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.
- Language dc:language
- English
Identifiers
dc:identifier.*- Repository record dc:identifier
- http://rave.ohiolink.edu/etdc/view?acc_num=akron1775828423972753