arXiv:2610.08132cs.DCOct 2026

Manuscript Offprint

arXiv:2610.08132

Beyond Marginal Monitoring: Distributed Joint-Distribution Testing for Data Concept Drift in Large Scale E-Commerce Operations

Cagdas Pullu, Mahmut Emir Arslan, Bugra Balkac, Aylin Ondersev Balta, Cihangir Celal Palaci, Fikri Cem Yilmaz, Altan Cakir

Abstract

Concept drift threatens production machine learning, yet the empirical behavior of multivariate two-sample drift detectors at scale remains under-characterized. Existing benchmarks rarely address the hundreds of millions of rows and high-cardinality features typical of industrial-operational datasets. We evaluate five multi-column two-sample tests (marginal, projection-based, and kernel embedding methods) across three complementary environments: the Harvard Dataverse, a validated Failing Loudly reproduction (mean absolute error ∈[0.030,0.053]\in [0.030, 0.053]), and a novel synthetic-injection benchmark on the 137.5-million-row Trendyol collection-ranking feature table. Testing four drift types across two severity-scope regimes, we demonstrate that distributed Maximum Mean Discrepancy with Random Fourier Features on Apache Spark scales robustly. Averaged over the four drift types in the strong regime and under a calibrated threshold, it achieves a Pearson correlation of r=0.940r = 0.940 with expected drift magnitude, an 80.4% true positive rate, and a 3.2% false positive rate. Conversely, the per-dimension Kolmogorov–Smirnov test failed due to statistic saturation from ID-like columns under asymmetric sampling, establishing a critical constraint for large-scale sampling design. At weak configurations (realized-flip fractions

≤0.57%\leq 0.57\%, detectors struggled to reliably discriminate, highlighting the need for future intensity-grid power analyses to distinguish fundamental sensitivity bounds from scalable threshold shifts.

Keywords: Concept drift detection, Two-sample testing, Maximum Mean Discrepancy, Random Fourier Features, Production data science, Distributed computing, Apache Spark

1 Introduction

The integration of machine learning models into live products means that the data encountered in production may drift away from the training distribution. This dataset shift erodes prediction accuracy and, in the absence of continuous human oversight, progresses silently [1]. Where label-oriented evaluation feedback arrives slowly or not at all—as with sparse post-order return notifications or moderator approvals—drift is detected with two-sample tests on the data available at deployment: the features X and, when an outcome or prediction channel exists, the label variable Y produced by (or emitted alongside) the model. These tests are conventionally termed unsupervised, yet what the test observes—X alone or the joint vector (X,Y)(X, Y)—must be delineated carefully. At Trendyol 1^{1}, a regional leader in e-commerce, the production table lacks a genuine outcome column, so we construct a synthetic benchmark target YsynthY_{synth} from live-variance covariates (Section 5.3); it is neither an observed outcome nor a model prediction, and the results must be interpreted with this distinction in mind.

Two research fields have addressed this problem independently. The stream-based concept drift community formulates regimes in which P(Y∣X)P(Y \mid X) changes while P(X)P(X) stays stationary [2, 3], and the multivariate two-sample testing community measures the detection accuracy of per-dimension and kernel tests under controlled covariate shifts [4, 5]. Both rely on synthetic protocols, and the behavior of these tests at production scale—across millions of rows and wide tables with hundreds of columns—remains unresolved. D3Bench [6], the framework of Cerqueira et al. [7], and the controlled comparison of unsupervised detectors by Hinder et al. [8] approach this gap but remain limited to synthetic or small-scale scenarios, while learner-based approaches [9] and conformal calibration proposals [10] address production settings without labeled evaluation feedback from a different angle.

We validate two-sample tests across three complementary layers. Batch and sliding-scan protocols on the Harvard Dataverse streams test whether drift is detected and localized; a numerical reproduction of the Failing Loudly benchmark verifies that our implementations match the published results; and a synthetic concept drift injection into the ∼\sim137.5-million-row Trendyol collection-ranking feature table, which feeds Trendyol's live recommendation system, tests behavior at production scale with eight scenarios (four drift types ×\times two severity-scope regimes) and five multi-column tests on

1^{1}Founded in 2010, Trendyol is Turkiye's leading e-commerce ecosystem, integrating core e-commerce, smart logistics, and financial technologies. Operating in 36 countries across Europe and the Gulf Region, its extensive technological infrastructure and high-volume data streams provide a robust foundation for big data and AI-based research and development projects.

an 11-dimensional benchmark vector. In every layer the tests compare the joint vector (X,Y)(X, Y), with the generator's class label in the Harvard Dataverse streams and YsynthY_{synth} in the Trendyol benchmark. They are unsupervised in that they need no labeled evaluation feedback, but they are not X-only: even when the injection leaves X unchanged row by row, they can capture the change in the Y marginal (Sections 5.3 and 6.3).

Our primary findings are four. (i) Distributed Spark Maximum Mean Discrepancy with Random Fourier Features (RFF-MMD) is the most consistent test at production scale: in the strong regime and under a null-calibrated threshold, it reaches, averaged over the four drift types, a Pearson correlation of r=0.940r = 0.940 with the per-bucket expected drift magnitude, a true positive rate (TPR) of 80.4%, and a false positive rate (FPR) of 3.2% (Section 6.3). Spark Sliced Wasserstein Distance (SWD) tracks drift comparably ( r=0.819r = 0.819) but at an FPR of about 10% under its fixed threshold. (ii) Bonferroni-aggregated per-dimension Kolmogorov–Smirnov (KS) fails not through the classical n→∞n \to \infty p-value collapse but through statistic saturation by ID-like columns under the asymmetric reference/current sampling design ( r=−0.085r = -0.085, FPR = TPR = 100%; Section 7). (iii) At the weak configuration (realized-flip fractions of 0.29–0.57%), neither RFF-MMD nor SWD discriminates reliably, which marks an empirical low-signal failure point for the present setting. (iv) A source-table pre-check and a four-part sanity-check protocol (Appendix B.2) form a recommended workflow for production drift benchmarks; without them, benchmark results risk measuring incidental data-quality artifacts rather than the intended signal.

Section 2 reviews related work, Sections 3–5 present the methodology and experimental design, Section 6 reports the results, Section 7 discusses them, and Section 8 concludes.