Learning Expressive Ontological Concept Descriptions via Neural - - PowerPoint PPT Presentation

learning expressive ontological concept descriptions via
SMART_READER_LITE
LIVE PREVIEW

Learning Expressive Ontological Concept Descriptions via Neural - - PowerPoint PPT Presentation

Learning Expressive Ontological Concept Descriptions via Neural Networks Marco Rospocher First things first University of Trento - September 21, 2018 MARCO Learning Expressive Ontological Concept Descriptions via Neural Networks ROSPOCHER


slide-1
SLIDE 1

Marco Rospocher

Learning Expressive Ontological Concept Descriptions via Neural Networks

slide-2
SLIDE 2

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

First things first…

University of Trento - September 21, 2018

slide-3
SLIDE 3

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

First things first…

Giulio Petrucci

University of Trento - September 21, 2018

Chiara Ghidini Marco Rospocher

advisors new Ph.D.

slide-4
SLIDE 4

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

First things first…

Giulio Petrucci

University of Trento - September 21, 2018

Chiara Ghidini Marco Rospocher

advisors new Ph.D. Most of following slides are taken from Giulio’s defense

slide-5
SLIDE 5

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Ontology Engineering

OWL Ontology

slide-6
SLIDE 6

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Ontology Engineering

OWL Ontology

slide-7
SLIDE 7

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Ontology Engineering

OWL Ontology

slide-8
SLIDE 8

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Ontology Engineering

OWL Ontology

Ontology Learning

slide-9
SLIDE 9

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Ontology Engineering

OWL Ontology

Ontology Learning

slide-10
SLIDE 10

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Ontology Learning from Text

slide-11
SLIDE 11

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Ontology Learning from Text

Bees are insects that produce honey. They have six legs. Bees live only in beehives—or just hives. Maya and Flip are bees. Maya, in particular, is a notable bee. Maya and Flip are friends.

slide-12
SLIDE 12

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Ontology Learning from Text

Bees are insects that produce honey. They have six legs. Bees live only in beehives—or just hives. Maya and Flip are bees. Maya, in particular, is a notable bee. Maya and Flip are friends. Terminological Knowledge about con- cepts, their definitions, and relations among them. Examples are: bees are insects; bees produce honey; bees have 6 legs; bees live in beehives. Ontology Learning Asserional Knowledge about individuals, their mutual relations and their relations with concepts. Examples are: Maya is a bee; Flip is a bee; Maya and Flip are friends; Ontology Population

slide-13
SLIDE 13

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Ontology Learning from Text

Bees are insects that produce honey. They have six legs. Bees live only in beehives—or just hives. Maya and Flip are bees. Maya, in particular, is a notable bee. Maya and Flip are friends. Terminological Knowledge about con- cepts, their definitions, and relations among them. Examples are: bees are insects; bees produce honey; bees have 6 legs; bees live in beehives. Ontology Learning Asserional Knowledge about individuals, their mutual relations and their relations with concepts. Examples are: Maya is a bee; Flip is a bee; Maya and Flip are friends; Ontology Population

slide-14
SLIDE 14

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Ontology Learning from Text

Bees are insects that produce honey. They have six legs. Bees live

  • nly in beehives—or just hives. Maya and Flip are bees. Maya, in

particular, is a notable bee. Maya and Flip are friends. Axiom Bee ı Insect Ù ÷produce.Honey Relation produce(Bee, Honey) Hierarchy is a(Bee, Insect) Concept Beehive Synonym {beehive, hive} Term bee, beehive, hive, honey, ...

Table: Ontology Learning Layer Cake 1

1Cimiano et al., 2009.

slide-15
SLIDE 15

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

State of the Art

Up to 2007: [...] state-of-the-art in lexical Ontology learning is able to generate ontologies that are largely informal or lightweight

  • ntologies in the sense that they are limited in their ex-

pressiveness. — V¨

  • lker et al, 2007.

From 2008: LExO (V¨

  • lker et al, 2008);

LearningDL (Ma et al., 2014); TEDEI (Mathews et al., 2017); Gyawali et al., 2017.

slide-16
SLIDE 16

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

State of the Art

Some common traits: heavily hand-crafted rules; relying on pre-trained NLP toolkits output to represent text; targeting different source and target languages

slide-17
SLIDE 17

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

State of the Art

Some common traits: heavily hand-crafted rules; relying on pre-trained NLP toolkits output to represent text; targeting different source and target languages Some common limitations: rigidity; cost in maintenance and evolution.

slide-18
SLIDE 18

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

The Road Less Traveled

Transforming a sentence into an axiom:

slide-19
SLIDE 19

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

The Road Less Traveled

Transforming a sentence into an axiom: is it possible to train a machine learning model for this task?

slide-20
SLIDE 20

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

The Road Less Traveled

Transforming a sentence into an axiom: is it possible to train a machine learning model for this task? is it possible to perform the training in a end-to-end fashion?

slide-21
SLIDE 21

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Framing the Problem

Natural Language OWL Axiom

transformation function

slide-22
SLIDE 22

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Framing the problem: the source language

Navigli et al., 2010 address the problem of defining a definition as: DEFINIENDUM (DF): the concept being defined (e.g., “a bee”); DEFINITOR (VF): that introduces the definition (e.g., “is”); DEFINIENS (GF): the genus phrase (e.g., “an insect”); REST (DF): the differentia with respect to the genus (e.g., “that produces honey”). A bee is an insect that produces honey.

slide-23
SLIDE 23

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Framing the problem: the source language

Navigli et al., 2010 address the problem of defining a definition as: DEFINIENDUM (DF): the concept being defined (e.g., “a bee”); DEFINITOR (VF): that introduces the definition (e.g., “is”); DEFINIENS (GF): the genus phrase (e.g., “an insect”); REST (DF): the differentia with respect to the genus (e.g., “that produces honey”). A bee is an insect.

slide-24
SLIDE 24

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Framing the problem: the source language

Navigli et al., 2010 address the problem of defining a definition as: DEFINIENDUM (DF): the concept being defined (e.g., “a bee”); DEFINITOR (VF): that introduces the definition (e.g., “is”); DEFINIENS (GF): the genus phrase (e.g., “an insect”); REST (DF): the differentia with respect to the genus (e.g., “that produces honey”). A bee produces honey.

slide-25
SLIDE 25

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Framing the Problem: the source language

Descriptive Language A bee is an insect that produces honey. A bee is an insect. A bee produces honey.

slide-26
SLIDE 26

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Framing the problem: the target language

Description Logic languages provide primitives to represent application domains in terms of their relevant concepts, entities and relations among them.

slide-27
SLIDE 27

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Framing the problem: the target language

Description Logic languages provide primitives to represent application domains in terms of their relevant concepts, entities and relations among them. In particular, ALCQ.

primitive syntax semantics Universal concept € ∆I Bottom concept ‹ ÿI Atomic concept A AI Concept negation (C) ¬C ∆I \ C I Concept intersection C Ù D C I fl DI Concept union (U) C Û D C I fi DI Atomic role R RI Value restriction ’R.C a œ ∆I | ’ b . (a, b) œ RI æ b œ C I Limited existential quantification ÷R.€ a œ ∆I | ÷ b . (a, b) œ RI Full existential quantification (E) ÷R.C a œ ∆I|÷b.(a, b) œ RI · b œ C I Unqualified numbered restriction (N) > nR a œ ∆I | |{b œ ∆I | (a, b) œ RI}| Ø n Qualified numbered restriction (Q) > nR.C a œ ∆I||{b œ ∆I|(a, b) œ RI · b œ C I}| Ø n

slide-28
SLIDE 28

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Framing the Problem: the Transformation Function

slide-29
SLIDE 29

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Framing the Problem: the Transformation Function

A bee is an insect that produces honey .

slide-30
SLIDE 30

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Framing the Problem: the Transformation Function

bee ı insect Ù ÷ produces . honey A bee is an insect that produces honey .

slide-31
SLIDE 31

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Framing the Problem: the Transformation Function

“syntactic transformation of natural language definitions into description logic axioms.” (V¨

  • lker J., 2008)

bee ı insect Ù ÷ produces . honey A bee is an insect that produces honey .

All the extralogical symbols come from the sentence.

slide-32
SLIDE 32

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Framing the Problem

Descriptive Language ALCQ

syntactic transformation

We need: datasets; architecture;

slide-33
SLIDE 33

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Structure and Meaning

Machine Learning means examples, good examples, many examples.

slide-34
SLIDE 34

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Structure and Meaning

Machine Learning means examples, good examples, many examples. Every bee is an insect and it also produces honey. A bee is an insect that produces honey. Bees are insects that produce also honey.

slide-35
SLIDE 35

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Structure and Meaning

Machine Learning means examples, good examples, many examples. Every bee is an insect and it also produces honey. A bee is an insect that produces honey. Bees are insects that produce also honey. Every bee is an insect that produces also honey.

slide-36
SLIDE 36

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Structure and Meaning

Machine Learning means examples, good examples, many examples. Every bee is an insect and it also produces honey. A bee is an insect that produces Bees are insects that produce also honey. Every bee is an insect that produces also honey.

slide-37
SLIDE 37

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Structure and Meaning

Machine Learning means examples, good examples, many examples. Every bee is an insect and it also produces honey. A bee is an insect that produces honey. Bees are insects that produce also honey. Every bee is an insect that produces also honey. Many structures, one meaning.

slide-38
SLIDE 38

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Meaning and Structure

Machine Learning means examples, good examples, many examples.

slide-39
SLIDE 39

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Meaning and Structure

Machine Learning means examples, good examples, many examples. Bees are insects that produce honey. A bee is also an insect that produces honey. Every bee is an insect and it also produces honey. A cow is a mammal that eats grass.

slide-40
SLIDE 40

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Meaning and Structure

Machine Learning means examples, good examples, many examples. Bees are insects that produce honey. A bee is also an insect that produces honey. Every bee is an insect and it also produces honey. A cow is a mammal that eats grass. A cow is a mammal that produces milk.

slide-41
SLIDE 41

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Meaning and Structure

Machine Learning means examples, good examples, many examples. Bees are insects that produce honey. A bee is also an insect that produces honey. Every bee is an insect and it also produces honey. A cow is a mammal that eats grass. A cow is a mammal that produces milk.

slide-42
SLIDE 42

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Meaning and Structure

Machine Learning means examples, good examples, many examples. Bees are insects that produce honey. A bee is also an insect that produces honey. Every bee is an insect and it also produces honey. A cow is a mammal that eats grass. A cow is a mammal that produces milk. Many meanings, one structure.2

2Other semantic phenomena are outside the scope of a syntactic transformation approach.

slide-43
SLIDE 43

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

First Challenge: the Dataset

Desiderata for the dataset:3 covers many syntactic constructs (structure); covers many domains (meaning); has annotated <sentence, axiom> pairs.

  • 3G. Petrucci. “Information Extraction for Learning Expressive Ontologies”,

ESWC 2015 Ph.D. Symp.

slide-44
SLIDE 44

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

First Challenge: the Dataset

Desiderata for the dataset:3 covers many syntactic constructs (structure); covers many domains (meaning); has annotated <sentence, axiom> pairs. List of suitable datasets:

  • 3G. Petrucci. “Information Extraction for Learning Expressive Ontologies”,

ESWC 2015 Ph.D. Symp.

slide-45
SLIDE 45

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

First Challenge: the Dataset

Desiderata for the dataset:3 covers many syntactic constructs (structure); covers many domains (meaning); has annotated <sentence, axiom> pairs. List of suitable datasets: ? Following other notable approaches in literature, we started building a dataset to train our model.

  • 3G. Petrucci. “Information Extraction for Learning Expressive Ontologies”,

ESWC 2015 Ph.D. Symp.

slide-46
SLIDE 46

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

First Challenge: the Dataset

bee ı insect Ù ÷ produces . honey A bee is an insect that produces honey .

slide-47
SLIDE 47

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

First Challenge: the Dataset

cow ı mammal Ù ÷ eats . grass A cow is an mammal that eats grass .

slide-48
SLIDE 48

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

First Challenge: the Dataset

C0 ı C1 Ù ÷ R0 . C2 A NP is an NP that VB NP .

slide-49
SLIDE 49

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

First Challenge: the Dataset

C0 ı C1 Ù ÷ R0 . C2 A NP is an NP that VB NP .

A NP is a NP that VB NP C0 ı C1 Ù ÷R0.C2

slide-50
SLIDE 50

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

First Challenge: the Dataset

C0 ı C1 Ù ÷ R0 . C2 A NP is an NP that VB NP .

A NP is a NP that VB NP C0 ı C1 Ù ÷R0.C2 Templates: structural regularities beyond meaning.

slide-51
SLIDE 51

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Data Generation Process

Context-Free Grammar Every C0 R0 at least NUM C1 C0 ı > NUM R0.C1 Every PhD student de- fends at least 1 thesis. PhD student ı > 1 defends.thesis V

slide-52
SLIDE 52

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Data Generation Process

Context-Free Grammar Every C0 R0 at least NUM C1 C0 ı > NUM R0.C1 Every PhD student de- fends at least 1 thesis. PhD student ı > 1 defends.thesis V

slide-53
SLIDE 53

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Data Generation Process

Context-Free Grammar Every C0 R0 at least NUM C1 C0 ı > NUM R0.C1 Every PhD student de- fends at least 1 thesis. PhD student ı > 1 defends.thesis V

slide-54
SLIDE 54

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Data Generation Process

Context-Free Grammar Every C0 R0 at least NUM C1 C0 ı > NUM R0.C1 Every innocent exile craves at least 100 towers. innocent exile ı > 100 craves.towers V random!

slide-55
SLIDE 55

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Data Generation Process

Context-Free Grammar template; actualization; (repeat); approximation; sampling... and parsing. Descriptive Language

slide-56
SLIDE 56

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Data Generation Process

Context-Free Grammar template; actualization; (repeat); approximation; sampling... and parsing. Descriptive Language A C0 is a C1

slide-57
SLIDE 57

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Data Generation Process

Context-Free Grammar template; actualization; (repeat); approximation; sampling... and parsing. Descriptive Language

A bee is an insect A cow is a mammal A shark is a fish

slide-58
SLIDE 58

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Data Generation Process

Context-Free Grammar template; actualization; (repeat); approximation; sampling... and parsing. Descriptive Language A C0 is a C1 C0 R0 C1 C0 as also C1

slide-59
SLIDE 59

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Data Generation Process

Context-Free Grammar template; actualization; (repeat); approximation; sampling... and parsing. Descriptive Language

slide-60
SLIDE 60

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Data Generation Process

Context-Free Grammar template; actualization; (repeat); approximation; sampling... and parsing. Descriptive Language

slide-61
SLIDE 61

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Data Generation Process

Context-Free Grammar template; actualization; (repeat); approximation; sampling... and parsing. ∼ Descriptive Language

slide-62
SLIDE 62

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Data Generation Process

Context-Free Grammar template; actualization; (repeat); approximation; sampling... and parsing. ∼ Descriptive Language

slide-63
SLIDE 63

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Data Generation Process

Context-Free Grammar template; actualization; (repeat); approximation; sampling... and parsing. ∼ Descriptive Language

slide-64
SLIDE 64

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Data Generation Process

Minimal input preprocessing: lower-cased; “an” → “a”; “doesn’t”, “does not”, “don’t” → “do not”; lemmatised nouns and verbs; numbers → NUM;

slide-65
SLIDE 65

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Second Challenge: the Model

A 2-chapter adventure in the world of Recurrent Neural Networks: 2014-2015 Tag&Transduce

  • G. Petrucci, C. Ghidini, and M. Rospocher

“Ontology Learning in the Deep” EKAW 2016 2016-2017 Translate

  • G. Petrucci, M. Rospocher, and C. Ghidini

“Expressive Ontology Learning as Neural Machine Translation Task” (Under review)4

4Code & Datasets: https://github.com/dkmfbk/dket

slide-66
SLIDE 66

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Tagging and Transducing

C0 ı C1 Ù ÷ R0 . C2 A NP is an NP that VB NP .

slide-67
SLIDE 67

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Tagging and Transducing

C0 ı C1 Ù ÷ R0 . C2 A NP is an NP that VB NP .

Transduction from sentence to formula template;

slide-68
SLIDE 68

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Tagging and Transducing

C0 ı C1 Ù ÷ R0 . C2 A NP is an NP that VB NP .

Transduction from sentence to formula template; Tagging extralogical symbols at the right place;

slide-69
SLIDE 69

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Tagging and Transducing

A bee is an in- sect that produces honey.

slide-70
SLIDE 70

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Tagging and Transducing

A bee is an in- sect that produces honey. C0 ı C1 Ù ÷ R0.C2;

transduction (F)

slide-71
SLIDE 71

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Tagging and Transducing

A bee is an in- sect that produces honey. C0 ı C1 Ù ÷ R0.C2;

transduction (F)

Bee ı Insect Ù÷ produces.Honey

?

slide-72
SLIDE 72

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Tagging and Transducing

A bee is an in- sect that produces honey. C0 ı C1 Ù ÷ R0.C2;

transduction (F)

Bee ı Insect Ù÷ produces.Honey

?

A beeC0 is an insectC1 that producesR0 honeyC2

tagging (T)

slide-73
SLIDE 73

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Tagging and Transducing

A bee is an in- sect that produces honey. C0 ı C1 Ù ÷ R0.C2;

transduction (F)

Bee ı Insect Ù÷ produces.Honey A beeC0 is an insectC1 that producesR0 honeyC2

tagging (T)

×

slide-74
SLIDE 74

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

The Transducing Network

Input V (xi) V (A) V (bee) V (is) . . . V (<EOS>) Embedding xi = Eei, x1±w x2±w x3±w . . . xn±w Hidden hi = g(xi, hi−1) h1 h2 h3 . . . hn = c Decoding hj = g(c, hj−1) h1 h2 . . . hm Output yj = softmax(Whj + b) y1 y2 . . . ym Prediction yk = argmax(yk) C0 ı ... <EOS>

slide-75
SLIDE 75

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

The Tagging Network

Input-Windowing V (xi±w) V (A±w) V (bee±w) V (is±w) . . . V (<EOS>±w) Embedding xi = Eei, x1±w x2±w x3±w . . . xn±w Hidden hi = g(xi, hi−1) h1 h2 h3 . . . hn Output yi = softmax(Whi + b) y1 y2 y3 . . . yn Tag yi = argmax(yi) t1 = w t2 = C0 t3 = w . . . tn =<EOS>

slide-76
SLIDE 76

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Tagging and Transducing: Evaluation

  • RQ1. To what degree is the network capable to generalize
  • ver the syntactic structures of descriptive language?

(many structures, one meaning)

  • RQ2. To what degree is the network capable to tolerate

words that have not been seen during the training phase? (many meanings, one structure)

slide-77
SLIDE 77

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Tagging and Transducing: Evaluation

Evaluation Metrics:

  • Avg. Per-Formula Acc.

FA( ˆ F, F) = CF

M

=

qM

k=1

Ó

1, if f k ≡ ˆ f k 0,

  • therwise

M

fully automated

  • Avg. Edit Distance

ED( ˆ F, F) =

qM

k=1 δ(f k ,ˆ f k ) M

semi-automated

  • Avg. Per-Token Acc.

TA( ˆ F, F) =

qM

k=1

qTf k

j=1

Ó

1, if f k

j

= ˆ f k

j

0,

  • therwise

qM

k=1 Tf k

quick control

slide-78
SLIDE 78

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Tagging and Transducing: Evaluation

different training set sizes; 2M test examples; <UNK> between 20% and 40%.

slide-79
SLIDE 79

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Tagging and Transducing: Evaluation

different training set sizes; 2M test examples; <UNK> between 20% and 40%. training set size CF FA ED TA 1000 10 0.5e-5 2.67 0.90 2000 161 8.05e-5 1.34 0.95 3000 60 3.00e-5 1.22 0.96 4000 22 1.10e-5 1.07 0.97

slide-80
SLIDE 80

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Tagging and Transducing: Evaluation

different training set sizes; 2M test examples; <UNK> between 20% and 40%. training set size CF FA ED TA 1000 10 0.5e-5 2.67 0.90 2000 161 8.05e-5 1.34 0.95 3000 60 3.00e-5 1.22 0.96 4000 22 1.10e-5 1.07 0.97 Many limitations: we dropped the project and move forward.

slide-81
SLIDE 81

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Moving forward (aka 1 > 2)

The placeholders are numbered in the training set and there is no way to overcome this limit—namely, generalize over the length of the sentence—by design.

slide-82
SLIDE 82

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Moving forward (aka 1 > 2)

Negramaro is a red and strong wine. negramaro ı red wine Ù strong wine

Negramaro is a red and strong wine.

slide-83
SLIDE 83

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Moving forward (aka 1 > 2)

Negramaro is a red and strong wine. negramaro ı red wine Ù strong wine

Negramaro is a red and strong wine.

C0 ı C1 Û C2

transduction (F)

slide-84
SLIDE 84

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Moving forward (aka 1 > 2)

Negramaro is a red and strong wine. negramaro ı red wine Ù strong wine

Negramaro is a red and strong wine.

C0 ı C1 Û C2

transduction (F)

NegramaroC0 is a redC1 and strongC2 wineC2.

tagging (T)

slide-85
SLIDE 85

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Moving forward (aka 1 > 2)

Negramaro is a red and strong wine. negramaro ı red wine Ù strong wine

Negramaro is a red and strong wine.

C0 ı C1 Û C2

transduction (F)

NegramaroC0 is a redC1 and strongC2 wineC2.

tagging (T)

negramaro ı red Û strong wine

slide-86
SLIDE 86

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Translate

slide-87
SLIDE 87

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Translate

A bee is an insect that produces honey .

slide-88
SLIDE 88

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Translate

bee copy(#2) A bee is an insect that produces honey .

slide-89
SLIDE 89

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Translate

bee ı copy(#2) emit(ı) A bee is an insect that produces honey .

slide-90
SLIDE 90

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Translate

bee ı insect copy(#2) emit(ı) copy(#5) A bee is an insect that produces honey .

slide-91
SLIDE 91

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Translate

bee ı insect Ù copy(#2) emit(ı) copy(#5) emit(Ù) A bee is an insect that produces honey .

slide-92
SLIDE 92

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Translate

bee ı insect Ù ÷ copy(#2) emit(ı) copy(#5) emit(Ù) emit(÷) A bee is an insect that produces honey .

slide-93
SLIDE 93

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Translate

bee ı insect Ù ÷ produces copy(#2) emit(ı) copy(#5) emit(Ù) emit(÷) copy(#7) A bee is an insect that produces honey .

slide-94
SLIDE 94

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Translate

bee ı insect Ù ÷ produces . copy(#2) emit(ı) copy(#5) emit(Ù) emit(÷) copy(#7) emit(.) A bee is an insect that produces honey .

slide-95
SLIDE 95

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Translate

bee ı insect Ù ÷ produces . honey copy(#2) emit(ı) copy(#5) emit(Ù) emit(÷) copy(#7) emit(.) copy(#8) A bee is an insect that produces honey .

Quasi-zero vocabulary setting.

slide-96
SLIDE 96

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Translate

x1, x2, ..., xn attention zt Emit logical symbol Copy input word

slide-97
SLIDE 97

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Translate

x1 x2 ... xi ... xTx

slide-98
SLIDE 98

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Translate

ge(xi, hi−1) ... ge(xTx , hTx ) ... ge(x2, h1) ge(x1, h0) h1 h2 hi−1 hi hTx−1 x1 x2 ... xi ... xTx

slide-99
SLIDE 99

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Translate

Attention dj−1 ge(xi, hi−1) ... ge(xTx , hTx ) ... ge(x2, h1) ge(x1, h0) h1 h2 hi−1 hi hTx−1 h1 h2 hi hTx x1 x2 ... xi ... xTx

slide-100
SLIDE 100

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Translate

gd(..., dj−1) dj Attention cj dj−1 dj−1 ˜ yj−1 ge(xi, hi−1) ... ge(xTx , hTx ) ... ge(x2, h1) ge(x1, h0) h1 h2 hi−1 hi hTx−1 h1 h2 hi hTx x1 x2 ... xi ... xTx

slide-101
SLIDE 101

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Translate

Switch zj gd(..., dj−1) dj Attention cj cj dj−1 dj−1 ˜ yj−1 ge(xi, hi−1) ... ge(xTx , hTx ) ... ge(x2, h1) ge(x1, h0) h1 h2 hi−1 hi hTx−1 h1 h2 hi hTx x1 x2 ... xi ... xTx

slide-102
SLIDE 102

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Translate

Switch zj Shortlist Softmax uj gd(..., dj−1) dj dj Attention cj cj dj−1 dj−1 ˜ yj−1 ge(xi, hi−1) ... ge(xTx , hTx ) ... ge(x2, h1) ge(x1, h0) h1 h2 hi−1 hi hTx−1 h1 h2 hi hTx x1 x2 ... xi ... xTx

slide-103
SLIDE 103

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Translate

yj = zj · uj ⊕ (1 − zj) · wj Switch zj Shortlist Softmax uj gd(..., dj−1) dj dj Attention cj cj wj dj−1 dj−1 ˜ yj−1 ge(xi, hi−1) ... ge(xTx , hTx ) ... ge(x2, h1) ge(x1, h0) h1 h2 hi−1 hi hTx−1 h1 h2 hi hTx x1 x2 ... xi ... xTx

slide-104
SLIDE 104

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Translate

yj = zj · uj ⊕ (1 − zj) · wj ˜ yj Switch zj Shortlist Softmax uj gd(..., dj−1) dj dj Attention cj cj wj dj−1 dj−1 ˜ yj−1 ge(xi, hi−1) ... ge(xTx , hTx ) ... ge(x2, h1) ge(x1, h0) h1 h2 hi−1 hi hTx−1 h1 h2 hi hTx x1 x2 ... xi ... xTx

slide-105
SLIDE 105

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Translate

  • RQ1. To what degree is the network capable to generalize
  • ver the syntactic structures of descriptive language?

(many structures, one meaning)

  • RQ2. To what degree is the network capable to tolerate

words that have not been seen during the training phase? (many meanings, one structure)

slide-106
SLIDE 106

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Translate: Closed-Vocabulary Evaluation

training set size FA ED TA 2000 0.61 2.48 0.92 5000 0.84 0.60 0.98 10000 0.89 0.47 0.99 20000 0.81 0.46 0.98

slide-107
SLIDE 107

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Translate: Open-Vocabulary Evaluation

training set size FA ED TA 2000 0.62 1.51 0.94 5000 0.86 0.63 0.98 10000 0.85 0.51 0.98 20000 0.89 0.38 0.99

slide-108
SLIDE 108

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Into the wild

So far, so good.

slide-109
SLIDE 109

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Into the wild

So far, so good. So what?

  • RQ3. To what extent is the model capable to improve its

performances with the addition of few annotated examples?

slide-110
SLIDE 110

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

The Reference Set

500 manually curated examples from well known ontologies or formalized ad hoc by knowledge engineers.

slide-111
SLIDE 111

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

The Reference Set

500 manually curated examples from well known ontologies or formalized ad hoc by knowledge engineers.

size len. LEN.

  • avg. len.

exist. univ.

  • card. restr.

training 75 5 28 11.72 42.67% 2.67% 9.33% test 425 5 40 12.36 50.82% 4.47% 9.18%

slide-112
SLIDE 112

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Evaluation Against the Reference Set

system CF FA ED TA Grammar Parser 17 0.04

  • Tag&Transduce

0.00 11.7 0.10 Translate (20k-open) 38 0.09 4.55 0.49

slide-113
SLIDE 113

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Evaluation Against the Reference Set

slide-114
SLIDE 114

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Evaluation Against the Reference Set

training set size CF FA ED TA 2k 35 0.08 4.80 0.47 2k+75 143 0.34 3.44 0.60 5k 38 0.09 4.58 0.48 5k+75 126 0.30 3.55 0.59 10k 39 0.09 4.59 0.48 10k+75 82 0.19 4.06 0.55 20k 38 0.09 4.55 0.49 20k+75 55 0.13 4.53 0.50

slide-115
SLIDE 115

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Through the Looking Glass

Contributions: suitable architecture; bootstrap datasets and reference set; a new approach.

slide-116
SLIDE 116

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Lessons Learned

Lesson Learned. the pointing network is a powerful architecture and can deal successfully with our quasi-zero vocabulary setting; the bootstrap data can be a good start, but the model can be biased in the perspective of an adaptation to real world data; the model could learn from raw text (with a minimum preprocessing), though, on the long term it would require a large amount of text.

slide-117
SLIDE 117

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

The Road Ahead

Future work: more on the architecture: Bi-GRU, LSTMs, ...; more on the data: definition extraction, distant supervision, generative autoencoding, ...; less on the radical end-to-end and zero feature engineering.

slide-118
SLIDE 118

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

http://bit.ly/giuliophd

slide-119
SLIDE 119

Learning Expressive Ontological Concept Descriptions via Neural Networks MARCO ROSPOCHER

Marco Rospocher

rospocher@fbk.eu dkm.fbk.eu/rospocher @marcorospocher

KE4IR

PIKES powered by

pikes.fbk.eu/ke4ir premon.fbk.eu

RDFpro

rdfpro.fbk.eu

MoKi

  • moki.fbk.eu

knowledgestore.fbk.eu pikes.fbk.eu

PIKES

pikes.fbk.eu/jpark pikes.fbk.eu/psl4ea

BPMN Ontology

dkm.fbk.eu/bpmn-ontology bit.ly/pescado-onto github.com/dkmfbk/TexOwl

Event & Situation Ontology

github.com/newsreader/eso