[Paper Review] Federated Learning with Anomaly Detection via Gradient and Reconstruction Analysis
This paper proposes a dual-layered anomaly detection framework for Federated Learning that combines gradient-based analysis and autoencoder-driven data reconstruction to detect poisoned data with 15% higher accuracy than existing methods, while maintaining low false positives. The method uses dynamic thresholding and outperforms baselines on MNIST and CIFAR-10, setting new benchmarks in FL security.
In the evolving landscape of Federated Learning (FL), the challenge of ensuring data integrity against poisoning attacks is paramount, particularly for applications demanding stringent privacy preservation. Traditional anomaly detection strategies often struggle to adapt to the distributed nature of FL, leaving a gap our research aims to bridge. We introduce a novel framework that synergizes gradient-based analysis with autoencoder-driven data reconstruction to detect and mitigate poisoned data with unprecedented precision. Our approach uniquely combines detecting anomalous gradient patterns with identifying reconstruction errors, significantly enhancing FL model security. Validated through extensive experiments on MNIST and CIFAR-10 datasets, our method outperforms existing solutions by 15\% in anomaly detection accuracy while maintaining a minimal false positive rate. This robust performance, consistent across varied data types and network sizes, underscores our framework's potential in securing FL deployments in critical domains such as healthcare and finance. By setting new benchmarks for anomaly detection within FL, our work paves the way for future advancements in distributed learning security.
Motivation & Objective
- To address the critical challenge of data poisoning in federated learning, where malicious clients can compromise model integrity without violating privacy constraints.
- To overcome limitations of existing anomaly detection methods in FL, which often fail under data heterogeneity, communication inefficiencies, and lack of labeled malicious samples.
- To develop a robust, adaptive defense mechanism that operates within the privacy-preserving constraints of FL while maintaining high detection accuracy.
- To establish new benchmarks for anomaly detection in FL by combining gradient irregularity detection with reconstruction error analysis using autoencoders.
Proposed method
- The framework employs gradient-based analysis to detect anomalous client updates by identifying irregular patterns in the gradients of loss functions, signaling potential poisoning attacks.
- An autoencoder is trained on normal client data to learn a compact representation, and reconstruction error is used as a metric to identify data anomalies.
- A dynamic sensitivity factor adjusts the anomaly detection threshold in real time, improving adaptability to evolving adversarial strategies and reducing false positives.
- The system fuses results from both gradient analysis and reconstruction error to make final anomaly decisions, creating a dual-layered defense mechanism.
- The method is evaluated using standard FL training pipelines on MNIST and CIFAR-10, with comparisons to PCA and CAE baselines.
- Receiver Operating Characteristic (ROC) curves and AUC scores are used to quantitatively assess detection performance across datasets.

Experimental results
Research questions
- RQ1Can gradient-based analysis effectively detect poisoned data updates in federated learning without requiring labeled malicious samples?
- RQ2To what extent does autoencoder-based reconstruction error serve as a reliable anomaly indicator in heterogeneous FL data distributions?
- RQ3How does the integration of gradient and reconstruction analysis improve detection accuracy compared to single-metric approaches?
- RQ4What is the impact of dynamic thresholding on reducing false positive rates in real-time FL anomaly detection?
- RQ5How does the framework perform across diverse datasets like MNIST and CIFAR-10, given differences in data complexity and dimensionality?
Key findings
- The proposed framework achieves 15% higher anomaly detection accuracy than existing methods on both MNIST and CIFAR-10 datasets.
- The method maintains a minimal false positive rate, demonstrating strong reliability in distinguishing between benign and malicious updates.
- ROC curves for MNIST show a high true positive rate and low false positive rate, with a high AUC, indicating excellent detection performance.
- CIFAR-10 results show a reasonable but lower AUC than MNIST, reflecting the increased complexity of color images and higher-dimensional data.
- Reconstruction errors on CIFAR-10 were consistently low, suggesting the autoencoder captures complex patterns but may require model refinement for optimal anomaly sensitivity.
- The dual-layered approach—combining gradient irregularity detection and reconstruction error—proves more effective than standalone methods like PCA or CAE.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.