<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Making DL-Lite Planning Practical</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Stefan Borgwardt</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jörg Hoffmann</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alisa Kovtunova</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Marcel Steinmetz</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Institute of Theoretical Computer Science</institution>
          ,
          <addr-line>TU Dresden</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Saarland University</institution>
          ,
          <addr-line>Saarland Informatics Campus</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>AI planning is a well-investigated framework for describing the evolution of system states through actions [6]. Action preconditions are first-order (FO) formulas, which are evaluated over states, i.e. finite sets of facts. Action effects either add or remove facts from the current state. Formulas are evaluated using a closed-domain, closed-world semantics, i.e. the domain is fixed a priori and facts that are not contained in a state are assumed to be false. The aim is to find a plan, i.e. a sequence of (grounded) actions that satisfy a goal formula. Knowledge representation formalisms are a natural way to introduce global constraints on permissible states; however, they usually interpret FO formulas over arbitrary models, instead of just one model with a fixed domain. DL-Lite Explicit-Input Knowledge and Action Bases (eKABs) [5] were proposed to combine classical planning with state axioms formulated in DL-Lite [4], while allowing an open domain and interpreting action preconditions under open-world semantics. Due to FO rewritability of DL-Lite, eKABs can be translated into the classical planning language PDDL. In theory, this allows the use of off-the-shelf planning systems. However, an initial evaluation [5, 13] using the Fast Downward (FD) planning platform [7] showed poor performance on a simple hand-crafted domain, with the planner being unable to solve even trivial problem instances. In our experiments, the problem also appeared in Fast Forward (FF) [9]. Planning Formalisms. A PDDL task is a tuple Π = hP, A, O, I, Gi with finite sets of predicate symbols P, action schemas A, objects O, the initial state I, and the goal G. I is a set of facts that are true initially; all facts not in I are considered false. G is a closed FO formula over P and O. Every a ∈ A is a triple hx−→a, prea, effai with parameters x−→a, precondition prea, and a set of effects effa. prea is an FO formula over P and O with free variables from x−→a. An effect e ∈ effa is a tuple h→−ye , conde, adde, delei where →−ye are variables, conde is the effect condition, an FO formula over P and O with variables from x−→a ∪ →−ye , the add list adde is a set of atoms with free variables from x−→a ∪ →−ye , and the delete list dele is a set of such negated atoms. For example, the action A = hx, Emp(x), h∅, &gt;, {SoDev(x)}, ∅ii promotes any employee to a software developer.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        A DL-Lite eKAB hP, A, O, T , I, Gi1 [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] extends a PDDL task by a DL-Lite
TBox T , a possibly infinite set of objects O, the fact that states use the open-world
assumption and must be consistent with T , and a modified syntax for conditions.
Action and effect preconditions and the goal are specified as ECQs [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], which are
FO formulas with conjunctive queries (CQs) as atoms. The CQs are evaluated
over T using open-world semantics, but their results (i.e. certain answers) are
interpreted under an epistemic semantics to combine open- and closed-world
conditions. For example, consider the TBox {Emp v ∃worksFor}, state {Emp(a)}, and
the conditions φ1(x) = ¬[∃y.worksFor(x, y)] and φ2(x) = ¬∃y.[worksFor(x, y)],
where the conjunctive queries are indicated by square brackets. Then φ1 does
not apply to object a, because all employees are known to work for some
department (even if the specific department is unknown), but φ2(a) is true since no
particular y is known for which worksFor(a, y) holds. Moreover, the promoting
action A is not applicable to object b in state {ElEng(b)} considering the TBox
T = {ElEng v Emp, ElEng v ¬SoDev} since it would cause an inconsistency.
      </p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], a translation from state-bounded DL-Lite eKABs to equivalent PDDL
tasks is presented. It is based on (i) a bound on the number of objects in each
state [
        <xref ref-type="bibr" rid="ref3 ref5">3, 5</xref>
        ], (ii) a translation of ECQs into first-oder formulas under closed-world
semantics [
        <xref ref-type="bibr" rid="ref12 ref2 ref5">2, 5, 12</xref>
        ], and (iii) an additional predicate and action that checks
consistency of a state. The translation (ii) effectively compiles the TBox into
the ECQs, thereby simulating open-world query answering by a closed-world
formula. For example, in A the precondition Emp(x) becomes Emp(x) ∨ ElEng(x)
to simulate the fact that electronic engineers are employees (ElEng v Emp).
Step (iii) uses a formula that describes every possible inconsistent state. The
set of all axioms involving negation, e.g. ElEng v ¬SoDev, is first reformulated
into a disjunction of CQs of the form ElEng(x) ∧ SoDev(x), which describe basic
inconsistent situations. By applying the translation (ii) to these CQs, the resulting
formula includes all possible ways in which inconsistencies can be generated.
Our Contribution. We find that the bottleneck lies in the DNF transformations
used to compile PDDL tasks into the planners’ internal (grounded) representations.
These naïve transformations are applied in-situ on complex formulas, causing a
worst-case exponential blow-up on non-DNF input. Although the disjunctions of
CQs generated by the above translation are in DNF, they are often nested in
more complex ECQ conditions. Here we investigate two PDDL pre-compilations
that enable polynomial DNF transformations also for such complex formulas.
      </p>
      <p>
        The first pre-compilation (Ne), proposed by Nebel [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ], uses auxiliary
predicates to represent each (already grounded) complex sub-formula φ: Pφ represents
the truth value of φ in the current state; and Pφ0 is designed to be true iff φ
has already been evaluated. Additional ground actions are introduced to
determine the value of Pφ provided that P ψ0 is true for all sub-formulas ψ of φ. This
evaluation is repeated after every regular action, which increases the plan length.
      </p>
      <p>
        We therefore propose a second pre-compilation (DP) that avoids this overhead
by employing PDDL derived predicates [
        <xref ref-type="bibr" rid="ref14 ref8">8, 14</xref>
        ], which specify a rule-based update
1 The syntax is slightly adapted for compatibility with PDDL.
of auxiliary predicates that is applied at every planning state. Every complex
subformula φ is replaced by a new predicate Pφ that obeys the update rule
Pφ ← φ. This results in a set of rules that is equivalent to a non-recursive, and
therefore stratified, Datalog program with negation [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
Experiments. We compare the pre-compilations against the original PDDL
files (O) using FF and FD 20.06. We developed a set of benchmarks, comprising
the previous eKAB tasks [
        <xref ref-type="bibr" rid="ref13 ref5">5, 13</xref>
        ] (Robot, TaskAssign), new eKAB domains (Cats,
Elevator), and benchmarks adapted from prior work on planning with
propositional background ontologies [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] (TPSA, VTA). We also investigate existing
PDDL benchmark domains with minor modifications (Assembly, Miconic), as
our pre-compilation may be useful on any planning domain with complex
preconditions, and a showcase domain (GridPlacement) enforcing challenging DNF
transformations. The benchmarks2 and pre-compilers3 are available online.
      </p>
      <p>As indicated by the O columns in Table 1, PDDL processing indeed constitutes
the main bottleneck: In almost every unsolved instance, the planners failed already
during PDDL processing. Part (b) shows that DP reduces the overhead of PDDL
input handling and thereby increases overall performance in nearly every domain.
TPSA and VTA are the only exceptions were the pre-compilation turned out
detrimental. Besides an absence of complex conditions, in these domains the
actions assign predicates to previously unbound objects. Therefore, by increasing
the number of objects, the grounding and translation sizes grow drastically.</p>
      <p>In contrast, the number of instances that could be solved by FF and FD
after the Ne pre-compilation drops substantially in every domain. Apart from
a blow-up of the file size, the Ne pre-compiler obfuscates the planning task’s
original structure, which leads both planners’ searches into serious troubles.</p>
      <p>In future work, we plan to design tools tailored to eKABs over DL-Lite and
more expressive ontology languages, leveraging e.g. PDDL derived predicates.
2 https://gitlab.perspicuous-computing.science/m.steinmetz/pddl-dllite-benchmarks.git
3 https://gitlab.perspicuous-computing.science/a.kovtunova/moreflags2.git</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Abiteboul</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hull</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vianu</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          : Foundations of Databases. Addison-Wesley (
          <year>1995</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>De Giacomo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lembo</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lenzerini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosati</surname>
          </string-name>
          , R.: EQL-Lite:
          <article-title>Effective first-order query processing in description logics</article-title>
          . In: Veloso, M.M. (ed.)
          <source>Proc. of the 20th Int. Joint Conf. on Artificial Intelligence (IJCAI'07)</source>
          . pp.
          <fpage>274</fpage>
          -
          <lpage>279</lpage>
          (
          <year>2007</year>
          ), https://www.ijcai.org/Abstract/07/042
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>De Giacomo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Montali</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Patrizi</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>Verification and synthesis in description logic based dynamic systems</article-title>
          . In: Faber,
          <string-name>
            <given-names>W.</given-names>
            ,
            <surname>Lembo</surname>
          </string-name>
          ,
          <string-name>
            <surname>D</surname>
          </string-name>
          . (eds.)
          <source>Proc. of the 7th Int. Conf. on Web Reasoning and Rule Systems (RR'13)</source>
          . pp.
          <fpage>50</fpage>
          -
          <lpage>64</lpage>
          . Lecture Notes in Computer Science, Springer (
          <year>2013</year>
          ). https://doi.org/10.1007/978- 3-
          <fpage>642</fpage>
          -39666-
          <issue>3</issue>
          _
          <fpage>5</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Giacomo</surname>
            ,
            <given-names>G.D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lembo</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lenzerini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosati</surname>
          </string-name>
          , R.: Dl-Lite:
          <article-title>Tractable description logics for ontologies</article-title>
          . In: Veloso,
          <string-name>
            <given-names>M.M.</given-names>
            ,
            <surname>Kambhampati</surname>
          </string-name>
          , S. (eds.)
          <source>Proceedings, The Twentieth National Conference on Artificial Intelligence and the Seventeenth Innovative Applications of Artificial Intelligence Conference</source>
          . pp.
          <fpage>602</fpage>
          -
          <lpage>607</lpage>
          . AAAI Press / The MIT Press (
          <year>2005</year>
          ), http://www.aaai.org/Library/ AAAI/
          <year>2005</year>
          /aaai05-
          <fpage>094</fpage>
          .php
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Montali</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Patrizi</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Stawowy</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Plan synthesis for knowledge and action bases</article-title>
          . In: Kambhampati,
          <string-name>
            <surname>S</surname>
          </string-name>
          . (ed.)
          <source>Proc. of the 25th Int. Joint Conf. on Artificial Intelligence (IJCAI'16)</source>
          . pp.
          <fpage>1022</fpage>
          -
          <lpage>1029</lpage>
          . AAAI Press (
          <year>2016</year>
          ), https: //www.ijcai.org/Abstract/16/149
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Ghallab</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nau</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Traverso</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <source>Automated Planning: Theory and Practice</source>
          . Morgan Kaufmann (
          <year>2004</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Helmert</surname>
            ,
            <given-names>M.:</given-names>
          </string-name>
          <article-title>The fast downward planning system</article-title>
          .
          <source>Journal of Artificial Intelligence Research</source>
          <volume>26</volume>
          ,
          <fpage>191</fpage>
          -
          <lpage>246</lpage>
          (
          <year>2006</year>
          ). https://doi.org/10.1613/jair.1705, https://doi.org/ 10.1613/jair.1705
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Hoffmann</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Edelkamp</surname>
            ,
            <given-names>S.:</given-names>
          </string-name>
          <article-title>The deterministic part of IPC-4: An overview</article-title>
          .
          <source>Journal of Artificial Intelligence Research</source>
          <volume>24</volume>
          ,
          <fpage>519</fpage>
          -
          <lpage>579</lpage>
          (
          <year>2005</year>
          ). https://doi.org/10.1613/jair.1677
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Hoffmann</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          , Nebel, B.:
          <article-title>The FF planning system: Fast plan generation through heuristic search</article-title>
          .
          <source>Journal of Artificial Intelligence Research</source>
          <volume>14</volume>
          ,
          <fpage>253</fpage>
          -
          <lpage>302</lpage>
          (
          <year>2001</year>
          ). https://doi.org/10.1613/jair.855
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Hoffmann</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Weber</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Scicluna</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kacmarek</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ankolekar</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Combining scalability and expressivity in the automatic composition of semantic web services</article-title>
          .
          <source>In: 8th International Conference on Web Engineering (ICWE'08)</source>
          (
          <year>2008</year>
          ). https://doi.org/10.1109/ICWE.
          <year>2008</year>
          .8
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Nebel</surname>
          </string-name>
          , B.:
          <article-title>On the compilability and expressive power of propositional planning formalisms</article-title>
          .
          <source>Journal of Artificial Intelligence Research</source>
          <volume>12</volume>
          ,
          <fpage>271</fpage>
          -
          <lpage>315</lpage>
          (
          <year>2000</year>
          ). https://doi.org/10.1613/jair.735
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Poggi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lembo</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>De Giacomo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lenzerini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosati</surname>
          </string-name>
          , R.:
          <article-title>Linking data to ontologies</article-title>
          .
          <source>Journal on Data Semantics X</source>
          ,
          <fpage>133</fpage>
          -
          <lpage>173</lpage>
          (
          <year>2008</year>
          ). https://doi.org/10.1007/978-3-
          <fpage>540</fpage>
          -77688-
          <issue>8</issue>
          _
          <fpage>5</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Stawowy</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Plan Synthesis in Explicit-input Knowledge and Action Bases</article-title>
          .
          <source>Ph.D. thesis, IMT School for Advanced Studies Lucca</source>
          ,
          <string-name>
            <surname>Italy</surname>
          </string-name>
          (
          <year>2016</year>
          ). https://doi.org/10.6092/imtlucca/e-theses/
          <fpage>208</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Thiebaux</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hoffmann</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          , Nebel, B.:
          <article-title>In defense of PDDL axioms</article-title>
          .
          <source>Artificial Intelligence</source>
          <volume>168</volume>
          (
          <issue>1-2</issue>
          ),
          <fpage>38</fpage>
          -
          <lpage>69</lpage>
          (
          <year>2005</year>
          ). https://doi.org/10.1016/j.artint.
          <year>2005</year>
          .
          <volume>05</volume>
          .004
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>