Guardado en:
Detalles Bibliográficos
Autores principales: Zhang, Yuteng, Ma, Huifang, Wei, Jiahui, Li, Qingqing, Yang, Yafei
Formato: Preprint
Publicado: 2026
Materias:
Acceso en línea:https://arxiv.org/abs/2605.10240
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866913111225663488
author Zhang, Yuteng
Ma, Huifang
Wei, Jiahui
Li, Qingqing
Yang, Yafei
author_facet Zhang, Yuteng
Ma, Huifang
Wei, Jiahui
Li, Qingqing
Yang, Yafei
contents Software vulnerability detection is critical for ensuring software security and reliability. Despite recent advances in deep learning, real-world vulnerability datasets suffer from two severe challenges: frequency imbalance and difficulty imbalance. We reinterpret these challenges from an embedding geometry perspective, observing that such imbalances induce geometric distortions in hyperspherical representation space. To address this issue, we propose MARGIN, a metric-based framework that learns discriminative vulnerability representations through adaptive margin metric learning and hyperspherical prototype modeling. MARGIN dynamically adjusts geometric regularization according to the distribution structure estimated by the von Mises-Fisher concentration, aligning the probability mass of embedding distributions with their corresponding Voronoi cells, thereby reducing geometric distortion and yielding more stable decision boundaries. Extensive experiments on public vulnerability datasets show that MARGIN consistently outperforms strong baselines, achieving notable improvements in classification and detection, especially on challenging, imbalanced datasets. Further analysis demonstrates that MARGIN produces more structured embedding geometries, improving robustness, interpretability, and generalization.
format Preprint
id arxiv_https___arxiv_org_abs_2605_10240
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle MARGIN: Margin-Aware Regularized Geometry for Imbalanced Vulnerability Detection
Zhang, Yuteng
Ma, Huifang
Wei, Jiahui
Li, Qingqing
Yang, Yafei
Software Engineering
Cryptography and Security
Machine Learning
Software vulnerability detection is critical for ensuring software security and reliability. Despite recent advances in deep learning, real-world vulnerability datasets suffer from two severe challenges: frequency imbalance and difficulty imbalance. We reinterpret these challenges from an embedding geometry perspective, observing that such imbalances induce geometric distortions in hyperspherical representation space. To address this issue, we propose MARGIN, a metric-based framework that learns discriminative vulnerability representations through adaptive margin metric learning and hyperspherical prototype modeling. MARGIN dynamically adjusts geometric regularization according to the distribution structure estimated by the von Mises-Fisher concentration, aligning the probability mass of embedding distributions with their corresponding Voronoi cells, thereby reducing geometric distortion and yielding more stable decision boundaries. Extensive experiments on public vulnerability datasets show that MARGIN consistently outperforms strong baselines, achieving notable improvements in classification and detection, especially on challenging, imbalanced datasets. Further analysis demonstrates that MARGIN produces more structured embedding geometries, improving robustness, interpretability, and generalization.
title MARGIN: Margin-Aware Regularized Geometry for Imbalanced Vulnerability Detection
topic Software Engineering
Cryptography and Security
Machine Learning
url https://arxiv.org/abs/2605.10240