2.1 Probabilistic Conditional Knowledge Base
The framework for probabilistic conditionals with instantiation restrictions (PCI), as described in [4], provides different options for syntactical expressions of probabilistic knowledge bases. The option we will use as a base for this thesis is the firt order probabilistic conditional language (FOPCL), which is an extension of the probabilistic conditional logic to the relational case.
Let be a quantifier-free first-order language defined over a many sorted first order signature , where is a set of sorts, is a finite set of constants, and is a set of predicates, each having a specific arity of the form , indicating the required sorts for the arguments. Individual variables are used within the predicates, whereby each variable ranges over a unique sort . The language consists of FOPCL conditionals of the form , where , are first-order formulas, is a probability and is a set of instantiation restrictions, which are formulas of using only the equality predicate. We call the conclusion and the antecedence of . The set of all FOPCL conditionals is denoted by . A FOPCL knowledge base is a set of FOPCL conditionals and is denoted by .
In this thesis we will only make use of FOPCL knowledge bases and FOPCL conditionals and therefore will simply refer to them as knowledge bases and conditionals.
A ground instance is an instance of a conditional in which all variables in the conclusion and antecedence formulas are substituted with a dedicated set of elements of the sorts over which the respective variables are defined. An admissible ground instance of a conditional is a ground instance which is not restricted by a formula within the instantiation restrictions of the conditional. The grounding of a knowledge base is the set of all admissible ground instances which can be generated from a knowledge base. A ground atom is the instance of a predicate within a grounding of a knowledge base.
Example 1 (Grounding of a Knowledge Base)
Let and be two sorts, be a predicate with arity and be a predicate with arity .
Let be a FOPCL conditional with being a variable over and being variables over . Let be a knowledge base.
Then the admissible ground instances of are
All other groundings are restricted by the instantiation restrictions of , i.e. by either or or the mandated equality of the second variable in predicate and the first variable in predicate .
The grounding of is the set .
The ground atoms of are and .
In this thesis we assume all knowledge bases to be consistent and therefore also each conditional to be self-consistent, i.e. for every conditional within a knowledge base there must exist at least one model for which it holds that and , whereby is the propositional entailment function. Furthermore we only assume conditionals which have consistent constraint formulas, i.e. which are constraint-consistent. Finally we assume all conditionals to be in constraint normal form as defined by definition 1 in [2].
As this thesis focuses on conditional structures, it is not necessary to take into account the probabilities of conditionals. The next definition therefore allows us an easier notation.
Definition 1 (OP-Conditionals)
An op-conditional is a FOPCL conditional for which the assigned probability is omitted (e.g. in order to simplify notation).
Throughout this thesis we will only make use of op-conditionals. It is important that nevertheless all material in this paper is still based on FOPCL, although the related results are independent of probabilities. This paper does not investigate any applicability of the achieved results outside the PCI framework.
The following sets are defined in a similar way as in [2].
Definition 2 (Sets of Groundings and Ground Atoms)
Let be an FOPCL knowledge base, with a conditional and being predicate symbols occurring in .
is the set of admissible ground instances of a conditional - this set will also be called groundings of .1
is the set of ground atoms occurring in a specific grounding of a conditional .
is the set of ground atoms of predicate symbols , whereby the ground atoms occur within the admissible ground instances of conditional .
is the Herbrand base of the conditional knowledge base , i.e. the set of all ground atoms occurring in the admissible ground instances of conditionals in . We write if the knowledge base consists only of a single conditional.
is the grounding sum of ground atom , i.e. the number of groundings of conditional in which the grounded atom occurs.2
is the common grounding sum of ground atoms and , i.e. the number of groundings of conditional in which the grounded atoms and both occur.3
Example 2 (Sets of Groundings and Ground Atoms)
Let and be two atomic conditionals, with variable ranging over sort and variable ranging over sort . Let .
Then we get:
- ;
- ;
- ;
- ;
- ;
- ;
- ;
- ;
- ;
- ;
- , ;
- , ;
- , ;
- , ;
- .
2.2 Parametric Uniformity
In this section we give an introduction to the semantical concepts which require a knowledge base to be parametrically uniform. We then look at the balanced criteria, which allows us to determine on a syntactical level whether a knowledge base is parametrically uniform. We will furthermore describe how on the level of conditionals any knowledge base can be transformed so that it becomes parametrically uniform. All this will be done in a very brief way and it is assumed that the reader is familiar with the related concepts. The material offered here is mostly a summary from [2]. Only those propositions from [2] which are essential to understand the material in this paper have been repeated.
There are different ways to interpret and model probabilistic knowledge bases on the semantical level. One of the goals is usually to find a probability distribution which fits the conditional probabilities. Logical reasoning is then done based on such a probability distribution. Usually there is not only one, but many probability distributions which fit the conditional probabilities of a knowledge base. One very successful way to do so is the maximum entropy model as e.g. defined in [10] and [8]. The maximum entropy model is optimal in the sense that it is the most unbiased one.
In order to compute the maximum entropy model, a transformed version of the Gibbs distribution (as described in [9]) has proven to be most effective, which requires a knowledge base to have the property of parametric uniformity as described in [2].
Definition 3 (Parametric Uniformity Function)
Parametric uniformity can also be investigated on a pure syntactical level. For this, the concepts of balanced sharing and balanced usage of ground atoms is used.
Definition 4 (Imbalanced Sharing (from [2]))
Let be two different conditionals, and let and .
- There is an imbalanced sharing of ground atoms by and (with respect to and ), iff and .
- Let and be atoms different from and , respectively. There is an imbalanced sharing of combinations of ground atoms by and (with respect to and ) iff and .
- There is an imbalanced sharing in iff there are conditionals in such that (1) or (2) is the case.
Definition 5 (Imbalanced Use (from [2]))
Let and .
- There is an imbalanced use of ground atoms by (with respect to ) iff there are such that .
- Let be different from . There is an imbalanced use of combinations of ground atoms by (with respect to and ) iff there are and , such that .
- There is an imbalanced use in in iff there is a conditional in such that (1) or (2) is the case.
Definition 6 (Balanced and imbalanced knowledge base (from [2]))
is imbalanced iff there is an imbalanced sharing or an imbalanced use in , otherwise is balanced.
Example 3 (Imbalanced Sharing)
Continuing from example 2.
There is an imbalanced sharing between and , as and .
There is no imbalanced usage within or .
As there are conditionals which are not balanced it follows that is not balanced.
Definition 7 (Balanced Functions)
Let be an knowledge base. Let .
Then
- is the function which indicates whether the FOPCL knowledge base is balanced with respect to the usage of ground atoms;
- is the function which indicates whether the set of conditionals is balanced with respect to the usage of ground atoms;
- is the function which indicates, whether the FOPCL knowledge base is balanced with respect to the sharing of ground atoms; and
- is the function which indicates, whether the set of conditionals is balanced with respect to the sharing of ground atoms.
We usually write instead of and instead of
Example 4 (Balanced Functions)
Continuing from example 3.
We get , and and therefore it holds that and .
Proposition 4 in [2] states that a knowledge base is parametrically uniform iff it is balanced. Based on this a set of transformation rules is derived in [2], which remove all imbalances from a given consistent knowledge base. With these rules, any given consistent knowledge base can be transformed into a parametrically uniform version of . The set of transformation rules is shown in table 2.1, whereby indicates the constraint normal form operator, which is also defined in [2], but will not further be explained here.
Definition 8 (Parametric Uniformity Function (from [2]))
Let be an knowledge base.
Then is the parametrically uniform version of knowledge base after all applicably transformation rules as shown in table 2.1 have been exhaustively applied to .
Transformation rules yielding parametric uniformity.
Example 5 (Transformation Rules)
Continuing from example 4.
We make use of the transformation rules to resolve the imbalanced sharing and therefore replace with the two atomic conditionals and .
Then we have
- ;
- ;
The knowledge base is balanced with respect to sharing as and and and also does not share any atoms with the other sets.
2.3 Conditional Structure
In this section we will show how the conditional structure (CS) of a knowledge base can be derived from the ground atoms of its conditionals. We will therefore treat the ground atoms as truth variables which form the base for a set of possible worlds. Within each world we will count for every conditional the verified and falsified ground atoms and combine these two numbers to a vf-pair. The vf-pairs of all conditionals for a specific possible world is then called the conditional impact and the set of all conditional impacts is the CS.
In the upcoming chapters we will need to create subsets of certain types of ground atoms and will therefore need quite some flexibility in the derivation of possible worlds. The first definition in this section therefore defines a possible world in a very generic way.
Definition 9 (Possible Worlds)
Let be a set of ground atoms. Let be a FOPCL knowledge base.
Then a possible world is a specific assignment of truth values to a n-tuple of ground atoms.
The set of all possible worlds which can be derived from the ground atoms is denoted by .
The set of all possible worlds which can be derived from the conditionals of a knowledge base is denoted by .
Note that we will use the term "derived" in order to express how the possible worlds are generated by assigning all possible combinations of truth values to the ground atoms of a knowledge base.
We will say that is a possible world of or if is derived from the ground of atoms of the knowledge base or the conditional respectively.
The following example will also introduce two styles of notation for possible worlds.
Example 6 (Possible Worlds)
Continuing from example 5.
Table 2.1 shows all possible worlds generated by the groundings of as well as and , and .
It follows that .
We can denote specific possible worlds in two different styles, i.e. we can either write the content of as , which in most cases is sufficient, or we can write
The following is a different formulation of the related definition given [5]. 4
Definition 10 (vf-Pair, Counting Functions)
Let be an conditional with and and .
Then
- is the counting function which counts the number of ground instances of conditional of which the related ground atoms are verified by a possible world ;
- is the counting function which counts the number of ground instances of conditional for which the related ground atoms in the conclusion are falsified by possible world and the related ground atoms in the antecedence are verified by a possible world ;
- , is a vf-pair, i.e. the tuple consisting of the numbers counted by the counting functions; and
- is the set of all -pairs.
In section 4.8 we will introduce alternative counting functions which are defined based on the different influence of conclusion and antecedence ground atoms. Due to this we will refer to the above defined functions also as traditional counting functions.
Within the following example we will informally define the vf truth table. Note that the definition of the table is not fixed, i.e. we will sometimes modify this (or other) tables in order to underline certain aspects of the individual example cases.
Example 7 (vf-Pairs)
The lines in a vf truth table indicate all vf-pairs which the conditionals of a FOPCL knowledge base generate for a specific possible world. The following definition introduces these sets of vf-pairs as conditional impacts.
Definition 11 (Conditional Impact (from [7]))
Let be an FOPCL knowledge base and let be a possible world..
Then the conditional impact of possible world is defined as
the set of vf-pairs generated by possible world for all atomic conditional .
Example 8 (Conditional Impact)
The conditional structure of a knowledge base is now defined as the set of the conditional impacts over all possible worlds of the knowledge base.
Definition 12 (Conditional Structure () (from [5]))
Let be a knowledge base.
Then the conditional structure (CS) of is the set of all conditional impacts of knowledge base , i.e.
In order to construct the CS of a knowledge base we need to collect all conditional impacts of all possible worlds which can be derived from that knowledge base. We therefore need the complete vf truth table of the knowledge base, including all possible worlds and all conditionals. This thesis will investigate some alternative ways to generate the CS of a knowledge base, which is why we called the function in definition 12 , i.e. to show that it is makes use of the vf truth table to construct the CS.
The following definition introduces a general notation for CSs, regardless of which method was used to construct them.
Definition 13 (Conditional Structure ())
So basically we will refer to the CS as and only in cases when it is necessary to mention a specific construction mechanism we will use a different notation, e.g. we will denote the CS as if it is relevant that it was created as defined by definition 12.
Example 9 (Conditional Structure)
Definition 14 (Common Method)
Let be a FOPCL knowledge base.
Then the method by which the CS of is determined by applying the function is called the common method.
Note that all the CSs of all examples in this thesis have been constructed with the common method. We will see several examples in later chapters, where different methods are used, nevertheless for all these examples we also used the common method to check for the correctness of the results.
One of the main applications of CSs is for the generalized interactive scaling (GIS) which is used to apply maximum entropy reasoning under the so-called aggregation semantics. GIS is defined in [3] and [5]. GIS does not make directly use of the CS, but of the equivalence classes (EC) of possible worlds, i.e. the set of all possible worlds which generate the same conditional impact.
Definition 15 (Equivalence Classes of Possible Worlds (from [5]))
Let be a FOPCL knowledge base. Let be a possible world.
Then the equivalence class of possible world is defined as
The the equivalence classes of possible worlds of is defined as
Example 10 (Equivalence Classes of Possible Worlds)
2.4 Related Work
In this section we give a brief summary of the material used for this paper and how within them the ideas of parametric uniformity and conditional structures were developed.
- [10] introduces the concept of CS for a probabilistic conditional logic (PCL), based on propositional logic;
- [10] describes a probabilistic conditional logic semantics based on the principle of maximum entropy (ME);
- [8] extends the probabilistic conditional logic to the relational case, i.e. it describes an approach for a first-order probabilistic logic (FOPCL), which makes use of ME based semantics;
- [11] introduces aggregation semantics (AGG) as an alternative approach to a first-order probabilistic logic which also employs an ME based semantics;
- [4] extends AGG with the concept of instantiation restrictions (AGG-IR) and embeds both the AGG-IR approach as well as the FOPCL approach in the probabilistic conditionals with instantiation restrictions (PCI) framework;
- [2] shows the importance of the property of parametric uniformity (PU) and introduces a mechanism to transform a FOPCL knowledge base into a parametrically uniform knowledge base (which was shown in section 2.2);
- [4] introduces the proposition that if a knowledge base is parametrically uniform, then the two probability distributions and are identical (this proposition has not been proved);
- [3] employs the generalized interactive scaling (GIS) algorithm in order to solve the optimization problem for the ME-distribution for aggregation semantics, the GIS thereby takes into account all possible worlds of the related knowledge base;
- [5] introduces the concept of a vf-pair, which is the base for conditional structures in the relational case;
- [5] as well introduces the concept of equivalence classes of possible worlds , based on identical CSs;
- [5] finally shows how equivalence classes of possible worlds can be used to make the GIS algorithm more efficient for the purpose of ME interference;
- [6] introduces (based on vf-pairs and CS) the concept of the weighted conditional impact (WCI) and employs it to make the GIS algorithm even more efficient;
- [7] introduces the concept of the conditional impact (CI).
In addition to the above listed material we extensively used the integrated development environment for relational probabilistic logic KReator, which is e.g. capable of transforming a FOPCL knowledge base into its parametrically uniform version, as described in [1].5
Notes
In [5] we is defined as follows:
Though the notation is significantly different from the one chosen in definition 10 they both encompass the same sets. We will not detail how the notation of [5] and the notation chosen for this thesis can be transformed into each other in order to avoid introducing all symbols and terminology which [5] uses. It is believed that the readers who are familiar with [5] can see the equivalence.
Source code of KReator can be found at http://kreator-ide.sourceforge.net/.