Practical Query Answering in Data Exchange Under Inconsistency-Tolerant Semantics

Balder ten Cate, Richard L. Halpert, Phokion G. KolaitisEDBT 2016

Introduction

Data exchange is a fundamental process in modern data management, involving the transformation of data from a source schema to a target schema according to predefined mapping rules. However, real-world data integration often encounters "dirty" data—source records that conflict with target constraints, such as uniqueness requirements for gene identifiers. Traditional data exchange methods often fail in these scenarios, either producing no result or yielding trivial, unhelpful answers.

To address this, researchers have proposed XR-Certain semantics (Exchange-Repair). This approach considers all possible "repairs"—minimal deletions of source data required to satisfy target constraints—and returns only the answers that are consistent across every valid outcome. While theoretically robust, computing XR-Certain answers is coNP-complete, making it historically impractical for large-scale datasets.

The Segmentary Approach: Bridging Theory and Practice

The core innovation of this research is a "divide and conquer" strategy that decomposes the computationally expensive problem into manageable segments. The authors move away from a monolithic reduction—where a logic solver attempts to reason about the entire database at once—in favor of a segmentary approach based on two key concepts:

  1. Repair Envelopes: The system first identifies the specific subset of data "infected" by potential conflicts.
  2. Violation Clusters: These conflicts are grouped into independent segments. For instance, a constraint violation involving a specific gene record is often independent of violations in unrelated records.

By isolating these clusters, the system can process the vast majority of "safe" data using standard, high-performance SQL queries. Only the small, problematic clusters are sent to a heavy-duty Disjunctive Logic Programming (DLP) solver like clingo to find stable models (possible repairs).

Datasets and Benchmarking

To evaluate this approach, the authors developed a benchmark based on the UCSC Genome Browser import process. This real-world scenario involves merging data from diverse sources like RefSeq, EntrezGene, and UniProt, which frequently results in inconsistencies regarding exon counts or gene symbols.

The UCSC Genome Browser benchmark schema, illustrating the complex mappings between source and target tables that can lead to data inconsistencies.

The benchmark utilized source data with up to 4.4 million tuples. Test instances were created with varying levels of "noise," ranging from 0% to 20% of records being "suspect" or involved in constraint violations.

Key Results and Insights

The segmentary approach demonstrated significant performance gains over monolithic methods, achieving speedups of 10x to 1000x on large-scale instances.

Performance evaluation showing query duration scaling with both the percentage of suspect data (left) and the overall instance size (right).

Key takeaways from the experimental results include:

  • Scalability: While monolithic solvers often become unworkable as data size increases, the segmentary approach scales linearly with the number of actual violations.
  • The "Safe" Majority: The efficiency stems from the observation that even in "dirty" datasets, most data is clean. Isolating the small percentage of tuples involved in violations allows the system to bypass exponential complexity for 99% of the database.
  • Practicality: The pre-processing "exchange phase" took only a few minutes even for the largest datasets, proving that XR-Certain semantics can be integrated into production-grade genomic pipelines.

Conclusion and Future Work

This work proves that inconsistency-tolerant semantics can be made practical for massive, real-world datasets through intelligent data segmentation. By formalizing violation clusters, the authors have provided a roadmap for scalable data exchange. Future research may expand this optimization to more complex mapping types (GLAV) and explore incremental updates to clusters as new data is integrated into the system.

Summary updated

BibTeX
@inproceedings{cate2016practical,
  author = {Balder ten Cate and Richard L. Halpert and Phokion G. Kolaitis},
  title = {{Practical Query Answering in Data Exchange Under Inconsistency-Tolerant Semantics}},
  booktitle = {EDBT},
  year = {2016},
  doi = {10.5441/002/edbt.2016.23},
}
Figure