Differential Privacy Under Class Imbalance: Methods and Empirical Insights

Lucas Rosenblatt, Yuliia Lut, Ethan Turok, Marco Avella Medina, Rachel Cummings

This paper tackles a critical intersection in modern machine learning: how to protect individual privacy while still learning effectively from "needle-in-a-haystack" datasets. The authors demonstrate that standard techniques for handling class imbalance (like SMOTE) are incompatible with Differential Privacy (DP) because they "explode" the privacy budget. Instead, they show that the most effective "DP-safe" strategy is a pipeline approach: generate private synthetic data to balance the classes, then train a high-performance non-private model like XGBoost.

What Problem Does This Paper Address?

In many high-stakes domains—like fraud detection or rare disease diagnosis—the data is naturally imbalanced. The "minority" class (the fraud or the disease) is much smaller than the "majority" class. Standard machine learning models often ignore the minority class to achieve high overall accuracy.

Differential Privacy (DP) adds a layer of mathematical noise to protect individual records. However, this noise is a "blind" equalizer; it hits small groups much harder than large ones. Previous research has shown that DP can catastrophically reduce accuracy for minority groups, potentially magnifying bias and unfairness. The authors set out to find which imbalanced learning remedies actually work under the strict constraints of DP.

Methods

The paper categorizes solutions into two main buckets: Pre-processing (Data Augmentation) and In-processing (Algorithmic Adjustments).

Summary of Methods

1. Pre-processing (Data Augmentation)

  • The "Bad" News: The authors prove that standard methods like Oversampling and SMOTE are ill-suited for DP. In their theoretical analysis, they show that SMOTE's privacy loss scales exponentially with data dimensionality. Because SMOTE creates new points based on existing ones, changing one original record can change many synthetic ones, requiring a massive (and utility-killing) amount of noise to hide.
  • The "Good" News: They propose using DP Synthetic Data (specifically the GEM algorithm). By privatizing the data distribution itself first, you can then draw as many samples as needed to balance the classes without further privacy loss.

2. In-processing (Algorithmic Adjustments)

  • Weighted Private ERM: They adapt the canonical private Empirical Risk Minimization (ERM) algorithm to include class weights. They provide a new sensitivity analysis to ensure this remains DP.
  • Weighted DP-SGD: They show that incorporating weights into Differentially Private Stochastic Gradient Descent is straightforward but yields mixed results in practice.
  • Bagging: They debunk the idea that non-private bagging provides "intrinsic" DP, showing that the resulting privacy parameters are too weak to be meaningful.

Datasets and Key Insights

The authors evaluated their methods on eight real-world imbalanced datasets from the imblearn repository, spanning medical, biological, technical, and social domains. Imbalance ratios ranged from 8.6 to 130, with dataset sizes ranging from a few hundred to over 11,000 records.

  • The Sensitivity Trap: The core insight is that data-dependent augmentation (like SMOTE) is a privacy liability. If a synthetic point is a function of a real point, the "sensitivity" of the algorithm spikes. DP synthetic data avoids this by decoupling the privacy intervention from the final model training.
  • Pipelines > Isolated Models: The authors argue for a "pipeline" philosophy. Instead of trying to make every model "intrinsically" private, it is often better to use a DP mechanism to create a balanced intermediate dataset and then use the best available non-private tool (like XGBoost) for the final prediction.
  • Neural Models Struggle: Despite the hype around tabular transformers, the authors found that FTTransformer performed poorly in these low-data, imbalanced DP regimes compared to simpler weighted linear models or boosted trees.

Key Results

The authors used an "Olympic medal" ranking system (Gold, Silver, Bronze) to compare methods across metrics like AUC, F1-score, and Recall.

Olympic Medal Rankings
  • The Champion: GEM + XGBoost (Private Synthetic Data + Non-Private XGBoost) was the clear winner, taking "Gold" in 7 out of 8 evaluation metrics on average.
  • The Specialist: Private Weighted Logistic Regression performed best specifically for Recall, making it a strong candidate for "screening" tasks where missing a minority case is the worst-case scenario.
  • The Failure: SMOTE and Bagging were empirically confirmed to be ineffective when properly adjusted for DP requirements.

Limitations and Future Work

  • The Curse of Dimensionality: While DP synthetic data (GEM) won in low dimensions, the authors acknowledge it struggles as the number of features increases. In high-dimensional settings, Weighted Private ERM remains the more robust choice.
  • Hyperparameter Tuning: Private models are notoriously difficult to tune because the tuning process itself consumes the privacy budget. The authors used default settings for private models to ensure an "honest" comparison, but better private tuning methods could close the gap.
  • Multi-class Expansion: The current work focuses on binary classification; extending these rigorous sensitivity analyses to multi-class imbalanced settings is a logical next step.

Summary updated

BibTeX
@inproceedings{rosenblatt2025differential,
  author = {Lucas Rosenblatt and Yuliia Lut and Ethan Turok and Marco Avella Medina and Rachel Cummings},
  title = {{Differential Privacy Under Class Imbalance: Methods and Empirical Insights}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=SgIg3cZjuN},
}
Figure