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

Fair Bilevel Neural Network (FairBiNN): On Balancing fairness and accuracy via Stackelberg Equilibrium

Mehdi Yazdani-Jahromi, Ali Khodabandeh Yalabadi, Amirarsalan Rajabi, Aida Tayebi, Ivan Garibay, Ozlem Garibay

Abstract

As machine learning models are increasingly deployed in high-stakes domains such as healthcare, hiring, and criminal justice, the tension between predictive accuracy and algorithmic fairness has become a central challenge. Traditional "in-process" mitigation strategies often rely on Lagrangian optimization, which uses a weighted sum of accuracy and fairness objectives. However, this approach frequently results in sub-optimal trade-offs. This paper introduces FairBiNN (Fair Bilevel Neural Network), a novel framework that reframes the accuracy-fairness trade-off as a hierarchical "leader-follower" game. By utilizing a Stackelberg Equilibrium, FairBiNN consistently identifies superior Pareto-optimal solutions across diverse datasets, including tabular, graph, and vision modalities.

1. Introduction

The "accuracy-fairness gap" represents a significant hurdle in responsible AI: efforts to reduce discrimination against protected groups (e.g., based on race or gender) often lead to a degradation in the model's primary predictive performance. Most existing solutions treat this as a multi-objective optimization problem solved via scalarization—combining objectives into a single loss function with a regularization term. This method requires exhaustive hyperparameter tuning and often fails to capture the complex, non-linear interdependencies between accuracy and fairness.

FairBiNN addresses these limitations by adopting a bilevel optimization strategy. Instead of a simple weighted sum, the model is structured as a hierarchy where accuracy and fairness are optimized at different levels, ensuring a more principled approach to balancing these competing goals.

2. Methodology

2.1 The Stackelberg Game

FairBiNN models the interaction between accuracy and fairness as a Stackelberg Equilibrium. In this game-theoretic framework:

  • The Leader (Upper Level): Focuses on the primary objective—minimizing the prediction loss to ensure high accuracy.
  • The Follower (Lower Level): Optimizes the secondary objective—enforcing fairness constraints.

Unlike standard optimization where both goals are updated simultaneously, the Leader makes a decision first, and the Follower optimizes their parameters conditioned on the Leader's choice. This hierarchical structure ensures that fairness is treated as a fundamental constraint on the model's learning process rather than a secondary penalty.

2.2 Theoretical Foundations

The authors provide a rigorous mathematical basis for FairBiNN. A key contribution is Theorem 3.9, which demonstrates that under conditions of model overparameterization, the loss incurred by FairBiNN is theoretically lower than or equal to that of the standard Lagrangian approach. This suggests that the bilevel structure is inherently more efficient at navigating the Pareto front.

2.3 Implementation and Lipschitz Continuity

The optimization is implemented using an iterative gradient-based algorithm that "unrolls" the follower's optimization for a fixed number of steps. A critical requirement for the stability of this equilibrium is Lipschitz continuity in the network's activation functions and layers. This mathematical property ensures that small changes in the leader's weights do not lead to erratic shifts in the follower's fairness optimization.

3. Experimental Evaluation

The researchers evaluated FairBiNN across three distinct domains to demonstrate its versatility and robustness.

3.1 Tabular Data

Using the UCI Adult (income prediction) and Heritage Health (mortality prediction) datasets, FairBiNN significantly outperformed state-of-the-art benchmarks like CVIB and FCRL. It consistently achieved a better balance between accuracy and statistical parity.

3.2 Graph Data

In social network contexts (Pokec-z, Pokec-n) and NBA player data, FairBiNN was integrated with Graph Attention Networks (GAT). The method successfully mitigated bias amplified by graph topology, achieving a higher AUC (77.58% on Pokec-z) than standard fair Graph Neural Networks (GNNs).

3.3 Vision Data

On the CelebA dataset, FairBiNN was applied to ResNet-18 architectures to predict attributes like "Attractive" or "Smiling" while protecting the "Gender" attribute. The results showed a more balanced trade-off across multiple facial attributes compared to adversarial forgetting methods.

4. Key Insights

  • Strategic Layer Placement: Ablation studies revealed that placing "fairness layers" just before the output (the last hidden layer) is most effective. This allows the network to learn rich features before the fairness objective "corrects" the final representation.
  • Feature De-biasing: t-SNE visualizations confirmed that while standard features often cluster by sensitive attributes, FairBiNN-encoded features show no such clustering, effectively "hiding" protected information from the final classifier.
  • Computational Efficiency: Despite the complexity of bilevel optimization, FairBiNN's training time per epoch is comparable to simpler methods (e.g., 0.62s vs 0.60s on the Adult dataset).

5. Limitations and Future Work

While FairBiNN represents a significant step forward, certain challenges remain:

  • Multiclass Classification: The current reliance on Lipschitz continuity makes it difficult to use the standard Softmax function, which is not Lipschitz continuous.
  • Attention Mechanisms: Standard Transformers violate Lipschitz requirements. Future research may involve integrating specialized layers like LipschitzNorm to extend FairBiNN to Large Language Models (LLMs).
  • Metric Complexity: The current framework typically optimizes for one fairness metric at a time, whereas real-world applications may require balancing multiple conflicting fairness criteria simultaneously.

6. Conclusion

FairBiNN demonstrates that bilevel optimization is a powerful tool for navigating the accuracy-fairness trade-off. By establishing a hierarchical priority through a Stackelberg Equilibrium, the framework provides a theoretically grounded and empirically superior method for developing equitable machine learning models.

Summary updated

BibTeX
@inproceedings{yazdanijahromi2024fair,
  author = {Mehdi Yazdani-Jahromi and Ali Khodabandeh Yalabadi and Amirarsalan Rajabi and Aida Tayebi and Ivan Garibay and Ozlem Garibay},
  title = {{Fair Bilevel Neural Network (FairBiNN): On Balancing fairness and accuracy via Stackelberg Equilibrium}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=e2R4WNHHGQ},
}
Figure