Abstract
Autonomous web databases frequently contain missing attribute values, which significantly impairs the effectiveness of standard query processing. Traditional solutions employing rule-based Approximate Functional Dependencies (AFDs) often fail when dealing with correlated missing values or complex schemas. This paper introduces a novel approach using Bayesian Networks (BNs) to model the joint probability distribution of database attributes. By leveraging BNs for both data imputation and query rewriting, the proposed system demonstrates enhanced accuracy and recall compared to AFD-based methods, particularly in scenarios with high data incompleteness and multi-attribute queries.
Introduction: The Challenge of Incomplete Data
Modern web-based databases, such as those for used car classifieds or scientific data, are often populated by automated scrapers or non-expert users. This leads to a high degree of "incompleteness," where many records are missing critical attribute values.
Consider a user querying a used car database for Body=SUV. If a record lacks a value for the Body attribute but specifies the Model as Santa Fe, a standard database engine will exclude it from the results. However, since a Santa Fe is an SUV, this record is highly relevant.
Previous systems, such as QPIAD, attempted to address this using Approximate Functional Dependencies (AFDs)—rule-based heuristics like "If Model=Santa Fe, then Body=SUV with 90% confidence." However, AFDs assume that missing values are independent. When multiple correlated values are missing, AFDs often fail due to cyclic reasoning. Furthermore, because these databases are "autonomous" (accessible only via web forms), a mediator system must rewrite queries to fetch these hidden relevant records without exceeding API limits.
Methodology: Bayesian Networks for Data Correlation
The authors propose replacing rule-based AFDs with Bayesian Networks (BNs), which model the full joint probability distribution of the database attributes.
Learning and Imputation
The system learns the BN structure from a small, complete sample of the database. To maintain computational efficiency, the number of parents for any given node is restricted. For databases where the mediator has write access, missing values can be filled via imputation. Since exact inference in BNs is NP-hard, the authors utilize Gibbs sampling, an approximate inference technique, to ensure scalability.
Query Rewriting for Autonomous Databases
For read-only autonomous databases, the system must rewrite the user's query to include constraints on other attributes that probabilistically imply the missing target value. Two techniques are introduced based on the Markov Blanket (a node's parents, children, and children's parents):
- BN-All-MB: Rewrites queries by constraining all attributes within the target's Markov Blanket.
- BN-Beam: Uses a beam search to identify the optimal subset of Markov Blanket attributes. This balances precision and throughput, ensuring the system retrieves relevant records without overwhelming the database with ineffective queries.
Evaluation and Results
The approach was evaluated using two datasets: a collection of 55,000 used car listings from Cars.com and 15,000 census records from the Adult (UCI) dataset.
Key Findings
- Superior Imputation: BNs consistently outperformed AFDs. In the Cars dataset, when predicting three missing values simultaneously, AFDs could only resolve 45% of combinations due to cyclic dependencies, whereas BNs handled all cases successfully.
- Robustness: As the percentage of missing data increased to 90%, BN accuracy degraded much more gracefully than AFD accuracy.
- Effective Query Rewriting: While performance was similar for single-attribute queries, BN-Beam significantly outperformed AFDs for multi-attribute queries. AFDs often produced overly constrained queries with zero results, whereas BN-Beam maintained high recall and precision.
- Practical Performance: Inference via Gibbs sampling took approximately 44–66 seconds for 5,500 tuples, demonstrating that the computational overhead is manageable for real-world applications.
Conclusion
Bayesian Networks provide a powerful and flexible framework for managing incompleteness in autonomous web databases. By capturing complex attribute correlations, BNs overcome the limitations of rule-based systems, offering significantly better performance in both data imputation and query rewriting. Future research will focus on optimizing the beam search process and exploring techniques like Expectation-Maximization (EM) to learn BN structures from highly incomplete training data.
Summary updated