MechDetect: Detecting Data-Dependent Errors
Philipp Jung, Nicholas Chandler, Sebastian Jäger, Felix Biessmann
TL;DR
MechDetect presents a data-driven framework to infer how data errors are generated in tabular datasets by leveraging an error mask and three training setups (Complete, Shuffled, Excluded). Through two statistically guarded tests and non-linear binary classifiers, it can distinguish MCAR from MAR/MNAR and further separate MAR from MNAR, with strong empirical performance across 101 datasets. The approach highlights the importance of understanding error-generation mechanisms for data cleaning and downstream tasks, while recognizing practical assumptions such as the availability of clean data and an error mask. Overall, MechDetect offers a principled, scalable method to diagnose data-dependent error mechanisms in real-world tabular data pipelines.
Abstract
Data quality monitoring is a core challenge in modern information processing systems. While many approaches to detect data errors or shifts have been proposed, few studies investigate the mechanisms governing error generation. We argue that knowing how errors were generated can be key to tracing and fixing them. In this study, we build on existing work in the statistics literature on missing values and propose MechDetect, a simple algorithm to investigate error generation mechanisms. Given a tabular data set and a corresponding error mask, the algorithm estimates whether or not the errors depend on the data using machine learning models. Our work extends established approaches to detect mechanisms underlying missing values and can be readily applied to other error types, provided that an error mask is available. We demonstrate the effectiveness of MechDetect in experiments on established benchmark datasets.
