Refining Decision Boundaries In Anomaly Detection Using Similarity Search Within the Feature Space
Preprint
Abstract
Detecting rare and diverse anomalies in highly imbalanced datasets-such as Advanced Persistent Threats (APTs) in cybersecurity-remains a fundamental challenge for machine learning systems. Active learning offers a promising direction by strategically querying an oracle to minimize labeling effort, yet conventional approaches often fail to exploit the intrinsic geometric structure of the feature space for model refinement. In this paper, we introduce SDA2E, a Sparse Dual Adversarial Attention-based AutoEncoder designed to learn compact and discriminative latent representations from imbalanced, high-dimensional data. We further propose a similarity-guided active learning framework that integrates three novel strategies to refine decision boundaries efficiently: mormal-like expansion, which enriches the training set with points similar to labeled normals to improve reconstruction fidelity; anomaly-like prioritization, which boosts ranking accuracy by focusing on points resembling known anomalies; and a hybrid strategy that combines both for balanced model refinement and ranking. A key component of our framework is a new similarity measure, Normalized Matching 1s (SIM_NM1), tailored for sparse binary embeddings. We evaluate SDA2E extensively across 52 imbalanced datasets, including multiple DARPA Transparent Computing scenarios, and benchmark it against 15 state-of-the-art anomaly detection methods. Results demonstrate that SDA2E consistently achieves superior ranking performance (nDCG up to 1.0 in several cases) while reducing the required labeled data by up to 80% compared to passive training. Statistical tests confirm the significance of these improvements. Our work establishes a robust, efficient, and statistically validated framework for anomaly detection that is particularly suited to cybersecurity applications such as APT detection.Keywords
All Related Versions
This publication has 47 references indexed in Scilit:
- Weirdnodes: centrality based anomaly detection on temporal networks for the anti-financial crime domainApplied Network Science, 2025
- TTVAE: Transformer-based generative modeling for tabular data generationArtificial Intelligence, 2025
- TransNAS-TSAD: harnessing transformers for multi-objective neural architecture search in time series anomaly detectionNeural Computing and Applications, 2024
- Future of generative adversarial networks (GAN) for anomaly detection in network security: A reviewComputers & Security, 2024
- ATDAD: One-class adversarial learning for tabular data anomaly detectionComputers & Security, 2023
- A new two-phase intrusion detection system with Naïve Bayes machine learning for data classification and elliptic envelop method for anomaly detectionDecision Analytics Journal, 2023
- An Empirical Study on Anomaly Detection Algorithms for Extremely Imbalanced Datasets2022
- A Comprehensive Survey of Anomaly Detection AlgorithmsAnnals of Data Science, 2021
- Improving Imbalanced Classification by Anomaly Detection2020
- Image Anomaly Detection with Capsule Networks and Imbalanced Datasets2019