Abstract
Modern software systems increasingly rely on data as a core component of their logic. When these systems fail, the root cause often lies not in the code, but in a mismatch between the system's assumptions and the actual properties of the data. We present DataExposer, a novel framework that identifies these high-level data properties—such as statistical bias or distribution skews—using causal reasoning. By employing targeted interventions, DataExposer identifies root causes 10x to 1000x more efficiently than state-of-the-art debugging tools.
Introduction
In contemporary software engineering, data is effectively part of the "source code." When a machine learning pipeline or automated service malfunctions, traditional debuggers often fail because they focus on code logic rather than data properties. These failures frequently stem from a disconnect between the system's implicit assumptions and the data's global characteristics, such as unit mismatches (e.g., kilograms vs. pounds) or demographic imbalances. While existing tools focus on identifying individual "outlier tuples," DataExposer targets high-level "data profiles" to pinpoint systemic root causes.
The PVT Triplet Framework
The core abstraction of DataExposer is the PVT Triplet, which formalizes the relationship between data properties and system behavior:
- Profile (P): A specific data property (e.g., "Attribute X should be within range [0, 100]").
- Violation Function (V): A metric quantifying the dataset's deviation from the profile.
- Transformation Function (T): A mechanism to modify the data to satisfy the profile, serving as a causal intervention.
By defining a library of these triplets, DataExposer can systematically test various hypotheses about why a system is failing.
The DataExposer Workflow
DataExposer follows a structured process to identify root causes:
- Discriminative Profiling: The tool compares a "failing" dataset with a "passing" reference dataset to identify properties that differ significantly.
- Causal Interventions: Unlike tools that rely solely on correlation, DataExposer applies Transformation functions to the failing dataset. If "fixing" a profile causes the system to pass, that profile is confirmed as a causal root cause.
- Prioritization via PVT-Attribute Graphs: To handle large datasets, DataExposer constructs a bipartite graph connecting profiles to data attributes. It prioritizes testing profiles associated with "high-degree" attributes—those involved in multiple potential issues.
The framework offers two primary algorithms: DataExposer-GRD, a greedy approach for sequential testing, and DataExposer-GT, which uses group-testing for logarithmic scalability in complex environments.
Experimental Evaluation
The authors evaluated DataExposer across several real-world and synthetic scenarios, including sentiment analysis (IMDb vs. Twitter), algorithmic fairness in income prediction (Census records), and medical diagnostic unit mismatches.
Key Results and Insights
DataExposer demonstrates significant improvements over existing baselines like BugDoc or Anchors:
- Efficiency: In real-world case studies, DataExposer-GRD typically required fewer than 5 interventions to locate the root cause, whereas baselines often required hundreds.
- Speed: Root causes were identified in under 30 seconds for most real-world cases, compared to hours for some existing tools.
- Causal Verification: By performing actual data transformations, the tool provides explanations that are causally linked to the failure, rather than just statistically correlated.
Conclusion and Future Work
DataExposer shifts the focus of debugging from individual rows to global data distributions. While currently dependent on a predefined library of profile classes and a clear "oracle" for system failure, it represents a major step toward automated data repair. Future work will explore expanding the profile library and developing methods to automatically generate permanent code fixes for identified data pipeline issues.
Summary updated