arXiv:2610.40468cs.LGOct 2026

Manuscript Offprint

arXiv:2610.40468

Rural Readiness: Domain Generalization with Adversarially Chosen Domains

Cynthia Dwork, Andisheh Ghasemi, Lunjia Hu

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

Abstract

Predictive models trained at well-resourced data-rich institutions often fail when deployed in new populations. Motivated by the goal of building clinical diagnosis and decision-making algorithms for data-scarce rural populations using the general knowledge learned from data-rich hospitals, we formulate the fundamental question of domain generalization with adversarially chosen domains, which asks a learner to perform on any unseen target domain nearly as well as the worst hypothesis consistent with the evidence from the observed source domains.

Assuming only that the hypothesis class contains a “universal” predictor with small error on all k source domains, we characterize the sample complexity of this objective up to logarithmic factors. Letting d denote the VC dimension of the hypothesis class, we find, somewhat surprisingly, that the sample complexity reduces significantly from Ω(dk)\Omega(dk) to O(d)O(d) under a small relaxation of the learning goal in which, roughly speaking, we allow the learned model to compete with hypotheses that perform well on 99% instead of 100% of the source domains. By applying this insight to the meta-distributional setting, in which source domains are selected according to a distribution on distributions, we obtain a corresponding improvement over known sample complexity upper bounds. We also study the effect of data access to the target domain and show that a small labeled sample from the target domain does not improve the worst-case sample complexity on the source domains.

1 Introduction

Consider the task of creating a diagnostic tool that, given information about a patient such as lab results and vitals, outputs a score in [0, 1], with higher numbers viewed as a positive diagnosis. Suppose well-funded, data-rich medical research centers have developed diagnostic tools that perform well on the local populations on which they were trained. It is well known among medical researchers that a scoring function developed in one facility can be significantly less effective at other facilities (Deng et al., 2020; Patil and Parmigiani, 2018). This can arise from technical factors such as the methods and batches of chemicals used for specimen collection, as well as population differences involving diets, environmental exposures, and genetic factors. These factors can change the joint probability distribution over patient information and ground-truth diagnoses; we call such a distribution a domain. The source domains on which a diagnostic tool is trained may differ from the target domains on which it is evaluated. The resulting performance degradation from source to target is known as the Harvard–Stanford problem: letting DHD_H and DSD_S denote the distributions on which Harvard and Stanford predictors fHf_H and fSf_S are trained, respectively, the cross-domain errors errDS(fH)\text{err}_{D_S}(f_H) and errDH(fS)\text{err}_{D_H}(f_S) can be higher than the within-domain errors errDH(fH)\text{err}_{D_H}(f_H) and errDS(fS)\text{err}_{D_S}(f_S).

As long as in practice each predictor is used only for the distribution on which it is trained, there is no immediate problem.

Unfortunately, not all populations live near well-resourced, data-rich, cutting-edge medical research centers. At the same time, it is believed that human populations are not all so different from one another. This led Deng et al. (2020) to pose the following question: assuming the existence of an “α-universal” predictor, meaning, informally, that it has error at most α on all populations of interest, for some small α > 0 (although it might not be optimal for any single population), can we leverage samples from the observed populations to construct a β-universal predictor, for some β ≥ α? We call this goal achieving rural readiness; it is closely related to domain generalization. Our formulation without assumptions relating different populations is one of our principal contributions. As noted in Deng et al. (2020), rural readiness “provides a new dimension of fairness, transferring the benefit of federal research dollars from preeminent bench to geographically remote bedside.”

A simple example shows that, absent assumptions relating populations, achieving absolute rural readiness using data collected from even a large set of observed populations can be impossible: if all observed populations are identical, and if these identical distributions differ markedly from an unobserved population, then there is little reason to think lessons learned from the observed populations will generalize to the new population. This suggests a competitive notion capturing the goal of building a scoring function that generalizes to unseen target domains “as well as possible” given the source domains that have been observed. We call this conditional rural readiness, or simply rural readiness, since the absolute version is impossible. We describe the competitive learning goal as follows.

Fix a hypothesis class F⊆{f:X→{0,1}}\mathcal{F} \subseteq \{f : \mathcal{X} \to \{0,1\}\}, where X\mathcal{X} is an instance space (in our discussion, its elements describe patients). Although in the motivating discussion, we assume there is an α\alpha-universal predictor that has error at most α\alpha on all populations of interest, in our formal treatment we assume only that F\mathcal{F} contains a predictor f∗f^* with error at most α\alpha on each of the observed source domains. We call any hypothesis f∗∈Ff^* \in \mathcal{F} satisfying this property α\alpha-universal. This weaker assumption suffices for our competitive learning goal. In particular, f∗f^* need not have low error on the unobserved target domain. 1^1 Throughout the paper, our upper bounds hold under this source-only assumption, whereas our lower bounds hold even in the easier setting where f∗f^* has zero error on the target domain.

Each observed source domain eliminates hypotheses whose error exceeds β\beta on that domain. The survivors form a benchmark set. Without assumptions relating sources to targets, the source data provide no basis for preferring one surviving hypothesis over another on an unseen target D. We therefore require the learned classifier to perform, up to an additive slack, at least as well as the worst-performing benchmark hypothesis on D. If the sources are informative, every benchmark hypothesis performs well on the target domain; if they are not, the benchmark permits large target error and the guarantee appropriately becomes vacuous.

We also consider a larger, relaxed benchmark. If a function f∈Ff \in \mathcal{F} performs well on, say, 99% rather than 100% of the observed sources, this may still be evidence that it may perform well on target distributions. The relaxed benchmark therefore permits a hypothesis to fail on a γ\gamma fraction of the sources. It contains the strict benchmark, which permits no failures, but may include additional members of F\mathcal{F}.

We study the sample complexity of achieving (conditional) rural readiness, assuming only the

1^{1}As will become clear, this is analogous to agnostic learning, as opposed to realizable learning.

existence of an α\alpha-universal predictor in F\mathcal{F}, obtaining upper and lower bounds that match up to logarithmic factors for both the strict and relaxed benchmark sets. A key insight from our analysis is that, perhaps surprisingly, the sample complexity for the relaxed version is dramatically smaller than for the strict version.

Rural readiness is a domain generalization problem in which the source and target domains can all be chosen adversarially. The formulation has applications beyond the medical scenario that originally motivated our research, so in our technical results we use the term adversarial domain generalization for this learning goal. 2^{2}

References (100)

Couldn't load all references. Reload the page to try again.