paper-with-me

홈 › Papers

MARGIN: Margin-Aware Regularized Geometry for Imbalanced Vulnerability Detection

2026-05-11 · Yuteng Zhang, Huifang Ma, Jiahui Wei, Qingqing Li, Yafei Yang arxiv

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.

📄 PDF Abstract BibTeX arXiv:2605.10240

Code (0)

등록된 구현이 없습니다.

Tasks

Vulnerability DetectionMetric Learning

Similar Papers 제목 키워드 기반

Fair Loss: Margin-Aware Reinforcement Learning for Deep Face Recognition

2019-10-01 · ICCV 2019 10 · Bingyu Liu, Weihong Deng, Yaoyao Zhong, Mei Wang 외

Recently, large-margin softmax loss methods, such as angular softmax loss (SphereFace), large margin cosine loss (CosFace), and additive angular margin loss (ArcFace), have demonstrated impressive performance on deep fac…

Face RecognitionQ-Learningreinforcement-learningReinforcement Learning+1

Difficulty-aware Balancing Margin Loss for Long-tailed Recognition

2024-12-20 · Minseok Son, Inyong Koo, Jinyoung Park, Changick Kim

When trained with severely imbalanced data, deep neural networks often struggle to accurately recognize classes with only a few samples. Previous studies in long-tailed recognition have attempted to rebalance biased lear…

Learning Imbalanced Datasets with Maximum Margin Loss

2022-06-11 · Haeyong Kang, Thang Vu, Chang D. Yoo

A learning algorithm referred to as Maximum Margin (MM) is proposed for considering the class-imbalance data learning issue: the trained model tends to predict the majority of classes rather than the minority ones. That …

Enlarged Large Margin Loss for Imbalanced Classification

2023-06-15 · Sota Kato, Kazuhiro Hotta

We propose a novel loss function for imbalanced classification. LDAM loss, which minimizes a margin-based generalization bound, is widely utilized for class-imbalanced image classification. Although, by using LDAM loss, …

Classificationimage-classificationImage Classificationimbalanced classification

TAM: Topology-Aware Margin Loss for Class-Imbalanced Node Classification

2022-06-26 · Jaeyun Song, Joonhyung Park, Eunho Yang

Learning unbiased node representations under class-imbalanced graph data is challenging due to interactions between adjacent nodes. Existing studies have in common that they compensate the minor class nodes `as a group' …

Node Classification