Critical reviewMethodology & analyticsComputer science

Data management in production machine learning: a critical review of Polyzotis et al. (2017)

Polyzotis, Roy, Whang and Zinkevich argued that the hardest problems in deployed machine learning are data problems: understanding, validating and enriching the data that flow through a pipeline. This review summarises their tutorial, weighs its strengths and limits, and shows what it means for a doctoral project that builds or studies machine learning systems.

What you will learn

  • Summarise the scope and three data challenges set out by Polyzotis et al. (2017)
  • Explain training-serving skew, data validation and data enrichment in a production pipeline
  • Assess what a short tutorial can and cannot establish as evidence
  • Relate the tutorial to later work on dataset documentation, leakage, reproducibility and privacy
  • Plan and report data management for a machine learning thesis

What you will unlearn

  • Model choice is the main determinant of performance in deployed systems.Problems in the data feeding a model, such as skew, drift and errors, often matter more.
  • Validation means checking test-set accuracy once.In production, data must be validated continuously against expectations about features and distributions.
  • A tutorial by industry researchers is empirical evidence about practice.It is an expert overview of problems and techniques, not a measured study of how often they occur.
  • Data management is an engineering detail that a thesis can leave out.Examiners expect the data pipeline, splits and checks to be documented so that results can be reproduced.

Skills you will practise

  • Critical reading of systems papers
  • Data validation planning
  • Detecting training-serving skew
  • Dataset documentation
  • Leakage checks
  • Reproducible pipelines

The source under review

The article reviewed here is Polyzotis et al. (2017), "Data management challenges in production machine learning", a tutorial presented at the 2017 ACM SIGMOD conference by researchers then working on Google's machine learning infrastructure. Its argument is simple and influential: once a model leaves the laboratory and runs as part of a service, most of the difficulty lies not in the learning algorithm but in the data that are continuously collected, transformed and fed to it.

It is important to be clear about what kind of publication this is. A tutorial proposal is a short paper that frames a problem area and points to techniques and literature for a conference session. It is not an empirical study, a systematic review or a system evaluation, and it should be cited as an expert overview. A companion tutorial at the same conference, by Kumar et al. (2017), covered the other side of the relationship: how data management techniques such as query optimisation, partitioning and compression can be applied to machine learning systems.

This review replaces that text with an attributed summary and critique.

What the tutorial argues

The tutorial describes a production pipeline in which training data are used to build a model, the model is deployed to a serving system, the serving system receives new data and returns predictions, and some of the served data are fed back as future training data. Because this loop runs continuously, errors in data propagate and can silently degrade a model that once performed well (Polyzotis et al., 2017).

  1. 1Training data
  2. 2Model training
  3. 3Deployed model
  4. 4Serving data
  5. 5Predictions
  6. 6Logged data fed back
Figure 1. The production machine learning loop described by Polyzotis et al. (2017), redrawn.

Within this loop, the authors group the data problems into three areas.

The three data challenge areas in Polyzotis et al. (2017)
AreaProblem as framed by the tutorialExamples of techniques discussed
UnderstandingEngineers need to know what is in large, changing datasets and how features depend on each other and on upstream sourcesSummary statistics and visualisation at scale; tracking data context and dependencies
ValidationData must match expectations about features, types and value ranges, and serving data must resemble training dataSchemas of expected features; detection of training-serving skew and distribution change; cleaning at source or in the pipeline
EnrichmentModels improve when new signals are added, but finding and joining useful sources is costly, and some are sensitiveDiscovering joinable sources; estimating the value of a feature before integrating it; privacy-preserving access

Training-serving skew, a difference between the data a model was trained on and the data it receives in use, is presented as a particularly important source of failures, because it can arise from a code change, a changed upstream source or a shift in the population being served, and none of these is visible from the model's accuracy on its original test set.

Data management in production machine learning
Figure 2.

Strengths

  • A clear reframing. Treating deployed machine learning as a data management problem was timely and has been widely taken up in later work on data-centric machine learning.
  • A useful taxonomy. Understanding, validation and enrichment give researchers a vocabulary for locating their own problem.
  • Grounding in practice. The authors wrote from experience of very large production systems, which academic research rarely has access to.
  • A bridge between communities. Read with Kumar et al. (2017), the tutorial shows database researchers where their methods apply and shows machine learning researchers why data infrastructure matters.

Limitations and methodological issues

  • No empirical evidence. The tutorial asserts that data problems are common and costly but does not measure how often they occur or what they cost. Claims about prevalence should not be cited from it.
  • Scale-specific perspective. The problems are framed from the standpoint of very large, continuously retrained systems with dedicated infrastructure. Many doctoral and smaller industrial projects retrain rarely and face different trade-offs, although infrastructure such as Apache Spark has made large-scale processing more widely available (Zaharia et al., 2016).
  • Labels and documentation underplayed. How training labels are produced, and how datasets are documented for later users, receive little attention; later work proposed standard documentation such as datasheets for datasets (Gebru et al., 2021).
  • Fairness and governance outside scope. The tutorial is concerned with correctness and efficiency, not with whether data represent the people a system affects, which later became central.
  • Privacy treated briefly. Sensitive data are mentioned as a cost of enrichment rather than examined as a design constraint.

These points do not undermine the tutorial's purpose, which was to set an agenda. They determine how it should be cited: as an expert framing of data problems in production machine learning, not as evidence of their frequency or of the effectiveness of any technique.

How the tutorial sits in the wider literature

Later research has developed each of the tutorial's themes. On understanding, datasheets for datasets propose that every dataset be accompanied by a record of its motivation, composition, collection process, recommended uses and maintenance (Gebru et al., 2021). On validation, Kapoor and Narayanan (2023) documented data leakage, in which information from the test data or the future enters training, across many fields that use machine learning, and showed that it inflates reported performance. On reproducibility, the NeurIPS 2019 reproducibility programme introduced a checklist asking authors to report data, splits, code and computing details (Pineau et al., 2021), echoing general rules for reproducible computational research such as recording every step and versioning code and data (Sandve et al., 2013).

On enrichment with sensitive data, privacy research has moved from treating privacy as a cost to designing for it. Differential privacy offers formal guarantees about what can be learned about any individual (Dwork & Roth, 2014); secure aggregation allows model updates from many devices to be combined without revealing any one of them (Bonawitz et al., 2017); and federated learning has been proposed for sensitive settings such as medical imaging, where data cannot leave the hospital (Kaissis et al., 2020).

Data issues in production machine learning

What it means for a doctoral researcher

Few doctoral projects run a production system, but most machine learning theses face the same problems on a smaller scale: data that change between collection rounds, preprocessing that differs between training and evaluation, and features whose meaning is undocumented. Treating these as part of the method, rather than as engineering details, strengthens the thesis.

The tutorial is also a source of research questions. Because it frames problems without measuring them, it leaves open empirical questions that suit a doctorate: how often skew or drift occurs in a given domain, which validation checks catch which errors, or what enrichment with a new data source is worth relative to its privacy cost. A thesis that measures one of these in a defined setting, with documented data and code, contributes evidence the tutorial itself could not provide.

Worked example (illustrative)

A hypothetical doctoral project develops a model to predict hospital readmission from electronic health records, trained on 2019 to 2023 data and evaluated on 2024 data. Following the tutorial's framework, the researcher writes a schema of expected features, types and ranges and checks each data extract against it. She compares feature distributions between the training and evaluation periods to detect skew, finds that a coding change altered one diagnosis variable in 2024, and documents how she harmonised it. She splits data by time and by patient to avoid leakage (Kapoor & Narayanan, 2023), writes a datasheet for the extract (Gebru et al., 2021), and versions her code and data so that every result can be regenerated (Sandve et al., 2013).

What to report about data management in a machine learning thesis
ElementWhat to report in the thesis
Data sources and versionsOrigin, extraction dates, inclusion criteria and version identifiers
Schema and validationExpected features and ranges, checks applied and failures found
SplitsHow training, validation and test sets were formed, and how leakage was prevented
Skew and driftComparisons between training and evaluation data and any corrections
DocumentationA datasheet or equivalent record for each dataset
PrivacyLegal basis, de-identification and any privacy-preserving methods
ReproducibilityCode, environment and random seeds, following a checklist such as that of Pineau et al. (2021)

Common mistakes

  • Citing a tutorial or position paper as evidence that a problem is common.
  • Reporting test accuracy without checking whether test data resemble the data the model will meet.
  • Fitting preprocessing steps on the full dataset before splitting it, which leaks information.
  • Leaving the meaning, origin and version of features undocumented.
  • Reproducing another author's structure or reference list without credit.

For related guidance, see how to source and build datasets for a machine learning PhD, methodology mistakes in machine learning PhDs and choosing and reporting evaluation metrics.

Key takeaways

Your next step

Want to apply this to your own study?

  1. 1Tell us your topic, data and deadline
  2. 2A statistician reviews your work with you
  3. 3You get a plan and a quote
Quantitative analysis

References

  1. Bonawitz, K., Ivanov, V., Kreuter, B., Marcedone, A., McMahan, H. B., Patel, S., Ramage, D., Segal, A., & Seth, K. (2017). Practical secure aggregation for privacy-preserving machine learning. In Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security (pp. 1175–1191). ACM. https://doi.org/10.1145/3133956.3133982
  2. Dwork, C., & Roth, A. (2014). The algorithmic foundations of differential privacy. Foundations and Trends in Theoretical Computer Science, 9(3–4), 211–407. https://doi.org/10.1561/0400000042
  3. Gebru, T., Morgenstern, J., Vecchione, B., Vaughan, J. W., Wallach, H., Daumé III, H., & Crawford, K. (2021). Datasheets for datasets. Communications of the ACM, 64(12), 86–92. https://doi.org/10.1145/3458723
  4. Kaissis, G. A., Makowski, M. R., Rückert, D., & Braren, R. F. (2020). Secure, privacy-preserving and federated machine learning in medical imaging. Nature Machine Intelligence, 2(6), 305–311. https://doi.org/10.1038/s42256-020-0186-1
  5. Kapoor, S., & Narayanan, A. (2023). Leakage and the reproducibility crisis in machine-learning-based science. Patterns, 4(9), 100804. https://doi.org/10.1016/j.patter.2023.100804
  6. Kumar, A., Boehm, M., & Yang, J. (2017). Data management in machine learning: Challenges, techniques, and systems. In Proceedings of the 2017 ACM International Conference on Management of Data (pp. 1717–1722). ACM. https://doi.org/10.1145/3035918.3054775
  7. Pineau, J., Vincent-Lamarre, P., Sinha, K., Larivière, V., Beygelzimer, A., d'Alché-Buc, F., Fox, E., & Larochelle, H. (2021). Improving reproducibility in machine learning research (a report from the NeurIPS 2019 reproducibility program). Journal of Machine Learning Research, 22(164), 1–20. https://www.jmlr.org/papers/v22/20-303.html
  8. Polyzotis, N., Roy, S., Whang, S. E., & Zinkevich, M. (2017). Data management challenges in production machine learning. In Proceedings of the 2017 ACM International Conference on Management of Data (pp. 1723–1726). ACM. https://doi.org/10.1145/3035918.3054782
  9. Sandve, G. K., Nekrutenko, A., Taylor, J., & Hovig, E. (2013). Ten simple rules for reproducible computational research. PLoS Computational Biology, 9(10), e1003285. https://doi.org/10.1371/journal.pcbi.1003285
  10. Zaharia, M., Xin, R. S., Wendell, P., Das, T., Armbrust, M., Dave, A., Meng, X., Rosen, J., Venkataraman, S., Franklin, M. J., Ghodsi, A., Gonzalez, J., Shenker, S., & Stoica, I. (2016). Apache Spark: A unified engine for big data processing. Communications of the ACM, 59(11), 56-65. https://doi.org/10.1145/2934664

How to cite this article

Choose your referencing style, then copy. Check your university's or journal's guide for local variations.

PhD Research Lab Academy. (2021, September 13). Data management in production machine learning: a critical review of Polyzotis et al. (2017). PhD Research Lab. https://www.phdassistance.com/blog/data-management-challenges-in-production-machine-learning/

PhD Research Lab Academy. “Data Management in Production Machine Learning: A Critical Review of Polyzotis Et Al. (2017).” PhD Research Lab, 13 Sept. 2021, www.phdassistance.com/blog/data-management-challenges-in-production-machine-learning. Accessed [access date].

PhD Research Lab Academy (2021) Data management in production machine learning: a critical review of Polyzotis et al. (2017). PhD Research Lab. Available at: https://www.phdassistance.com/blog/data-management-challenges-in-production-machine-learning/ (Accessed: [access date]).

PhD Research Lab Academy. “Data Management in Production Machine Learning: A Critical Review of Polyzotis Et Al. (2017).” PhD Research Lab. September 13, 2021. https://www.phdassistance.com/blog/data-management-challenges-in-production-machine-learning.

PhD Research Lab Academy, ‘Data Management in Production Machine Learning: A Critical Review of Polyzotis Et Al. (2017)’ (PhD Research Lab, 13 September 2021) <https://www.phdassistance.com/blog/data-management-challenges-in-production-machine-learning> accessed [access date].

PhD Research Lab Academy. Data management in production machine learning: a critical review of Polyzotis et al. (2017) [Internet]. PhD Research Lab; 2021 Sep 13 [cited [access date]]. Available from: https://www.phdassistance.com/blog/data-management-challenges-in-production-machine-learning/

PhD Research Lab Academy, “Data management in production machine learning: a critical review of Polyzotis et al. (2017),” PhD Research Lab, Sept. 13, 2021. [Online]. Available: https://www.phdassistance.com/blog/data-management-challenges-in-production-machine-learning. [Accessed: [access date]].

@online{data_management_challenges_in_production_machine_learning_2021,
  author = {{PhD Research Lab Academy}},
  title = {{Data management in production machine learning: a critical review of Polyzotis et al. (2017)}},
  organization = {PhD Research Lab},
  date = {2021-09-13},
  url = {https://www.phdassistance.com/blog/data-management-challenges-in-production-machine-learning},
  urldate = {[access date]}
}

This article is for learning. Use it to understand the method and cite the original sources above in your own work; do not copy or submit it as your own.

Data management in production machine learningNeed help applying it to your study?
Quantitative analysis