Ice Pasupat and Percy Liang Stanford University
ACL 2016 Monday, August 8, 2016
Inferring Logical Forms From Denotations Ice Pasupat and Percy - - PowerPoint PPT Presentation
Inferring Logical Forms From Denotations Ice Pasupat and Percy Liang Stanford University ACL 2016 Monday, August 8, 2016 Semantic Parsing Utterance Where did the last 1st place finish occur? World Year Venue Position Time
ACL 2016 Monday, August 8, 2016
2
from WikiTableQuestions dataset (Pasupat & Liang, 2015); simplified Utterance World
3
Denotation
4
5
6
7
8
Training Data “Where did the last 1st place finish occur?”
Year Venue Position Time 2003 Finland 1st 47.12 2005 Germany 5th 46.62 2007 Thailand 1st 53.13
Thailand
9
“Where did the last 1st place finish occur?”
Year Venue Position Time 2003 Finland 1st 47.12 2005 Germany 5th 46.62 2007 Thailand 1st 53.13
logical forms
R[Venue].argmax(Position.1st, Index) ... ... ... ... ... ...
10
(Pasupat & Liang, 2015)
11
(Pasupat & Liang, 2015)
12
(Details in the paper)
13
(Details in the paper)
all logical forms
14
all logical forms consistent
15
all logical forms consistent (actual size)
16
17
18
19
20
all logical forms correct spurious
21
“Where did the last 1st place finish occur?”
Year Venue Position Time 2003 Finland 1st 47.12 2005 Germany 5th 46.62 2007 Thailand 1st 53.13
Thailand all logical forms consistent
22
...
23
(Set, 0)
(Relation, 0)
...
For the sake of illustration, assume any cell / column can become a base predicate
24
(Set, 0)
... (Relation, 0)
25
(Set, 0)
(Relation, 0)
(Set, 1)
...
26
(Set, 2)
...
27
(Set, 5)
R[Venue].Index.min(R[Year].Position.1st)
28
all logical forms consistent beam search
29
30
31
32
33
34
(Set, 1)
35
(Set, 1, {3})
(Set, 1, {r1})
36
(Set, 1, {3})
(Set, 1, {r1})
37
(Relation, 0, Time)
(Set, 2, {46.62})
(Set, 1, {r1})
38
39
40
41
all logical forms = DPD consistent
(in most cases)
42
consistent beam search gold consistent DPD gold
43
44
45
“Where did the last 1st place finish occur?”
Year Venue Position Time 2003 Finland 1st 47.12 2005 Germany 5th 46.62 2007 Thailand 1st 53.13
Thailand all logical forms consistent
46
“Where did the last 1st place finish occur?”
Year Venue Position Time 2003 Finland 1st 47.12 2005 Germany 5th 46.62 2007 Thailand 1st 53.13
Thailand all logical forms correct spurious
47
Keep sorted columns sorted Resample cells in other columns
48
49
50
51
52
53
54
55
56
57
correct spurious
58
correct spurious
59
correct spurious
60
Expensive to annotate!
61
Low coverage
62
Year Venue Position Time 2003 Thailand 1st 53.13 2005 Finland 1st 47.12 2007 Germany 5th 46.62
argmax on Index argmax on Time Finland Thailand
63
64