arXiv:2610.20514cs.LGOct 2026

Manuscript Offprint

arXiv:2610.20514

Bayesian Learning to Select Fair Classifiers

Saatvik Kher, Hyungrok Do, Judy Zhong, Padhraic Smyth

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

ABSTRACT

Evaluations of classifiers (AI or human or agents) often assume a batch setting in which every agent produces labels on every example in a test set, which can be expensive or impractical in many contexts. This motivates online policies that adaptively select agents to query as examples arrive and update policies as outcomes are observed. We study the problem of selecting, in an online stream, the agent that best balances (i) predictive performance and (ii) subgroup fairness of a sensitive attribute, and that allows for delayed observations of true class labels. We formulate this as a Bayesian multi-armed bandit problem using Thompson Sampling, explicitly balancing accuracy and fairness. We conduct empirical evaluations on real-world datasets spanning problems involving tabular classifiers, large language models, and human labelers, demonstrating substantial reductions in regret relative to baselines. Our theoretical contributions include guarantees on the performance of the selected agent that incorporate both the accuracy and fairness aspects of the problem.

1 Introduction

Machine learning systems are increasingly deployed as black-box decision-makers in high-stakes domains, such as healthcare diagnosis, content moderation, and credit decisions. This creates an operational need to evaluate individual models for accuracy as well as to select among multiple candidate decision-making agents (potentially including both ML models and human experts). In many applications, the criterion for selection is multi-faceted and needs to take into account not only prediction accuracy but also the fairness of an agent and (potentially) the cost of querying the agent.

Prior work in this general context often assumes a batch setting in which each agent labels each example in a test set. While useful for offline audits, this approach is costly and infeasible when running multiple models, soliciting human expert judgments, or waiting for ground truth. Many scenarios require that models be deployed and predictive tasks allocated sequentially, necessitating that estimation of model performance and identifying the best-performing model be performed in concert with making actual predictions on real cases. Motivated by such scenarios, in this paper, we focus on learning online selection protocols for such situations, balancing classification accuracy, fairness, and model querying cost, making sequential choices and learning from observed outcomes as they are observed.

As a motivating example for our work, consider a scenario where an insurance company wishes to select a large language model (LLM) to classify customer claims into pre-defined categories. Initially, the company has access to a number of different LLMs and perhaps a single human worker to process the claims, but for operational and cost reasons would like to converge on using only a single agent in the longer-term. As a second example, a hospital may wish to evaluate the effectiveness of re-admission prediction models: if released, will a patient be re-admitted within 30 days? The hospital might have 3 internal models available for evaluation, say a simple linear model, a tree-based model, and a deep learning model. It wishes to select a single model to use going forward for operational and legal reasons. For each scenario, the insurance company or the hospital face the same question: is there a better approach to finding the best model in an online setting, beyond randomly or deterministically assigning claims or patients to models? This general model selection problem is common across application scenarios, where the models (or agents) being selected could include ML models and/or human experts.

In this context, we formalize fair online model selection as a multi-armed bandit problem where each arm corresponds to an agent (a pre-trained classifier or a human expert), and the learner selects an arm for every instance it observes from the sequential stream, observing only that agent's prediction, and the eventual true label when available. Fairness is encoded through subgroup statistics (for example, subgroup positive-rate gaps) and combined with accuracy into a utility so the selector explicitly trades off these objectives. A Bayesian framework is natural here, as maintaining conjugate posteriors lets the learner represent uncertainty, update beliefs incrementally, and use posterior-sampling to balance exploration and exploitation of the different agents. The approach organically allows for delayed reward, per-arm costs, missing observations, and introducing new agents at any time.

Our primary contributions are the following:

• We introduce the problem of online classifier selection in the context of balancing prediction accuracy, fairness, and querying cost. We formulate this within a multi-arm bandit (MAB) framework.

• We propose a Thompson sampling approach and develop new theoretical regret bounds that show how differences in sensitive attribute subgroup proportions directly affect convergence rates.

• We conduct a series of experiments across multiple real-world classification problems, including classifiers, LLMs, and human agents, and demonstrate significant superiority in efficiency of Thompson sampling (and other MAB approaches) over non-bandit methods such as round-robin querying.

For research reproducibility, we will make all our code and datasets publicly available on GitHub for the final version of our paper.