Abstract
Identification and appropriate handling of inconsistencies in data at deployment time is crucial to reliably use machine learning models. While recent data-centric methods are able to identify such inconsistencies with respect to the training set, they suffer from two key limitations: (1) suboptimality in settings where features exhibit statistical independencies, due to their usage of compressive representations and (2) lack of localization to pin-point why a sample might be flagged as inconsistent, which is important to guide future data collection. We solve these two fundamental limitations using directed acyclic graphs (DAGs) to encode the training set’s features probability distribution and independencies as a structure. Our method, called DAGnosis, leverages these structural interactions to bring valuable and insightful data-centric conclusions. DAGnosis unlocks the localization of the causes of inconsistencies on a DAG, an aspect overlooked by previous approaches. Moreover, we show empirically that leveraging these interactions (1) leads to more accurate conclusions in detecting inconsistencies, as well as (2) provides more detailed insights into why some samples are flagged.
Introduction
In the field of Data-Centric AI, ensuring the quality of data used for training and testing is paramount. A significant challenge lies in identifying data inconsistencies—samples that, while potentially appearing in-distribution, are incongruous due to underlying biases, noise, or low data coverage.
DAGnosis is a new framework that addresses these challenges by using Directed Acyclic Graphs (DAGs) to identify and localize inconsistencies in tabular data. Current state-of-the-art methods, such as Data-SUITE, typically rely on compressive representations like PCA or Autoencoders. However, this approach has two primary drawbacks. First, it is suboptimal in sparse settings; tabular data often contains sparse dependencies where a feature only depends on a small subset of others. Compression "smears" these specific relationships, reducing detection accuracy. Second, these methods lack localization. When a sample is flagged, they cannot explain why or which specific feature interaction is problematic, hindering effective data auditing and correction.
The DAGnosis Framework
DAGnosis addresses these limitations by shifting the focus from data compression to data structure. The framework operates in three distinct stages:
- Structure Discovery: The system either utilizes a pre-defined DAG or learns one from the training data using algorithms like PC or NOTEARS. This graph explicitly represents the conditional dependencies between features.
- Markov Boundary Identification: For each feature, DAGnosis identifies its Markov Boundary (MB)—the minimal set of neighboring variables that contains all information necessary to predict that feature.
- Localized Conformal Prediction: Instead of a monolithic model, DAGnosis employs a suite of feature-wise conformal predictors. Each predictor is conditioned solely on its Markov Boundary. If a test sample's feature value falls outside the predicted confidence interval, that specific feature is flagged, providing a clear audit trail.
Experimental Evaluation
The researchers evaluated DAGnosis using synthetic benchmarks (Erdős–Rényi models) and real-world datasets, including the UCI Adult Income and Taiwanese Credit datasets.
Key results include:
- Improved Accuracy: In synthetic tests, DAGnosis consistently outperformed previous state-of-the-art methods in F1-score, precision, and recall across various levels of sparsity.
- Downstream Performance: By "deferring" (refusing to predict on) samples flagged as inconsistent by DAGnosis, the accuracy of downstream models improved significantly compared to other flagging techniques.
- Precision in Localization: In controlled corruption experiments, DAGnosis achieved near-perfect localization, flagging an average of 1.05 features compared to 3.48 by baseline methods.
Discussion and Conclusion
The core insight of DAGnosis is that sparsity is a feature. By respecting the natural conditional independencies in tabular data via the Markov Boundary, the model avoids the noise introduced by irrelevant features in compression-based methods. This structural approach transforms data cleaning from guesswork into a "surgical intervention," allowing practitioners to pinpoint specific feature mismatches (e.g., a specific Occupation incongruous with a Country).
While the method's effectiveness is tied to the quality of the discovered DAG—a task that remains computationally challenging for very high-dimensional data—DAGnosis demonstrates robustness even to imperfect structures. Future work aims to extend this structural approach to more complex data modalities like time-series and natural language.
Summary updated