Papers
Topics
Authors
Recent
Search
2000 character limit reached

Fair Bayesian Classifier

Updated 4 July 2026
  • Fair Bayesian Classifier is a framework that combines Bayesian decision theory with fairness constraints to minimize misclassification risk across sensitive groups.
  • It employs thresholding, post-processing, and optimal transport techniques to adjust predictions and enforce fairness measures like demographic parity and equal opportunity.
  • The approach offers rigorous theoretical guarantees and consistency results, highlighting practical tradeoffs between accuracy and fairness in multi-sensitive and functional data settings.

A fair Bayesian classifier is a classifier that combines Bayesian or Bayes-optimal decision theory with explicit fairness constraints. In the most common formulation, it minimizes misclassification risk subject to a prescribed disparity bound across sensitive groups, typically using the posterior score η(x,a)=P(Y=1X=x,A=a)\eta(x,a)=P(Y=1\mid X=x,A=a), a likelihood ratio, or an equivalent calibrated score as the sufficient decision statistic. Across the literature, the term also covers more specialized constructions: naive Bayes models trained to eliminate “discrimination patterns” under partial observability, Wasserstein-barycenter post-processing for demographic parity, predictive-parity-constrained thresholding, functional-data classifiers based on Radon–Nikodym derivatives, and posterior-predictive subgroup-consistency rules with abstention (Zeng et al., 2022, Choi et al., 2019, Xian et al., 2022, Hu et al., 14 May 2025, O'Neill et al., 10 Jun 2026).

1. Formal setting and problem classes

The canonical setting is binary classification with features XX, label Y{0,1}Y\in\{0,1\}, and a sensitive attribute AA or SS. In population analyses, the unconstrained Bayes rule is the familiar threshold at $1/2$: f(x,a)=1{ηa(x)>1/2}f^\star(x,a)=1\{\eta_a(x)>1/2\}, where ηa(x)=P(Y=1X=x,A=a)\eta_a(x)=P(Y=1\mid X=x,A=a) (Zeng et al., 2024). Fair Bayesian classification replaces this unconstrained rule by the solution of a constrained optimization problem of the form

minfR(f)subject toD(f)ϵ,\min_f R(f)\quad \text{subject to}\quad |D(f)|\le \epsilon,

where R(f)R(f) is misclassification risk and XX0 is a disparity functional such as demographic parity, equality of opportunity, or predictive equality (Hu et al., 14 May 2025).

The literature uses several related but non-identical probabilistic objects. In finite-dimensional fair Bayes-optimal classification, the central object is usually the group-wise regression function XX1 (Zeng et al., 2022, Zeng et al., 2024). In functional classification, the central object may instead be a Radon–Nikodym derivative XX2, because posterior probabilities are intractable in infinite-dimensional spaces (Hu et al., 14 May 2025). In naive Bayes under partial observability, fairness is defined through how predictions change when sensitive attributes become observed, so the operative quantities are posterior probabilities under marginalized missing features and the induced decision rule XX3 (Choi et al., 2019).

A further distinction concerns attribute awareness. Some frameworks assume the sensitive attribute is available at prediction time and permit group-specific thresholds; others derive attribute-blind rules in which test-time decisions depend only on XX4, with fairness adjustments expressed through XX5 or XX6 estimated from training data (Chen et al., 2023, Zeng et al., 2024). With multiple sensitive features, the population object becomes a vector of group-membership posteriors over intersectional groups indexed by XX7, and the optimal rule generally ceases to be a simple group-wise constant threshold (Yang et al., 1 May 2025).

2. Fairness notions and disparity representations

Fair Bayesian classifiers have been developed for several group fairness notions. A recurring theme is that many of these notions can be expressed as linear or bilinear functionals of the classifier, which makes constrained Bayes analysis tractable.

Fairness notion Representative constraint Structural form in the literature
Demographic parity XX8 Linear or bilinear disparity; threshold shifts (Zeng et al., 2024)
Equality of opportunity / equalized opportunity Equal true positive rates across groups Linear in conditional selection rates; thresholding on XX9 or LR (Zeng et al., 2022)
Predictive equality Equal false positive rates across groups Bilinear in fair Bayes analyses (Hu et al., 14 May 2025)
Equalized odds Simultaneous EO and PE constraints Multi-constraint threshold selection (Zeng et al., 2024)
Predictive parity Equal Y{0,1}Y\in\{0,1\}0 across groups Sufficiency-based; may or may not admit threshold rules (Zeng et al., 2022)
Discrimination-pattern fairness Invariance to observing sensitive attributes under partial observability Naive Bayes–specific signomial constraints (Choi et al., 2019)

In the unified Bayes-optimal framework of linear and bilinear disparity measures, deviations from demographic parity, equality of opportunity, and predictive equality are bilinear, meaning that the fairness weight can be written as Y{0,1}Y\in\{0,1\}1 (Zeng et al., 2024). The functional-data counterpart adopts the same principle with a bilinear disparity

Y{0,1}Y\in\{0,1\}2

with explicit coefficients for EO, PE, and DP (Hu et al., 14 May 2025).

When multiple sensitive features are present, approximate fairness measures based on mean difference and mean ratio become linear transformations of selection rates for groups defined jointly by labels and sensitive features. This yields a matrix form Y{0,1}Y\in\{0,1\}3 in the unconditional selection vector over Y{0,1}Y\in\{0,1\}4 groups, covering DP, EO, PE, AP, and composite notions such as equalized odds (Yang et al., 1 May 2025).

Not all fairness notions are of the same type. Predictive parity is sufficiency-based rather than independence- or separation-based, and the corresponding constrained Bayes problem is nonlinear in the classifier. The resulting theory is therefore qualitatively different from the generalized Neyman–Pearson analyses used for DP, EO, and PE (Zeng et al., 2022). Likewise, the “discrimination pattern” notion for naive Bayes is neither standard statistical parity nor equalized odds: it requires that adding observed sensitive attributes should not change the decision under partial observability (Choi et al., 2019).

3. Bayes-optimal structure

For linear and bilinear group-fairness constraints, the dominant structural result is thresholding. The generalized Neyman–Pearson argument shows that the Bayes-optimal fair rule is obtained by comparing a utility term derived from the posterior score to a fairness-dependent threshold term (Zeng et al., 2022, Zeng et al., 2024). In the bilinear case, this simplifies to a group-wise thresholding rule

Y{0,1}Y\in\{0,1\}5

with a scalar parameter Y{0,1}Y\in\{0,1\}6 chosen so that the disparity constraint is met with minimal excess risk (Zeng et al., 2024).

This threshold structure persists in several variants. Under demographic parity, one obtains shifted group thresholds on Y{0,1}Y\in\{0,1\}7; under equality of opportunity, thresholds are chosen so that the true positive rate is common across groups; under equalized odds, the feasible decision lies at a common Y{0,1}Y\in\{0,1\}8 point on the intersection of group ROC convex hulls, with randomization at boundaries when exact attainment requires it (Zeng et al., 2022, Alabdulmohsin, 2020). In functional classification, the fair Bayes rule has the form

Y{0,1}Y\in\{0,1\}9

where the group-specific threshold AA0 is induced by a scalar AA1 chosen as the smallest AA2 satisfying the disparity constraint (Hu et al., 14 May 2025).

A complementary post-hoc characterization replaces threshold search by instance-level flipping. Starting from the unconstrained Bayes classifier AA3, the optimal modification rule is

AA4

where AA5 are “bias scores” measuring fairness gain per unit accuracy loss. For DP and EOp this reduces to thresholding a single bias score; for EO it becomes a linear rule in two scores (Chen et al., 2023).

With multiple sensitive features, the threshold becomes instance-dependent. The Bayes-optimal rule under linear approximate constraints takes the form

AA6

where AA7 and AA8 is determined by the dual variables of the fairness constraints (Yang et al., 1 May 2025). This is a notable departure from the simpler one-sensitive-feature setting.

A common misconception is that every fair Bayesian classifier is merely a constant group-wise threshold shift. That description is accurate for many linear-disparity settings, but not for all. The threshold can become instance-dependent in multi-sensitive-feature and attribute-blind settings, and predictive parity may fail to admit group-wise thresholding rules when group performance levels vary widely (Yang et al., 1 May 2025, Zeng et al., 2022).

4. Algorithmic realizations

Several algorithmic families instantiate these structural results. “FairBayes” is a post-processing group-based thresholding method derived from the Neyman–Pearson characterization of Bayes-optimal classifiers under group fairness; it directly controls disparity and targets an essentially optimal fairness-accuracy tradeoff (Zeng et al., 2022). The related framework of linear and bilinear disparity measures yields three procedures—Fair Up- and Down-Sampling, Fair Cost-Sensitive Classification, and a Fair Plug-In Rule—covering pre-processing, in-processing, and post-processing respectively (Zeng et al., 2024).

In functional data analysis, the principal construction is Fair-FLDA. Under homoscedastic Gaussian processes, the log Radon–Nikodym derivative is linear in functional principal component scores, and fairness is enforced by group-wise thresholding of the resulting discriminant. The practical procedure estimates means, covariances, eigenpairs, and a truncated log likelihood-ratio, then calibrates the scalar AA9 on a validation set so that the empirical disparity meets the target (Hu et al., 14 May 2025).

A different line of work studies naive Bayes classifiers under missing features. There, fairness is enforced by discovering and eliminating “discrimination patterns,” defined by changes in favorable-decision probability caused solely by observing sensitive attributes. The learning problem becomes maximum likelihood estimation with signomial fairness constraints, solved by an iterative cutting-plane procedure that alternates between pattern mining and constrained retraining (Choi et al., 2019).

For demographic parity in the multi-group, multi-class setting, post-processing can be formulated as a Wasserstein-barycenter problem. Given Bayes-optimal scores SS0, the minimal fair error under SS1-DP equals the optimal value of a barycenter problem over group output distributions, and the optimal fair classifier is obtained by composing SS2 with an optimal transport map from the group score distribution to the barycenter-supported label distribution (Xian et al., 2022).

Predictive parity leads to yet another post-processing scheme. Under a “moderate variation condition,” all fair Bayes-optimal classifiers under predictive parity are group-wise thresholding rules, and the algorithm FairBayes-DPP adaptively chooses group thresholds so as to equalize positive predictive value while seeking to maximize test accuracy (Zeng et al., 2022).

The exact phrase “Fair Bayesian Classifier” also denotes a posterior-predictive subgroup-consistency method. In that construction, predictions must satisfy determinism and statistical consistency simultaneously across all complete and partial intersectional subgroups; the method abstains whenever no deterministic prediction is statistically defensible at the chosen significance level (O'Neill et al., 10 Jun 2026).

5. Guarantees, consistency, and fairness–accuracy tradeoffs

Theoretical guarantees differ by formulation but are central across the literature. In fairness-aware functional classification, continuity and monotonicity of the disparity curve in the threshold parameter yield existence of a fair Bayes-optimal classifier, while Fair-FLDA satisfies a finite-sample fairness guarantee

SS3

together with excess-risk control relative to the oracle fair Bayes rule (Hu et al., 14 May 2025).

For equal opportunity, semi-supervised plug-in procedures based on labeled data for SS4 and unlabeled data for calibration are statistically consistent in both fairness and risk. Under the paper’s assumptions,

SS5

showing convergence to the fair optimal EO classifier (Chzhen et al., 2019).

Post-processing based on unconstrained optimization also admits consistency guarantees. In the affine-constraint setting, the learned post-processing rule is Bayes consistent: if the base score is Bayes consistent and the randomization-width parameter SS6 vanishes at an appropriate rate, the learned fair rule converges to the Bayes-optimal fair classifier (Alabdulmohsin, 2020). In the Wasserstein-barycenter framework, if a non-Bayes score SS7 is used instead of SS8, the regret over the optimal fair risk is bounded by SS9 (Xian et al., 2022).

PAC-Bayesian work adds high-probability generalization certificates for fairness itself. For stochastic Gibbs classifiers, the fairness discrepancy is bounded by group-wise inverse-KL terms derived from standard PAC-Bayes techniques; for deterministic classifiers, a recent decomposition relating deterministic risk to Gibbs risk extends the framework beyond the stochastic setting, yielding self-bounding optimization objectives that trade off certified risk and certified fairness (Bastian et al., 12 Feb 2026).

The fairness–accuracy tradeoff is therefore not merely empirical. In linear-disparity frameworks, the tradeoff frontier is induced by the scalar or low-dimensional threshold parameter and is often convex or quasi-convex in the relevant region (Zeng et al., 2024, Hu et al., 14 May 2025). In demographic-parity post-processing, the minimum achievable error is exactly a Wasserstein-barycenter objective (Xian et al., 2022). In predictive parity, the tradeoff can be favorable under moderate variation, but the structure can become pathological when group performance levels differ too much (Zeng et al., 2022).

6. Extensions, limitations, and disputed points

Fair Bayesian classification is not a single doctrine but a family of population-optimal or Bayesian-posterior methods whose fairness notion determines the mathematics. This has two consequences. First, different papers are often solving different constrained decision problems. A naive Bayes classifier that eliminates discrimination patterns under partial observability is addressing a distinct fairness target from a Bayes-optimal equalized-odds classifier or a posterior-predictive subgroup-consistency rule (Choi et al., 2019, Zeng et al., 2022, O'Neill et al., 10 Jun 2026). Second, formal optimality is always relative to the chosen fairness criterion.

Several limitations recur. Many sharp threshold characterizations rely on calibrated posterior estimates and stable group-conditional quantities; distribution shift or poor calibration can degrade both fairness and utility (Chen et al., 2023, Zeng et al., 2024). Functional-data theory is analytically driven by homoscedastic Gaussian-process assumptions, eigendecay, and Cameron–Martin structure; heteroscedastic settings are explicitly described as more complex (Hu et al., 14 May 2025). Naive Bayes approaches rely on conditional independence and solve signomial programs that are not globally convex (Choi et al., 2019). Attribute-blind methods require estimating $1/2$0 or $1/2$1, so fairness control depends on auxiliary probability models as well as on the base classifier (Chen et al., 2023, Yang et al., 1 May 2025).

A prominent controversy concerns predictive parity. Under a sufficient “moderate variation condition,” fair Bayes-optimal classifiers under predictive parity are group-wise thresholding rules. When this condition fails, predictive parity may lead to within-group unfairness and no fair Bayes-optimal classifier is a group-wise thresholding rule (Zeng et al., 2022). This places predictive parity in a different conceptual position from DP, EO, and PE, whose Bayes-optimal forms are much more uniformly threshold-based.

Another disputed point is whether fair classification should always return a deterministic label. The subgroup-consistency formulation answers negatively: if both deterministic extremes are rejected by the posterior predictive distribution for a subgroup, the correct action is abstention rather than forced classification. This produces zero consistency error by construction, but it also means that fairness can be obtained by declining to decide on some subgroups (O'Neill et al., 10 Jun 2026). A plausible implication is that “fair Bayesian classifier” can denote either a constrained classifier or a constrained selective classifier, depending on whether abstention is admitted.

Taken together, these works define the fair Bayesian classifier as a principled intersection of Bayesian decision theory, calibrated probabilistic modeling, and explicit fairness constraints. The unifying result is structural: fairness-aware Bayes rules are rarely arbitrary. They are usually threshold rules, randomized threshold rules, optimal transport maps over Bayes scores, or posterior-predictive consistency rules, each derived from a precise fairness criterion and each carrying a distinct account of what “fairness” means in probabilistic classification (Zeng et al., 2022, Zeng et al., 2024, Xian et al., 2022, Hu et al., 14 May 2025).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Fair Bayesian Classifier.