NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Re-weighting Based Group Fairness Regularization via Classwise Robust Optimization

Sangwon Jung, Taeeon Park, Sanghyuk Chun, Taesup Moon

In the quest to build machine learning models that don't discriminate, researchers usually pick one of two paths: re-weighting (giving more importance to underrepresented groups) or regularization (adding a "fairness penalty" to the loss function). While re-weighting is flexible, it often lacks a solid theoretical foundation. Regularization is theoretically grounded but can be a nightmare to tune or limited to specific model architectures.

At ICLR 2023, researchers from Seoul National University and NAVER AI Lab presented FairDRO, a framework that proves you don't have to choose. By using the math of Distributionally Robust Optimization (DRO), they’ve created a method that is both theoretically principled and practically flexible across tabular, vision, and language tasks.

TL;DR

FairDRO unifies re-weighting and regularization by incorporating a group fairness metric (Difference of Conditional Accuracy) into a classwise Distributionally Robust Optimization framework. It automatically learns optimal—and sometimes even negative—group weights to achieve state-of-the-art accuracy-fairness trade-offs across diverse datasets.

What Problem Does This Paper Address?

Machine learning models often inherit biases from their training data, leading to performance gaps across sensitive groups (e.g., race or gender). To fix this "in-processing" (during training), we usually see:

  1. Regularization-based methods: These add a term to the objective function to penalize unfairness. However, these terms are often non-differentiable or specific to binary classification.
  2. Re-weighting-based methods: These adjust the importance of samples. While easy to implement, many are heuristic (e.g., "just double the weight of the minority group") and lack a guarantee that they are actually optimizing for a specific fairness metric.

The authors identify a gap: there is no "gold standard" that combines the theoretical rigor of regularization with the architectural flexibility of re-weighting, especially for complex multi-class problems.

Methods

The core of the paper is a method called FairDRO (Fairness-aware Distributionally Robust Optimization). Here is how it works:

  • The Metric: They focus on Difference of Conditional Accuracy (DCA), a multi-class extension of Equalized Opportunity. It measures the gap in accuracy between groups for each specific class.
  • The Mathematical Bridge: The authors prove a key proposition: DCA is equivalent (up to a constant) to the square root of the variance of groupwise losses.
  • Classwise DRO: Standard Group DRO tries to minimize the worst-case loss across all groups. FairDRO applies this separately for each class. This "classwise" treatment is what aligns the optimization objective directly with the DCA fairness metric.
  • Quasi-Probabilities: Most re-weighting schemes only allow positive weights. FairDRO uses a $\chi^2$-divergence uncertainty set that allows for negative weights. This allows the model to "aggressively penalize" groups that already have high accuracy to force the model to close the fairness gap.
  • Optimization: They use a smoothed Iterated Best Response (IBR) algorithm. This prevents the weights from oscillating wildly during training, leading to more stable convergence.

Key Insights and Ideas

  • Variance as Fairness: The "aha moment" is the formal proof that minimizing the variance of performance across groups is mathematically the same as minimizing the DCA fairness metric.
  • The Power of Negativity: Traditional re-weighting is limited because you can only increase the importance of the "unlucky" group. By allowing negative weights, FairDRO can actively "push back" on the groups the model finds too easy, providing a much wider range of options on the accuracy-vs-fairness Pareto frontier.
  • Architecture Agnostic: Because FairDRO essentially just changes the weights of the samples in the loss function, it works with Logistic Regression, ResNets, and BERT without needing to change the model's internal structure.

Key Results

The authors evaluated FairDRO across three distinct modalities to prove its versatility: Tabular (Adult, COMPAS), Vision (UTKFace), and Natural Language (CivilComments). FairDRO consistently achieved the best trade-off between accuracy and fairness (the "Pareto frontier") compared to nine strong baselines.

Accuracy vs. Fairness trade-off on Adult and COMPAS datasets
  • Superior Fairness on Tabular Data: On the Adult dataset, FairDRO achieved a DCA of 1.99%, significantly lower than the vanilla "Scratch" model (6.83%) and better than the best baseline, PL (2.55%). As seen in the trade-off curves above, FairDRO (red line) pushes further to the top-left (high accuracy, low DCA gap) than competing methods.
Accuracy vs. Fairness trade-off on UTKFace and CivilComments datasets
  • Scalability to Vision and NLP: Unlike some constrained optimization methods that fail on complex tasks, FairDRO performed robustly on vision (UTKFace) and NLP (CivilComments) tasks using deep neural networks. The curves demonstrate that FairDRO scales effectively to high-dimensional data without sacrificing its fairness guarantees.
  • Stability: The visualization of weight dynamics (not pictured) showed that while weights initially fluctuate (and go negative), the smoothed optimization allows them to converge, resulting in a smooth closing of the accuracy gap between groups.

Limitations and Future Work

  • Group Label Requirement: FairDRO requires sensitive group labels (like race or gender) to be available during training. In many real-world scenarios, these labels are missing or noisy.
  • Discrete Groups: The current formulation works best with discrete groups. For datasets with continuous sensitive attributes, the authors had to binarize the data.
  • Computational Overhead: While more efficient than some alternatives, calculating groupwise losses for the entire dataset to update weights adds some computational cost compared to standard empirical risk minimization.

Future work could involve extending FairDRO to "blind" fairness settings where group labels are unknown, or adapting the framework for continuous sensitive variables.

Summary updated

BibTeX
@inproceedings{jung2023re,
  author = {Sangwon Jung and Taeeon Park and Sanghyuk Chun and Taesup Moon},
  title = {{Re-weighting Based Group Fairness Regularization via Classwise Robust Optimization}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=Q-WfHzmiG9m},
}
Figure