Document Modeling with Document Modeling with External Attention - - PowerPoint PPT Presentation

document modeling with document modeling with external
SMART_READER_LITE
LIVE PREVIEW

Document Modeling with Document Modeling with External Attention - - PowerPoint PPT Presentation

Document Modeling with Document Modeling with External Attention for Sentence External Attention for Sentence Extraction Extraction Shashi Narayan, Ronald Cardenas, Nikos Papasarantopoulos, Shay B. Cohen, Mirella Lapata, Jiangsheng Yu and Yi


slide-1
SLIDE 1

Document Modeling with Document Modeling with External Attention for Sentence External Attention for Sentence Extraction Extraction

Shashi Narayan, Ronald Cardenas, Nikos Papasarantopoulos, Shay B. Cohen, Mirella Lapata, Jiangsheng Yu and Yi Chang ACL 2018

1

slide-2
SLIDE 2

Sentence extraction Sentence extraction

2

slide-3
SLIDE 3

Sentence extraction Sentence extraction

document modeling is essential to many NLP tasks

2

slide-4
SLIDE 4

Sentence extraction Sentence extraction

document modeling is essential to many NLP tasks apparent in problems where capturing long range dependencies is important

2

slide-5
SLIDE 5

Sentence extraction Sentence extraction

document modeling is essential to many NLP tasks apparent in problems where capturing long range dependencies is important sentence extraction is the selection of specific sentences from documents, with an end goal in mind

2

slide-6
SLIDE 6

Sentence extraction Sentence extraction

document modeling is essential to many NLP tasks apparent in problems where capturing long range dependencies is important sentence extraction is the selection of specific sentences from documents, with an end goal in mind Extractive Summarization and Question Answer Selection are two examples of sentence extraction problems

2

slide-7
SLIDE 7

Sentence extraction Sentence extraction

3

slide-8
SLIDE 8

Sentence extraction Sentence extraction

South Korean Prime Minister Lee Wan-Koo offers to resign Seoul (CNN) -- South Korea's Prime Minister Lee Wan-koo

  • ffered to resign on Monday amid a growing political scandal.

Lee will stay in his official role until South Korean President Park Geun-hye accepts his resignation. Park heard about the resignation ... Calls for Lee to resign began after South Korean tycoon Sung Woan-jong was found hanging ... Sung, who was under investigation for fraud and bribery left a note listing names and amounts of cash given to top officials, including those who work for the President. Lee and seven other politicians ...

3

slide-9
SLIDE 9

Sentence extraction Sentence extraction

Story highlights Calls for Lee to resign began after South Korean tycoon Sung Woan-jong was found hanging from a tree in Seoul. Sung, who was under investigation for fraud and bribery, left a note listing names and amounts of cash given to top

  • fficials.

South Korean Prime Minister Lee Wan-Koo offers to resign Seoul (CNN) -- South Korea's Prime Minister Lee Wan-koo

  • ffered to resign on Monday amid a growing political scandal.

Lee will stay in his official role until South Korean President Park Geun-hye accepts his resignation. Park heard about the resignation ... Calls for Lee to resign began after South Korean tycoon Sung Woan-jong was found hanging ... Sung, who was under investigation for fraud and bribery left a note listing names and amounts of cash given to top officials, including those who work for the President. Lee and seven other politicians ...

3

slide-10
SLIDE 10

Sentence extraction Sentence extraction

extractive summary extractive summary

Story highlights Calls for Lee to resign began after South Korean tycoon Sung Woan-jong was found hanging from a tree in Seoul. Sung, who was under investigation for fraud and bribery, left a note listing names and amounts of cash given to top

  • fficials.

South Korean Prime Minister Lee Wan-Koo offers to resign Seoul (CNN) -- South Korea's Prime Minister Lee Wan-koo

  • ffered to resign on Monday amid a growing political scandal.

Lee will stay in his official role until South Korean President Park Geun-hye accepts his resignation. Park heard about the resignation ... Calls for Lee to resign began after South Korean tycoon Sung Woan-jong was found hanging ... Sung, who was under investigation for fraud and bribery left a note listing names and amounts of cash given to top officials, including those who work for the President. Lee and seven other politicians ...

3

slide-11
SLIDE 11

Sentence extraction Sentence extraction

Story highlights Calls for Lee to resign began after South Korean tycoon Sung Woan-jong was found hanging from a tree in Seoul. Sung, who was under investigation for fraud and bribery, left a note listing names and amounts of cash given to top

  • fficials.

South Korean Prime Minister Lee Wan-Koo offers to resign Seoul (CNN) -- South Korea's Prime Minister Lee Wan-koo

  • ffered to resign on Monday amid a growing political scandal.

Lee will stay in his official role until South Korean President Park Geun-hye accepts his resignation. Park heard about the resignation ... Calls for Lee to resign began after South Korean tycoon Sung Woan-jong was found hanging ... Sung, who was under investigation for fraud and bribery left a note listing names and amounts of cash given to top officials, including those who work for the President. Lee and seven other politicians ...

extractive summary extractive summary

4

slide-12
SLIDE 12

Sentence extraction Sentence extraction

Story highlights Calls for Lee to resign began after South Korean tycoon Sung Woan-jong was found hanging from a tree in Seoul. Sung, who was under investigation for fraud and bribery, left a note listing names and amounts of cash given to top

  • fficials.

South Korean Prime Minister Lee Wan-Koo offers to resign Seoul (CNN) -- South Korea's Prime Minister Lee Wan-koo

  • ffered to resign on Monday amid a growing political scandal.

Lee will stay in his official role until South Korean President Park Geun-hye accepts his resignation. Park heard about the resignation ... Calls for Lee to resign began after South Korean tycoon Sung Woan-jong was found hanging ... Sung, who was under investigation for fraud and bribery left a note listing names and amounts of cash given to top officials, including those who work for the President. Lee and seven other politicians ...

answer selection answer selection extractive summary extractive summary

4

slide-13
SLIDE 13

Sentence extraction Sentence extraction

Story highlights Calls for Lee to resign began after South Korean tycoon Sung Woan-jong was found hanging from a tree in Seoul. Sung, who was under investigation for fraud and bribery, left a note listing names and amounts of cash given to top

  • fficials.

South Korean Prime Minister Lee Wan-Koo offers to resign Seoul (CNN) -- South Korea's Prime Minister Lee Wan-koo

  • ffered to resign on Monday amid a growing political scandal.

Lee will stay in his official role until South Korean President Park Geun-hye accepts his resignation. Park heard about the resignation ... Calls for Lee to resign began after South Korean tycoon Sung Woan-jong was found hanging ... Sung, who was under investigation for fraud and bribery left a note listing names and amounts of cash given to top officials, including those who work for the President. Lee and seven other politicians ...

answer selection answer selection

Question: Who resigned over the scandal? Answer: South Korea's Prime Minister Lee Wan Koo

extractive summary extractive summary

4

slide-14
SLIDE 14

Sentence extraction Sentence extraction

Story highlights Calls for Lee to resign began after South Korean tycoon Sung Woan-jong was found hanging from a tree in Seoul. Sung, who was under investigation for fraud and bribery, left a note listing names and amounts of cash given to top

  • fficials.

answer selection answer selection

South Korean Prime Minister Lee Wan-Koo offers to resign Seoul (CNN) -- South Korea's Prime Minister Lee Wan-koo

  • ffered to resign on Monday amid a growing political scandal.

Lee will stay in his official role until South Korean President Park Geun-hye accepts his resignation. Park heard about the resignation ... Calls for Lee to resign began after South Korean tycoon Sung Woan-jong was found hanging ... Sung, who was under investigation for fraud and bribery left a note listing names and amounts of cash given to top officials, including those who work for the President. Lee and seven other politicians ...

extractive summary extractive summary

5

slide-15
SLIDE 15

Sentence extraction Sentence extraction

Story highlights Calls for Lee to resign began after South Korean tycoon Sung Woan-jong was found hanging from a tree in Seoul. Sung, who was under investigation for fraud and bribery, left a note listing names and amounts of cash given to top

  • fficials.

answer selection answer selection

South Korean Prime Minister Lee Wan-Koo offers to resign Seoul (CNN) -- South Korea's Prime Minister Lee Wan-koo

  • ffered to resign on Monday amid a growing political scandal.

Lee will stay in his official role until South Korean President Park Geun-hye accepts his resignation. Park heard about the resignation ... Calls for Lee to resign began after South Korean tycoon Sung Woan-jong was found hanging ... Sung, who was under investigation for fraud and bribery left a note listing names and amounts of cash given to top officials, including those who work for the President. Lee and seven other politicians ...

extractive summary extractive summary

both tasks require deep understanding of the document

5

slide-16
SLIDE 16

Sentence extraction Sentence extraction

Story highlights Calls for Lee to resign began after South Korean tycoon Sung Woan-jong was found hanging from a tree in Seoul. Sung, who was under investigation for fraud and bribery, left a note listing names and amounts of cash given to top

  • fficials.

answer selection answer selection

South Korean Prime Minister Lee Wan-Koo offers to resign Seoul (CNN) -- South Korea's Prime Minister Lee Wan-koo

  • ffered to resign on Monday amid a growing political scandal.

Lee will stay in his official role until South Korean President Park Geun-hye accepts his resignation. Park heard about the resignation ... Calls for Lee to resign began after South Korean tycoon Sung Woan-jong was found hanging ... Sung, who was under investigation for fraud and bribery left a note listing names and amounts of cash given to top officials, including those who work for the President. Lee and seven other politicians ...

extractive summary extractive summary

both tasks require deep understanding of the document local and global contextual reasoning

5

slide-17
SLIDE 17

Documents are Documents are more than plain more than plain text chunks text chunks

Seoul (CNN) South Korea's Prime Minister Lee Wan-koo offered to resign on Monday amid a growing political scandal. Lee will stay in his official role until South Korean President Park Geun-hye accepts his

  • resignation. He has transferred his ...

6

slide-18
SLIDE 18

Documents are Documents are more than plain more than plain text chunks text chunks

They can also contain title South Korean Prime Minister Lee Wan-koo offers to resign

Seoul (CNN) South Korea's Prime Minister Lee Wan-koo offered to resign on Monday amid a growing political scandal. Lee will stay in his official role until South Korean President Park Geun-hye accepts his

  • resignation. He has transferred his ...

6

slide-19
SLIDE 19

Documents are Documents are more than plain more than plain text chunks text chunks

They can also contain title images South Korean Prime Minister Lee Wan-koo offers to resign

Seoul (CNN) South Korea's Prime Minister Lee Wan-koo offered to resign on Monday amid a growing political scandal. Lee will stay in his official role until South Korean President Park Geun-hye accepts his

  • resignation. He has transferred his ...

6

slide-20
SLIDE 20

Documents are Documents are more than plain more than plain text chunks text chunks

They can also contain title images image captions South Korean Prime Minister Lee Wan-koo offers to resign

Seoul (CNN) South Korea's Prime Minister Lee Wan-koo offered to resign on Monday amid a growing political scandal. Lee will stay in his official role until South Korean President Park Geun-hye accepts his

  • resignation. He has transferred his ...

South Korean PM

  • ffers resignation
  • ver bribery scandal

Suicide note leads to government bribery investigation

6

slide-21
SLIDE 21

Documents are Documents are more than plain more than plain text chunks text chunks

They can also contain title images image captions which can contain key events South Korean Prime Minister Lee Wan-koo offers to resign

Seoul (CNN) South Korea's Prime Minister Lee Wan-koo offered to resign on Monday amid a growing political scandal. Lee will stay in his official role until South Korean President Park Geun-hye accepts his

  • resignation. He has transferred his ...

South Korean PM

  • ffers resignation
  • ver bribery scandal

Suicide note leads to government bribery investigation

6

slide-22
SLIDE 22

Main ideas of this work Main ideas of this work

7

slide-23
SLIDE 23

Main ideas of this work Main ideas of this work

external information can be useful to sentence selection (Edmundson, 1969; Kupiec et al., 1995; Mani, 2001)

7

slide-24
SLIDE 24

Main ideas of this work Main ideas of this work

external information can be useful to sentence selection (Edmundson, 1969; Kupiec et al., 1995; Mani, 2001) document modeling with richer content: read whole document before starting to extract sentences

7

slide-25
SLIDE 25

Main ideas of this work Main ideas of this work

external information can be useful to sentence selection (Edmundson, 1969; Kupiec et al., 1995; Mani, 2001) document modeling with richer content: read whole document before starting to extract sentences do not rely on similarity metrics to extract sentences

7

slide-26
SLIDE 26

Main ideas of this work Main ideas of this work

external information can be useful to sentence selection (Edmundson, 1969; Kupiec et al., 1995; Mani, 2001) document modeling with richer content: read whole document before starting to extract sentences do not rely on similarity metrics to extract sentences neural architecture for sentence extraction (XNet)

7

slide-27
SLIDE 27

XNet: Document Encoder XNet: Document Encoder

8

slide-28
SLIDE 28

XNet: Document Encoder XNet: Document Encoder

8

slide-29
SLIDE 29

XNet: Document Encoder XNet: Document Encoder

hierarchical (two-level) encoder sentences are encoded by a convolutional encoder (Kim, 2014) LSTM document encoder get a document embedding before extraction begins

8

slide-30
SLIDE 30

XNet: Sentence Extractor XNet: Sentence Extractor

9

slide-31
SLIDE 31

XNet: Sentence Extractor XNet: Sentence Extractor

9

slide-32
SLIDE 32

XNet: Sentence Extractor XNet: Sentence Extractor

RNN extractor

9

slide-33
SLIDE 33

XNet: Sentence Extractor XNet: Sentence Extractor

RNN extractor takes document embedding as input

9

slide-34
SLIDE 34

XNet: Sentence Extractor XNet: Sentence Extractor

RNN extractor takes document embedding as input instead of attending to text, attends over external information sentence embeddings

  • ther information

9

slide-35
SLIDE 35

XNet: Sentence Extractor XNet: Sentence Extractor

RNN extractor takes document embedding as input instead of attending to text, attends over external information sentence embeddings

  • ther information

softmax over the output produces binary labels

9

slide-36
SLIDE 36

XNet for Extractive Summarization XNet for Extractive Summarization

10

slide-37
SLIDE 37

XNet for Extractive Summarization XNet for Extractive Summarization

attention over external information title image captions sentences encoded with the convolutional sentence encoder

10

slide-38
SLIDE 38

XNet for Extractive Summarization XNet for Extractive Summarization

attention over external information title image captions sentences encoded with the convolutional sentence encoder

10

slide-39
SLIDE 39

XNet for Extractive Summarization XNet for Extractive Summarization

attention over external information title image captions sentences encoded with the convolutional sentence encoder

10

slide-40
SLIDE 40

XNet for Extractive Summarization XNet for Extractive Summarization

attention over external information title image captions sentences encoded with the convolutional sentence encoder

10

slide-41
SLIDE 41

XNet for Extractive Summarization XNet for Extractive Summarization

attention over external information title image captions sentences encoded with the convolutional sentence encoder

10

slide-42
SLIDE 42

XNet for Extractive Summarization XNet for Extractive Summarization

attention over external information title image captions sentences encoded with the convolutional sentence encoder

10

slide-43
SLIDE 43

Extractive Summarization Experiments Extractive Summarization Experiments

11

slide-44
SLIDE 44

Extractive Summarization Experiments Extractive Summarization Experiments

CNN part of CNN/DailyMail dataset

11

slide-45
SLIDE 45

Extractive Summarization Experiments Extractive Summarization Experiments

CNN part of CNN/DailyMail dataset preprocess extract titles (each article has a title) and image captions (avg 3 captions per article; 40% articles have at least one)

  • racle summaries: select sentences that

give collectively high ROUGE score wrt the gold summary (Nallapati et al., 2017)

11

slide-46
SLIDE 46

Extractive Summarization Experiments Extractive Summarization Experiments

CNN part of CNN/DailyMail dataset preprocess extract titles (each article has a title) and image captions (avg 3 captions per article; 40% articles have at least one)

  • racle summaries: select sentences that

give collectively high ROUGE score wrt the gold summary (Nallapati et al., 2017) summary: 3 top-scoring sentences according to the extractor

11

slide-47
SLIDE 47

External info helps extractive summarization External info helps extractive summarization

Ablation results on validation set (ROUGE recall scores) PointerNet is Cheng and Lapata (2016)

12

slide-48
SLIDE 48

External info helps extractive summarization External info helps extractive summarization

Ablation results on validation set (ROUGE recall scores) PointerNet is Cheng and Lapata (2016)

12

slide-49
SLIDE 49

External info helps extractive summarization External info helps extractive summarization

Ablation results on validation set (ROUGE recall scores) PointerNet is Cheng and Lapata (2016)

12

slide-50
SLIDE 50

External info helps extractive summarization External info helps extractive summarization

Ablation results on validation set (ROUGE recall scores) PointerNet is Cheng and Lapata (2016)

12

slide-51
SLIDE 51

Results Results

75 b 275 b full

model ROUGE 1 ROUGE 2 ROUGE L (XNet is XNet+title+caption, PointerNet is Cheng and Lapata (2016))

13

slide-52
SLIDE 52

Results Results

LEAD 20.1 7.1 14.6 PointerNet 20.3 7.2 14.8 XNet (this work) 20.1 7.1 14.6

75 b 275 b full

model ROUGE 1 ROUGE 2 ROUGE L (XNet is XNet+title+caption, PointerNet is Cheng and Lapata (2016))

13

slide-53
SLIDE 53

Results Results

LEAD 20.1 7.1 14.6 PointerNet 20.3 7.2 14.8 XNet (this work) 20.1 7.1 14.6

75 b 275 b

LEAD 39.1 14.5 34.6 PointerNet 38.6 13.9 34.3 XNet (this work) 39.7 14.7 35.2

full

model ROUGE 1 ROUGE 2 ROUGE L (XNet is XNet+title+caption, PointerNet is Cheng and Lapata (2016))

13

slide-54
SLIDE 54

Results Results

LEAD 20.1 7.1 14.6 PointerNet 20.3 7.2 14.8 XNet (this work) 20.1 7.1 14.6

75 b 275 b

LEAD 39.1 14.5 34.6 PointerNet 38.6 13.9 34.3 XNet (this work) 39.7 14.7 35.2 LEAD 49.3 19.5 43.8 PointerNet 51.7 19.7 45.7 XNet (this work) 54.2 21.6 48.1

full

model ROUGE 1 ROUGE 2 ROUGE L (XNet is XNet+title+caption, PointerNet is Cheng and Lapata (2016))

13

slide-55
SLIDE 55

Human evaluation confirms the Human evaluation confirms the quality of generated summaries quality of generated summaries

14

slide-56
SLIDE 56

Human evaluation confirms the Human evaluation confirms the quality of generated summaries quality of generated summaries

model 1st 2nd 3rd 4th LEAD 0.15 0.17 0.47 0.21 PointerNet 0.16 0.05 0.31 0.48 XNet (this work) 0.28 0.53 0.15 0.04 Human 0.41 0.25 0.07 0.27 annotators ranked systems from best (1st) to worst (4th)

14

slide-57
SLIDE 57

Human evaluation confirms the Human evaluation confirms the quality of generated summaries quality of generated summaries

model 1st 2nd 3rd 4th LEAD 0.15 0.17 0.47 0.21 PointerNet 0.16 0.05 0.31 0.48 XNet (this work) 0.28 0.53 0.15 0.04 Human 0.41 0.25 0.07 0.27 annotators ranked systems from best (1st) to worst (4th) 0.53

14

slide-58
SLIDE 58

XNet for QA Selection XNet for QA Selection

15

slide-59
SLIDE 59

XNet for QA Selection XNet for QA Selection

attention over the question

15

slide-60
SLIDE 60

XNet for QA Selection XNet for QA Selection

attention over the question word overlap info inverse document frequency (IDF) inverse sentence frequency (ISF; Trischler et al., 2016) local ISF (ISF with considering no of sents in article)

15

slide-61
SLIDE 61

XNet for QA Selection XNet for QA Selection

attention over the question word overlap info inverse document frequency (IDF) inverse sentence frequency (ISF; Trischler et al., 2016) local ISF (ISF with considering no of sents in article)

15

slide-62
SLIDE 62

XNet for QA Selection XNet for QA Selection

attention over the question word overlap info inverse document frequency (IDF) inverse sentence frequency (ISF; Trischler et al., 2016) local ISF (ISF with considering no of sents in article)

15

slide-63
SLIDE 63

XNet for QA Selection XNet for QA Selection

attention over the question word overlap info inverse document frequency (IDF) inverse sentence frequency (ISF; Trischler et al., 2016) local ISF (ISF with considering no of sents in article)

15

slide-64
SLIDE 64

XNet for QA Selection XNet for QA Selection

attention over the question word overlap info inverse document frequency (IDF) inverse sentence frequency (ISF; Trischler et al., 2016) local ISF (ISF with considering no of sents in article)

15

slide-65
SLIDE 65

QA Selection Experiments QA Selection Experiments

16

slide-66
SLIDE 66

QA Selection Experiments QA Selection Experiments

four datasets

16

slide-67
SLIDE 67

QA Selection Experiments QA Selection Experiments

four datasets NewsQA SQuAD WikiQA MSMarco

16

slide-68
SLIDE 68

QA Selection Experiments QA Selection Experiments

four datasets NewsQA SQuAD WikiQA MSMarco leave out unanswered questions

16

slide-69
SLIDE 69

QA Selection Experiments QA Selection Experiments

four datasets NewsQA SQuAD WikiQA MSMarco leave out unanswered questions report scores for accuracy, Mean Average Precision (MAP) and Mean Reciprocal Rank (MRR)

16

slide-70
SLIDE 70

XNet variants XNet variants

model SQuAD WikiQA NewsQA MSMarco XNet 35.50 54.43 26.18 15.45 XNetTopK 36.09 55.00 29.41 17.04 XNet+ 79.39 57.08 47.23 23.07 LRXNet 85.63 63.29 55.17 32.92

XNet: only considering q XNet+: considers q, IDF, ISF, LocalISF XNetTopk: choose top k sentences based on ISF and then XNet LRXNet: ensemble <XNet, CompAggr (Wang et al., 2017), classifier considering word overlap scores> comparison of XNet variants reporting accuracy, similar patters for MRR and MAP

17

slide-71
SLIDE 71

Results Results

results for NewsQA consistent behavior

  • n SQuAD, WikiQA

and MSMarco consistent behavior

  • n all metrics

18

slide-72
SLIDE 72

Results Results

results for NewsQA consistent behavior

  • n SQuAD, WikiQA

and MSMarco consistent behavior

  • n all metrics

Wrd Cnt: word count Wgt Wrd Cnt: weighted word count

18

slide-73
SLIDE 73

Results Results

results for NewsQA consistent behavior

  • n SQuAD, WikiQA

and MSMarco consistent behavior

  • n all metrics

Wrd Cnt: word count Wgt Wrd Cnt: weighted word count PairCNN: encode (question, candidate sent) isolated CompAggr (Wang et al., 2017)

18

slide-74
SLIDE 74

Results Results

results for NewsQA consistent behavior

  • n SQuAD, WikiQA

and MSMarco consistent behavior

  • n all metrics

Wrd Cnt: word count Wgt Wrd Cnt: weighted word count PairCNN: encode (question, candidate sent) isolated CompAggr (Wang et al., 2017)

18

slide-75
SLIDE 75

Summary Summary

19

slide-76
SLIDE 76

Summary Summary

a robust neural model for sentence extraction that hierarchically encodes documents reads whole document before extraction attends to external information

19

slide-77
SLIDE 77

Summary Summary

a robust neural model for sentence extraction that hierarchically encodes documents reads whole document before extraction attends to external information attending to external information ( title and caption) helps creating better extractive summaries

19

slide-78
SLIDE 78

Summary Summary

a robust neural model for sentence extraction that hierarchically encodes documents reads whole document before extraction attends to external information attending to external information ( title and caption) helps creating better extractive summaries attending to question and word overlap metrics helps with question answer selection

19

slide-79
SLIDE 79

Summary Summary

a robust neural model for sentence extraction that hierarchically encodes documents reads whole document before extraction attends to external information attending to external information ( title and caption) helps creating better extractive summaries attending to question and word overlap metrics helps with question answer selection

considering external information helps considering external information helps

19

slide-80
SLIDE 80

Thank you! Thank you!

code and datasets available https://git.io/fbpI3

20