journal article·2026-07-10Open access

Prototype-Based Transferability Analysis for Few-Shot Domain Adaptation in Cross-Domain Intrusion Detection

Kangseok Kim

Applied Sciences· Volume 16· Issue 14

Abstract

Few-shot domain adaptation (FSDA) has become an important approach for cross-domain intrusion detection by enabling models to leverage limited labeled target data under distribution shifts. Although numerous adaptation methods have been proposed, their effectiveness often varies considerably across transfer scenarios, leading to inconsistent performance across domains. This study investigates how prototype-based transferability can be used to characterize source–target compatibility prior to adaptation. To this end, a transferability-aware perspective on FSDA is presented by distinguishing between intra-domain separability, which characterizes the internal class structure of a domain, and cross-domain transferability, which reflects how effectively source-derived representations generalize to a target domain. Based on this distinction, a set of asymmetric transferability metrics is introduced to characterize prototype-based transferability from complementary perspectives. Across the evaluated transfer scenarios, stronger intra-domain separability did not necessarily coincide with better cross-domain transferability. Furthermore, the empirical results indicate that different adaptation strategies exhibit different behaviors across the examined transfer directions. Across the two evaluated transfer directions, the prototype-based transferability analysis and the few-shot adaptation results exhibit different behaviors. While target-only few-shot learning performs competitively in one transfer direction, prototype-based alignment methods provide larger improvements in the other, illustrating that adaptation performance reflects not only source–target compatibility but also intrinsic target-domain separability and the adaptation process itself. These observations provide an empirical perspective for interpreting the varying performance of existing FSDA methods and highlight the importance of considering transfer conditions when selecting adaptation strategies for cross-domain intrusion detection.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Domain Adaptation and Few-Shot Learning · Anomaly Detection Techniques and Applications · Network Security and Intrusion Detection

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Cyber Security, College of Computing and Informatics in Ajou University, Suwon 16499, Republic of Korea

Funding

National Research Foundation of Korea

References (37)

Show source-provided references
1. Wang, Y., Mäntylä, M.V., Nyyssölä, J., Ping, K., and Wang, L. (2025, January 4–7). Cross-System Software Log-based Anomaly Detection Using Meta-Learning. Proceedings of the IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER), Montreal, QC, Canada.10.1109/SANER64311.2025.00049 ↗
2. Duan, C., He, M., Xiao, P., Jia, T., Zhang, X., Zhong, Z., Luo, X., Niu, Y., Zhang, L., and Yu, S. (2025, January 16–20). LogAction: Consistent Cross-system Anomaly Detection through Logs via Active Domain Adaptation. Proceedings of the 40th IEEE/ACM International Conference on Automated Software Engineering (ASE), Seoul, Republic of Korea.10.1109/ASE63991.2025.00064 ↗
3. Pospieszny, P., Mormul, W., Szyndler, K., and Kumar, S. (2025, January 23–25). ADALog: Adaptive unsupervised anomaly detection in logs with self-attention masked language model. Proceedings of the 10th International Conference on Machine Learning Technologies (ICMLT), Helsinki, Finland.10.1109/ICMLT65785.2025.11193311 ↗
4. Zhao, X., Jia, T., He, M., Yang, X., and Li, Y. (2025). FusionLog: Cross-System Log-based Anomaly Detection via Fusion of General and Proprietary Knowledge. arXiv.
5. Vinyals, O., Blundell, C., Lillicrap, T., Kavukcuoglu, K., and Wierstra, D. (2016, January 5–10). Matching networks for one shot learning. Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Barcelona, Spain.
6. Snell, J., Swersky, K., and Zemel, R.S. (2017, January 4–9). Prototypical networks for few-shot learning. Proceedings of the 31st International Conference on Neural Information Processing Systems (NIPS), Long Beach, CA, USA.
7. Sung, F., Yang, Y., Zhang, L., Xiang, T., Torr, P.H.S., and Hospedales, T.M. (2018, January 18–22). Learning to compare: Relation network for few-shot learning. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake City, UT, USA.10.1109/CVPR.2018.00131 ↗
8. Finn, C., Abbeel, P., and Levine, S. (2017, January 6–11). Model-agnostic meta-learning for fast adaptation of deep networks. Proceedings of the International Conference on Machine Learning (ICML), Sydney, Australia.
9. Long, M., Cao, Y., Wang, J., and Jordan, M.I. (2015, January 6–11). Learning transferable features with deep adaptation networks. Proceedings of the International Conference on Machine Learning (ICML), Lille, France.
10. Sun, B., and Saenko, K. (2016, January 11–14). Deep CORAL: Correlation alignment for deep domain adaptation. Proceedings of the European Conference on Computer Vision (ECCV), Amsterdam, The Netherlands.10.1007/978-3-319-49409-8_35 ↗
11. Ganin, Y., and Lempitsky, V. (2015, January 6–11). Unsupervised domain adaptation by backpropagation. Proceedings of the International Conference on Machine Learning (ICML), Lille, France.
12. Domain-adversarial training of neural networks
13. Long, M., Cao, Z., Wang, J., and Jordan, M.I. (2018, January 3–8). Conditional adversarial domain adaptation. Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Montréal, QC, Canada.
14. Saito, K., Watanabe, K., Ushiku, Y., and Harada, T. (2018, January 18–22). Maximum classifier discrepancy for unsupervised domain adaptation. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake City, UT, USA.10.1109/CVPR.2018.00392 ↗
15. Zhang, Y., Liu, T., Long, M., and Jordan, M.I. (2019, January 9–15). Bridging theory and algorithm for domain adaptation. Proceedings of the International Conference on Machine Learning (ICML), Long Beach, CA, USA.
16. Wang, J., Chen, Y., Hao, S., Feng, W., and Shen, Z. (2017, January 18–21). Balanced distribution adaptation for transfer learning. Proceedings of the 2017 IEEE International Conference on Data Mining (ICDM), New Orleans, LA, USA.10.1109/ICDM.2017.150 ↗
17. A theory of learning from different domains10.1007/s10994-009-5152-4 ↗
18. Pan, Y., Yao, T., Li, Y., Wang, Y., Ngo, C.-W., and Mei, T. (2019, January 16–20). Transferrable prototypical networks for unsupervised domain adaptation. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA.10.1109/CVPR.2019.00234 ↗
19. Wang, H., and Deng, Z.-H. (2021, January 19–26). Cross-domain few-shot classification via adversarial task augmentation. Proceedings of the International Joint Conference on Artificial Intelligence (IJCAI), Virtually.10.24963/ijcai.2021/149 ↗
20. Teshima, T., Sato, I., and Sugiyama, M. (2020, January 12–18). Few-shot domain adaptation by causal mechanism transfer. Proceedings of the International Conference on Machine Learning (ICML), Vienna, Austria.
21. Han, X., and Yuan, S. (2021, January 1–5). Unsupervised cross-system log anomaly detection via domain adaptation. Proceedings of the 30th ACM International Conference on Information and Knowledge Management (CIKM), Queensland, Australia.10.1145/3459637.3482209 ↗
22. LogMeta: A few-shot model-agnostic meta-learning framework for robust and adaptive log anomaly detection10.1016/j.jss.2026.112781 ↗
23. Sui, Y., Wang, X., Cui, T., Xiao, T., He, C., Zhang, S., Zhang, Y., Yang, X., Sun, Y., and Pei, D. (2025, January 19–23). Bridging the Gap: LLM-Powered transfer learning for log anomaly detection in new software systems. Proceedings of the 41st IEEE International Conference on Data Engineering (ICDE), Hong Kong, China.10.1109/ICDE65448.2025.00331 ↗
24. Yue, X., Zheng, Z., Zhang, S., Gao, Y., Darrell, T., Keutzer, K., and Vincentelli, A.S. (2021, January 19–25). Prototypical cross-domain self-supervised learning for few-shot unsupervised domain adaptation. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Virtually.10.1109/CVPR46437.2021.01362 ↗
25. LogDLR: Unsupervised cross-system log anomaly detection through domain-invariant latent representation10.1109/TDSC.2025.3548050 ↗
26. Ye, J., Wang, Z., Su, C., Yang, J., Ding, J., Liu, C., and Chu, G. (2025). LogICL: Distilling LLM reasoning to bridge the semantic gap in cross-domain log anomaly detection. arXiv.
27. Gu, Q., Li, Z., and Han, J. (2011, January 14–17). Generalized Fisher score for feature selection. Proceedings of the 27th Conference on Uncertainty in Artificial Intelligence (UAI), Barcelona, Spain.
28. Chen, T., Kornblith, S., Norouzi, M., and Hinton, G. (2020, January 12–18). A simple framework for contrastive learning of visual representations. Proceedings of the 37th International Conference on Machine Learning (ICML), Vienna, Austria.
29. Jiang, Z., Li, Y., Yang, C., Gao, P., Wang, Y., Tai, Y., and Wang, C. (2022, January 23–27). Prototypical contrast adaptation for domain adaptive semantic segmentation. Proceedings of the European Conference on Computer Vision (ECCV), Tel Aviv, Israel.10.1007/978-3-031-19830-4_3 ↗
30. Wang, K., Liew, J.H., Zou, Y., Zhou, D., and Feng, J. (November, January 29). PANet: Few-shot image semantic segmentation with prototype alignment. Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Seoul, Republic of Korea.
31. Wei, L., Lang, C., Chen, Z., Wang, T., Li, Y., and Liu, J. (2024, January 8–13). Generated and pseudo content guided prototype refinement for few-shot point cloud segmentation. Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Montreal, QC, Canada.10.52202/079017-0980 ↗
32. Creech, G., and Hu, J. (2013, January 7–10). Generation of a new IDS test dataset: Time to retire the KDD collection. Proceedings of the IEEE Wireless Communications and Networking Conference (WCNC), Shanghai, China.10.1109/WCNC.2013.6555301 ↗
33. On the detection of lateral movement through supervised machine learning and an open-source tool to create turnkey datasets from Sysmon logs10.1007/s10207-023-00725-8 ↗
34. Chen, J., Xiao, S., Zhang, P., Luo, K., Lian, D., and Liu, Z. (2024). BGE M3-Embedding: Multi-Lingual, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillation. arXiv.10.18653/v1/2024.findings-acl.137 ↗
35. He, P., Zhu, J., Zheng, Z., and Lyu, M.R. (2017, January 25–30). Drain: An online log parsing approach with fixed depth tree. Proceedings of the 2017 IEEE International Conference on Web Services (ICWS), Honolulu, HI, USA.10.1109/ICWS.2017.13 ↗
36. Ben-David, S., Blitzer, J., Crammer, K., and Pereira, F. (2007). Analysis of representations for domain adaptation. Advances in Neural Information Processing Systems (NIPS): Proceedings of the 2006 Conference, Cambridge, MA, USA, MIT Press.10.7551/mitpress/7503.003.0022 ↗
37. Wang, Z., Dai, Z., Póczos, B., and Carbonell, J. (2019, January 16–20). Characterizing and avoiding negative transfer. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA.10.1109/CVPR.2019.01155 ↗