Semantic-Statistical Prior Banks for Federated Low-Shot Learning under Non-IID Clients
Abstract
Federated intrusion detection must adapt to rare attacks from only a few labeled flows per client, while client distributions are highly non-IID and raw traffic cannot be centralized. Cross-client class statistics can help estimate local class distributions from these limited samples, but standard parameter aggregation does not directly provide such information. We therefore propose a semantic-statistical prior bank that makes these statistics reusable for local low-shot adaptation. After federated representation learning, clients submit protected class-wise moment statistics through secure aggregation. The server uses these aggregated statistics to construct a global prior bank without accessing raw traffic. During local episodic adaptation, each client uses the exact class prior when available and retrieves a related prior through label-phrase embeddings otherwise. The selected prior is combined with scarce support statistics through maximum a posteriori (MAP) shrinkage in the feature space. The adapted class distributions are then used to train lightweight episode-specific classifiers on each client. Experiments on CICIDS2017 and CICDDoS2019 under 5-way 1-shot and 5-shot non-IID settings show consistent improvements over FedAvg and backbone-matched baselines, with the largest gains appearing in 1-shot and highly skewed client distributions. With ResNet1D, the proposed adaptation improves 1-shot F1 from 92.97 to 95.55 on CICIDS2017 and from 82.13 to 88.25 on CICDDoS2019.