1 of 77

Parametric and semi-parametric methods for knowledge acquisition from text

Yury Zemlyanskiy

December 9, 2021

1

2 of 77

Motivation

Knowledge acquisition = (extract + store + retrieve) knowledge

2

processing

extract

retrieve

Information�flow

store

3 of 77

Motivation

Modern NLP neural models do not have a separate memory and store knowledge in the parameters ⟹ unreliable (Cao et al., 2021) and require retraining to incorporate new information

3

processing

Textual data

Neural NLP model

Cao et al., Knowledgeable or educated guess? revisiting language models as knowledge bases. ACL/IJCNLP 2021

4 of 77

Key insight: Memory

Key hypothesis of this thesis: we can improve model’s knowledge acquisition abilities by adding a dedicated memory component.

4

Memory

The exact kind of memory depends on a task at hand.

processing

Textual data

Neural NLP model

5 of 77

What kind of memory?

Task: Knowledge base completion for a fixed set of entities based on relevant documents.

Parametric memory for aggregated information on each entity to reliably extract knowledge about the entity

5

Memory of�“Seven Samurai”

Do people generally like this movie?�

Is it “surreal”?�

Are there “multiple storylines”?

Review #1: This movie develops its power best if you don’t try to look out for the “real” and “true” events behind the four versions of the narration... shown in a very intelligent and artistic way, no silly …

Review #2: Just rented this, and at first I didn’t like very much, but then it starts to sink in for how good it is, the acting is great especially Toshiro Mifune, it was shot very good for an older movie... it’s #62 on the top 250

compress

6 of 77

What kind of memory?

Task: Question-answering over books or entire Wikipedia (open-domain)

Semi-parametric memory for individual entity-centric facts from text,

amendable without re-training

6

Memory

What is the nationality of the hero who killed Medusa?

compress

Neural network model

or

Greek

7 of 77

What kind of memory?

Task: Structured prediction (semantic parsing or machine translation) in low resource scenario

Set reminder to send happy b-day text to Clark on Friday

SetReminder(

Message(� text= happy b-day,

whom= Clark),

time= on Friday)

Semi-parametric memory of the individual training samples

Add another reminder for next week’s exam.

SetReminder(GetTodo(time= for next week, what=exam))

Send a happy birthday message to dad

Message(whom= dad, text= happy birthday)

7

Neural net

compress

Memory of

training sample #1

Memory ∈ Rd of

training sample #2

8 of 77

Outline

  1. Parametric entity memory
    • Zemlyanskiy et al., DOCENT: Learning Self-Supervised Entity Representations from Large Document Collections, EACL’21 (qualification exam)
  2. Semi-parametric entity memory
    • Zemlyanskiy et al., ReadTwice: Reading Very Large Documents with Memories, NAACL’21 (qualification exam)
    • de Jong and Zemlyanskiy et al., Mention Memory: incorporating textual knowledge into Transformers through entity mention attention, in submission to ICLR’22
  3. Semi-parametric task-specific memory
    • Planned work

8

9 of 77

  • Motivation
  • Completed work
    • Parametric entity memory
    • Semi-parametric entity memory
      • Intro: memory
      • Memory of large documents
      • Memory of Wikipedia
  • Planned work
    • Task-specific memory
  • Conclusion

9

10 of 77

Parametric entity memory

  1. Zemlyanskiy et al., DOCENT: Learning Self-Supervised Entity Representations from Large Document Collections, EACL 2021
  • Motivation
  • Completed work
    • Parametric entity memory
    • Semi-parametric entity memory
      • Intro: memory
      • Memory of large documents
      • Memory of Wikipedia
  • Planned work
    • Task-specific memory
  • Conclusion

10

11 of 77

Motivation

Task: Predict movie attributes based on information in movies reviews.

  1. Train neural model on reviews data jointly with leanable entity embeddings
  2. Fine-tune and apply the model on tag prediction task.

11

Entity embedding of�“Seven Samurai”

Review #1: This movie develops its power best if you don’t try to look out for the “real” and “true” events behind the four versions of the narration... shown in a very intelligent and artistic way, no silly …

Review #2: Just rented this, and at first I didn’t like very much, but then it starts to sink in for how good it is, the acting is great especially Toshiro Mifune, it was shot very good for an older movie... it’s #62 on the top 250

Train

MovieLens tag

nonlinear

multiple storylines

Japan

imdb top 250

surreal

cerebral

Fine-tune

12 of 77

Contributions

  • DOCENT -- new method to learn entity embeddings
    • Model joint distribution of entities and related text instead of conditional distribution of entity given text�
  • Experiments: MovieLens tag prediction
    • Entity memory matters -- outperform baselines without entity-specific parameters
    • DOCENT matters -- outperforms other methods to learn entity embedding
    • Generalizes well to unseens tags (treating them as arbitrary text)

12

13 of 77

Semi-parametric entity memory

  • Zemlyanskiy et al., ReadTwice: Reading Very Large Documents with Memories, NAACL’21�
  • de Jong and Zemlyanskiy et al., Mention Memory: incorporating textual knowledge into Transformers through entity mention attention, in submission to ICLR’22
  • Motivation
  • Completed work
    • Parametric entity memory
    • Semi-parametric entity memory
      • Intro: memory
      • Memory of large documents
      • Memory of Wikipedia
  • Planned work
    • Task-specific memory
  • Conclusion

13

14 of 77

Intro: memory�

  • Motivation
  • Completed work
    • Parametric entity memory
    • Semi-parametric entity memory
      • Intro: memory
      • Memory of large documents
      • Memory of Wikipedia
  • Planned work
    • Task-specific memory
  • Conclusion

14

15 of 77

Text as a virtual knowledge base

What is known about Perseus?

[Perseus] was the son of Zeus and Danaë, ...

… after [Perseus] married Andromeda founded a city and called it Amandra …

[Perseus] was a Greek hero who killed Medusa ...

Heracles was 4 generations later than [Perseus] ...

text as a virtual knowledge base�(Dhingra et al., 2020)

regular knowledge base

15

property name

property value

parents

Zeus, Danaë

wife

Andromeda

position held

king of Mycenae, Argos

...

...

16 of 77

Mention Encodings

  • A passage that contains entity mention describes� ⟹ a property of the entity� ⟹ or its relation to other entities
  • Train a Mention Encoder model to capture this semantic information from entity mentions into high-dimensional mention encodings

MentionEncoder(“[Perseus] was a Greek hero who bravely killed Medusa.”) ∈ Rd

16

17 of 77

Memory based on mentions

Collect mention encodings from the entire document into a Memory Table.

17

[Perseus] was a Greek hero who bravely ...�Perseus was a [Greek] hero who bravely ...�...[H. Simpson] is a character from US sitcom�H. Simpson is a character from [US] sitcom

...

MentionEncoder

All mentions in a document or a corpus

Memory Table:

number of mentions x d

18 of 77

Why memory table?

Memory table as knowledge representation has several advantages

  • Mention encodings could be fine-grained enough to be useful
  • Easy to add / remove / modify memory without re-training the model
  • Easy to integrate into a neural network using attention
    • grounded -- easier to inspect which information was used by the model

18

19 of 77

Contributions

Both: new method to train Mention Encoder using only textual data�(and entity annotations)

Memory

Memory

ReadTwice:

MentionMemory:

Use memory to help a neural network process long documents

Use memory to capture world knowledge about entities in a format compatible with a neural network

19

20 of 77

Memory of large documents

  • Zemlyanskiy et al., ReadTwice: Reading Very Large Documents with Memories, NAACL’21
  • Motivation
  • Completed work
    • Parametric entity memory
    • Semi-parametric entity memory
      • Intro: memory
      • Memory of large documents
      • Memory of Wikipedia
  • Planned work
    • Task-specific memory
  • Conclusion

20

21 of 77

Motivation: question answering

Task: Question Answering that require assimilating information from different sections of large inputs such as books or article collections.

Who does Aragorn take as his wife?

21

22 of 77

Existing methods: BERT

Goal: Output vector for every word representing word’s meaning within a sentence.

22

Frodo

couldn’t

throw

Transformer model

The

Ring

into

the

fire

23 of 77

Existing methods: Transfer learning

23

[MASK]

killed

Medusa

Transformer model

Perseus

Transfer

Pre-training stage:�Masked Language Model (MLM) task

Use pre-trained model as initialization

Fine-tuning stage:�Any downstream task of interest

Question Answering (QA)

Text Classification

Named Entity Recognition

...

24 of 77

BERT’s limitations

  • The length of the input is limited (~ 512 tokens)
    • due to high computational costs of the Transformer’s attention mechanism.�
  • harder to understand text without context

Inside the Sammath Naur, Frodo struggled to throw the Ring into the Cracks of Doom.

  • BERT struggles with long document (books) QA

Who does Aragorn take as his wife?�BERT: Éowyn

24

25 of 77

Motivation: long-range dependencies

Long-range dependencies are common and modeling them is crucial

Frodo couldn’t throw [MASK] into the fireBERT ⇒ ???

but

Frodo couldn’t throw [MASK] into the fire+ The Ring slowly gained control over Frodo BERTThe Ring

25

26 of 77

Motivation: long-range dependencies

Mention encodings as a way to model long range dependencies

Frodo couldn’t throw [MASK] into the fireBERT ⇒ ???

but

Frodo couldn’t throw [MASK] into the fire � + MentionEncoding(The Ring slowly gained control over [Frodo]”)BERTThe Ring

26

27 of 77

ReadTwice method

  • Split long text into shorter segments
  • 1st pass: Process segments independently with BERT model
  • Extract entity mention information into a memory table.
  • 2nd pass: Process segments independently now using with compressed information from other segments as an external memory

27

28 of 77

ReadTwice: 1st read

Frodo couldn’t throw [MASK] into the fire

The Ring slowly gained control over Frodo

28

BERT1

BERT1

[Frodo] couldn’t throw [MASK] into the fire

[The Ring] slowly gained control over Frodo

The Ring slowly gained control over [Frodo]

29 of 77

ReadTwice: 1st read

Frodo couldn’t throw [MASK] into the fire

The Ring slowly gained control over Frodo

29

BERT1

BERT1

[Frodo] couldn’t throw [MASK] into the fire

[The Ring] slowly gained control over Frodo

The Ring slowly gained control over [Frodo]

Memory Table: number of mentions x 768

30 of 77

ReadTwice: 2nd read

Frodo couldn’t throw [MASK] into the fire

The Ring slowly gained control over Frodo

30

Memory Table

Attention Over Memory Table

BERT1

BERT1

Frodo

...

throw

The

Ring

slowly

...

over

into

the

fire

Frodo

31 of 77

ReadTwice: 2nd read

Frodo couldn’t throw [MASK] into the fire

The Ring slowly gained control over Frodo

31

Memory Table

Attention Over Memory Table

BERT2

BERT2

BERT1

BERT1

Frodo

...

fire

The

...

Frodo

32 of 77

How to encode a mention?

32

[The

Ring]

gained

BERT1

control

over

[Frodo]

Linear

Linear

[The Ring]

[Frodo]

33 of 77

Pre-training

The model is trained end-to-end on masked language model task

  • Mention encoder learns to produce memories that are “useful” for the second read
  • Batch has 128 segments per document
    • segments = consecutive spans of 512 tokens
    • model can process documents up to 65k (≈ 128×512) tokens

33

34 of 77

Evaluation: QA over books

Dataset

  • NarrativeQA
  • Input: entire books or movie scripts
    • Average of 62,000 words per document

“Who does Aragorn take as his wife?”

Baselines

  • RoBERTa
    • a version of BERT model
    • process passages up to 512 tokens
  • ETC
    • a modern long-range version of BERT
    • process passages up to 5k tokens

34

35 of 77

Results: NarrativeQA

ReadTwice: New state-of-the-art for NarrativeQA

35

Model

ROUGE-L

BLEU-1

BLEU-4

METEOR

RoBERTa (us)

17.4 / 18.0

18.2 / 18.0

2.4 / 2.6

5.4 / 5.4

ETC (us)

18.3 / 18.8

16.1 / 17.2

2.4 / 2.7

5.4 / 5.4

ReadTwice (us)

22.7 / 23.3

21.1 / 21.1

3.6 / 4.0

6.7 / 7.0

Results on dev / test sets

36 of 77

Insight: Inter-segment memory matters

ReadTwice: It’s important to attend memories from other segments

36

Model

NarrativeQA (dev), ROUGE-L

NarrativeQA (dev), BLEU-1

ReadTwice

22.71

21.07

w/o inter-segment memory attention

21.93

18.39

37 of 77

Memory of Wikipedia

  • de Jong and Zemlyanskiy et al., Mention Memory: incorporating textual knowledge into Transformers through entity mention attention, in submission to ICLR’22
  • Motivation
  • Completed work
    • Parametric entity memory
    • Semi-parametric entity memory
      • Intro: memory
      • Memory of large documents
      • Memory of Wikipedia
  • Planned work
    • Task-specific memory
  • Conclusion

37

38 of 77

Motivation: open domain QA

38

What is the nationality of the hero killed Medusa?�BERT: England

39 of 77

Motivation

Goal: incorporate information from the English Wikipedia into BERT model

Existing solutions:

  • Large LM: store information in parameters� Compute-inefficient, frequent factual mistakes
  • Retrieve-and-read: retrieve and encode text� Limited text in BERT, apply entire BERT model for every retrieved passage

Proposal: Mention Memory -- retrieve and integrate mention encoding

39

40 of 77

TOME: Transformer over Memory

40

TOMEBlock

  1. For each mention in input passage
    1. Extract mention encoding
    2. Retrieve top-K relevant mention encodings from memory
    3. Combine with current input mention representations
  2. Apply L Transformer layers

41 of 77

High-level approach: 2 training phases

  • Phase 1: Mention encoder pre-training
    • Pre-train mention encoder model on masked language model (MLM) task
    • Generate memory table by encoding named entity mentions in Wikipedia.
    • Freeze the memory table�
  • Phase 2: TOME model pre-training
    • Perform second MLM pre-training with attention over frozen memory

41

Train Mention Encoder

Generate Mention Memory by encoding mentions in Wikipedia

Train TOME model

42 of 77

Pre-training mention encoder

Challenge: How to train Mention Encoder to produce useful representations?

  • Smaller-scale mention memory task with backpropagation
    • Train Batch-TOME with in-batch memory
  • Auxiliary tasks for Batch-TOME: (masked) entity coreference resolution

42

Batch: Related Wiki articles

Mention Encoder

Batch-TOME

In-batch memory

Objectives

43 of 77

Pre-training: insights

  • Batch-TOME and TOME trained on just MLM learn to attend to memories of the same entity: 55% and 41% average attention score.
  • Expected: mentions from the same entity often contain mutually relevant information

Batch-TOME and TOME attend to relevant mentions w/o any supervision

43

44 of 77

How good is the Mention Encoder?

Task: Classify a mention in a passage into several categories.

Dataset: Ultra Fine Entity Typing

[We] want to find the truth, regardless of what the truth is, ….,” chief Yemeni investigator, minister of sea and transport Said Yafaai, told the reporter … �⟹ detective, enforcement, government, authority, investigator, law_enforcement, police, agency, administration

Labels (total 10331):

  • Coarse-grained (9): person, group, organization, location, entity, time, object, event, place
  • Fine-grained (121): medicine, institution, subway, soldier, province, ...
  • Ultra-fine-grained (10201): front_bench, collective_agreement, business_administration, ...

44

45 of 77

Evaluation: Ultra Fine Entity Typing

MentionEncoder: outperforms BERT in capturing mention-level information

45

Model

Total, F1

Coarse-grained labels only, F1

Fine-grained labels only, F1

Ultra fine-grained labels only, F1

BERT

36.8

23.3

68.5

41.4

MentionEncoder

39.3

25.9

70.3

44.7

46 of 77

Evaluation: MentionMemory + TOME

Open-domain boolean QA / claim-verification tasks: FEVER, HoVeR

  • FEVER Example
    • Claim: Nikolaj Coster-Waldau worked with the Fox Broadcasting Company
    • Evidence: Nikolaj Coster-Waldau played a detective in the short-lived Fox television series New Amsterdam (2008)
  • HoVeR Example
    • Claim: Patrick Carpentier currently drives a Ford Fusion, introduced for model year 2006, in the NASCAR
    • Evidence 1: Ford Fusion is manufactured and marketed by Ford. Introduced for the 2006 model year, …
    • Evidence 2: Patrick Carpentier competed in the NASCAR Sprint Cup Series, driving the Ford Fusion.

46

47 of 77

Evaluation: open domain QA

47

Model

FEVER (test)

accuracy (%)

HoVeR (test) accuracy (%)

Entities as Experts

63.6

66.6

REALM

67.1

66.1

TOME-1

67.8

72.8

TOME-2

68.1

73.1

TOME-1 and TOME-2 have 1/2 TOMEBlocks (same total #parameters as BERT)

48 of 77

HoVer example: simple retrieval

48

49 of 77

Evaluation: open domain entity QA

49

Model

TriviaQA�(entity answerable only) accuracy, %

ComplexWebQuestions� accuracy, %

EntityQuestions accuracy, %

Entities as Experts

51.3

42.5

32.5

REALM

63.4

46.7

59.0

TOME-1

60.3

44.9

62.1

TOME-2

64.8

47.7

66.0

  • QA with entity as an answer: “What is the nationality of the hero who killed Medusa”
  • Predict entity answer by retrieving mention of that entity in final prediction layer

50 of 77

Insight: memory size matters

  • TOME is pre-trained with ~38M mentions
  • More memory we use during fine-tuning ⟹ the better the performance.

Memory size matters

50

51 of 77

Insights: Mention Encoder pre-training

51

Model

FEVER (dev), accuracy (%)

HoVer (dev), accuracy (%)

TriviaQA (dev)

accuracy (%)

ComplexWebQuestions (dev), accuracy (%)

TOME-1

70.5

73.6

50.8

44.9

TOME-1 trained on MLM only (w/o coref. resolution loss)

68.4

69.8

42.5

40.5

Auxiliary loss on mention encoder training is important to generate better memory

52 of 77

Insight: memory is amendable

52

Model

TriviaQA (dev)

accuracy (%)

ComplexWebQuestions (dev), accuracy (%)

TOME-1

17.4

16.4

TOME-1-unseen

17.6

16.7

  • Sample answer entities for questions from TriviaQA and ComplexWebQuestions dev sets.
  • TOME-1-unseen: exclude mentions of the entities from the Mention Memory
    • during TOME pre-training
    • during TOME fine-tuning on TriviaQA and ComplexWebQuestions
  • Evaluate TOME-unseen on the sampled questions using the full memory for evaluation only

Memory can be modified on the fly without re-training.

53 of 77

Contributions

  • ReadTwice project:
    • ReadTwice method -- use memory to improve processing of large documents
    • Achieve state-of-the-art results on a challenging NarrativeQA benchmark
  • MentionMemory project:
    • Use memory to represent world knowledge about entities for another model to use
    • Developed pre-training procedure and auxiliary loss to generate high quality memory
    • Experiments to investigate memory properties
  • Mention encoder:
    • can be trained using only textual data
    • can be used for other mention-oriented tasks (like mention typing)

53

54 of 77

Task-specific memory

  • Planned work
  • Motivation
  • Completed work
    • Parametric entity memory
    • Semi-parametric entity memory
      • Intro: memory
      • Memory of large documents
      • Memory of Wikipedia
  • Planned work
    • Task-specific memory
  • Conclusion

54

55 of 77

Motivation: Structured prediction

Semantic parsing

Machine Translation

Set reminder to send happy b-day text to Clark on Friday

Reminder(

Message(text= happy b-day, whom= Clark),

time= on Friday)

Low resource setting (<10K training samples) is common and challenging

55

56 of 77

Intuition

Intuition: A new input sample contains partial similarities with some train samples.

Add another reminder for next week’s exam.

SetReminder(� GetTodo(� time= for next week,� what= exam))

Send a happy birthday message to dad

Message(� whom= dad,� text= happy birthday)

Set reminder to send happy b-day text to Clark on Friday

SetReminder(� Message(� text= happy b-day,

whom= Clark),

time= on Friday)

56

Train sample

Train sample

New sample

57 of 77

Key hypothesis: memory

Add another reminder for next week’s exam.

SetReminder(GetTodo(time= for next week, what=exam))

Semi-parametric memory: encode training data in an explicitly decomposed way:

memories of individual samples or their parts

Send a happy birthday message to dad

Message(whom= dad, text= happy birthday)

57

MemoryEncoder

Memory of

training sample #1

Memory ∈ Rd of

training sample #2

58 of 77

Key hypothesis: memory

Hypothesis: Improve prediction accuracy by allowing the model to retrieve and re-combine multiple training samples from memory

  • Make the model better at compositional generalization
  • Better memoize in-frequent patterns and sub-labels

58

59 of 77

Method

The model is similar to the TOME model.

59

Training sample #1

Training sample #2

...

Send

...

dad

Initial Transformer model

i-th Transformer block

Decoder model

N blocks

60 of 77

Related work

  • Large sequence-to-sequence models: store information in parameters� Challenging to memoize infrequent patterns� Fails to generalize to unseen combinations

  • Retrieve-and-read: retrieve similar training samples and process with input� Limited in number of retrievals� Cannot recover from a retrieval mistake� Performs retrieval for an entire input

60

61 of 77

Plan / Expected Contribution

  • Start with the semantic parsing task
    • Datasets: TOP, TOPv2, MTOP and SB-TOP
    • Step 1: Exploratory experiments with oracle retrieval
      • Provide the model memories of training samples that we know are relevant.
    • Step 2: Joint model and retrieval training
  • Follow ups: machine translation task
    • Memory = a neural network version of phrase table in statistical phrase-based systems.

61

62 of 77

Conclusion

  • Motivation
  • Completed work
    • Parametric entity memory
    • Semi-parametric entity memory
      • Intro: memory
      • Memory of large documents
      • Memory of Wikipedia
  • Planned work
    • Task-specific memory
  • Conclusion

62

63 of 77

Conclusion

We propose and study several methods for knowledge acquisition from text.

We consider several challenging knowledge-intensive tasks arising in natural language processing.

We improve the knowledge acquisition abilities of modern neural networks by adding a dedicated memory component.

63

64 of 77

Timeline

  • Step 1: Exploratory experiments
  • Step 2: Joint model and retrieval training
  • Follow ups: machine translation task

64

Summer 2022

Spring 2022

Defense

July/August

Step 1

Follow ups

Step 2

65 of 77

Acknowledgements

Many thanks to my advisor Fei Sha and my co-authors

Docent: Sudeep Gandhe, Ruining He, Bhargav Kanagal, Anirudh Ravula, Juraj Gottweis, Fei Sha, Ilya Eckstein

ReadTwice: Joshua Ainslie, Michiel de Jong, Philip Pham, Ilya Eckstein, Fei Sha

Mention Memory: Michiel de Jong, Nicholas FitzGerald, William Cohen, Fei Sha

65

66 of 77

Thank you!

Questions?

66

67 of 77

Evaluation: MovieLens tag prediction

Model

MAP

AUC

MostPopularTags

0.06

0.80

TF-IDF

0.32

0.86

BERT

0.38

0.91

RELIC

0.39

0.96

DOCENT

0.45

0.98

68 of 77

Attention over memory

Differentiable equivalent of key-value memory lookup for neural networks.

68

key1

key2

...

keyN

value1

value2

...

valueN

query

query, keyi ∈ ℝK; valuei ∈ ℝV

69 of 77

Attention over memory

Differentiable equivalent of key-value memory lookup for neural networks.

69

key1

key2

...

keyN

value1

value2

...

valueN

query

attn1

i attni·valuei

attn2

...

attnN

attni =

exp(query·keyi)

j exp(query·keyj)

70 of 77

Transformer

70

Which

hero

killed

Medusa

?

Multi-head self-attention layer

MLP

MLP

MLP

MLP

MLP

Word embeddings

Input text

“Hidden” states

2-layer neural network

Contextualized word embeddings

71 of 77

BERT

Goal: Output vector for every word representing word’s meaning within a sentence.

71

Astronaut

Neil

Armstrong

Transformer model

put

money

in

bank

account

72 of 77

BERT

Idea: train the model to produce "general" embeddings via Mask Language Model task.

72

Astronaut

[MASK]

Armstrong

Transformer model

put

[MASK]

in

bank

account

Neil

money

73 of 77

Motivation: question answering

Google was founded in 1998 by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University in California. Together they own about 14 percent of its shares and control 56 percent of the stockholder voting power through supervoting stock. They incorporated Google as a privately held company on September 4, 1998. An initial public offering (IPO) took place on August 19, 2004, and Google moved to its headquarters in Mountain View, California, nicknamed the Googleplex. In August 2015, Google announced plans to reorganize its various interests as a conglomerate called Alphabet Inc. Sundar Pichai was appointed CEO of Google, replacing Larry Page who became the CEO of Alphabet.

Questions based on the passage:

What is IPO?initial public offering

Where is headquarter of Google?�Mountain View, California

Who is the current CEO?�Sundar Pichai

Challenging for modern neural networks when the document is very long (e.g., entire book).

73

74 of 77

Insight: Entity memory matters

Memory based on entity mentions outperforms other memories.

74

Model

TriviaQA (dev),�F1

HotpotQA (dev), F1

NarrativeQA (dev), ROUGE-L

NarrativeQA (dev), BLEU-1

ReadTwice

80.7

75.9

22.71

21.07

ReadTwice with CLS memories

80.6

75.32

20.89

17.80

ReadTwice with STS memories

80.4

75.39

21.08

18.38

75 of 77

Evaluation: open domain entity QA

75

Model

TriviaQA (dev)

accuracy (%)

TriviaQA (test)

accuracy (%)

TriviaQA (E-dev)

accuracy (%)

ComplexWebQuestions (dev), accuracy (%)

EntityQuestions (dev), accuracy (%)

Entities as Experts

42.3

53.4

51.3

42.5

32.5

REALM

55.8

67.1

63.4

46.7

59.0

TOME-1

50.8

61.1

60.3

44.9

62.1

TOME-2

54.6

65.8

64.8

47.7

66.0

  • Predict entity answer by retrieving mention of that entity in final prediction layer
  • 84% and 94% of questions are answerable by MM, rest marked as wrong

76 of 77

HoVer example: multiple retrieval

76

77 of 77

The End

77