arXiv Machine Learning

MARGIN: Margin-Aware Regularized Geometry for Imbalanced Vulnerability Detection

arXiv:2605. 10240v3 Announce Type: replace-cross Abstract: Software vulnerability detection is critical for ensuring software security and reliability.

arXiv AI
Sep 18

Local Sparsity Enables Unsupervised LLM Safety Detection

The paper proposes a new unsupervised safety detection method for large language models that relies on anomaly detection rather than supervised training on unsafe data. By leveraging local sparsity in a linear representation space obtained via a sparse autoencoder, the authors develop a framework for locally masked SAE-based anomaly detection, providing theoretical support and empirical validation across multiple architectures and datasets. When calibrated with only 1% out-of-distribution data, the method achieves near‑optimal performance while using just 1–2% of SAE neurons for computation.

By Xin Chen, Gil Kur, Alexander Shevchenko, Andreas Krause
arXiv Computer Vision
Nov 16

Beyond Attack-Based Accuracy: Rethinking Adversarial Robustness Evaluation Through Structural Gradient Alignment

The paper proposes Structural Gradient Alignment (SGA), a new robustness metric that evaluates visual models by measuring how well the model’s local sensitivity aligns with the structure of input content. Unlike traditional methods that rely on specific attacks or in‑distribution data, SGA uses a handful of randomly sampled, unlabeled public probes and only one gradient computation per probe‑model pair. Across 38 diverse DNNs, VLMs, and LVLMs, SGA’s rankings align closely with attack‑based references, achieving high pairwise agreement even without prior robustness knowledge and outperforming existing baselines by over nine percentage points.

By Hanrui Wang, Yu Luo, Shuo Wang, Xingbo Dong, Zhe Jin, Isao Echizen