Behavioral Anomaly Detection in Distributed Systems via Federated Contrastive Learning

Renzi Meng, Heyi Wang, Yumeng Sun, Qiyuan Wu, Lian Lian +1 more
6/24/2025
cs.LG
contrastive-sslfederated

No confident code implementation found for this paper.

Abstract

This paper addresses the increasingly prominent problem of anomaly detection in distributed systems. It proposes a detection method based on federated contrastive learning.

Show full abstract

The goal is to overcome the limitations of traditional centralized approaches in terms of data privacy, node heterogeneity, and anomaly pattern recognition. The proposed method combines the distributed collaborative modeling capabilities of federated learning with the feature discrimination enhancement of contrastive learning. It builds embedding representations on local nodes and constructs positive and negative sample pairs to guide the model in learning a more discriminative feature space. Without exposing raw data, the method optimizes a global model through a federated aggregation strategy. Specifically, the method uses an encoder to represent local behavior data in high-dimensional space. This includes system logs, operational metrics, and system calls. The model is trained using both contrastive loss and classification loss to improve its ability to detect fine-grained anomaly patterns. The method is evaluated under multiple typical attack types. It is also tested in a simulated real-time data stream scenario to examine its responsiveness. Experimental results show that the proposed method outperforms existing approaches across multiple performance metrics. It demonstrates strong detection accuracy and adaptability, effectively addressing complex anomalies in distributed environments. Through careful design of key modules and optimization of the training mechanism, the proposed method achieves a balance between privacy preservation and detection performance. It offers a feasible technical path for intelligent security management in distributed systems.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{meng2025behavioral,
  title  = {Behavioral Anomaly Detection in Distributed Systems via Federated Contrastive Learning},
  author = {Renzi Meng and Heyi Wang and Yumeng Sun and Qiyuan Wu and Lian Lian and Renhan Zhang},
  year   = {2025},
  eprint = {2506.19246},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.19246v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.19246.svg)](https://codeofpaper.com/paper/2506.19246)

Discussion