Adaptive Sampling for Private Worst-Case Group Optimization

Max Cairney-Leeming, Amartya Sanyal, Christoph H. Lampert

Abstract

Models trained by minimizing average loss often fail to be accurate on small or hard-to-learn groups. While Distributionally Robust Optimization (DRO) addresses this by optimizing a weighted objective, doing so under Differential Privacy (DP) is problematic: unequal data weighting can result in inhomogeneous privacy guarantees, often weakening privacy for minority groups. We introduce ASC (Adaptively Sampled and Clipped Worst-case Group Optimization), which adaptively controls both the sampling rate and the clipping threshold of each group. ASC allows harder-to-learn groups to be sampled more often while ensuring consistent privacy guarantees across all groups, resulting in lower-variance gradients and substantially higher worst-case group accuracy.

The Challenge: Fairness vs. Privacy

To build trustworthy AI, models must be both fair (performing well across all demographic subgroups) and private (ensuring no individual's data can be reverse-engineered).

Typically, fairness is pursued via DRO, which dynamically assigns higher weights to data from poorly performing groups. Privacy is achieved via algorithms like DP-SGD, which clip gradients and add noise proportional to a data point's influence. Unfortunately, these goals often clash: upweighting a minority group requires adding more noise to their gradients to maintain the same privacy level. Because minority groups already have less data, this increased noise often drowns out their learning signal. Previous attempts at non-uniform sampling failed in practice due to massive gradient variance and unequal privacy guarantees for unbalanced groups.

ASC: Balancing Sampling and Clipping

The proposed ASC algorithm modifies the standard DP-SGD loop with two coupled mechanisms:

  1. Adaptive Sampling: Instead of a fixed batch size, ASC dynamically allocates a total batch size $M$ into per-group sizes $m_g$. Groups with higher current losses are assigned a larger share of the batch.
  2. Balanced Clipping: To prevent increased sampling from violating privacy, ASC dynamically adjusts the gradient clipping threshold $\xi_g$ for each group. As a group's sampling rate increases, its clipping threshold is proportionally decreased.

By inversely coupling these two levers, the privacy loss remains perfectly consistent across all groups. Finally, clipped gradients are aggregated and noise is added once, drastically reducing total noise compared to adding noise to each group separately.

Key Insights: Overcoming the Variance Trap

A core contribution of ASC is identifying the "variance trap" in private DRO. Prior methods often lead to massive sampling variance because the noise multiplier must scale to protect the smallest group. ASC's group-mixed batches and dynamic clipping thresholds result in strictly lower expected variance, facilitating smoother optimization and better convergence.

ASC maintains significantly lower sampling variance across different batch sizes compared to prior methods like aZB-prop and aZB-weak.

Experimental Results

ASC was evaluated on three standard benchmarks: Unbalanced MNIST, CelebA, and Bank Account Fraud. Across all datasets, ASC dramatically outperformed both standard DP-SGD and prior work (aZB) under a strict privacy budget of $\epsilon = 1$.

  • Unbalanced MNIST: ASC achieved a Worst-Case Group Accuracy (WGA) of 59.2%, compared to 20.4% for DP-SGD.
  • CelebA: ASC reached 64.4% WGA (vs. 16.7% for DP-SGD) and improved average accuracy to 75.9%.
  • Bank Fraud: ASC achieved 43.9% WGA, whereas DP-SGD collapsed to 0.7%.
Performance metrics (WGA, AVG, and actual privacy leakage) vs. target privacy budget. ASC (green circles) achieves higher accuracy while strictly adhering to the target privacy budget, unlike baselines that require much higher actual epsilon to compete.

Conclusion

ASC demonstrates that coupling adaptive sampling with balanced clipping is essential for private and fair optimization. By reducing gradient variance and maintaining uniform privacy guarantees, ASC allows models to learn effectively from minority groups without compromising the privacy of any individual. This approach provides a robust framework for building models that are both distributionally robust and differentially private.

Summary updated

BibTeX
@misc{cairneyleeming2026adaptive,
  author = {Max Cairney-Leeming and Amartya Sanyal and Christoph H. Lampert},
  title = {{Adaptive Sampling for Private Worst-Case Group Optimization}},
  year = {2026},
  eprint = {2602.10820},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.10820},
}
Figure