Inference from Visible Information and Background Knowledge

Michael Benedikt, Pierre Bourhis, Balder ten Cate, Gabriele Puppis, Michael Vanden Boom

Introduction

In modern data management, the "whole picture" is rarely accessible to a single user. Whether due to privacy constraints, security protocols, or the use of virtualized views in information integration, users often interact with a subset of data—visible relations—while other parts of the database remain hidden. However, the presence of background knowledge, such as logical rules or schema constraints, allows a user to potentially infer the contents of these invisible relations.

This paper provides a comprehensive logical and computational map for "reasoning about what you can't see." By establishing the complexity boundaries for inferring hidden information, the authors clarify the limits of data privacy and the power of logical deduction in database systems.

Defining the Inference Problem

The core challenge addressed is determining what can be deduced about hidden data given a set of visible tables and a background theory (logical rules). The authors categorize this challenge into four distinct problems:

  1. Positive Query Implication (PQI): Determining if a specific query is certainly true across all possible database states consistent with the visible data.
  2. Negative Query Implication (NQI): Determining if a specific query is certainly false.
  3. Instance-level Inference: Making these deductions based on a specific, concrete set of visible data.
  4. Schema-level Inference: Determining if there is any possible database state where such a deduction could be made, regardless of the specific data instance.

Methodology and Theoretical Tools

To map the boundaries of these problems, the researchers utilize several advanced tools from mathematical logic and theoretical computer science:

  • Guarded Negation Fragment (GNFO): The authors demonstrate that many instance-level problems can be translated into GNFO. By leveraging existing decidability results for this fragment of first-order logic, they prove that many inference problems are solvable.
  • Automata-Theoretic Analysis: To establish precise complexity bounds, the study employs a reduction from GNFO satisfiability to tree automata, providing a rigorous framework for measuring computational cost.
  • The "Chase" Procedure: For theories involving Tuple-generating Dependencies (TGDs), the authors use a modified "disjunctive chase"—a symbolic execution technique—to characterize valid inferences.
  • Greatest Fixed-Point (GFP) Datalog: The research shows that certain negative inference problems (NQI) can be solved efficiently by reducing them to the evaluation of a Datalog program using greatest fixed-point semantics.

Key Insights: The Asymmetry of Truth and Falsity

One of the paper's most significant findings is the inherent asymmetry between proving truth and proving falsity. In many scenarios, proving that a hidden fact is false (NQI) is computationally easier than proving it is true (PQI).

For simple background theories, NQI is often tractable (Polynomial time), whereas PQI can remain ExpTime-hard in terms of data complexity. This suggests that while it may be easy to rule out certain hidden possibilities, confirming a specific hidden fact requires significantly more computational power.

The Critical Instance Property

For schema-level problems, the authors identify a "Critical Instance" property. They prove that if an inference is possible for any complex database, it must also be possible for a very simple "singleton" instance. This "well of positivity" allows researchers to reduce complex, abstract schema questions to simpler, instance-based questions, greatly simplifying the analysis of whether a schema is "leaky."

Taming Complexity with Guardedness

The paper emphasizes the role of "guarded" logics. By ensuring that variables in logical rules are "guarded" by atomic relations, the authors identify broad classes of background theories where inference remains decidable. However, they also pinpoint the exact boundary of undecidability: adding even minor features like constants (specific named values) or disjunctions (OR statements) to the background theory at the schema level can make the problem impossible to solve.

Complexity Results Summary

The research establishes a clear hierarchy of complexity for these inference tasks:

  • Instance-Level (GNFO): Found to be 2ExpTime-complete for combined complexity and ExpTime for data complexity.
  • PQI Hardness: Even with simple Inclusion Dependencies, determining truth is ExpTime-hard relative to data size.
  • NQI Tractability: For linear theories, determining if a query is false is in PTIME and is definable in GFP-Datalog.
  • Schema-Level: Decidability is maintained for theories consisting of TGDs and Equality-generating Dependencies (EGDs) without constants, but the problem becomes undecidable if disjunctive rules are introduced.

Conclusion and Future Directions

While the paper provides a robust theoretical foundation, the high computational costs (ExpTime and 2ExpTime) suggest that real-time implementation in database systems will require significant optimization or the use of restricted rule sets.

Future work points toward exploring more granular "restricted access" mechanisms. Rather than simply hiding entire relations, the authors suggest investigating functional interfaces or language-based restrictions. Bridging the gap between these theoretical bounds and practical "access method" interfaces remains a key challenge for the field.

Summary updated

BibTeX
@article{benedikt2021inference,
  author = {Michael Benedikt and Pierre Bourhis and Balder ten Cate and Gabriele Puppis and Michael Vanden Boom},
  title = {{Inference from Visible Information and Background Knowledge}},
  journal = {ACM Trans. Comput. Log.},
  year = {2021},
  doi = {10.1145/3452919},
}
Figure