MARGIN: Margin-Aware Regularized Geometry for Imbalanced Vulnerability Detection
Yuteng Zhang, Huifang Ma, Jiahui Wei, Qingqing Li, Yafei Yang

TL;DR
MARGIN introduces a geometry-aware framework for vulnerability detection that adaptively learns discriminative representations, effectively handling class imbalance and improving detection stability and accuracy.
Contribution
The paper proposes MARGIN, a novel metric-based approach using adaptive margin learning and hyperspherical modeling to address geometric distortions in imbalanced vulnerability datasets.
Findings
MARGIN outperforms strong baselines on public datasets.
It achieves significant improvements in classification and detection accuracy.
The approach enhances robustness, interpretability, and generalization.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
