<!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>Probably Approximately Correct Ontology Completion with pacco (Extended Abstract)</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Sergei Obiedkov</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Barış Sertkaya</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Frankfurt University of Applied Sciences</institution>
          ,
          <addr-line>Frankfurt</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Knowledge-Based Systems Group, TU Dresden</institution>
          ,
          <addr-line>Dresden</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Traditionally, ontology construction is conducted by knowledge engineers whose task is to formalize relevant concepts of the application domain and the relationships among them. This process is tedious and error-prone, and thus various methods to facilitate construction and, to some extent, ensure completeness of the resulting ontology by querying a domain expert have been investigated. For instance, learnability of axioms in lightweight DLs from a given set of interpretations has been studied in [1], and exact learnability of lightweight DL ontologies in Angluin's framework via queries has been studied in [2]. In [3, 4, 5, 6, 7], learning DL concepts and axioms from given examples has been investigated. Learning a DL ontology that is inseparable from a target ontology w.r.t. a query language and a fixed dataset via querying an oracle has been investigated in [ 8]. In a recent work [9], PAC learning of DL concepts has been studied. For an overview on learning DL ontologies see [10, 11]. In another line of work, Formal Concept Analysis (FCA) [12] was employed for mining an ℰℒ⊥-basis of all axioms holding in a given model [13, 14]. In [15], a further approach for mining bases with a predefined and fixed role depth of concept expressions was proposed. In a more recent work [ 16], an approach for eficient mining of axioms from graph dataset was introduced and evaluated on large datasets. The FCA-based approaches have the disadvantage that, in the worst case, they issue exponentially many queries to the domain expert. In [17], we presented an approach combining the advantages of both lines of research for completing the missing information in the ontology w.r.t. some given set of concept descriptions via issuing only polynomially many (w.r.t. the relevant quantities) queries to an expert. In the present work, we improve and implement the approach from [17] and present a PAC version of the ontology-completion method, which was initially introduced in [18] and implemented in [19]. Our solution is based on an algorithm for PAC learning a Horn envelope of an arbitrary propositional formula [20], which is itself based on an algorithm for exactly learning Horn formulas [21]. Our setting is the following. Given: • an initial TBox 0; • an expert ℰ able to answer subsumption queries w.r.t. a TBox ℰ that is unknown to us; • a set  of concept descriptions built over the signature of ℰ ; • a sampling oracle  that, when called, returns a subsumption query over  according to a probability distribution  ; • a probability  and error bound  with 0 &lt; ,  &lt; 1; compute a TBox  such that 0 ⊆  and  is, with probability at least 1 −  , an  -approximation of ℰ . Building on our work [17], we introduce pacco1, a tool for probably approximately correct (PAC) completion of DL TBoxes.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Ontology learning</kwd>
        <kwd>Angluin's learning framework</kwd>
        <kwd>PAC learning</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>conjunctions of concepts from  entailed by  .</p>
      <p>Definition 1. If  is a TBox and  is a finite set of concept descriptions, we denote by Impl( , ) =
{
→  | ,  ⊆ 
and  |</p>
      <p>= ⊓ ⊑ ⊓ } the set of implications corresponding to GCIs over</p>
      <p>Our approach to solving the above problem w.r.t. 0, , and ℰ is to learn a set ℒ of implications
that approximates Impl( ℰ , ). For this, we need an oracle capable of answering membership and
equivalence queries with respect to Impl( ℰ , ). A membership query asks whether a certain subset
over  of the form  ℰ |= ⊓ ⊑ , where  ⊆</p>
      <p>and  ∈ .
of  is a model of Impl( ℰ , ), and an equivalence query asks for a subset of  that is a model of either
Impl( ℰ , ) or ℒ but not both. We rely on a (domain) expert oracle ℰ answering subsumption queries</p>
    </sec>
    <sec id="sec-2">
      <title>2. Probably Approximately Correct Completion</title>
      <p>As a measure of approximation for TBoxes, we consider how often the two TBoxes give the same
answers to subsumption queries:
Definition 2.</p>
      <p>Let 1 and 2 be two TBoxes,  be a finite set of concept descriptions, and  be a
probability distribution of subsumption queries over . We define
dist(1, 2), the --distance
between 1 and 2, as the probability of getting diferent responses to a subsumption query w.r.t. 1
and 2: Pr( | (1 |= ) ⇔ (2 ̸|= )), where  is a subsumption query over . For a given
0 &lt;  &lt;
1, we call a TBox  an  ---approximation of 
* if dist( ,  * ) ≤  . If, in addition,
upper  ---approximation of  * .</p>
      <p>* |=  , i.e., the set of models of  * is a subset of the set of models of  , then we say that  is an
 * is equal to Pr( |  ̸|=  and  * |= ).</p>
      <p>Proposition 1. If  is an upper  ---approximation of  * , then the --distance between  and
approximation of  ℰ .</p>
      <p>Our algorithm has access to a sampling oracle  simulating a user that, when called, returns a
subsumption query over  according to a probability distribution  . Given parameters 0 &lt; ,  &lt;
it uses oracles ℰ and  to compute a TBox  that, with probability at least 1 −  , is an upper  --</p>
      <p>The algorithm internally maintains a list of implications over  such that, after termination, the
corresponding set of GCIs is a desired approximation of  ℰ . It starts with the empty list ℒ of implications
and uses counterexamples obtained from (simulated) equivalence queries to update ℒ. In the algorithms
from [21] and [20], both positive and negative counterexamples are possible. A positive counterexample
may be returned if the current hypothesis contains an implication not entailed by the target Horn
formula. In our setting, such an implication corresponds to a CGI not entailed by the target TBox  ℰ .
Since our goal is to obtain an upper approximation of  ℰ , we do not allow such GCIs. Therefore, we
modify the algorithm to make sure that ℒ always contains only implications corresponding to GCIs
entailed by  ℰ . This ensures that the resulting approximation of  ℰ is an upper approximation.</p>
      <p>We simulate every equivalence query with several calls to the sampling oracle  . If not all valid GCIs
are entailed by GCI(ℒ) = {⊓ ⊑ ⊓ |  →  ∈ ℒ}, we expect an equivalence query to return a
subset  of  closed under ℒ but not under Impl( ℰ , ). Since we aim at an  -approximation, we must
be able to obtain, with an appropriate probability, such  whenever dist(GCI(ℒ),  ℰ ) &gt;  .</p>
      <p>Every iteration of the algorithm starts with a search for a counterexample  to GCI(ℒ). For the th
iteration, our algorithm makes ⌈︁log1−  (+1)</p>
      <p>⌉︁ attempts to generate a counterexample [22]. Since ℒ
contains only valid implications, the counterexample, if found, is always negative and is a model of ℒ.
The rest of the iteration eliminates some counterexample  ⊆  by making sure that, for every  ∈ 
the responses to the query ⊓ ⊑  w.r.t. GCI(ℒ) and ℰ are identical. To do this, the algorithm
searches ℒ for the first implication  →  such that  =  ∩  ̸=  and  ℰ |= ⊓ ⊑  for some
 ∈  ∖  . If such an implication is found, it is refined to  → Compl( ), where Compl( ) is the
completion of  w.r.t.  and  ℰ , i.e., Compl( ) = { ∈  |  ℰ |= ⊓ ⊑ }. Otherwise, a new
implication  → Compl() is added to the end of ℒ. In both cases, the new implication is valid w.r.t.
1,
samples
17502
queries
18628</p>
    </sec>
    <sec id="sec-3">
      <title>3. Experimental Results</title>
      <p>sampling oracle  . Combining this with the results in [20], we obtain
 ℰ . Note that the computation of completion requires (||) queries to the oracle ℰ and no calls to the
Theorem 1. Given a domain expert oracle ℰ and a sampling oracle  , our algorithm computes, with
probability at least 1 −  , an upper  ---approximation of  ℰ . The number of queries to ℰ and  posed
by the algorithm is polynomial in ||, 1/ , 1/ , and the minimal size of an implication set equivalent to
reasoner in conjunction with GO-Plant.</p>
      <p>We evaluated our approach on a subset of the Gene Ontology (GO) [23], namely, GO-Plant2, which
contains 97 classes and 155 logical axioms, among them 145 subclass axioms between concept names.
For our experiments, we randomly deleted 50 of these subclass axioms and completed the resulting
ontology with pacco in various test settings using the uniform distribution of subsumption queries in
the sampling oracle. As base set , we took all the 97 concept names. As expert, we used the Hermit</p>
      <p>As expected, increasing  results in a smaller number of generated axioms and a larger number of
unrecovered axioms, i.e., TBoxes that have larger --distance to the original TBox. The efect of
varying  is much smaller, since the number of sampling queries used to simulate an equivalence query
depends linearly on 1/ and only logarithmically on 1/ .</p>
      <p>We compared the resulting TBoxes with the original GO-Plant using the ontology dif tool ecco 3 [24].
Ecco finds diferences between ontologies and reports them in separate categories, one of which contains
axioms from one ontology not entailed by the other. These are listed under unrecovered axioms in</p>
      <p>In future, we plan to explore the empirical behavior of our algorithm by simulating the expert ℰ and
the sampling oracle  from data with diferent distributions. For example, we may sample frequently
occurring subsets of  to learn GCIs with high support in the sense of association rule mining. It could
also be interesting to sample infrequent subsets of  and learn GCIs with low support. One could
say that GCIs highly supported by data can be accepted without resorting to an expert, whereas, for
low-support GCIs, it is important to get a confirmation. It may be worthwhile to develop a modification
of the algorithm to approximately complete both a TBox and an ABox w.r.t. a specific interpretation.
This may require a slightly diferent notion of approximation accounting for the information contained
in the ABox to be completed.</p>
    </sec>
    <sec id="sec-4">
      <title>Acknowledgments</title>
      <p>
        This work is partly supported by DFG in project 389792660 (TRR 248, Center for Perspicuous Systems),
by BMBF in ScaDS.AI, and by BMBF and DAAD in project 57616814 (SECAI).
[14] F. Distel, Learning description logic knowledge bases from data using methods from formal concept
analysis, Ph.D. thesis, Dresden University of Technology, 2011.
[15] D. Borchmann, F. Distel, F. Kriegel, Axiomatisation of general concept inclusions from finite
interpretations, Journal of Applied Non-Classical Logics 26 (2016) 1–46.
[16] F. Kriegel, Eficient axiomatization of OWL 2 EL ontologies from data by means of formal concept
analysis, in: M. J. Wooldridge, J. G. Dy, S. Natarajan (Eds.), Thirty-Eighth AAAI Conference on
Artificial Intelligence, AAAI 2024, Thirty-Sixth Conference on Innovative Applications of Artificial
Intelligence, IAAI 2024, Fourteenth Symposium on Educational Advances in Artificial Intelligence,
EAAI 2014, February 20-27, 2024, Vancouver, Canada, AAAI Press, 2024, pp. 10597–10606.
[17] S. Obiedkov, B. Sertkaya, D. Zolotukhin, Probably approximately correct completion of description
logic knowledge bases, in: M. Simkus, G. E. Weddell (Eds.), Proceedings of the 32nd International
Workshop on Description Logics, Oslo, Norway, June 18-21, 2019, volume 2373 of CEUR Workshop
Proceedings, CEUR-WS.org, 2019.
[18] F. Baader, B. Ganter, U. Sattler, B. Sertkaya, Completing Description Logic Knowledge Bases
using Formal Concept Analysis, LTCS-Report LTCS-06-02, Chair for Automata Theory,
Institute for Theoretical Computer Science, Dresden University of Technology, Germany, 2006. See
http://lat.inf.tu-dresden.de/research/reports.html.
[19] B. Sertkaya, Ontocomp system description, in: B. C. Grau, I. Horrocks, B. Motik, U. Sattler (Eds.),
Proceedings of the 22nd International Workshop on Description Logics
        <xref ref-type="bibr" rid="ref5">(DL 2009)</xref>
        , Oxford, UK,
July 27-30, 2009, volume 477 of CEUR Workshop Proceedings, CEUR-WS.org, 2009.
[20] D. Borchmann, T. Hanika, S. Obiedkov, Probably approximately correct learning of horn envelopes
from queries, Discrete Applied Mathematics 273 (2020) 30–42. Advances in Formal Concept
Analysis: Traces of CLA 2016.
[21] D. Angluin, M. Frazier, L. Pitt, Learning conjunctions of horn clauses, Machine Learning 9 (1992)
147–164.
[22] R. Yarullin, S. Obiedkov, From equivalence queries to pac learning: The case of implication theories,
      </p>
      <p>International Journal of Approximate Reasoning 127 (2020) 1–16.
[23] T. G. O. Consortium, Gene ontology: Tool for the unification of biology, Nature Genetics 25 (2000)
25–29.
[24] R. S. Gonçalves, B. Parsia, U. Sattler, Ecco: A hybrid dif tool for OWL 2 ontologies, in: P. Klinov,
M. Horridge (Eds.), Proceedings of OWL: Experiences and Directions Workshop 2012, Heraklion,
Crete, Greece, May 27-28, 2012, volume 849 of CEUR Workshop Proceedings, CEUR-WS.org, 2012.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>S.</given-names>
            <surname>Klarman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Britz</surname>
          </string-name>
          ,
          <article-title>Ontology learning from interpretations in lightweight description logics</article-title>
          , in: K. Inoue,
          <string-name>
            <given-names>H.</given-names>
            <surname>Ohwada</surname>
          </string-name>
          ,
          <string-name>
            <surname>A</surname>
          </string-name>
          . Yamamoto (Eds.),
          <source>Inductive Logic Programming - 25th International Conference, ILP</source>
          <year>2015</year>
          , Kyoto, Japan,
          <source>August 20-22</source>
          ,
          <year>2015</year>
          , Revised Selected Papers, volume
          <volume>9575</volume>
          of Lecture Notes in Computer Science, Springer,
          <year>2015</year>
          , pp.
          <fpage>76</fpage>
          -
          <lpage>90</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>B.</given-names>
            <surname>Konev</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Lutz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Ozaki</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Wolter</surname>
          </string-name>
          ,
          <article-title>Exact learning of lightweight description logic ontologies</article-title>
          ,
          <source>J. Mach. Learn. Res</source>
          .
          <volume>18</volume>
          (
          <year>2017</year>
          )
          <volume>201</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>201</lpage>
          :
          <fpage>63</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>N.</given-names>
            <surname>Fanizzi</surname>
          </string-name>
          , C.
          <string-name>
            <surname>d'Amato</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          <string-name>
            <surname>Esposito</surname>
          </string-name>
          ,
          <article-title>DL-FOIL concept learning in description logics</article-title>
          , in: F. Zelezný, N. Lavrac (Eds.),
          <source>Proceedings of Inductive Logic Programming</source>
          , 18th International Conference, ILP, volume
          <volume>5194</volume>
          of Lecture Notes in Computer Science, Springer,
          <year>2008</year>
          , pp.
          <fpage>107</fpage>
          -
          <lpage>121</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>M.</given-names>
            <surname>Funk</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. C.</given-names>
            <surname>Jung</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Lutz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Pulcini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Wolter</surname>
          </string-name>
          ,
          <article-title>Learning description logic concepts: When can positive and negative examples be separated?</article-title>
          , in: S. Kraus (Ed.),
          <source>Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence, IJCAI, ijcai.org</source>
          ,
          <year>2019</year>
          , pp.
          <fpage>1682</fpage>
          -
          <lpage>1688</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>J.</given-names>
            <surname>Lehmann</surname>
          </string-name>
          ,
          <article-title>Dl-learner: Learning concepts in description logics</article-title>
          ,
          <source>J. Mach. Learn. Res</source>
          .
          <volume>10</volume>
          (
          <year>2009</year>
          )
          <fpage>2639</fpage>
          -
          <lpage>2642</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>J.</given-names>
            <surname>Lehmann</surname>
          </string-name>
          ,
          <article-title>Learning OWL Class Expressions, volume 6 of Studies on the Semantic Web</article-title>
          , IOS Press,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>J.</given-names>
            <surname>Lehmann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Hitzler</surname>
          </string-name>
          ,
          <article-title>Concept learning in description logics using refinement operators</article-title>
          ,
          <source>Mach. Learn</source>
          .
          <volume>78</volume>
          (
          <year>2010</year>
          )
          <fpage>203</fpage>
          -
          <lpage>250</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>A.</given-names>
            <surname>Ozaki</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Persia</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Mazzullo</surname>
          </string-name>
          ,
          <article-title>Learning query inseparable ℰ ℒℋ ontologies</article-title>
          ,
          <source>in: The ThirtyFourth AAAI Conference on Artificial Intelligence</source>
          ,
          <source>AAAI</source>
          <year>2020</year>
          , The Thirty-Second
          <source>Innovative Applications of Artificial Intelligence Conference</source>
          ,
          <source>IAAI 2020, The Tenth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI</source>
          <year>2020</year>
          , New York, NY, USA, February 7-
          <issue>12</issue>
          ,
          <year>2020</year>
          , AAAI Press,
          <year>2020</year>
          , pp.
          <fpage>2959</fpage>
          -
          <lpage>2966</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>B. ten Cate</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Funk</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. C.</given-names>
            <surname>Jung</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Lutz</surname>
          </string-name>
          ,
          <article-title>Sat-based PAC learning of description logic concepts</article-title>
          ,
          <source>in: Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence, IJCAI</source>
          <year>2023</year>
          ,
          <fpage>19th</fpage>
          -25th
          <source>August</source>
          <year>2023</year>
          , Macao,
          <string-name>
            <surname>SAR</surname>
          </string-name>
          , China, ijcai.org,
          <year>2023</year>
          , pp.
          <fpage>3347</fpage>
          -
          <lpage>3355</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>A.</given-names>
            <surname>Ozaki</surname>
          </string-name>
          ,
          <article-title>Learning description logic ontologies: Five approaches. where do they stand?</article-title>
          ,
          <source>Künstliche Intelligenz</source>
          <volume>34</volume>
          (
          <year>2020</year>
          )
          <fpage>317</fpage>
          -
          <lpage>327</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>A.</given-names>
            <surname>Ozaki</surname>
          </string-name>
          ,
          <article-title>On the complexity of learning description logic ontologies</article-title>
          , in: M.
          <string-name>
            <surname>Manna</surname>
            ,
            <given-names>A</given-names>
          </string-name>
          . Pieris (Eds.),
          <source>Reasoning Web. Declarative Artificial Intelligence - 16th International Summer School</source>
          <year>2020</year>
          , Oslo, Norway, June 24-26,
          <year>2020</year>
          , Tutorial Lectures, volume
          <volume>12258</volume>
          of Lecture Notes in Computer Science, Springer,
          <year>2020</year>
          , pp.
          <fpage>36</fpage>
          -
          <lpage>52</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>B.</given-names>
            <surname>Ganter</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Wille</surname>
          </string-name>
          ,
          <source>Formal Concept Analysis: Mathematical Foundations</source>
          , Springer-Verlag, Berlin, Germany,
          <year>1999</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>F.</given-names>
            <surname>Baader</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Distel</surname>
          </string-name>
          ,
          <article-title>Exploring finite models in the description logic</article-title>
          ℰ ℒ, in: S. Ferré, S. Rudolph (Eds.),
          <source>Proceedings of the 7th International Conference on Formal Concept Analysis</source>
          ,
          <source>(ICFCA</source>
          <year>2009</year>
          ), Springer-Verlag,
          <year>2009</year>
          , pp.
          <fpage>146</fpage>
          -
          <lpage>161</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>