Forgetting and Unfolding for Existential Rules

Zhe Wang, Kewen Wang, Xiaowang Zhang

Abstract

This paper presents the first formal framework for "forgetting" in the context of existential rules, also known as Datalog±. Forgetting is a knowledge representation operation that removes specific predicates from an ontology while preserving its logical consequences for query answering. We define the result of forgetting based on Boolean Conjunctive Queries (BCQs) and introduce a novel unfolding technique using piece unification to compute it. We establish that an ontology is forget-compatible if and only if it is predicate bounded. Furthermore, we identify a broad class of ontologies, termed Σ-aGRA, for which forgetting is always expressible and finite. A practical algorithm guided by a Graph of Rule Application (GRA) is provided to perform the forgetting process.

Introduction

In the management of large-scale knowledge bases, the ability to "forget" or hide specific information is crucial for privacy, model simplification, and ontology reuse. While forgetting is well-established in simpler logic systems like Description Logics, it presents significant challenges for existential rules. These rules are highly expressive, allowing for the assertion of existentially quantified variables (e.g., "If someone is a parent, there exists a child"). This expressiveness makes it difficult to eliminate a concept without losing the logical connections it implies. The core objective is to ensure that the "forgotten" version of the ontology remains query-equivalent to the original for all queries not containing the forbidden symbols.

Theoretical Framework: Forgetting and Unfolding

The authors define the result of forgetting a set of symbols Σ from an ontology Π as a new ontology Π' that does not contain Σ and preserves the answers to all possible Boolean Conjunctive Queries (BCQs) over any dataset, provided the queries themselves do not use Σ.

To achieve this, the paper introduces a novel unfolding technique. Unfolding is a logic programming method where rules are combined to bypass intermediate predicates. In this framework, unfolding is adapted for existential rules using piece unification. Piece unification is a sophisticated matching mechanism between rule heads and bodies that correctly handles existentially quantified variables, ensuring that the structural dependencies of the rules are maintained during the transformation.

The ability to successfully forget a symbol is fundamentally linked to predicate boundedness. If the chains of reasoning involving a target symbol are finite (bounded), the result of forgetting that symbol can be represented as a finite set of existential rules.

The Graph of Rule Application (GRA)

To operationalize the theory, the authors introduce the Graph of Rule Application (GRA). The GRA is a directed graph where nodes represent potential rule applications (pairs of rules and unifiers) and edges represent how one rule application can trigger another.

An example of a Graph of Rule Application (GRA) tracking how rules trigger one another during the unfolding process.

By using the GRA to guide the unfolding process, the proposed algorithm can prune unnecessary computations. The authors identify a new class of ontologies called Σ-aGRA (acyclic GRA relative to a signature Σ). For ontologies in this class, the GRA-guided algorithm is guaranteed to terminate, producing a finite set of rules that constitutes the result of forgetting. This class is notably broader than previously known acyclic rule sets, offering a more flexible "safe zone" for forgetting operations.

Key Results and Insights

The research yields several significant theoretical and practical results:

  • Uniqueness and Characterization: The result of forgetting is proven to be unique up to logical equivalence. Furthermore, an ontology is "forget-compatible" (meaning the result is expressible in the same language) if and only if it is predicate bounded.
  • Decidability and Expressibility: While determining if a symbol can be forgotten is undecidable in the general case, the Σ-aGRA fragment provides a concrete, decidable subset where forgetting is always possible.
  • The Unfolding Limit: A key insight is that the result of forgetting is essentially the limit of the unfolding process. By unfolding rules sufficiently to bypass forbidden predicates, one arrives at the forgotten ontology.

Limitations and Future Work

Despite its contributions, the framework has limitations. The general undecidability of expressibility means the algorithm cannot handle all ontologies outside of bounded fragments like Σ-aGRA. Additionally, the current work focuses on "positive" existential rules and does not yet incorporate negation, which is common in many logic programming applications. Future research directions include analyzing the computational complexity on large-scale real-world ontologies and extending the framework to handle negation and related problems like ontology inseparability.

Summary updated

BibTeX
@inproceedings{wang2018forgetting,
  author = {Zhe Wang and Kewen Wang and Xiaowang Zhang},
  title = {{Forgetting and Unfolding for Existential Rules}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.11552},
}
Figure