arXiv:2610.40884stat.MLOct 2026

Manuscript Offprint

arXiv:2610.40884

Robust-by-Design Distributional Learning from Contaminated Samples

Nevena Gligić, Arya Farahi

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

Abstract

Modern data analysis pipelines increasingly rely on large datasets assembled through retrieval, scraping, automated filtering, and post-hoc curation, where the observed sample is often a contaminated mixture rather than the target population. Standard distributional objectives either ignore contamination and converge to the wrong target, or retain only a small trusted subset and discard most of the data. We study supervised and unsupervised learning when a clean reference sample is compared with a pooled sample from r=(1−ϵ)q+ϵzr = (1 - \epsilon)q + \epsilon z, where qq is the latent target distribution and zz is an unknown contaminant. Motivated by settings with noisy membership scores for all observations and exact labels for a small audited subset, we propose contamination-corrected maximum mean discrepancy (CC-MMD), a design-based estimator that combines proxy scores with audited residual corrections to recover the oracle MMD that would have been computed from the latent clean sample. CC-MMD requires no calibration assumption on the proxy scores and no structural assumptions on the contaminant beyond standard kernel regularity. We prove finite-population design-unbiasedness of the corrected kernel sums, establish asymptotic normality of the audit correction, and show consistency for the target discrepancy MMD2(p,q;k)MMD^2(p, q; k). Empirically, CC-MMD tracks the oracle under increasing contamination, improves parameter recovery and prediction in contaminated regression, and enables generative models trained on heavily corrupted mixtures to recover the clean target distribution. These results show that contaminated data need not be discarded or treated as the estimand. With sparse trusted labels and abundant noisy supervision, distributional objectives can be made robust by design.

1 Introduction

Ancient DNA research was reshaped by the problem of contamination [1–3]. Early attempts to recover DNA from ancient human remains repeatedly encountered modern human DNA introduced during excavation, handling, and laboratory processing, and later work showed that such contamination can bias downstream genetic analyses toward the ancestry of the contaminating source [4, 5]. Consequently, paleogenomics adopted authentication protocols, clean-room standards, and explicit contamination-estimation methods as part of the inferential pipeline [6]. Recent work continues to show that contamination can distort downstream procedures such as genotype imputation and PCA-based population-genetic analysis [7]. Modern machine learning confronts an analogous structural problem at web scale: datasets built through scraping, retrieval, automated filtering, and post-hoc curation often mix target examples with observations drawn from the wrong population, whether as out-of-domain documents in a web corpus [8, 9], false positives in a clinical cohort [10], or interlopers in an astronomical catalog [11, 12]. In each case, the observed sample is not simply the population of interest but a contaminated mixture, and procedures applied naively to that sample risk learning or inferring the wrong distribution.

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

We study distribution matching under mixture contamination [13, 14]. The observed pool follows

r=(1−ϵ)q+ϵz,r=(1-\epsilon)q+\epsilon z,

where qq denotes the target distribution and zz an unknown contaminating distribution. When procedures are applied directly to the observed pool target rr, discrepancy estimation, parameter recovery, and generative learning can converge to the wrong objective even with very large samples.

Many data analysis pipelines already produce partial information about sample membership [15–19]. Automated systems assign classifier scores, retrieval scores, or heuristic quality flags to every example, and a smaller subset can often be audited through expert review or higher-fidelity measurement. This yields a common regime of abundant noisy supervision and sparse trusted labels. Existing practice often takes one of two unsatisfactory routes. Either most of the data is discarded, and only the audited subset is used, or the full contaminated pool is used, and bias toward the mixture accepted. For instance, see signal-to-noise cuts in spectroscopic surveys [20], quality-control pipelines in genomics [21, 22], and threshold-based event selection in high-energy physics [23]. Neither route utilizes the full potential of available information.

This gap is especially visible in distribution-based learning and inference applications. Kernel discrepancies and related distribution-matching objectives are used to compare samples [24, 25], fit implicit models [26], estimate parameters [27], and train generative models [28, 29]. Under contamination, naive objectives absorb the contaminant component and push the analysis toward the wrong population. Our experiments (Section 4) demonstrate this behavior: contamination biases discrepancy estimation, distorts regression-style parameter recovery, and degrades generative modeling when standard objectives are optimized on the contaminated pool.

We fill this gap by constructing a contamination-corrected distributional objective that combines proxy membership scores for all observations with a design-based residual correction from a small audited subset. In the kernel setting studied here, this construction recovers the oracle kernel sums in expectation under the audit design, does not require calibrated proxy scores, and supports learning objectives for inferential, predictive, and generative models. These results show that large contaminated datasets can still support valid inference and faithful generation when the learning objective targets the latent clean component rather than the observed mixture.

References (65)