Data Leakage in Notebooks: Static Detection and Better Processes
Not on the map. Why?
Abstract (arXiv)
Data science pipelines to train and evaluate models with machine learning may contain bugs just like any other code. Leakage between training and test data can lead to overestimating the model's accuracy during offline evaluations, possibly leading to deployment of low-quality models in production. Such leakage can happen easily by mistake or by following poor practices, but may be tedious and challenging to detect manually. We develop a static analysis approach to detect common forms of data leakage in data science code. Our evaluation shows that our analysis accurately detects data leakage and that such leakage is pervasive among over 100,000 analyzed public notebooks. We discuss how our static analysis approach can help both practitioners and educators, and how leakage prevention can be designed into the development process.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). First posted on arXiv 7 Sep 2022.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 3; 2025: 0; 2026: 4.
7 papers.
- 2024Don't Push the Button! Exploring Data Leakage Risks in Machine Learning and Transfer Learningcited by 11
- 2026scicode-lint: Detecting Methodology Bugs in Scientific Python Code with LLM-Generated Patternscited by 3
- 2024Inferring Data Preconditions from Deep Learning Models for Trustworthy Prediction in Deploymentcited by 1
- 2026A Grammar of Machine Learning Workflows: Rejecting Data Leakage at Call Timecited by 1
- 2024Improving Image Data Leakage Detection in Automotive Softwarecited by 0
- 2026PriMod4AI: Lifecycle-Aware Privacy Threat Modeling for AI Systems using LLMcited by 0
- 2026A prior-free blind detection of information leakage from model predictionscited by 0
- 2026A prior-free blind detection of information leakage from model predictions9 Jun 2026
- 2026scicode-lint: Detecting Methodology Bugs in Scientific Python Code with LLM-Generated Patterns18 Mar 2026
- 2026A Grammar of Machine Learning Workflows: Rejecting Data Leakage at Call Time11 Mar 2026
- 2026PriMod4AI: Lifecycle-Aware Privacy Threat Modeling for AI Systems using LLM4 Feb 2026
- 2024Improving Image Data Leakage Detection in Automotive Software29 Oct 2024
- 2024Inferring Data Preconditions from Deep Learning Models for Trustworthy Prediction in Deployment26 Jan 2024
- 2024Don't Push the Button! Exploring Data Leakage Risks in Machine Learning and Transfer Learning24 Jan 2024