{"id":{"repo_id":"ohiolink","oai_identifier":"oai:etd.ohiolink.edu:wright1788273648511611"},"canonical_url":"https://search.ndltd.org/etd/ohiolink/oai:etd.ohiolink.edu:wright1788273648511611","repository":{"repo_id":"ohiolink","name":"OhioLINK","base_url":"https://etd.ohiolink.edu/acprod/odb_etd/ws/oai/oai"},"display":{"title":"Cluster-Aware Vulnerability Detection: A Systematic Evaluation Across Imbalance Ratios","abstract":"Source code vulnerability detection faces class imbalance and the 512-token limit of transformer encoders. This study proposes HierCodeBERT, a hierarchical CodeBERT processing long code as overlapping 512-token chunks with norm-based attention pooling, paired with a cluster-aware framework partitioning vulnerable samples into KMeans em bedding clusters before resampling. Because the classifier consumes tokenized code rather than embeddings, oversampling duplicates real vulnerable samples, with SMOTE-style interpolation selecting which samples to duplicate; no synthetic vectors enter training, and all resampling stays within the fixed training partition, avoiding leakage from resampling. A 10-mode ablation evaluates five imbalance-handling strategies, with and without margin loss, across five ratios on three C/C++ datasets, ranked by composite score. Cluster-aware modes rank highest or joint-highest in 12 of 15 conditions (nine outright wins; three structural ties at 1:10,000): cluster-aware weighted sampling suits near-balanced data; cluster-aware oversampling suits higher native imbalance, with one exception.","abstract_html":"Source code vulnerability detection faces class imbalance and the 512-token limit of transformer encoders. This study proposes HierCodeBERT, a hierarchical CodeBERT processing long code as overlapping 512-token chunks with norm-based attention pooling, paired with a cluster-aware framework partitioning vulnerable samples into KMeans em bedding clusters before resampling. Because the classifier consumes tokenized code rather than embeddings, oversampling duplicates real vulnerable samples, with SMOTE-style interpolation selecting which samples to duplicate; no synthetic vectors enter training, and all resampling stays within the fixed training partition, avoiding leakage from resampling. A 10-mode ablation evaluates five imbalance-handling strategies, with and without margin loss, across five ratios on three C/C++ datasets, ranked by composite score. Cluster-aware modes rank highest or joint-highest in 12 of 15 conditions (nine outright wins; three structural ties at 1:10,000): cluster-aware weighted sampling suits near-balanced data; cluster-aware oversampling suits higher native imbalance, with one exception.","abstract_has_math":false,"creators":["Soni, Chirag Bhaveshkumar"],"institution":"Wright State University","degree_name":"Master of Science in Cyber Security (M.S.C.S.)","degree_level":"masters","degree_discipline":"Computer Engineering","degree_department":null,"school":null,"contributors":[],"advisors":["Zhang, Junjie"],"committee_chairs":[],"committee_members":[],"year":2026,"date_issued":"2026-09-02","date_published":"2026-09-02","updated_at":"2026-11-27T05:03:18Z","subjects":["Computer Science","Artificial Intelligence","Information Technology","software vulnerability detection","cybersecurity","class imbalance","deep learning","CodeBERT","cluster-aware sampling","oversampling","source code analysis"],"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=wright1788273648511611","outbound_label":"Repository record","outbound_source":"dc:identifier","record_url":"http://rave.ohiolink.edu/etdc/view?acc_num=wright1788273648511611","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%3Awright1788273648511611","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%3Awright1788273648511611","prefix":"oai_etdms"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Zhang, Junjie"]},{"key":"dc:creator","label":"Author","values":["Soni, Chirag Bhaveshkumar"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date","label":"Dc Date","values":["2026-09-02"]},{"key":"dc:publisher","label":"Institution","values":["Wright State University / OhioLINK"]},{"key":"dc:type","label":"Dc Type","values":["Electronic Thesis or Dissertation"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Computer Engineering"]},{"key":"thesis:degree_level","label":"Degree Level","values":["masters"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science in Cyber Security (M.S.C.S.)"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["Wright State University"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Computer Science","Artificial Intelligence","Information Technology","software vulnerability detection","cybersecurity","class imbalance","deep learning","CodeBERT","cluster-aware sampling","oversampling","source code analysis"]}]},{"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=wright1788273648511611"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description","label":"Description","values":["Source code vulnerability detection faces class imbalance and the 512-token limit of transformer encoders. This study proposes HierCodeBERT, a hierarchical CodeBERT processing long code as overlapping 512-token chunks with norm-based attention pooling, paired with a cluster-aware framework partitioning vulnerable samples into KMeans em bedding clusters before resampling. Because the classifier consumes tokenized code rather than embeddings, oversampling duplicates real vulnerable samples, with SMOTE-style interpolation selecting which samples to duplicate; no synthetic vectors enter training, and all resampling stays within the fixed training partition, avoiding leakage from resampling. A 10-mode ablation evaluates five imbalance-handling strategies, with and without margin loss, across five ratios on three C/C++ datasets, ranked by composite score. Cluster-aware modes rank highest or joint-highest in 12 of 15 conditions (nine outright wins; three structural ties at 1:10,000): cluster-aware weighted sampling suits near-balanced data; cluster-aware oversampling suits higher native imbalance, with one exception."]},{"key":"dc:format","label":"Dc Format","values":["application/pdf","p.178","717.7 KB"]},{"key":"dc:title","label":"Title","values":["Cluster-Aware Vulnerability Detection: A Systematic Evaluation Across Imbalance Ratios"]}]}],"canonical_facts":{"dc:contributor.advisor":["Zhang, Junjie"],"dc:creator":["Soni, Chirag Bhaveshkumar"],"dc:date":["2026-09-02"],"dc:description":["Source code vulnerability detection faces class imbalance and the 512-token limit of transformer encoders. This study proposes HierCodeBERT, a hierarchical CodeBERT processing long code as overlapping 512-token chunks with norm-based attention pooling, paired with a cluster-aware framework partitioning vulnerable samples into KMeans em bedding clusters before resampling. Because the classifier consumes tokenized code rather than embeddings, oversampling duplicates real vulnerable samples, with SMOTE-style interpolation selecting which samples to duplicate; no synthetic vectors enter training, and all resampling stays within the fixed training partition, avoiding leakage from resampling. A 10-mode ablation evaluates five imbalance-handling strategies, with and without margin loss, across five ratios on three C/C++ datasets, ranked by composite score. Cluster-aware modes rank highest or joint-highest in 12 of 15 conditions (nine outright wins; three structural ties at 1:10,000): cluster-aware weighted sampling suits near-balanced data; cluster-aware oversampling suits higher native imbalance, with one exception."],"dc:format":["application/pdf","p.178","717.7 KB"],"dc:identifier":["http://rave.ohiolink.edu/etdc/view?acc_num=wright1788273648511611"],"dc:language":["English"],"dc:publisher":["Wright State University / 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":["Computer Science","Artificial Intelligence","Information Technology","software vulnerability detection","cybersecurity","class imbalance","deep learning","CodeBERT","cluster-aware sampling","oversampling","source code analysis"],"dc:title":["Cluster-Aware Vulnerability Detection: A Systematic Evaluation Across Imbalance Ratios"],"dc:type":["Electronic Thesis or Dissertation"],"thesis:degree_discipline":["Computer Engineering"],"thesis:degree_level":["masters"],"thesis:degree_name":["Master of Science in Cyber Security (M.S.C.S.)"],"thesis:institution_name":["Wright State University"]},"updated_at":"2026-11-27T05:03:18Z"}