Skip to main content
QUICK REVIEW

[Paper Review] The Tradeoff Between Privacy and Accuracy in Anomaly Detection Using Federated XGBoost

Mengwei Yang, Linqi Song|arXiv (Cornell University)|Jul 16, 2019
Privacy-Preserving Technologies in DataComputer Science28 references23 citations
TL;DR

This paper proposes a horizontal federated XGBoost framework for anomaly detection that balances privacy and accuracy through data aggregation and sparse federated updates. By grouping user data into virtual samples and focusing updates on misclassified instances, the method achieves up to 5% higher F1-score and 3.4% higher AUC than state-of-the-art methods, with a tunable trade-off between privacy (via cluster size) and performance.

ABSTRACT

Privacy has raised considerable concerns recently, especially with the advent of information explosion and numerous data mining techniques to explore the information inside large volumes of data. In this context, a new distributed learning paradigm termed federated learning becomes prominent recently to tackle the privacy issues in distributed learning, where only learning models will be transmitted from the distributed nodes to servers without revealing users' own data and hence protecting the privacy of users. In this paper, we propose a horizontal federated XGBoost algorithm to solve the federated anomaly detection problem, where the anomaly detection aims to identify abnormalities from extremely unbalanced datasets and can be considered as a special classification problem. Our proposed federated XGBoost algorithm incorporates data aggregation and sparse federated update processes to balance the tradeoff between privacy and learning performance. In particular, we introduce the virtual data sample by aggregating a group of users' data together at a single distributed node. We compute parameters based on these virtual data samples in the local nodes and aggregate the learning model in the central server. In the learning model upgrading process, we focus more on the wrongly classified data before in the virtual sample and hence to generate sparse learning model parameters. By carefully controlling the size of these groups of samples, we can achieve a tradeoff between privacy and learning performance. Our experimental results show the effectiveness of our proposed scheme by comparing with existing state-of-the-arts.

Motivation & Objective

  • To address privacy risks in distributed anomaly detection using sensitive, unbalanced datasets.
  • To design a federated learning framework that preserves user data privacy while maintaining high detection accuracy.
  • To explore the trade-off between data privacy (via data clustering) and model performance in federated XGBoost.
  • To improve learning efficiency and reduce communication costs through sparse model updates focused on misclassified samples.
  • To demonstrate the effectiveness of the proposed framework on real-world fraud detection, particularly in highly imbalanced data settings.

Proposed method

  • Data aggregation is used to create virtual data samples by grouping users' data under modified K-anonymity, preserving privacy while enabling split gain computation.
  • The framework computes split gains using aggregated feature sequences from virtual samples, avoiding direct transmission of raw user data.
  • A two-step process—data aggregation followed by federated model update—enables privacy-preserving training without exposing individual data.
  • Sparse federated updates are applied by prioritizing gradients from misclassified instances, reducing communication and improving convergence.
  • Model parameters are updated centrally based on aggregated gradients from virtual samples, maintaining model consistency across nodes.
  • The cluster size in virtual data aggregation is tuned to control the trade-off between privacy (larger clusters) and accuracy (smaller clusters).

Experimental results

Research questions

  • RQ1How can user data privacy be preserved in federated anomaly detection without compromising model accuracy?
  • RQ2What is the impact of virtual data clustering size on the trade-off between privacy and detection performance?
  • RQ3Can sparse federated updates focused on misclassified samples improve learning efficiency and model accuracy?
  • RQ4How does the proposed federated XGBoost framework compare to existing state-of-the-art methods in anomaly detection on unbalanced datasets?
  • RQ5To what extent does the two-step data aggregation and model update process enhance privacy while maintaining model performance?

Key findings

  • The proposed federated XGBoost framework achieves an F1-score of 0.9014 on the original dataset dimension, outperforming GBDT and Random Forest by up to 5% in F1-score.
  • When the virtual cluster size is reduced to 405, the F1-score drops to 0.8951, showing a measurable trade-off between privacy and accuracy.
  • The AUC of the updated federated XGBoost model reaches 0.9748 on the original dimension, a 3.4% improvement over the baseline.
  • The AUPRC results demonstrate consistent improvement after the update, with higher precision and recall on both training and test sets.
  • The training loss of the federated XGBoost framework decreases faster than GBDT, indicating faster convergence.
  • The model maintains high accuracy (0.9997) across all configurations, confirming that accuracy alone is insufficient for evaluating performance on imbalanced datasets.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.