Skip to content
Log inStart free

Design paper

Detecting and responding to distribution shift in a deployed personalization system

Abstract

A personalization model is trained on one distribution of users, items and contexts and then served on another, and the gap widens with promotions, catalogue changes and shifts in language mix. We describe a design for detecting that shift and responding to it. The design separates three kinds of shift (covariate, label and concept), assigns each a detector suited to the signal available (divergence and two-sample tests on inputs and predictions, label-shift estimation, and error-rate change detectors once outcomes arrive), and runs the detectors per cohort rather than on aggregates. Fairness parity and tail latency are monitored alongside, and each alarm maps to a pre-approved response: throttle, fall back, retrain or roll back. We argue each part from published work on dataset shift, concept drift and service reliability, give the alarm parameters as unvalidated inputs, and work through the false-alarm cost of cohort-level testing. This is a design proposal, not a measured result.

Method. Design paper: the architecture is argued from the cited literature; we report no measurements of our own. Table 2 lists unvalidated design inputs and Table 3 is a worked model with its inputs shown.

References

  1. 1

    Quiñonero-Candela, J., Sugiyama, M., Schwaighofer, A., & Lawrence, N. D. (Eds.) (2008). Dataset shift in machine learning. The MIT Press. doi.org/10.7551/mitpress/9780262170055.001.0001

  2. 2

    Rabanser, S., Günnemann, S., & Lipton, Z. C. (2019). Failing loudly: An empirical study of methods for detecting dataset shift. Advances in Neural Information Processing Systems 32 (arXiv:1810.11953). arxiv.org/abs/1810.11953

  3. 3

    Gama, J., Žliobaitė, I., Bifet, A., Pechenizkiy, M., & Bouchachia, A. (2014). A survey on concept drift adaptation. ACM Computing Surveys, 46(4). doi.org/10.1145/2523813

  4. 4

    Lipton, Z. C., Wang, Y.-X., & Smola, A. (2018). Detecting and correcting for label shift with black box predictors. Proceedings of the 35th International Conference on Machine Learning, PMLR 80. proceedings.mlr.press/v80/lipton18a.html

  5. 5

    Lu, J., Liu, A., Dong, F., Gu, F., Gama, J., & Zhang, G. (2018). Learning under concept drift: A review. IEEE Transactions on Knowledge and Data Engineering. doi.org/10.1109/TKDE.2018.2876857

  6. 6

    Kullback, S., & Leibler, R. A. (1951). On information and sufficiency. The Annals of Mathematical Statistics, 22(1). doi.org/10.1214/aoms/1177729694

  7. 7

    Gretton, A., Borgwardt, K. M., Rasch, M. J., Schölkopf, B., & Smola, A. (2012). A kernel two-sample test. Journal of Machine Learning Research, 13(25). www.jmlr.org/papers/v13/gretton12a.html

  8. 8

    Gama, J., Medas, P., Castillo, G., & Rodrigues, P. (2004). Learning with drift detection. Advances in Artificial Intelligence, SBIA 2004, Lecture Notes in Computer Science, Springer. doi.org/10.1007/978-3-540-28645-5_29

  9. 9

    Bifet, A., & Gavaldà, R. (2007). Learning from time-changing data with adaptive windowing. Proceedings of the 2007 SIAM International Conference on Data Mining. doi.org/10.1137/1.9781611972771.42

  10. 10

    Page, E. S. (1954). Continuous inspection schemes. Biometrika, 41(1-2). doi.org/10.1093/biomet/41.1-2.100

  11. 11

    Hardt, M., Price, E., & Srebro, N. (2016). Equality of opportunity in supervised learning. Advances in Neural Information Processing Systems 29 (arXiv:1610.02413). arxiv.org/abs/1610.02413

  12. 12

    Dean, J., & Barroso, L. A. (2013). The tail at scale. Communications of the ACM, 56(2). doi.org/10.1145/2408776.2408794

  13. 13

    Beyer, B., Jones, C., Petoff, J., & Murphy, N. R. (Eds.) (2016). Site reliability engineering: How Google runs production systems. O'Reilly Media. sre.google/sre-book/table-of-contents/

  14. 14

    Kohavi, R., Tang, D., & Xu, Y. (2020). Trustworthy online controlled experiments: A practical guide to A/B testing. Cambridge University Press. doi.org/10.1017/9781108653985

Cite this paper

Tanqory Research (2025). Detecting and responding to distribution shift in a deployed personalization system. Tanqory. https://tanqory.com/research/20251006-ai-personalization-drift-monitoring

More research

All research