Manuscript Offprint

arXiv:2610.19808

Adaptive and Proximal Federated Optimization for Transferable Network Intrusion Detection

Rezwan Islam Salvi, MD Rafin Jawad Hafiz, Abeer Mahmood Kalam, Md Moniruzzaman

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Rezwan Islam Salvi, MD Rafin Jawad Hafiz, Abeer Mahmood Kalam, and Md Moniruzzaman

Department of Computer Science and Engineering

Islamic University of Technology

Dhaka, Bangladesh

{rezwanislam, rafinjawad, abeermahmood, milton}@iut-dhaka.edu

Abstract—Network Intrusion Detection Systems (NIDS) based on deep learning often fail to detect attack classes that are absent from training data, limiting their robustness against zero-day threats. This property called transferability across attack classes, remains underexplored especially in federated learning (FL) settings where data heterogeneity and client drift pose additional challenges. Prior work (TabFIDS) showed that FedAvg combined with bootstrapping and temporal averaging improves transferability for cross-device NIDS. In this paper, we explore whether other federated optimizers can do better. We compare two optimizers inspired by FedAdam and FedProx against the FedAvg baseline on the CIC-IDS 2017 dataset using an 11-client federated setup, sweep 10 hyperparameter configurations, and contrast two data-balancing strategies: bootstrapping and SMOTE. Using the count of client pairs whose transferred-model accuracy exceeds 70% as our primary metric (following TabFIDS), the proximal optimizer with a strong regularization term yields 48 transferable pairs versus 42 for FedAvg, while the adaptive optimizer with an aggressive server learning rate yields 46 pairs. SMOTE improves per-pair accuracy over bootstrapping but reduces breadth, revealing a depth-vs-breadth trade-off: high accuracy on a few client pairs versus moderate accuracy across most. These results indicate that the choice of federated optimizer, the rule by which client updates are regularized and aggregated into the global model, is very important for federated NIDS.

Index Terms—Federated Learning, Network Intrusion Detection, Transferability, FedAdam, FedProx, FedAvg, CIC-IDS 2017

I. INTRODUCTION

Network Intrusion Detection Systems (NIDS) are essential for securing modern networks against an evolving landscape of cyber threats [1]. Deep learning has substantially improved NIDS performance on known attacks by automatically learning intricate, non-linear traffic patterns, eliminating the heavy manual feature engineering required by classical methods such as Naive-Bayes classifiers, Random Forests, and Support Vector Machines [2]. Yet trained detectors still struggle to generalize to attack classes that were absent from training data. This generalization property—transferability—is critical for detecting zero-day threats without frequent retraining. A model that transfers well across attack classes also reduces computational cost, since useful detectors can be learned from a fragment of the threat space rather than a large corpus.

A second challenge in deploying NIDS at scale is data privacy. Federated learning (FL) [3] addresses this by training a global model across distributed clients without sharing raw data, keeping sensitive records on-device. However, FL's effectiveness is sensitive to non-IID data distributions and client drift [4], both of which are pronounced in NIDS, where attack distributions vary sharply across deployment sites. Recent work has shown that an FL-based NIDS: TabFIDS [5], achieves better transferability than centralized baselines by combining FedAvg with bootstrapping and temporal averaging on the CIC-IDS 2017 dataset, reporting 31 transferable pairs against 17 for the centralized model and 2 for baseline federated training.

However, FedAvg itself is known to converge slowly and unstably under heterogeneity. Two well-established alternatives: FedAdam [6] (adaptive server-side optimization) and FedProx [7] (client-side proximal regularization)—have been shown to outperform FedAvg in non-IID settings on standard benchmarks, and FedProx has been successfully applied to anomaly-based NIDS in Fed-ANIDS [8]. Whether these advances translate into improved transferability across attack classes, a setting fundamentally different from same-class evaluation, has not been studied systematically. Our work builds directly on the work of Ghosh et al. [2], [5], [9]: we retain their CIC-IDS 2017 cross-device protocol and transferability metric, but replace the fixed FedAvg aggregation rule with adaptive and proximal optimizers inspired by FedAdam and FedProx, treating the choice of federated optimizer, rather than the preprocessing pipeline alone, as the primary design variable.

Contributions. This paper makes three contributions:

  • We replace TabFIDS’s FedAvg with adaptive and proximal optimizers inspired by FedAdam and FedProx and conduct a hyperparameter sweep across 10 configurations, evaluating cross-class transferability on CIC-IDS 2017 under an identical 11-client protocol.

  • We compare bootstrapping against SMOTE for class balancing in federated training, and show that bootstrapping dominates SMOTE.

• We characterize a depth-vs-breadth trade-off and identify which choices favour each goal.

References (14)