Happiness as a Measure of Fairness

Georg Pichler, Marco Romanelli, Pablo Piantanida

TL;DR

Standard machine learning fairness metrics often focus on statistical parity (e.g., equal approval rates) but ignore the actual real-world utility or resource allocation that different groups receive. This paper introduces a flexible post-processing framework based on "happiness"—a customizable utility function—and demonstrates that optimizing for equal group happiness can be solved efficiently via linear programming while seamlessly subsuming existing fairness definitions.

What Problem Does This Paper Address?

Most algorithmic fairness methods rely on group-wise performance metrics like accuracy, false positive rates, or demographic parity. However, the authors argue that this performance-centric perspective can obscure deeper systemic unfairness, especially when historical or structural biases are embedded in the data.

Consider a loan approval system where two demographic groups are identical, except Group A requests twice as much credit on average as Group B. A classifier that approves loans at the exact same rate for both groups satisfies standard fairness metrics. Yet, practically, it results in an unequal allocation of resources: Group B receives significantly less total funding. Standard metrics fail here because they only look at the correctness or distribution of predictions, not the magnitude or utility of the outcome as experienced by the individuals.

Methods

The paper proposes a post-processing framework grounded in a happiness function ($\eta$). This function takes the classifier's output, the ground truth, the group index, and any additional features to compute a real-valued "happiness score" representing the utility an individual derives from the decision.

A classifier is considered $\epsilon$-fair if the average happiness scores of the two groups are within $\epsilon$ of each other. The authors prove that finding the optimal, demography-dependent post-processing strategy for a soft classifier reduces to a Linear Program (LP). This makes the approach highly scalable and computationally efficient compared to complex in-processing optimization methods.

Crucially, the authors demonstrate the mathematical generality of their framework by showing that standard fairness criteria—such as Statistical Parity, Overall Accuracy Equality, and Equalized Odds—are simply special cases of the happiness framework when $\eta$ is configured as specific indicator functions.

Datasets

The authors evaluate their approach across three distinct datasets:

  1. Synthetic Loan Dataset: A completely synthetic dataset inspired by the classic Adult benchmark, designed specifically to simulate a scenario where one group requests higher loan amounts despite having identical approval qualifications.
  2. Adult Dataset: The standard UCI Machine Learning Repository dataset used to predict whether an individual's income exceeds \$50,000.
  3. Financial Risk for Loan Approval Dataset: A Kaggle dataset containing detailed financial, employment, and credit score metrics used to evaluate mortgage default risks.

Key Insights and Ideas

  • Parity $\neq$ Justice: Aligning error rates across groups does not guarantee equitable real-world outcomes. True fairness often requires looking at the downstream utility (resources, time, or financial gain) allocated to each group.
  • Context-Dependent Fairness: The same classifier might require entirely different fairness formulations depending on its deployment context. For instance, a model predicting income requires a different utility mapping if used for credit risk assessment versus determining taxation.
  • The Power of Linear Programming: Despite allowing for highly complex, arbitrary utility functions, the optimization problem remains a simple linear program because the objective (accuracy) and constraints (expected happiness) scale linearly with the conditional post-processing probabilities.

Key Results

The empirical studies highlight major limitations in traditional fairness metrics and showcase the strengths of the happiness framework:

  • Synthetic Data: When optimizing for standard metrics like Equalized Odds or Statistical Parity, the funding imbalance between the two groups actually increased. In contrast, the authors' "Equal Funding" approach achieved perfect fairness (zero funding difference) with less than a one percentage point loss in overall accuracy.
Loan allocation difference vs. overall accuracy on the synthetic dataset.
  • Adult Data: The authors defined happiness as a tradeoff between high income and working hours ($100 \cdot \hat{Y} - X_{\text{hours\_per\_week}}$). Their method achieved the most favorable trade-off curve between classification accuracy and happiness parity compared to standard baselines.
Trade-off between accuracy and happiness disparity on the Adult dataset.
  • Financial Risk Data: Modeling happiness as a complex financial tradeoff (estimated return on investment minus interest costs), the proposed solution consistently achieved higher accuracy for minimal happiness disparities ($\epsilon$) on the validation data.

Limitations and Future Work

While powerful, the framework has two notable limitations acknowledged by the authors:

  1. Group-Level Focus: Like most demographic fairness metrics, it optimizes for average group happiness. It does not guarantee individual fairness, meaning outliers or individuals with non-standard preferences within a group might be overlooked.
  2. Categorical Constraints: The current mathematical derivation relies on a finite label space and soft classifier outputs. As a result, it cannot be directly applied to continuous regression problems (e.g., predicting an exact salary or credit score) without first quantizing the output space.

Future extensions could explore expanding this utility-based framework to continuous prediction spaces and multi-group settings.

Summary updated

BibTeX
@inproceedings{pichler2026happiness,
  author = {Georg Pichler and Marco Romanelli and Pablo Piantanida},
  title = {{Happiness as a Measure of Fairness}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2026},
  url = {https://openreview.net/forum?id=3e6j5mzClz},
}
Figure