Machine Comprehension with Discourse Relations
Karthik Narasimhan Regina Barzilay CSAIL, Massachusetts Institute of Technology
1
Machine Comprehension with Discourse Relations Karthik Narasimhan - - PowerPoint PPT Presentation
Machine Comprehension with Discourse Relations Karthik Narasimhan Regina Barzilay CSAIL, Massachusetts Institute of Technology 1 Sally liked going outside. She put on her shoes. She went outside to walk. [...]
Karthik Narasimhan Regina Barzilay CSAIL, Massachusetts Institute of Technology
1
Sally ¡liked ¡going ¡outside. ¡She ¡put ¡on ¡her ¡shoes. ¡She ¡went ¡
to ¡Missy ¡the ¡cat. ¡[...] ¡Sally ¡hears ¡her ¡name. ¡”Sally, ¡Sally, ¡come ¡ home”, ¡Sally’s ¡mom ¡calls ¡out. ¡Sally ¡runs ¡home ¡to ¡her ¡Mom. ¡ Sally ¡liked ¡going ¡outside. ¡ ¡ ¡ Why ¡did ¡Sally ¡put ¡on ¡her ¡shoes? A) ¡To ¡wave ¡to ¡Missy ¡the ¡cat B) ¡To ¡hear ¡her ¡name C) ¡Because ¡she ¡wanted ¡to ¡go ¡outside ¡ ¡ D) ¡To ¡come ¡home ¡
Sample passage excerpt and question in a Machine Comprehension task
2
3
Accuracy of baseline systems
20 40 60 80 SWD RTE RTE+SWD
Single Multi
Causality
4
Temporality
5
Sally ¡liked ¡going ¡outside. ¡[…] ¡ Why ¡did ¡Sally ¡put ¡on ¡her ¡shoes? C) ¡Because ¡she ¡wanted ¡to ¡go ¡
Training data: Q&A pairs
Hypothesis: Task-based discourse relations can facilitate better Comprehension Q&A
Traditional approach: Use off-the-shelf discourse analyzers
(Source: Feng and Hirst, 2012)
Why ¡did ¡Sally ¡put ¡on ¡her ¡shoes? A) ¡To ¡wave ¡to ¡Missy ¡the ¡cat B) ¡To ¡hear ¡her ¡name C) ¡Because ¡she ¡wanted ¡to ¡go ¡outside ¡✓ ¡ D) ¡To ¡come ¡home ¡
Causality
6
Why ¡did ¡Sally ¡put ¡on ¡her ¡shoes? A) ¡To ¡wave ¡to ¡Missy ¡the ¡cat B) ¡To ¡hear ¡her ¡name C) ¡Because ¡she ¡wanted ¡to ¡go ¡outside ¡✓ ¡ D) ¡To ¡come ¡home ¡
7
Why ¡did ¡Sally ¡put ¡on ¡her ¡shoes? A) ¡To ¡wave ¡to ¡Missy ¡the ¡cat B) ¡To ¡hear ¡her ¡name C) ¡Because ¡she ¡wanted ¡to ¡go ¡outside ¡✓ ¡ D) ¡To ¡come ¡home ¡
8
Sally ¡liked ¡going ¡outside. ¡She ¡put ¡on ¡her ¡shoes. ¡She ¡went ¡outside ¡to ¡
calls ¡out. ¡Sally ¡runs ¡home ¡to ¡her ¡Mom. ¡Sally ¡liked ¡going ¡outside. ¡
Why ¡did ¡Sally ¡put ¡on ¡her ¡shoes?
Causality
9
Identify relevant sentences Infer correct relation Select correct answer
C) ¡Because ¡she ¡wanted ¡to ¡go ¡outside ¡✓
10
11
Sally ¡liked ¡going ¡outside. ¡She ¡put ¡on ¡her ¡shoes. ¡She ¡went ¡
to ¡Missy ¡the ¡cat. ¡[...] ¡Sally ¡hears ¡her ¡name. ¡”Sally, ¡Sally, ¡come ¡ home”, ¡Sally’s ¡mom ¡calls ¡out. ¡Sally ¡runs ¡home ¡to ¡her ¡Mom. ¡ Sally ¡liked ¡going ¡outside. ¡ ¡ ¡ Why ¡did ¡Sally ¡put ¡on ¡her ¡shoes? A) ¡To ¡wave ¡to ¡Missy ¡the ¡cat B) ¡To ¡hear ¡her ¡name C) ¡Because ¡she ¡wanted ¡to ¡go ¡outside ¡ ¡ D) ¡To ¡come ¡home ¡
12
13
14
L3(θ; Ptrain) = log X
i,j,m,r∈R
X
n∈[m−k,m+k]
P(a∗
ij, zim, zin, r | qij) − λ||θ||2
15
k
16
17
18
Prior work has shown value of domain-independent discourse relations in Q&A.
processing into context Q&A.
Theory (RST) to relate question topics and answers.
improve answer re-ranking for non-factoid Q&A.
19
sentences.
ties (as previously used).
Split& MC160& MC500& Passages& Ques4ons& Passages& Ques4ons& Train& 70& 280& 300& 1200& Dev& 30& 120& 50& 200& Test& 60& 240& 150& 600&
20
21
50# 55# 60# 65# 70# 75# MC160#test# MC500#test# Accuracy'
Accuracy'of'baselines'compared'to'our'model'
SWD# RTE# SWD+RTE# Model#3#
22
55" 57" 59" 61" 63" 65" 67" 69" 71" Single" Mul0" Overall" Accuracy' MC500'test'
Comparison'of'our'different'model'variants'
Model"1" Model"2" Model"3"
23
50# 52# 54# 56# 58# 60# 62# 64# 66# 68# 70# Single# Mul1# Overall# Accuracy' MC500'test'
RST'augmented'model'2'vs'Model'3'
Model#2#+#RST# Model#3#
24
Task-based discourse relations can facilitate better Comprehension Q&A
25
Table: Recall (@5) of relevant sentences retrieved by different models compared to human judgements.
22.5 45 67.5 90 Single Multi Overall
Freq Model 1 Model 2 Model 3
26
Table: Recall of annotated relations at various thresholds in ranking produced by Model 3
27
Relation R @ 1 R @ 2 Causal 56.25 75.00 Temporal 27.27 54.54 Explanation 16.66 33.33 Other 57.40 64.81 Overall 51.45 65.04
28
29