RPM-NET: RECIPROCAL POINT MLP NETWORK FOR UNKNOWN NETWORK SECURITY THREAT DETECTION
Jiachen Zhang, Yueming Lu \sthanks Corresponding author (Prof. Yueming Lu): [email protected], Fan Feng, Zhanfeng Wang, Shengli Pan, Daoqi Han · 2026
Read RPM-NET: RECIPROCAL POINT MLP NETWORK FOR UNKNOWN NETWORK SECURITY THREAT DETECTION by Jiachen Zhang, Yueming Lu \sthanks Corresponding author (Prof. Yueming Lu): [email protected], Fan Feng, Zhanfeng Wang, Shengli Pan, Daoqi Han (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2604-06638.txt.
Introduction
Zhang and five colleagues design RPM-Net, a network for spotting unknown threats amid many uneven attack classes. For each known attack type it learns a reciprocal point, a stand-in for what the class is not, and adds margin rules that give unknown-threat calls a geometric reading. A stronger variant, RPM-Net++, adds Fisher discriminant regularization. Tests show it beats existing methods on F1-score, AUROC, and AUPR-OUT, with code released for practical use.
Catalog record
| CREATOR | Jiachen Zhang, Yueming Lu \sthanks Corresponding author (Prof. Yueming Lu): [email protected], Fan Feng, Zhanfeng Wang, Shengli Pan, Daoqi Han |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 14157 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2604.06638
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
RPM-NET: RECIPROCAL POINT MLP NETWORK FOR UNKNOWN NETWORK SECURITY THREAT DETECTION Jiachen Zhang, Yueming Lu \sthanks Corresponding author (Prof. Yueming Lu): [email protected], Fan Feng, Zhanfeng Wang, Shengli Pan, Daoqi Han Abstract Effective detection of unknown network security threats in multi-class imbalanced environments is critical for maintaining cyberspace security. Current methods focus on learning class representations but face challenges with unknown threat detection, class imbalance, and lack of interpretability, limiting their practical use. To address this, we propose RPM-Net, a novel framework that introduces reciprocal point mechanism to learn ”non-class” representations for each known attack category, coupled with adversarial margin constraints that provide geometric interpretability for unknown threat detection. RPM-Net++ further enhances performance through Fisher discriminant regularization. Experimental results show that RPM-Net achieves superior performance across multiple metrics including F1-score, AUROC, and AUPR-OUT, significantly outperforming existing methods and offering practical value for real-world network security applications. Our code is available at: https://github.com/chiachen-chang/RPM-Net † † address: † School of Cyberspace Security, Beijing University of Posts and Telecommunications ‡ Guangxi Key Laboratory of Digital Infrastructure, Guangxi Zhuang Autonomous Region Information Center † † footnotetext: Note: This version corrects a transcription error in Table 1 (ODIN’s precision, recall, and f1 scores) compared to the conference proceedings. 1 Introduction Network technology advancement and digital transformation have elevated network security to a critical challenge [ 12 , 20 ] . Cyber attack techniques have become complex and diverse, expanding from conventional virus dissemination and denial of service attacks [ 18 ] to sophisticated forms such as ransomware, supply chain attacks, and zero-day exploits [ 8 ] . Attackers continuously refine their strategies, targeting victims with greater precision [ 7 ] . Figure 1: Illustration of open-set network threat detection. Conventional threat detection methods encounter unprecedented obstacles. The task involves accurate identification of known attack patterns and reliable detection of novel cyber threats [ 5 , 3 ] . This necessity has given rise to Open Set Recognition (OSR) [ 17 ] . OSR effectively differentiates between known attacks and unfamiliar threats using only known attack samples during training. This capability offers early warning and threat identification essential for network security. As illustrated in Figure 1 , practical threat detection systems operate under the open set assumption, encountering both known attack patterns and previously unseen threats during deployment. This challenge requires mechanisms that maintain high classification accuracy on familiar attack types while reliably identifying novel threats beyond the training distribution. Scattered unknown patterns demonstrate that malicious activities can emerge anywhere, often where traditional closed-set classifiers make overconfident predictions. Current open set identification techniques have notable theoretical and practical constraints. Firstly, most methods utilize simplistic binary classification, training only normal traffic or single attack types as positive samples [ 2 , 16 , 13 , 1 , 22 , 11 , 23 ] . This approach falls short in real network settings due to diverse attack types [ 15 ] , such as DDoS attacks, port scanning, brute force attacks, and malware propagation. Secondly, multi-class methods presume balanced class distribution, which conflicts with actual network scenarios where attack frequencies vary significantly. This class imbalance substantially impacts model generalization and detection accuracy [ 19 ] . Additionally, current methods lack efficient mechanisms to address relationships among known classes and construct feature spaces that naturally encompass unknown threat classes. To address these challenges, we propose RPM-Net, a novel multi-category open set recognition framework that integrates Reciprocal Points to represent ”non-class” spaces for each known attack category. By implementing Adversarial Margin Constraints, RPM-Net establishes adaptable boundary regions that push known attack types to the feature space periphery while creating central ”open space” for unidentified threats, mitigating category imbalance without requiring unknown class samples during training. We further enhance RPM-Net with Fisher discriminant regularization (RPM-Net++) to improve intra-class compactness and inter-class separability. The main contributions include: (1) a reciprocal point mechanism enabling effective multi-class attack differentiation by learning non-certain class representations; (2) Fisher discriminant regularization enhancing intra-class compactness and inter-class separability; (3) adaptive boundary construction through margin constraints addressing feature space challenges in multi-class unbalanced environments; and (4) a unified training strategy utilizing only known attack data to establish open-set recognition feature space. Figure 2: RPM-Net architecture and training process: (1)The top section illustrates the complete workflow from network flow samples through the neural network to reciprocal point space classification. (2)The bottom section details the three core loss functions: Margin Loss ensures separation between known classes and their reciprocal points, Fisher Loss enhances intra-class compactness and inter-class separability, and Classification Loss optimizes class probability distributions. The distance discriminator uses reciprocal point distances to classify new samples and detect unknown threats. 2 Proposed method 2.1 Overall Architecture : The overall architecture of the proposed RPM-Net model is shown in Figure 2 . RPM-Net consists of four components: (1) feature extractor \phi:\mathbb{R}^{d}\rightarrow\mathbb{R}^{m} , (2) learnable reciprocal points \{P^{k}\}_{k=1}^{K} for each known class, (3) adversarial margin constraints \{R^{k}\}_{k=1}^{K} , and (4) Fisher discriminant regularization (RPM-Net++ with it). The feature extractor is implemented as a multi-layer perceptron with ReLU activations and dropout regularization: \displaystyle\phi(x) \displaystyle=W_{3}\cdot\text{ReLU}(\text{Dropout}(W_{2}\cdot\text{ReLU}(\text{Dropout}(W_{1}x \displaystyle\quad+b_{1}))+b_{2}))+b_{3} (1) where W_{i} and b_{i} are learnable weight matrices and bias vectors, and Dropout denotes dropout regularization. 2.2 Reciprocal Point and Margin Constraints : Reciprocal points P^{k}\in\mathbb{R}^{m} represent ”what a class is not.” For each known class k , the reciprocal point P^{k} serves as the center of the feature space region that should not contain samples from class k . The distance from an embedding z=\phi(x) to reciprocal point P^{k} is computed as: d(z,P^{k})=d_{e}(z,P^{k})-d_{c}(z,P^{k}) (2) where d_{e}(z,P^{k})=\|z-P^{k}\|_{2}^{2}/m is the normalized Euclidean distance, and d_{c}(z,P^{k})=z^{T}P^{k}/(\|z\|_{2}\|P^{k}\|_{2}) is the cosine similarity. The classification logit for class k is then: \text{logit}_{k}(x)=\gamma\cdot d(z,P^{k}) (3) where \gamma is a scaling factor that controls the magnitude of the logits. Learnable margin parameters R^{k}>0 constrain known class samples to remain within distance R^{k} from their corresponding reciprocal point: L_{margin}=\frac{1}{N}\sum_{i=1}^{N}\max(d_{e}(z_{i},P^{y_{i}})-R^{y_{i}},0) (4) where d_{e}(z_{i},P^{y_{i}}) is the normalized Euclidean distance from sample i to its corresponding reciprocal point. This constraint prevents feature space explosion and creates boundaries that accommodate unknown classes in the central region. 2.3 Fisher Regularization and Training Objective : Fisher discriminant regularization maximizes the ratio of inter-class scatter to intra-class scatter. For embeddings \{z_{i}\} with corresponding labels \{y_{i}\} , we compute the within-class scatter and between-class scatter: S_{w}=\sum_{k=1}^{K}\sum_{i:y_{i}=k}\|z_{i}-\mu_{k}\|_{2}^{2} (5) S_{b}=\sum_{k=1}^{K}n_{k}\|\mu_{k}-\mu\|_{2}^{2} (6) where \mu_{k} is the mean embedding of class k , \mu is the global mean, and n_{k} is the number of samples in class k . The Fisher discriminant criterion maximizes S_{b}/S_{w} , reformulated as a loss function: L_{Fisher}=\frac{1}{1+S_{b}/S_{w}} (7) The overall training loss combines three objectives: L_{total}=\alpha L_{CE}+\lambda L_{margin}+\beta L_{Fisher} (8) where L_{CE} is cross-entropy loss using reciprocal point distances, L_{margin} enforces margin constraints, and L_{Fisher} promotes intra-class compactness and inter-class separability. Hyperparameters \alpha=1.0 , \lambda=1.0 , and \beta=1.0 . During training, reciprocal points and margins adapt to the data distribution, with known classes pushed toward the periphery and unknown regions forming in the center. 2.4 Inference and Unknown Detection : We compute the maximum reciprocal point distance: s(x)=\max_{k=1}^{K}d(\phi(x),P^{k}) (9) For classification: \hat{y}=\arg\max_{k=1}^{K}d(\phi(x),P^{k}) For unknown detection: if s(x)<\tau , the sample is classified as unknown. Threshold \tau is determined using validation data. Table 1: Performance comparison on CICIDS2017 and UNSW-NB15 datasets. Precision, Recall, and F1-score