There is a newer version of the record available.

Published April 3, 2026 | Version 1.2

A Grammar of Machine Learning Workflows

Authors/Creators

Description

Data leakage has been identified in 648 published machine learning papers across 30 scientific fields. The knowledge to prevent it exists; the tools do not enforce it. This paper presents a grammar — eight typed primitives, a directed acyclic graph, and four hard constraints — that makes the most damaging leakage types structurally unrepresentable. The core mechanism is a terminal assessment gate: the first call-time-enforced evaluate/assess boundary in an ML framework, backed by a specification precise enough for independent reimplementation. A companion landscape study across 2,047 datasets grounds the constraints in measured effect sizes. Two reference implementations (Python, R) are available.

Files

roth2026_grammar_ml_workflows_v1.2.pdf

Files (251.5 kB)

Name Size
md5:6f5c3eaab8fc9b290810892ce44eda38
251.5 kB Preview Download

Additional details

Related works

Is identical to
Preprint: arXiv:2603.10742 (arXiv)
Is supplemented by
Software: https://github.com/epagogy/ml (URL)
Software: https://pypi.org/project/mlw/ (URL)
Preprint: 10.5281/zenodo.19406148 (DOI)

Software

Repository URL
https://github.com/epagogy/ml
Programming language
Python , R
Development Status
Active