arXiv:2611.06027cs.LGNov 2026

Manuscript Offprint

arXiv:2611.06027

Practical Estimation of the Bayes Optimal Fairness-Accuracy Tradeoff with Soft Labels

Mohit Sharma, Okan Koç, Amit Deshpande, Takashi Ishida, Gang Niu, Rajiv Ratn Shah, Masashi Sugiyama

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

There is a fundamental limit to the best prediction error of any model for a given data distribution. In classification, the Bayes error quantifies this limit and serves as both a benchmark for trained models and a criterion to detect overfitting. The state-of-the-art Bayes error estimation techniques for binary classification use only soft labels (positive class probabilities) and require no input features or auxiliary training. We extend such notions to constrained classification problems, such as fairness. Fair classification is an important case of constrained or multi-objective classification. It requires a model not only to be accurate but also to yield fair outcomes (equal or near-equal true positive rates) across different demographic groups (e.g., race and gender). This leads to an inherent fairness-accuracy tradeoff or a Pareto frontier that is used to compare fair classifiers against each other. The focus of our work is to estimate the fundamental limit for this fairness-accuracy tradeoff. We derive an explicit expression for the fair Bayes error rate (i.e., best achievable error rate subject to given fairness constraints), and construct consistent, instance-free estimators for it using only soft labels and group information. We provably bound the bias and the sample complexity of our estimators. Empirically, our method produces a robust, low-variance estimate of the optimal fairness-accuracy tradeoff curve, even when the soft labels are noisy and derived from a classification model on hard labels.

1 Introduction

The notion of Bayes optimality in machine learning defines the best achievable performance, given a data distribution, with respect to the 0-1 loss [1, 2, 3, 4]. For binary classification, an observation consist of features X∈X⊆RdX \in \mathcal{X} \subseteq \mathbb{R}^d, a label Y∈Y={0,1}Y \in \mathcal{Y} = \{0,1\}, and a sensitive attribute A∈A={0,1}A \in \mathcal{A} = \{0,1\}, governed by an underlying distribution (X,Y,A)∼D(X,Y,A) \sim \mathcal{D}. A group-aware classifier g:X×A→{0,1}g: \mathcal{X} \times \mathcal{A} \to \{0,1\} predicts labels using both features and sensitive attributes. A well-known result states that the Bayes optimal classifier g∗g^* can be expressed as the following decision rule: g∗(x,a)=I(η(x,a)≥1/2)g^*(x,a) = \mathbb{I}(\eta(x,a) \geq 1/2) [4, 5]. Here, I()\mathbb{I}() denotes the indicator function and η(x,a):=Pr⁡(Y=1∣X=x,A=a)\eta(x,a) := \Pr(Y=1 \mid X=x,A=a) defines the posterior, which assigns a soft label ci:=η(xi,ai)c_i := \eta(x_i, a_i) to an instance. This rule also allows us to estimate the Bayes error, the best achievable performance for a given distribution, without access to any instances [4, 6]: β=EX,A[min⁡{C,1−C}]\beta = \mathbb{E}_{X,A}[\min\{C,1-C\}], where C:=η(X,A)C := \eta(X,A) is the random variable corresponding to the soft labels.

This notion can also be extended to multi-objective classification problems, such as those that enforce fairness constraints [7]. With the widespread deployment of machine learning models, it is essential that models are fair and do not produce disproportionate errors and harm to certain sensitive groups

*Work done while the author was an intern at RIKEN-AIP. All correspondence to mohit.sharma.cs29@gmail.com.

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Figure

Figure 1: Unfairness-error tradeoffs on synthetic data [12] for Demographic Parity (DP) and Equal Opportunity (EOP) constraints. The proposed estimate (green) establishes a lower bound against competing algorithms. Dotted lines denote the unconstrained Bayes Optimal classifier at λ=0\lambda = 0.

in the data [7, 8, 9]. However, applying fairness constraints generally introduces a tradeoff with accuracy, since common fairness constraints are incompatible with the standard notion of accuracy [10, 11]. This tradeoff depends sharply on (i) the underlying data distribution, (ii) the fairness metric (equality of positives or true positives), and (iii) the degree of allowed unfairness tolerance.

Bayes optimal fair classifiers can often be characterized as adjustments of the classification thresholds: gfair(x,a)=I(η(x,a)≥1/2+ta(δ))g_{\text{fair}}(x, a) = \mathbb{I}(\eta(x, a) \geq 1/2 + t_a(\delta)) where ta(δ)>0t_a(\delta) > 0 is a group-dependent adjustment that depends on the fairness metric, the underlying data distribution and the tolerance for unfairness δ\delta. This is precisely where existing works on estimating the Bayes error do not generalize [6, 13, 14]. While Bayes error estimators solely rely on posterior probabilities (soft scores), resulting in a constant threshold of 1/2, this is not the case for cost-sensitive thresholds, such as fairness. The error estimators for these cost-sensitive thresholds also require an estimator for the underlying thresholds.

Therefore, to estimate the optimal fairness-accuracy tradeoff, we first show how we can disentangle the unfairness level δ\delta and the corresponding threshold adjustment ta(δ)t_a(\delta) by studying when the classifiers become trivial (Lemma 3.8). Using this, we can estimate the threshold and, eventually, the unfairness and error rate at several points along the tradeoff curve by leveraging its monotonicity properties (Lemma C.1). We show that fair classification can be reduced to cost-sensitive thresholding with appropriate λ\lambda-dependent thresholds (Lemma C.5), where λ∈R\lambda \in \mathbb{R} is a parameter that directly controls the correction to the classification threshold and depends on δ\delta. We then derive consistent estimators for the fair classification thresholds, only using soft labels, at any fixed λ\lambda (Theorem 4.1).

Once we have consistent estimates of thresholds, we then, as an independent result, generalize the Bayes error estimators in prior works [6, 13, 14] to work with any cost-sensitive risk (Theorem 4.3). Since our thresholds and estimators are both constructed using finite soft labels, we move beyond the scope of prior art to study consistency, bias, and sample complexity of the estimation of the cost-sensitive Bayes risk (Theorem 4.4). These results and rates apply to many cost-sensitive learning scenarios [15, 16] that require distribution-dependent classification thresholds.

We then focus on estimating the optimal fairness-accuracy tradeoff using only soft labels. We first derive the estimated risk at any threshold and show its consistency properties (Theorem 4.5). We then also provide estimators for the expected unfairness under demographic parity and equal opportunity, and derive their consistency and sample complexity properties (Theorem 4.6). All of them culminate in a bisection-search driven algorithm with our estimators (Algorithm 1), inspired by a similar algorithm for the Bayes optimal fair classifiers [5], but only with soft labels and without instances. An example of this bisection algorithm in action is presented in Figure 1 (green curve).

Finally, we estimate the fairness-accuracy tradeoff on real-world datasets. We compare our estimated tradeoff against several recent works on estimating the fairness-accuracy tradeoff [17, 18] and differentiable objectives for fair classification [19], in Figures 1 and 2. We show that our estimated tradeoff lower bounds the tradeoff estimated by these methods. Whenever it does not (for example, in the case of the algorithm proposed in [18]), it is explained by the algorithm's optimization of a completely different lower bound on the Pareto frontier. We also perform experiments with noisy soft scores generated by a Logistic Regression model on the Adult dataset [20] and find that our method still lower-bounds all other fairness tradeoff algorithms.

Overall, in a similar spirit to prior work [6, 13, 14], where the authors use the Bayes error as a tool to validate performance and check for overfitting, our estimated tradeoff with soft labels establishes a similar precedent: Any current or future methods aiming to compare fair algorithms should always close the gap between their estimated tradeoff and the theoretically best, that we estimate.

Related Work: Our work is inspired by the prior results [6, 13, 14] that characterize the performance limitations in terms of accuracy using the threshold characterization of the Bayes optimal classifier. There are several other works on Bayes error estimation that aim to estimate the Bayes error indirectly [21, 22, 23, 24]. But since most of these methods estimate the Bayes error indirectly, without leveraging soft labels or thresholding rules, generalizing them to constrained optimization settings, such as fairness constraints and cost-sensitive risk, is future work beyond the scope of this work. A major theme of this paper centers around fair machine learning, which has received rightful attention in recent years [7]. Several fairness metrics, such as demographic parity [25] and equal opportunity [26], have been proposed, and corresponding fair Bayes optimal classifiers have been extensively studied in the literature [27, 11]. We make extensive use of threshold characterizations of fair Bayes optimal classifiers [11, 28, 5]. Finally, a major part of our work also concerns deriving consistency and sample-complexity properties of the thresholds and risk and unfairness estimators. Some related estimators have also been studied in prior work [29, 13].

References (44)