FedDyMem: Efficient Federated Learning with Dynamic Memory and Memory-Reduce for Unsupervised Image Anomaly Detection
Silin Chen, Andy Liu, Kangjian Di, Yichu Xu, Han-Jia Ye, Wenhan Luo, Ningmu Zou
TL;DR
This work tackles privacy-preserving unsupervised image anomaly detection in a federated setting with heterogeneous intra-client distributions. It introduces FedDyMem, a memory-based framework where each client maintains a dynamic memory bank that is updated locally and then compressed via memory-reduce before being aggregated on a server with K-means to form a global memory shared by all clients. A memory generator and a metric loss align local memory distributions across clients, while the memory-reduce stage reduces communication overhead and privacy leakage. Experiments across six industrial and medical benchmarks show state-of-the-art AUROC performance, faster convergence, and robust privacy protection, highlighting the practical impact of memory-based knowledge sharing over parameter aggregation in federated unsupervised anomaly detection.
Abstract
Unsupervised image anomaly detection (UAD) has become a critical process in industrial and medical applications, but it faces growing challenges due to increasing concerns over data privacy. The limited class diversity inherent to one-class classification tasks, combined with distribution biases caused by variations in products across and within clients, poses significant challenges for preserving data privacy with federated UAD. Thus, this article proposes an efficient federated learning method with dynamic memory and memory-reduce for unsupervised image anomaly detection, called FedDyMem. Considering all client data belongs to a single class (i.e., normal sample) in UAD and the distribution of intra-class features demonstrates significant skewness, FedDyMem facilitates knowledge sharing between the client and server through the client's dynamic memory bank instead of model parameters. In the local clients, a memory generator and a metric loss are employed to improve the consistency of the feature distribution for normal samples, leveraging the local model to update the memory bank dynamically. For efficient communication and data privacy, a memory-reduce method based on weighted averages is proposed to significantly decrease the scale of memory banks. This reduced representation inherently, thereby mitigating the risk of data reconstruction. On the server, global memory is constructed and distributed to individual clients through k-means aggregation. Experiments conducted on six industrial and medical datasets, comprising a mixture of six products or health screening types derived from eleven public datasets, demonstrate the effectiveness of FedDyMem.
