Automated Data Quality Validation in an End-to-End GNN Framework

Sijie Dong, Soror Sahri, Themis Palpanas, Qitong Wang · DOI

Abstract

Data quality validation remains a significant bottleneck in data science, often consuming up to 80% of a practitioner's time. Traditional validation tools rely on rigid, expert-defined constraints or simple statistical thresholds that frequently fail to detect "hidden" errors—logical inconsistencies that appear valid in isolation but are impossible when viewed across multiple features. This paper introduces DQuaG (Data Quality Graph), an end-to-end framework that utilizes Graph Neural Networks (GNNs) to learn complex interdependencies within tabular data. By combining LLM-assisted graph construction with a hybrid GAT-GIN architecture and a dual-decoder setup, DQuaG identifies and repairs data anomalies with high precision and linear scalability.

Introduction

In the modern data ecosystem, the adage "garbage in, garbage out" has never been more relevant. While tools like Amazon’s Deequ or Google’s TFDV provide automated checks for data types and range constraints (e.g., "Age must be between 0 and 100"), they struggle with semantic and logical conflicts. For instance, a record indicating a "Truck Driver" with an "Age" of 12 is statistically and logically improbable, yet both values might pass independent range checks.

Existing automated systems often face a trade-off: set rules too strictly and generate excessive false positives, or set them too leniently and miss critical errors. DQuaG addresses this by shifting the paradigm from rule-based validation to pattern-based learning. It treats tabular features as nodes in a graph and learns the "normal" manifold of the data, flagging any record that deviates significantly from these learned patterns.

Methodology

The DQuaG framework is structured into four primary components designed to capture and utilize the structural dependencies of tabular datasets.

1. Feature Graph Construction via LLMs

To avoid the computational overhead of a fully connected graph, the authors employ a novel approach using Large Language Models (LLMs). By providing GPT-4 with dataset metadata (column names and descriptions) and a small sample of rows, the model infers likely relationships between features. This "knowledge-based" graph serves as the topology for the GNN, ensuring that the model focuses on connections that are semantically meaningful.

2. Hybrid GNN Encoder

The core of the system is a four-layer GNN encoder that alternates between two specific layer types:

  • Graph Attention Network (GAT) Layers: These allow the model to dynamically weight the importance of different feature relationships, focusing on the most relevant dependencies for a given record.
  • Graph Isomorphism Network (GIN) Layers: These are utilized to capture the underlying structural patterns and injective properties of the data distribution, ensuring the model can distinguish between subtle variations in feature combinations.

3. Dual-Decoder Architecture

The encoder’s output is processed by two distinct decoders in a multi-task learning configuration:

  • Validation Decoder: This component attempts to reconstruct the original input data. The reconstruction error serves as the primary metric for quality; high error values indicate that a record does not fit the learned "clean" data distribution, marking it as a potential anomaly.
  • Repair Decoder: This decoder is specifically optimized to suggest corrected values for features flagged as erroneous by the validation step.

4. Multi-Task Learning

The model is trained on clean (or silver-standard) data using a joint loss function. This ensures that the latent representations learned by the encoder are robust enough to support both the detection of outliers and the generation of plausible repairs.

Experimental Evaluation

Datasets

The authors evaluated DQuaG across six diverse datasets categorized into two groups:

  • Synthetic Error Datasets: NY Taxi Trip, Hotel Booking, and Credit Card data. These were injected with specific logical conflicts (e.g., arrival dates preceding booking dates) to test the model's sensitivity to temporal and logical inconsistencies.
  • Real-World Error Datasets: Airbnb (NYC listings), Chicago Divvy Bicycle Sharing, and Google Play Store Apps. These datasets contain "natural" noise and errors inherent in public data collections.

Performance and Results

DQuaG demonstrated significant improvements over traditional baselines:

  • Detection Accuracy: On synthetic datasets, DQuaG achieved near-perfect recall (1.0), outperforming Deequ and TFDV, which often missed complex multi-column errors.
  • Real-World Utility: In the Airbnb dataset, DQuaG successfully reduced the error rate from 10.52% to 4.97%. This performance is remarkably close to the 4.95% error rate found in the manually cleaned ground-truth version of the dataset.
  • Scalability: The framework exhibits linear scalability relative to both row count and feature count. In testing, the system processed one million samples in approximately ten minutes using an NVIDIA A100 GPU.

Discussion and Future Work

A key insight from the study is the synergy between GAT and GIN layers; the authors found that the combination outperformed architectures using only one of the two. Furthermore, the use of LLMs to define graph topology represents a successful bridge between human domain expertise and automated machine learning.

However, the authors note limitations in extreme scenarios, such as very small datasets where a single error might not provide enough signal for the GNN to distinguish it from the general distribution. Future research will focus on improving the interpretability of the GNN's decisions—providing users with "explanations" for why a value was flagged—and extending the framework to assist in automated data selection for downstream ML tasks.

Conclusion

DQuaG represents a significant step forward in automated data engineering. By moving away from manual constraint engineering and toward a learned, graph-based representation of data quality, the framework offers a scalable and highly accurate solution for maintaining the integrity of complex tabular datasets.

Summary updated

BibTeX
@inproceedings{dong2025automated,
  author = {Sijie Dong and Soror Sahri and Themis Palpanas and Qitong Wang},
  title = {{Automated Data Quality Validation in an End-to-End GNN Framework}},
  booktitle = {EDBT},
  year = {2025},
  doi = {10.48786/edbt.2025.71},
}
Figure