<!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>Empirical Investigation of Subsumption Test Hardness in Description Logic Classi cation</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Nicolas Matentzoglu</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Bijan Parsia</string-name>
          <email>bparsia@cs.manchester.ac.uk</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Uli Sattler</string-name>
          <email>sattler@cs.manchester.ac.uk</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>The University of Manchester Oxford Road</institution>
          ,
          <addr-line>Manchester, M13 9PL</addr-line>
          ,
          <country country="UK">UK</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Recently, modular techniques have been employed for optimising Description Logic reasoning, speci cally to enable incremental reasoning and improve overall classi cation time. Classifying a module of an ontology should be signi cantly easier than reasoning in the whole ontology. However, we observed in previous work that neither it is generally true that modular reasoning techniques have a reliable positive e ect, nor even that the classi cation time of a module is less than or equal to the classi cation time of the whole ontology. One possible explanation for the latter could be that counter-productive optimisations are triggered within the reasoner when dealing with the sub-module, and thus individual subsumption tests get harder when parts of the ontology are missing. The goal of this paper is to understand the contribution of subsumption tests to the hardness of classi cation. The contribution is twofold: (1) We analyse the impact of subsumption test hardness on DL classi cation by analysing a well known corpus of ontologies, and (2) we present a novel approach based on modularity to robustly detecting subsumption tests that are too hard.</p>
      </abstract>
      <kwd-group>
        <kwd>classi cation</kwd>
        <kwd>ontologies</kwd>
        <kwd>benchmarking</kwd>
        <kwd>modular reasoning</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Reasoning in popular, very expressive Description Logics (DL) is very di cult
(e.g., SROIQ is N2Exptime-complete) [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. Perhaps surprisingly, modern
reasoning systems suitable for the entirety of OWL 2 DL (essentially a notational
variant of SROIQ) such as FaCT++ [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ], Pellet [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ], HermiT [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] and recently
Konclude [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ] generally perform well against real ontologies. However, due to the
poor performance in some (often important) cases, the quest for optimisations
is ongoing. The need to empirically validate such optimisations stems from the
sheer complexity of reasoner architectures. Worst case complexity analysis and
its variants do not account for the high variability of classi cation times of real
ontologies. Modern reasoning systems have to accommodate multiple reasoning
services and also tend to implement a wide range of optimisation techniques that
might a ect each other. Various sources of non-determinism, mainly traversal
(subsumption test order) and or-branch exploration of a tableau further
complicate the situation. Statistical methods such as linear regression [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ] tend to
be only precise for trivial cases, and are limited in their explanatory richness.
Currently, principled benchmarking provides the only way to creating detailed
characterisations of DL reasoning performance.
      </p>
      <p>
        Using locality-based modules to optimise Description Logic classi cation
experienced a resurgence in recent years [
        <xref ref-type="bibr" rid="ref15 ref21">15, 21</xref>
        ]. Intuitively, breaking the input
problem into smaller pieces, reasoning over those pieces separately, then
recombining the results is appealing. Furthermore, if there are especially di cult parts
of the ontology, perhaps they can be isolated to reduce their impact. In practice
however, modular reasoning techniques do not always improve the performance
of classi cation [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. In fact, they can drastically impair performance, making it
a hit and miss game to chose between a modular reasoner (e.g. MORe-HermiT,
Chainsaw-JFact) and its monolithic counterpart (e.g. HermiT, JFact). These
cases can often be due to various kinds of overhead induced by modular
reasoners (module extraction) or redundancy introduced by the mostly unavoidable
and often signi cant overlap between the various modules extracted. In a
preliminary set of experiments [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] we observed that not only are there cases where
there are individual subsumption tests that can be, often signi cantly, harder in
a module extracted by a modular reasoner than in the whole ontology, but also
that there are occasionally modules whose classi cation time exceeds that of the
entire ontology O it was extracted from.
      </p>
      <p>
        The goal of this paper is to understanding the contribution of subsumption
tests (ST) to the hardness of classi cation. The contribution is twofold: (1)
We analyse the impact of ST hardness on DL classi cation by characterising
a well known corpus of ontologies, and (2) we present a novel approach based
on modularity to robustly detecting subsumption tests that are potentially too
hard. As a result, we re-con rm the almost 20 years old results by Horrocks [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]
that ST's are generally rather easy. We also isolate counter-intuitive instances
that, however, are often likely to be the consequence of the surprising degree of
observed stochasticity in the classi cation process.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Background</title>
      <p>
        Understanding the experimental design and methodology presented here does
not require more than a cursory understanding of the syntax, semantics, and
proof theories implemented. The most prominent families of reasoning algorithms
for description logics are tableau (incl. hyper-tableau) and consequence-based. In
our work, we are mainly concerned with tableau-based algorithms. The
reasoners under investigations in this paper are designed to implement key reasoning
services for the Web Ontology Language (OWL), most importantly classi cation
and consistency checking. Given an ontology (a set of axioms) O, the signature
of an ontology Oe is the set names appearing in the axioms in O. We use CT (O)
(classi cation time) and CT (M) respectively to denote the time of computing
the set of atomic subsumptions (i.e., statements of the form A v B where A and
B are properties or classes in the signature) or classi cation of O. For brevity,
we refer to overall classi cation time as OCT and subsumption test time as STT.
While subsumption testing, and therefore classi cation, is in theory intractable,
highly optimised reasoners do fairly well in practice. The observed e ciency
despite the worst case complexity is in principle down to four factors. (1) Real
ontologies are bounded in size. That means that even an exponential algorithm
might fully classify an ontology, from a user perspective, in an acceptable amount
of time. (2) Many ontologies fall into tractable fragments of OWL, and can be
classi ed using e cient polynomial algorithms such as the ones from the family
of consequence-based algorithms. (3) The last 20 years brought a plethora of
di erent optimisations to make satis ability checks easier [
        <xref ref-type="bibr" rid="ref11 ref3">11, 3</xref>
        ]. (4) Very e
cient algorithms were developed to avoid the vast majority of subsumption tests
altogether [
        <xref ref-type="bibr" rid="ref1 ref17 ref4">1, 4, 17</xref>
        ].
      </p>
      <p>
        Current modular classi cation approaches use so-called syntactic
localitybased ?-modules [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] which have a number of desirable properties: (1) They are
relatively cheap to extract and are reasonably compact and exact, (2) If O j=
A v C then for any given ?-module M?, of O where A 2 Mg?, M? j= A v C
(were C is an arbitrary expression over the signature of O). Thus, ?-modules are
classi cation complete for their signature with respect to their parent ontology.
Hereafter, we will use M to refer to a syntactic locality based ?-module.
      </p>
      <p>
        Very recently, reasoner developers have started to utilise modularity for
classi cation. They either are (1) using modules for incremental reasoning [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]
or (2) using modules to improve classi cation time [
        <xref ref-type="bibr" rid="ref15 ref21">15, 21</xref>
        ].
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Related Work</title>
      <p>
        Attempts to understand DL reasoning performance are, up until today, rarely
systematic or comprehensive. Recently, the ORE reasoner competition tries to
establish the methodological foundations for more reliable comparisons [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]
between di erent reasoners and across a range of di erent reasoning services. OWL
Reasoner benchmarks have been conducted for varying purposes, for example
(and most prominently) guiding end-users for selecting appropriate reasoners
for their problem [
        <xref ref-type="bibr" rid="ref2 ref6">2, 6</xref>
        ] or understanding reasoning or the state of reasoning in
general [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. Dentler et al. [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] conduct a principled investigation to identify
suitable criteria for choosing an appropriate reasoner for EL ontologies. In our work,
we are interested in mapping out subsumption test hardness during full
classication across reasoner-ontology pairs (phenomenological characterisation) and
the potential of modularity to pinpoint counter-intuitive cases (i.e. harder tests
in a sub-module). Most benchmarks conduct an only semi-principled dataset
selection: Even carefully executed benchmarks such as Dentler et al. [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] usually
cherry pick a set of somehow relevant ontologies. Few works sample from existing
corpora or the web, and only Goncalves et al. [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], to the best of our knowledge,
deal with corpora larger than 500 ontologies. In practice, the current de facto
gold-standard corpus for ontology experimentation is BioPortal [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ], which also
provides a well designed infrastructure to obtain an interesting range of
biomedical ontologies programatically. We are using a snapshot of BioPortal in this work.
As far as we know, no benchmark to date has investigated subsumption testing
during classi cation across reasoners in a principled manner. However, various
benchmarks have investigated the e ect of certain optimisations on
subsumption test avoidance [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. While the literature on classi cation optimisation and
reasoning is vast, little progress has been made in understanding classi cation
hardness of real ontologies, both empirically and formally.
4
      </p>
    </sec>
    <sec id="sec-4">
      <title>Subsumption Test Hardness</title>
      <p>The phenomenon under investigation is subsumption test hardness in the
context of classi cation. A subsumption test is a question asked by the
reasoner to determine whether A v B. The subsumption test hardness is
the time it takes to compute the answer, operationalised as wall-clock time. In
this work the answer to a test is either yes or no. Note however, that for any
implementation (1) more than just a binary answer will be provided (i.e., cached
models, derived subsumptions) and (2) no guarantee is given that the answer
is correct (bugs in the reasoner). \In the context of classi cation" means that
we are not exploring individual \cold" tests, i.e. letting the reasoner compute
whether A v B for any A; B from outside the classi cation process, because we
want to understand the contribution of subsumption testing to classi cation as
a whole, with all the optimisations involved.</p>
      <p>Our model of subsumption test hardness with respect to sub-modules
is based on the following intuition: Given a positive ST ST , it should be the
case that for every two modules M1,M2 with M1 M2 O in which the ST
is triggered, the hardness of ST always stays the same. The reason for that are
module properties: every justi cation for an entailment is part of every module
that entails it. Thus, every way that the entailment holds is contained in the
module, no \new" information about the entailment exists in the rest of the
ontology. Intuitively, additional \stu " can make it harder to gure out the
entailment, but not make it easier. This makes this metric a possible indicator
of counter-productive optimisations: If we nd that ST M2 is harder than ST M1 ,
we might conclude that the reasoner is doing some unnecessary extra work in
M2 (case 1); if ST M1 is harder than ST M2 , there is a possibility that a
counterproductive optimisation may have been triggered (case 2). Only the second case
is truly pathological: A test should never get harder when irrelevant axioms
are removed from the ontology. The rst case might simply occur because if M
grows, it gets harder to identify the irrelevant axioms. One possibility to explain
both cases may be the inherent stochasticity of classi cation as implemented by
current OWL Reasoners. For example, a random factor might (for example by
changing the test order) simply shift the load of ST in M1 to another ST ST 2
that consecutively makes ST easier. Another reason for a test becoming easier
in a sub-module might be the exploitation of partial results from negative tests
(e.g. caching).</p>
      <p>Our empirical investigation of subsumption tests has two parts: (A) a broad
characterisation of the landscape of subsumption testing and (B) an in-depth
characterisation of non-easy subsumption tests. We treat a test as non-easy if it
takes longer than 100 ms . The rst part A will attempt to answer the following
questions: What is the impact of subsumption testing on reasoning performance
in general (RQ1)? How many tests are positive or negative and how do they
di er in hardness (RQ2)? How hard are real tests actually (RQ3)?</p>
      <p>Part B serves as an in-depth characterisation that attempts to address
questions related to the general stability of the measurements (intra-module) and
the e ect of modularity (inter-module). Is ST hardness a stable phenomenon
(RQ4)? This is important in order to judge how reliably we can trace a single
subsumption test through di erent sub-modules of an ontology, and may also give a
warning sign for triggered non-determinism, for example in the case that a test
appears or disappears given a particular ontology-reasoner pair across runs. We
will address this problem mainly by looking at the coe cient of variation (COV)
of subsumption test hardness. The COV is a statistical, standardised measure
of dispersion of a distribution (for example the distribution of test hardness)
dened as the ratio of the standard deviation to the mean and is used to compare
the variation of one data series to another, even if they are on a di erent scale.
What are the reasons for instability (RQ5)? We will not conclusively try to
answer this problem, but we will collect some evidence for stochasicity by looking
at intra-module variation of test counts, a strong indicator of non-determinism.</p>
      <p>Does modularity change the hardness of tests (RQ6)? In order to answer
this question, we will classify tests by analysing how modularity a ects their
hardness. This happens as follows: We identify all super and submodule
combinations M1; M2 as described earlier. For each test triggered in both M1 and
M2, we determine: (1) was the e ect positive on average (across runs), (2) what
was the magnitude of the e ect and (3) was the e ect stable? We de ne
stability of an e ect as follows: given a subsumption test ST that occurs in two
modules M1; M2 with M1 M2, and two sets of measurements X(ST M1 )
and X(ST M2 ) (a) measurements M E 2 X(ST M1 ) are either all harder or all
easier than measurements M E 2 X(ST M2 ) (strong stability) or (b) the
overlap of the ranges of X(ST M1 ) and X(ST M2 ) is less than 10% of the range of
X(ST M1 ) u X(ST M1 ).</p>
      <p>We group ST hardness into the following bins: Very Hard (more than 100
seconds), Hard (&gt;10 sec), Medium Hard (&gt;1 sec), Medium (&gt;100 ms), Medium
Easy (&gt;10 ms), Easy (&gt;1 ms), Very Easy (&gt;100 s.), Trivial (&lt;100 s). The
upper bound of each bin corresponds to the lower bound of the previous one.
5</p>
    </sec>
    <sec id="sec-5">
      <title>Experimental Design</title>
      <p>We conducted our study on a corpus of 339 OWL API (3.5.0)-parsable
BioPortal ontologies, obtained through the BioPortal REST Services1 (January 2015
snaphshot). All ontologies were serialised into OWL/XML, with merged imports
closure. A minimum amount of repair (injecting missing declarations, dropping
empty n-ary axioms, etc.) was applied to ensure that trivial violations do not
impair DLness.</p>
      <sec id="sec-5-1">
        <title>1 http://data.bioontology.org/documentation</title>
        <p>For all our experiments, we use four OWL reasoners that implement the OWL
API interface: HermiT 1.3.8, Pellet 2.3.1, JFact 1.2.3 and FaCT++ 1.6.3. All four
are among the most heavily used reasoners for OWL 2 DL. The reasoners have
been modi ed for the benchmark: When a subsumption test is conducted, the
start and end timestamps, the sub and super class under consideration and the
result of the test are recorded. While we can use this approach to compare results
for each reasoner, interpretation of comparisons between reasoners might be
misleading due to implementational details. For example, methods that test for
subsumption and ultimately satis ability may be nested. See companion website
for more information (Section 6). Because we are interested in real life behaviour,
we allowed the reasoner to fall into states like the deterministic part of HermiT
for Horn-SHIQ or Pellets internal EL-Reasoner. That said, we cannot claim to
measure all subsumption tests a reasoner does. We can, however, establish a
lower bound and are con dent that we capture the vast majority of the hard
tests, because the sum of test times occasionally account for almost 100% of the
OCT for all reasoners.</p>
        <p>A set of four equal-spec Mac Minis with Mac OS X Lion 10 (64 bit), 16 GB
RAM and 2.7 GHz Intel Core i764-bit was used for the benchmarking. Every
single classi cation was done in a separate isolated virtual machine (Java 7,
-Xms2G, -Xmx12G). In order to reduce potential bias induced by run order
(unaccounted for background processes kicking in, runtime optimisations), we
fully randomise the run order and evenly distribute the experiment run jobs
across the four machines.</p>
        <p>Experimental Pipeline: For the rst experiment we execute a single run of all
reasoners across the entire corpus, with a timeout of 60 minutes per run. Due
to technical details, the timeout is a lower bound and might not be triggered
until some minutes later. Note that we include every ontology in the corpus,
including the ones not strictly in OWL DL (53). The reason for that is that these
ontologies do form part of the landscape, and reasoners are used on them. The
main sources of violations are uses of reserved vocabulary (37% of all violations
across the corpus), illegal punning (32%) and uses of datatypes not on the OWL 2
datatype map (11%).</p>
        <p>
          For the second experiment, we select a set of reasoner-ontology pairs for
which, according to the results of experiment 1, at least one test was measured
that was harder than 100 milliseconds. Because of the various claims we have
with respect to modules, we also excluded ontologies that do not fall under
OWL 2 DL. Runtime limitations forced us to exclude the NCIt from the sample,
due to the extreme number of measured subsumption tests (JFact 751,907 tests,
Pellet 461,831, FaCT++ 605,481). For this experiment, we rst obtain random
cumulative subsets from the ontologies in our narrowed down sample, similar to
Goncalves et al. [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ], with 16 slices. In a nutshell, given the set of logical axioms the
ontologies are comprised of, we obtain a random 116 th of the axioms, serialise
this subset, add another randomly drawn 116 th from the remaining axioms to
the rst, serialise them together, and then iteratively grow each consecutive
subset until the nal set is the whole ontology. From the signature of each subset
sampled, we obtain the ?-locality module using the OWL API module extractor.
Module properties ensure that, given subset S1 S2, MSf1 MSf2. The module
of 1166 th, MOe, corresponds to the whole ontology. We call this nested set of
modules a path. Note that the modules are usually considerably larger than
their respective subsets, which will give us a good sample of relatively large
modules with hopefully hard subsumption tests. Each of the modules obtained
is classi ed three times (i.e., three independent runs) by each reasoner. Given a
path M1 M2::: Mn, we call P the set of all pairs Mi; Mj with i&lt;j.
6
        </p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Results</title>
      <p>Supporting materials, datasets and scripts can be found online2. Percentages in
this section are subject to appropriate rounding.
6.1</p>
      <sec id="sec-6-1">
        <title>Subsumption Test Landscape</title>
        <p>Out of the 1356 attempted classi cation runs (4 reasoners and 339 ontologies),
1136 (85%) completed successfully. 322 ontologies were dealt with by at least one
reasoner (95%) within the 60 minute timeout. Reasons for failure include hitting
the timeout, unsupported datatypes (FaCT++), and lack of DLness (mainly
HermiT). From the 322 ontologies successfully processed, 186 did not have any
subsumption tests measured by any of the three reasoners. By reasoner, FaCT++
did not test in 177 cases, HermiT in 189, JFact in 191 and Pellet did not re
a ST during 218 successful classi cations. For the remaining 136, at least one
reasoner conducted a ST as described in Section 5. One interesting observation
100000
1000</p>
        <p>10
100000
1000
10</p>
        <p>T VE E MEMDMH H VH T VE E MEMDMH H VH T VE E MEMDMH H VH T VE E MEMDMH H VH
is that most positive tests are of only trivial hardness, while negative tests are
generally harder. While subsumption testing dominates the OCT only in a few
cases, it occasionally accounts for more than 80%. Very rarely we can observe
a single test accounting for more than 10% of the OCT. The maximum impact
for a single test by Pellet is 11.3%, HermiT 23.1%, JFact 24.8% and FaCT++
9.2%. The distribution of subsumption test hardness across all runs according
to our hardness scale (Sec. 4) is shown in Figure 1.</p>
        <sec id="sec-6-1-1">
          <title>2 http://bit.ly/1bIqdNX</title>
          <p>6.2</p>
        </sec>
      </sec>
      <sec id="sec-6-2">
        <title>In-depth Characterisation</title>
        <p>From the previous experiment, according to the process detailed in Section 5, 3
ontologies were selected for FaCT++, 13 for HermiT, 5 for JFact and 4 for Pellet.
The full ontologies have OCT's ranging from 7.31 seconds to 1211.00 seconds
(median: 103.20, mean: 210.70). Out of the 1200 (16 modules per ontology, 3 runs
per module, 25 ontology reasoner pairs) attempted classi cations (timeout 60
minutes), 1093 (91%) successfully terminated. Out of the possible 400 modules
(16 modules, 25 ontology-reasoner pairs) across the entire set, we obtain 371
records from the intra-module analysis, 358 out of which were obtained from
three distinct measurements, 6 are comprised of two distinct measurements and 7
by only one. Since we are interested in observing variability, we discard the latter
7 and stick with 364 partially or fully complete records. Variability is determined
using the coe cient of variation (COV). From the module perspective, we look
at three distinct sources of variation: overall classi cation time (OCT), sum of
all subsumption test times (SUMST) and the total number of tests conducted
(CTT). Across modules, only 3 module OCT varies by more than 30%, 12 by
more than 20% and 19 by more than 10%. The module with the worst variation
corresponds to a module taken from a 126 th of the Biotop ontology, classi ed by
JFact (min=38.49 sec, max=194.22 sec). A more detailed picture of the overall
variation can be taken from Figure 2. In terms of test count, the variation is
surprisingly large. 246 out of 364 cases (68%) show di erences in the number of
test measured across runs. Only 118 (32%) do not vary at all. 20 modules vary
by more than 10% in the number of subsumption tests.</p>
        <p>Across all 371 modules, we measured the hardness of 2,536,339 distinct ST's.
Only 89% of the tests are measured more than once and we discard the rest. As
can be seen in Figure 2, the coe cient of variation is generally log10-normally
distributed (here reported in percent rather than in proportions of 1), but varies
considerably across reasoners. On average, measurements deviate as much as
13.22% and 13.96% for Pellet and HermiT respectively, while measurements for
and JFact deviate by 3.5%, and FaCT++ only 2.83%. The maximum
variation for any test measurement for Pellet is 172.65%, for HermiT 172.50%, for
FaCT++ 167.87% and for JFact 169.07%.</p>
        <p>For the inter-module analysis, we sampled 30 sub-module super-module
pairs from P from the 120 possible combinations as described in Section 5.
Taking into account the successful classi cation we obtained data from 703 out of
750 possible comparisons. For result stability, we excluded a further 14 pairs
that had only a single measurement for either the sub or the super-module, and
continued with 689. Figure 3 shows the overall changes in measurement times
across pairs by reasoner. Bin membership is determined as follows. Given a pair
&lt;M1; M2&gt;2 P we look at the change from either the CT (M1) to CT (M2)
or the change from a subsumption test ST M1 to ST M2 . Every pair of
measurements has a tendency, a magnitude and a degree of stability. The tendency
easier (mean hardness change less than -5%) denotes that a test is easier in the
super-module (potentially pathological), harder (mean hardness change more
than 5%) the reverse, and neutral means the mean measurement di erence does
Fact++[EXP]</p>
        <p>HermiT[EXP]
not change by more than 5%. High magnitudes are changes above 50%, medium
magnitudes are changes between 5% and 50% and low changes are below 5%.
An e ect can be of three degrees of stability: clear cut, high or low, see Section 4.
Neutral cases have high stability if both sets of measurements have a variation
coe cient less than 5%. From the module perspective, the main observation to
be made here is that there are 39 cases in the set where the sub-module is harder
than the super-module and 173 where there is no signi cant change in hardness
(less than 5% change). Test time stability varies a lot across reasoners. While
FaCT++ measurements are mostly stable, Pellet and JFact measurements vary
a lot across almost all potential categories. The pathological cases as described
in Section 4, EHC and EHH, occur rarely. Out of the 1,507,654 tests that got
easier overall, only 399,644 (26%) are of a high magnitude. Out of those, 376,078
are clear cut, and 8,850 of high stability. From the clear cut cases, 59,656 are
potentially una ected by non-determinism, out of which 204 are harder than
100 ms. Out of the highly stable cases, only 302 are potentially una ected by
non-determinism, out of which only 10 are harder than 100ms. None of the tests
in both groups are harder than a second.
7</p>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>Discussion</title>
      <p>We quantify the impact of subsumption test hardness (RQ1) on classi cation
time in two ways: (1) Contribution of test times measured to OCT and (2)
ratio of number of ontologies with tests to those without. Only few of the 136
ontologies with tests were dominated by test hardness: Only 1 ontology had more
than a 50% contribution of total SST for Hermit, 7 for Pellet, 19 for FaCT++
and 23 for JFact. However, there are cases where the contribution is very high.
The ratio of ontologies entirely without tests is very high: FaCT++: 52%-71%,
HermiT 55%-80%, JFact in 56%-76% and Pellet 64%-84%. We have established
only the lower bound. The upper bound covers the very unlikely possibility
that the failed classi cations might be all without tests. Additionally, 36 of the</p>
      <p>Fact++[EXP]</p>
      <p>RQ2 is quanti ed by ratio of positive to negative tests. Positive tests account
to between 0.12% (Pellet) and 2.61% (FaCT++) of the overall number of tests
(JFact 2.49%, HermiT 2.12%). This low ratio is not surprising, given that the
worst case N 2 is dominated by far by non-subsumptions. As a side observation,
current traversal algorithms appear highly e cient. Only 3 ontology-reasoner
pairs (two distinct ontologies, small TBoxes) trigger more than 10% of the worst
case N 2 number of subsumption tests, and 50 pairs (30 unique ontologies) trigger
more than 1% of the worst case. This result however is only indicative of the
e ciency, as we do not guarantee to measure all tests.</p>
      <p>The distribution of test hardness as shown in Figures 1 tends towards easy
tests (RQ3). Figure 1 show that the number of really hard tests are in the
minority: only 346 out of 2,671,896 tests measured overall are harder than a
second. This result may emphasise the importance of test avoidance over further
optimising individual subsumption tests. However, as there are individual tests
that can make up to 25% of the overall reasoning time, it cannot be disregarded.</p>
      <p>The variation of the measurements, both for individual tests and overall
times, is, at least in its magnitude, surprising (RQ4). While the variation of test
times could be so high merely due to the low number of measurements that are
very vulnerable to experimental error (for example an unaccounted for system
background kicking in, stochasticity in the garbage collection, room
temperature), we cannot claim the same for the variation in the numbers of triggered
tests. That 68% of the modules in the sample vary in the number of tests is a
very strong indicator for the stochasticity of the classi cation process (at least
in this particular sample), be it due to random e ects in the programming
language or deliberate randomness induced by the implementation. This poses a
serious threat for single-run benchmarking, as it is still general practice in the
DL community. A small indication of the potential impact of a particular
programming environment is the very low average variation in test times collected
for FaCT++, which is the only reasoner in the set implemented in C++. In the
inter-module comparison we learned that our pathological cases rarely happen
and if so, the e ect they might have on overall classi cation time is negligible,
due to the potential degree of the e ect and the rarity in which they occur.
Furthermore, the strong evidence of stochasticity of the classi cation process makes
it unclear whether the e ect might not simply be due to non-determinism.
Despite having detected some cases that are clearly counter-intuitive (in the sense
of getting easier when irrelevant stu is added in), we cannot be sure whether
modularity is the cause, due of the small e ect size (RQ6). On top of that,
easier and harder tests almost balance each other out. Given our sample bias, our
results are not conclusive.
8</p>
    </sec>
    <sec id="sec-8">
      <title>Conclusions and Future Work</title>
      <p>In this paper we have presented a procedure for reliable and reproducible
isolation of counter-intuitive reasoning behaviour on subsumption tests during
classi cation and presented some such isolated cases. Future work includes
completing the full characterisation of the corpus with respect to the pathological
cases and then investigating the causal basis of those cases. The most likely
explanation is that the additional axioms trigger a cheaper choice in the complex
non-determinism algorithms. The big challenge is whether any progress can be
made in a fairly reasoner independent way. One idea is to extract the justi
cations for a given entailment and see whether they are disproportionally di cult
individually. This would suggest that the additional information is directing the
algorithm toward \easier" reasoners.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>F.</given-names>
            <surname>Baader</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Hollunder</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Nebel</surname>
          </string-name>
          , H.-J. Pro tlich, and
          <string-name>
            <surname>E. Franconi.</surname>
          </string-name>
          <article-title>An empirical analysis of optimization techniques for terminological representation systems</article-title>
          . Appl. Intell.,
          <volume>4</volume>
          (
          <issue>2</issue>
          ):
          <volume>109</volume>
          {
          <fpage>132</fpage>
          ,
          <year>1994</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>K.</given-names>
            <surname>Dentler</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Cornet</surname>
          </string-name>
          , A. t. Teije, and N. d. Keizer.
          <article-title>Comparison of reasoners for large ontologies in the OWL 2 EL pro le</article-title>
          .
          <source>Semantic Web</source>
          ,
          <volume>2</volume>
          (
          <issue>2</issue>
          ):
          <volume>71</volume>
          {
          <fpage>87</fpage>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>B.</given-names>
            <surname>Glimm</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Horrocks</surname>
          </string-name>
          , and
          <string-name>
            <given-names>B.</given-names>
            <surname>Motik</surname>
          </string-name>
          .
          <article-title>Optimized Description Logic Reasoning via Core Blocking</article-title>
          .
          <source>In IJCAR 2010</source>
          , pages
          <fpage>457</fpage>
          {
          <fpage>471</fpage>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>B.</given-names>
            <surname>Glimm</surname>
          </string-name>
          ,
          <string-name>
            <given-names>I.</given-names>
            <surname>Horrocks</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Motik</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Shearer</surname>
          </string-name>
          , and
          <string-name>
            <given-names>G.</given-names>
            <surname>Stoilos</surname>
          </string-name>
          .
          <article-title>A novel approach to ontology classi cation</article-title>
          .
          <source>J. Web Sem</source>
          .,
          <volume>14</volume>
          :
          <fpage>84</fpage>
          {
          <fpage>101</fpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>B.</given-names>
            <surname>Glimm</surname>
          </string-name>
          ,
          <string-name>
            <given-names>I.</given-names>
            <surname>Horrocks</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Motik</surname>
          </string-name>
          , G. Stoilos, and
          <string-name>
            <given-names>Z.</given-names>
            <surname>Wang</surname>
          </string-name>
          .
          <source>HermiT: An OWL 2 Reasoner. J. Autom. Reasoning</source>
          ,
          <volume>53</volume>
          (
          <issue>3</issue>
          ):
          <volume>245</volume>
          {
          <fpage>269</fpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>R. S.</given-names>
            <surname>Goncalves</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Bail</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Jimenez-Ruiz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Matentzoglu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Parsia</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Glimm</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Y.</given-names>
            <surname>Kazakov. ORE Reasoner</surname>
          </string-name>
          <article-title>Evaluation (ORE</article-title>
          ) Workshop 2013 Results:
          <article-title>Short Report</article-title>
          .
          <source>In ORE 2013</source>
          , pages
          <fpage>1</fpage>
          {
          <fpage>18</fpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>R. S.</given-names>
            <surname>Goncalves</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Matentzoglu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Parsia</surname>
          </string-name>
          , and
          <string-name>
            <given-names>U.</given-names>
            <surname>Sattler</surname>
          </string-name>
          .
          <article-title>The Empirical Robustness of Description Logic Classi cation</article-title>
          .
          <source>In ISWC 2013</source>
          , pages
          <fpage>277</fpage>
          {
          <fpage>280</fpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>R. S.</given-names>
            <surname>Goncalves</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Parsia</surname>
          </string-name>
          , and
          <string-name>
            <given-names>U.</given-names>
            <surname>Sattler</surname>
          </string-name>
          .
          <article-title>Performance Heterogeneity and Approximate Reasoning in Description Logic Ontologies</article-title>
          .
          <source>In ISWC 2012</source>
          , pages
          <fpage>82</fpage>
          {
          <fpage>98</fpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>B. C.</given-names>
            <surname>Grau</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Halaschek-Wiener</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Y.</given-names>
            <surname>Kazakov</surname>
          </string-name>
          .
          <article-title>History Matters: Incremental Ontology Reasoning Using Modules</article-title>
          .
          <source>In ISWC 2007</source>
          , pages
          <fpage>183</fpage>
          {
          <fpage>196</fpage>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <given-names>B. C.</given-names>
            <surname>Grau</surname>
          </string-name>
          , I. Horrocks,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Kazakov</surname>
          </string-name>
          , and
          <string-name>
            <given-names>U.</given-names>
            <surname>Sattler</surname>
          </string-name>
          .
          <source>Modular Reuse of Ontologies: Theory and Practice. J. Artif. Intell. Res. (JAIR)</source>
          ,
          <volume>31</volume>
          :
          <fpage>273</fpage>
          {
          <fpage>318</fpage>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <given-names>I. R.</given-names>
            <surname>Horrocks</surname>
          </string-name>
          .
          <article-title>Optimising tableaux decision procedures for description logics</article-title>
          .
          <source>PhD thesis</source>
          , Citeseer,
          <year>1997</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <given-names>Y.</given-names>
            <surname>Kazakov</surname>
          </string-name>
          .
          <article-title>RIQ and SROIQ Are Harder than SHOIQ</article-title>
          .
          <source>In KR 2008</source>
          , pages
          <fpage>274</fpage>
          {
          <fpage>284</fpage>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <given-names>N.</given-names>
            <surname>Matentzoglu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Parsia</surname>
          </string-name>
          , and
          <string-name>
            <given-names>U.</given-names>
            <surname>Sattler</surname>
          </string-name>
          .
          <article-title>An Empirical Investigation of Di culty of Subsets of Description Logic Ontologies</article-title>
          .
          <source>In DL</source>
          <year>2014</year>
          ., pages
          <volume>659</volume>
          {
          <fpage>670</fpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <given-names>N. F.</given-names>
            <surname>Noy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N. H.</given-names>
            <surname>Shah</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P. L.</given-names>
            <surname>Whetzel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Dai</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Dorf</surname>
          </string-name>
          , N. Gri th, C. Jonquet,
          <string-name>
            <given-names>D. L.</given-names>
            <surname>Rubin</surname>
          </string-name>
          , M.
          <article-title>-</article-title>
          <string-name>
            <surname>A. D. Storey</surname>
            ,
            <given-names>C. G.</given-names>
          </string-name>
          <string-name>
            <surname>Chute</surname>
            , and
            <given-names>M. A.</given-names>
          </string-name>
          <string-name>
            <surname>Musen</surname>
          </string-name>
          .
          <article-title>BioPortal: ontologies and integrated data resources at the click of a mouse</article-title>
          .
          <source>Nucleic Acids Research</source>
          ,
          <volume>37</volume>
          (
          <string-name>
            <surname>Web-Server-Issue</surname>
          </string-name>
          ):
          <volume>170</volume>
          {
          <fpage>173</fpage>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <given-names>A. A.</given-names>
            <surname>Romero</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B. C.</given-names>
            <surname>Grau</surname>
          </string-name>
          ,
          <string-name>
            <surname>and I. Horrocks.</surname>
          </string-name>
          <article-title>MORe: Modular Combination of OWL Reasoners for Ontology Classi cation</article-title>
          .
          <source>In ISWC 2012</source>
          , pages
          <fpage>1</fpage>
          {
          <fpage>16</fpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <given-names>V.</given-names>
            <surname>Sazonau</surname>
          </string-name>
          ,
          <string-name>
            <given-names>U.</given-names>
            <surname>Sattler</surname>
          </string-name>
          , and
          <string-name>
            <surname>G. Brown.</surname>
          </string-name>
          <article-title>Predicting Performance of OWL Reasoners: Locally or Globally?</article-title>
          <source>In KR</source>
          <year>2014</year>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <given-names>R.</given-names>
            <surname>Shearer</surname>
          </string-name>
          and
          <string-name>
            <surname>I. Horrocks.</surname>
          </string-name>
          <article-title>Exploiting Partial Information in Taxonomy Construction</article-title>
          .
          <source>In ISWC 2009</source>
          , pages
          <fpage>569</fpage>
          {
          <fpage>584</fpage>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18. E.
          <string-name>
            <surname>Sirin</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          <string-name>
            <surname>Parsia</surname>
            ,
            <given-names>B. C.</given-names>
          </string-name>
          <string-name>
            <surname>Grau</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Kalyanpur</surname>
            , and
            <given-names>Y.</given-names>
          </string-name>
          <string-name>
            <surname>Katz. Pellet</surname>
          </string-name>
          :
          <article-title>A practical OWL-DL reasoner</article-title>
          . J. Web Sem.,
          <volume>5</volume>
          (
          <issue>2</issue>
          ):
          <volume>51</volume>
          {
          <fpage>53</fpage>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          19.
          <string-name>
            <given-names>A.</given-names>
            <surname>Steigmiller</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Liebig</surname>
          </string-name>
          , and
          <string-name>
            <given-names>B.</given-names>
            <surname>Glimm</surname>
          </string-name>
          .
          <article-title>Konclude: System description</article-title>
          .
          <source>J. Web Sem</source>
          .,
          <volume>27</volume>
          :
          <fpage>78</fpage>
          {
          <fpage>85</fpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          20.
          <string-name>
            <given-names>D.</given-names>
            <surname>Tsarkov</surname>
          </string-name>
          and
          <string-name>
            <surname>I. Horrocks.</surname>
          </string-name>
          <article-title>FaCT++ Description Logic Reasoner: System Description</article-title>
          .
          <source>In IJCAR 2006</source>
          , pages
          <fpage>292</fpage>
          {
          <fpage>297</fpage>
          ,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          21.
          <string-name>
            <given-names>D.</given-names>
            <surname>Tsarkov</surname>
          </string-name>
          and
          <string-name>
            <surname>I. Palmisano.</surname>
          </string-name>
          <article-title>Chainsaw: a Metareasoner for Large Ontologies</article-title>
          .
          <source>In ORE</source>
          <year>2012</year>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>