<!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>Predicting Invariant Nodes in Large Scale Semantic Graphs</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Damian Barsotti</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Martin Ariel Dominguez FaMAF-UNC / Cordoba</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Argentina damian</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>mdoming</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>pablod@famaf.unc.edu.ar</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Pablo Ariel Duboue</string-name>
        </contrib>
      </contrib-group>
      <pub-date>
        <year>2017</year>
      </pub-date>
      <fpage>64</fpage>
      <lpage>68</lpage>
      <abstract>
        <p>We are interested in understanding and predicting how large knowledge graphs change over time. An important subproblem is predicting which nodes within the graph won't have any edges deleted or changed (what we call add-only nodes). Predicting add-only nodes correctly has practical importance, as such nodes can then be cached or represented using a more efficient data structure. This paper presents a logistic regression approach using attribute-values as features that achieves 95%+ precision on DBpedia yearly changes trained using Apache Spark. It concludes by outlining how we plan to use these models for Natural Language Generation.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>We are interested in understanding and predicting
how large knowledge graphs change over time. An
important subproblem is predicting which nodes
within the graph won’t have any edges deleted
or changed (what we call add-only nodes) or
undergo any changes at all (what we call constant
nodes). Predicting add-only nodes correctly has
practical importance, as such nodes can then be
cached or represented using a more efficient data
structure. In this paper we show a logistic
regression approach using attribute-values as features
that achieves 95%+ precision on DBpedia1 yearly
changes, as trained using Apache Spark. We
conclude by outlining how we plan to use these
models for Natural Language Generation.</p>
      <p>Definition. Given a multigraph G0 with named
edges such that each source node S is linked
through an edge labeled V to a target node O,</p>
      <p>8 v, o/ hS, v, oi 2 G0 ) h S, v, oi 2 G1</p>
      <p>
        This type of nodes can be efficiently represented
as static information, for example by leveraging
large scale perfect hashes
        <xref ref-type="bibr" rid="ref1 ref8">(Botelho and Ziviani,
2007)</xref>
        .
      </p>
      <p>Our intuition is that in large scale semantic
graphs holding an imperfect representation of the
real world, there will be two types of changes,
(1) model enhancements, where the truth about
the world is better captured by the model and (2)
model corrections, where the world has changed
and the model is updated. Updates of the first type
result in new information added to the graph,
without modifying existing data. Finding such nodes is
the objective of our work.</p>
      <p>This work is structured as follows. In the next
section we summarize related work. In Section 2
we discuss DBpedia, the semantic graph we used
for our experiments. Our methods and result
follows, closing with a discussion of our intended
application in Natural Language Generation.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Related Work</title>
      <p>
        Mining graphs for nodes with special properties is
not new to Big Data mining
        <xref ref-type="bibr" rid="ref3">(Drury et al., 2015)</xref>
        .
With the development DBpedia much research has
been devoted to exploiting this resource in AI
tasks as well as to model its changes. For
example, there is research on modeling DBpedia’s
currency
        <xref ref-type="bibr" rid="ref12">(Rula et al., 2014)</xref>
        , that is, the age of the data
in it and the speed at which those changes can be
captured by any system. Although currency could
be computed based on the modification/creation
dates of the resources, this information is not
always present in Wikipedia pages. To overcome
this, the authors propose a model to estimate
currency combining information from the original
related pages and a couple of currency metrics
measuring the speed of retrieval by a system and
basic currency or timestamp. Their experiments
suggest that entities with high system currency are
associated with more complete DBpedia resources
and entities with low system currency appear
associated with Wikipedia pages that are not
easily tractable (or that “could not provide real world
information” according with the authors). While
both the authors and us look into changes in
DBpedia, we are interested in changes that for the most
part do not result from changes in the real world,
as Lehman and others are interested.
      </p>
      <p>
        The need to account for changes in ontologies
has long been acknowledged, given that they may
not be useful in real world applications if the
representation of the knowledge they contain is
outdated. Eder and Koncilia
        <xref ref-type="bibr" rid="ref7">(Eder and Koncilia,
2004)</xref>
        present a formalism to represent
ontologies as graphs that contain a time model
including time intervals and valid times for concepts.
They base their formalism on techniques
developed for temporal databases, namely the
versioning of databases instead of their evolution and they
provide some guidelines about its possible
implementation. Our work can be used to improve the
internal representation of such temporal databases
        <xref ref-type="bibr" rid="ref2">(Cheng et al., 2014)</xref>
        .
      </p>
      <p>
        Another source of ontology transformation is
spatiotemporal changes. Dealing with spatial
changes in historical data (or over time series) is
crucial for some NLP tasks, such as information
retrieval
        <xref ref-type="bibr" rid="ref1 ref8">(Kauppinen and Hyvnen, 2007)</xref>
        . In their
case, the authors deal with the evolution of the
ontology’s underlying domain instead of its
versioning or evolution due to developments or
refinements. Their main result is the definition of partial
overlaps between concepts in a given time series,
which was applied to build a Finnish Temporal
Region Ontology, showing promising results.
      </p>
      <p>Finally, we see parallelisms between change
tracking in other large graphs: object graphs
in garbage collection systems. State of the art
garbage collection will single out objects that
survive multiple garbage collections (Stefanovic´
et al., 1999) and stop considering them for
collection. It is this type of optimizations that we expect
detection of invariable nodes will help semantic
graphs updates.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Data</title>
      <p>As a large scale naturally occurring knowledge
graph with a rich update history, we use DBpedia,
a knowledge graph derived from the Wikipedia
collaborative encyclopedia started in January 2001
at present containing over 37 million articles in
284 languages.</p>
      <p>
        Given that the content in Wikipedia pages is
stored in a structured way, it is possible to
extract and organize it in an ontology-like manner as
implemented in the DBpedia community project.
This is accomplished by mapping Wikipedia
infoboxes from each page to a curated shared
ontology that contains 529 classes and around 2,300
different properties. DBpedia contains the
knowledge from 111 different language editions of
Wikipedia and, for English the knowledge base
consists of more than 400 million facts describing
3.7 million things
        <xref ref-type="bibr" rid="ref11">(Lehmann et al., 2015)</xref>
        . A noble
feature of this resource is that it is freely available
to download in the form of dumps or it can be
consulted using specific tools developed to query it.
      </p>
      <p>
        These dumps contain the information in a
language called Resource Description Framework
(RDF)
        <xref ref-type="bibr" rid="ref10">(Lassila et al., 1998)</xref>
        . The WWW
Consortium (W3C) has developed RDF to encode the
knowledge present in web pages, so that it is
comprehensible and exploitable by agents during any
information search. RDF is based on the concept
of making statements about (web) resources using
expressions in the subject-predicate-object form.
These expressions are known as triples, where the
subject denotes the resource being described, the
predicate denotes a characteristic of the subject
and describes the relation between the subject and
the object. A collection of such RDF declarations
can be formally represented as a labeled directed
multi-graph, naturally appropriate to represent
ontologies.
      </p>
      <p>Table 1 shows the different years employed in
this work. The DBpedia project obtains its data
through a series of scripts run over Wikipedia,
which on itself is a user-generated resource.
Changes to the DBpedia scripts or to Wikipedia
itself sometimes result in dramatic differences from
one year to the next. Besides the overall sizes,
what is relevant to this work is the total number
Our prediction system is implemented using
Apache Spark2 using its Logistic Regression
package. In our algorithm the feature vector itself is
comprised of binary features indicating whether or
not a given relation object holds for the subject in
OLD; that is, we do not look at whether the Vi Oi
!
have changed, just their existence in OLD. The
class is, given a node in subject position, S:
add-only: {(Vi, Oi)}OLD ✓ { (Vi, Oi)}NEW
constant: {(Vi, Oi)}OLD = {(Vi, Oi)}NEW
The feature vector underneath has a dimension
of kV k ⇥ k Ok, a potentially very large number
given the millions of values in O. We leverage
Apache Spark Mlib pipelines to filter out this
extremely large feature vector to the top million
entries.</p>
      <p>Figure 1 shows a small example of feature and
class extraction. A four node graph OLD evolves
into a five node graph N EW . The classes for each
node are computed over OLD, using three binary
features.</p>
    </sec>
    <sec id="sec-4">
      <title>Results</title>
      <p>Using the machine learning method described in
the previous section we took three consecutive
year, Gy1 , Gy2 , Gy3 , built a model M on Gy1 !
Gy2 , apply M on Gy2 , obtaining G0y3 and evaluate
it by comparing it to Gy3 . Table 3 shows our
results. We can see that for pairs close in size (from
Table 1) we obtain a precision close to 90% with
recall ranging from 20% to 58% (and F-measure
as high as 66%). As our numbers were obtained
by optimizing F1 on a binary classification
problem, precision and recall are dual and treated as
identical quantities by the optimizer (this can be
easily seen from a confusion table). The rows
marked with an asterisk in the table were inverted
in our experiments. The low numbers for the last
row in the table can be attributed to ontological
re-estructuring on Wikipedia/DBpedia on
201504/10 period (second to last row on Table 2) were
few entities remained constant through 2015.</p>
      <p>From the table we can also see that detecting
constant nodes, on the other hand, it is a much
more difficult task that might be ill-defined given
the nature of the updates discussed in the intro.
Table 4 shows some examples of correctly and
incorrectly predicted nodes.
5.1</p>
      <p>
        Discussion
How useful are these results? For the task we
have in mind, building statistically plausible future
versions of existing semantic graphs for the
purpose of testing Natural Language Generation
algorithms
        <xref ref-type="bibr" rid="ref5 ref6">(Duboue et al., 2016)</xref>
        , successfully
predicting add-only nodes help us immediately with the
performance of the prediction system. Our high
precision results will then carry over to direct
improvements on our full system: if our system has
an error rate of 30% and there are 25% of add-only
nodes, our current system will reduce error by up
to 12% (in the case of 50% recall).
      </p>
      <p>
        Another case is for maintaining the data. The
add-only nodes and relations can be pre-cached
using more efficient data structures such as perfect
hashes
        <xref ref-type="bibr" rid="ref1 ref8">(Botelho and Ziviani, 2007)</xref>
        .
6
      </p>
    </sec>
    <sec id="sec-5">
      <title>Conclusions and Future Work</title>
      <p>In Natural Language Generation (Reiter and Dale,
2000), Referring Expressions Generation (REG),
is the task that, given an entity (the referent) and
a set of competing entities (the set of distractors),
involves creating a mention to the referent so that,</p>
      <sec id="sec-5-1">
        <title>Node S T U</title>
        <p>V
Features
a=T, a=U
;
;
b=V</p>
      </sec>
      <sec id="sec-5-2">
        <title>Target</title>
        <p>add-only ¬ constant
add-only ¬ constant
¬ add-only ¬ constant
add-only constant
in the eyes of the reader, it is clearly
distinguishable from any other entity in the set of distractors.
Therefore REG algorithms are expected to select
attributes that unambiguously identify an entity
with respect to a set of distractors.</p>
        <p>Our current work is part of a plan to simulate
natural perturbations on the data in order to find
the conditions on which REG algorithms start to
fail (for example, a simulated DBpedia 25 years in
the future).</p>
        <p>
          In previous work we explored the robustness for
the particular case of Referring Expressions
Generation (REG) algorithms by means of different
versions of an ontology
          <xref ref-type="bibr" rid="ref5 ref6">(Duboue et al., 2016)</xref>
          .
        </p>
        <p>
          In
          <xref ref-type="bibr" rid="ref5 ref6">(Duboue and Dom´ınguez, 2016)</xref>
          we
presented experiments on two types of entities
(people and organizations) and using different versions
of DBpedia we found that robustness of the tuned
algorithm and its parameters do coincide but more
work is needed to learn these parameters from data
in a generalizable fashion.
        </p>
        <p>
          We plan to extend the current model with a
specific model for additions and deletions
using techniques from statistical machine translation
          <xref ref-type="bibr" rid="ref9">(Koehn, 2010)</xref>
          and investigate techniques based on
knowledge embedding models (Xie et al., 2017).
        </p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgments</title>
      <p>The authors would like to thank the Secretaria de
Ciencia y Tecnica of Cordoba Province for support
and the anonymous reviewers for helpful
comments and suggestions.</p>
      <p>Ehud Reiter and Robert Dale. 2000. Building Natural
Language Generation Systems. Cambridge
University Press.</p>
      <p>Darko Stefanovic´, Kathryn S McKinley, and J Eliot B
Moss. 1999. Age-based garbage collection. ACM
SIGPLAN Notices 34(10):370–381.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <given-names>Fabiano C.</given-names>
            <surname>Botelho</surname>
          </string-name>
          and
          <string-name>
            <given-names>Nivio</given-names>
            <surname>Ziviani</surname>
          </string-name>
          .
          <year>2007</year>
          .
          <article-title>External perfect hashing for very large key sets</article-title>
          .
          <source>In Proceedings of the Sixteenth ACM Conference on Conference on Information and Knowledge Management. ACM</source>
          , New York, NY, USA, CIKM '
          <volume>07</volume>
          , pages
          <fpage>653</fpage>
          -
          <lpage>662</lpage>
          . https://doi.org/10.1145/1321440.1321532.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <string-name>
            <given-names>S.</given-names>
            <surname>Cheng</surname>
          </string-name>
          , A. Termehchy, and
          <string-name>
            <given-names>V.</given-names>
            <surname>Hristidis</surname>
          </string-name>
          .
          <year>2014</year>
          .
          <article-title>Efficient prediction of difficult keyword queries over databases</article-title>
          .
          <source>IEEE Transactions on Knowledge and Data Engineering</source>
          <volume>26</volume>
          (
          <issue>6</issue>
          ):
          <fpage>1507</fpage>
          -
          <lpage>1520</lpage>
          . https://doi.org/10.1109/TKDE.
          <year>2013</year>
          .
          <volume>140</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <given-names>Brett</given-names>
            <surname>Drury</surname>
          </string-name>
          ,
          <string-name>
            <surname>Jorge Carlos</surname>
          </string-name>
          Valverde-Rebaza, and
          <string-name>
            <surname>Alneu de Andrade Lopes</surname>
          </string-name>
          .
          <year>2015</year>
          .
          <article-title>Causation generalization through the identification of equivalent nodes in causal sparse graphs constructed from text using node similarity strategies</article-title>
          .
          <source>In Proceedings of the 2nd Annual International Symposium on Information Management and Big Data - SIMBig</source>
          <year>2015</year>
          , Cusco, Peru, September 2-
          <issue>4</issue>
          ,
          <year>2015</year>
          .. pages
          <fpage>58</fpage>
          -
          <lpage>65</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          http://ceur-ws.
          <source>org/</source>
          Vol-
          <volume>1478</volume>
          /paper6.pdf.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <string-name>
            <given-names>Pablo</given-names>
            <surname>Ariel</surname>
          </string-name>
          Duboue and Martin Ariel Dom´ınguez.
          <year>2016</year>
          .
          <article-title>Using Robustness to Learn to Order Semantic Properties in Referring Expression Generation</article-title>
          , Springer International Publishing, Cham, pages
          <fpage>163</fpage>
          -
          <lpage>174</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <string-name>
            <given-names>Pablo</given-names>
            <surname>Ariel</surname>
          </string-name>
          <string-name>
            <surname>Duboue</surname>
          </string-name>
          , Martin Ariel Domınguez, and
          <string-name>
            <given-names>Paula</given-names>
            <surname>Estrella</surname>
          </string-name>
          .
          <year>2016</year>
          .
          <article-title>On the robustness of standalone referring expression generation algorithms using rdf data</article-title>
          .
          <source>WebNLG</source>
          <year>2016</year>
          page 17.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <string-name>
            <given-names>Johann</given-names>
            <surname>Eder</surname>
          </string-name>
          and
          <string-name>
            <given-names>Christian</given-names>
            <surname>Koncilia</surname>
          </string-name>
          .
          <year>2004</year>
          . C.:
          <article-title>Modelling changes in ontologies</article-title>
          .
          <source>In In: Proceedings of On The Move - Federated Conferences, OTM 2004</source>
          , Springer (
          <year>2004</year>
          )
          <article-title>LNCS 3292</article-title>
          . pages
          <fpage>662</fpage>
          -
          <lpage>673</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <string-name>
            <given-names>Tomi</given-names>
            <surname>Kauppinen</surname>
          </string-name>
          and
          <string-name>
            <given-names>Eero</given-names>
            <surname>Hyvnen</surname>
          </string-name>
          .
          <year>2007</year>
          .
          <article-title>Modeling and reasoning about changes in ontology time series</article-title>
          .
          <source>In Integrated Series in Information Systems</source>
          . Springer-Verlag, pages
          <fpage>319</fpage>
          -
          <lpage>338</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <string-name>
            <given-names>Philipp</given-names>
            <surname>Koehn</surname>
          </string-name>
          .
          <year>2010</year>
          . Statistical Machine Translation. Cambridge University Press, New York, NY, USA, 1st edition.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          <string-name>
            <given-names>Ora</given-names>
            <surname>Lassila</surname>
          </string-name>
          ,
          <string-name>
            <surname>Ralph R. Swick</surname>
            , World Wide, and
            <given-names>Web</given-names>
          </string-name>
          <string-name>
            <surname>Consortium</surname>
          </string-name>
          .
          <year>1998</year>
          .
          <article-title>Resource description framework (rdf) model and syntax specification</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          <string-name>
            <given-names>Jens</given-names>
            <surname>Lehmann</surname>
          </string-name>
          , Robert Isele, Max Jakob, Anja Jentzsch, Dimitris Kontokostas,
          <string-name>
            <given-names>Pablo N.</given-names>
            <surname>Mendes</surname>
          </string-name>
          , Sebastian Hellmann, Mohamed Morsey, Patrick van Kleef, So¨ren Auer, and
          <string-name>
            <given-names>Christian</given-names>
            <surname>Bizer</surname>
          </string-name>
          .
          <year>2015</year>
          .
          <article-title>DBpedia - a large-scale, multilingual knowledge base extracted from wikipedia</article-title>
          .
          <source>Semantic Web Journal</source>
          <volume>6</volume>
          (
          <issue>2</issue>
          ):
          <fpage>167</fpage>
          -
          <lpage>195</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          <string-name>
            <given-names>Anisa</given-names>
            <surname>Rula</surname>
          </string-name>
          , Luca Panziera, Matteo Palmonari, and
          <string-name>
            <given-names>Andrea</given-names>
            <surname>Maurino</surname>
          </string-name>
          .
          <year>2014</year>
          .
          <article-title>Capturing the currency of dbpedia descriptions and get insight into their validity</article-title>
          .
          <source>In Proceedings of the 5th International Workshop on Consuming Linked Data (COLD</source>
          <year>2014</year>
          )
          <article-title>co-located with the 13th International Semantic Web Conference (ISWC</article-title>
          <year>2014</year>
          ),
          <source>Riva del Garda</source>
          , Italy, October
          <volume>20</volume>
          ,
          <year>2014</year>
          ..
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>