reasoning in multi-hop reading comprehension · •graph-based reasoning (implicit) •question...

18
Reasoning in Multi-hop Reading Comprehension Yifan Gao 24/4/2019

Upload: others

Post on 28-Jun-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Reasoning in Multi-hop Reading Comprehension · •Graph-based reasoning (implicit) •Question Answering by Reasoning Across Documents with Graph Convolutional Networks, NAACL 2019

Reasoning in Multi-hop Reading ComprehensionYifan Gao

24/4/2019

Page 2: Reasoning in Multi-hop Reading Comprehension · •Graph-based reasoning (implicit) •Question Answering by Reasoning Across Documents with Graph Convolutional Networks, NAACL 2019

Reasoning in Multi-hop RC

• Graph-based reasoning (implicit)• Question Answering by Reasoning Across Documents with Graph

Convolutional Networks, NAACL 2019• Exploring Graph-structured Passage Representation for Multi-hop Reading

Comprehension with Graph Neural Networks• Bi-directional Attention Entity Graph Convolutional Network for Multi-hop

Reasoning Question Answering, NAACL 2019 Short

• Path-based reasoning (explicit)• Exploiting Explicit Paths for Multi-hop Reading Comprehension

Page 3: Reasoning in Multi-hop Reading Comprehension · •Graph-based reasoning (implicit) •Question Answering by Reasoning Across Documents with Graph Convolutional Networks, NAACL 2019
Page 4: Reasoning in Multi-hop Reading Comprehension · •Graph-based reasoning (implicit) •Question Answering by Reasoning Across Documents with Graph Convolutional Networks, NAACL 2019

WIKIHOP QA

• Answerable using a chain of reasoning crossing document boundaries

• 𝑆": set of supporting documents (also distractors)• 𝑞: query/question < 𝑠, 𝑟, ?>• 𝐶": set of candidate answers, 𝑎∗ ∈ 𝐶": correct answer

Page 5: Reasoning in Multi-hop Reading Comprehension · •Graph-based reasoning (implicit) •Question Answering by Reasoning Across Documents with Graph Convolutional Networks, NAACL 2019

Construct Entity Graph (offline)

• Node: Identify mentions in 𝑆" of entities of 𝐶" ∪ 𝑠• exact match• coreference

• Edge• DOC-BASED: co-occur in 𝑆/• MATCH: identical mentions• COREF: coreference chain• COMPLEMENT: nodes not connectedwith any of other relations

𝑆0

𝑆1𝑆2

DOC-BASED

COREF

MATCH

Page 6: Reasoning in Multi-hop Reading Comprehension · •Graph-based reasoning (implicit) •Question Answering by Reasoning Across Documents with Graph Convolutional Networks, NAACL 2019

Graph Encoding

• Query: Bi-RNN initialized with ELMo• Nodes: query-dependent mention encodings• ELMo representation• query-dependent

Page 7: Reasoning in Multi-hop Reading Comprehension · •Graph-based reasoning (implicit) •Question Answering by Reasoning Across Documents with Graph Convolutional Networks, NAACL 2019

Multi-step Reasoning

• Propagate information through the entity graph• relational-GCNs (Schlichtkrull et al., 2018)• Initial representation • After L layers of R-GCN

• Prediction

Page 8: Reasoning in Multi-hop Reading Comprehension · •Graph-based reasoning (implicit) •Question Answering by Reasoning Across Documents with Graph Convolutional Networks, NAACL 2019

Gated R-GCN

• First layer:• 𝑖th node in 𝑙 layer: • Updated message

• 𝑓6: parameterized function specific to an edge type 𝑟 ∈ 𝑅• Gating:

• Combination:

Page 9: Reasoning in Multi-hop Reading Comprehension · •Graph-based reasoning (implicit) •Question Answering by Reasoning Across Documents with Graph Convolutional Networks, NAACL 2019
Page 10: Reasoning in Multi-hop Reading Comprehension · •Graph-based reasoning (implicit) •Question Answering by Reasoning Across Documents with Graph Convolutional Networks, NAACL 2019

Background

• Graph-based reasoning: implicit, lack of interpretability• Propose a model extract paths from text and encodes the knowledge

Page 11: Reasoning in Multi-hop Reading Comprehension · •Graph-based reasoning (implicit) •Question Answering by Reasoning Across Documents with Graph Convolutional Networks, NAACL 2019

• Extract implicit relations• Compositions of relations

• For example:• (x, single from, y)• (y, released by, z)

• (x, record_label, z)

Page 12: Reasoning in Multi-hop Reading Comprehension · •Graph-based reasoning (implicit) •Question Answering by Reasoning Across Documents with Graph Convolutional Networks, NAACL 2019

Notations

• WIKIHOP dataset• Query < ℎ9, 𝑟, ? >• Answer candidates c0, c1, … , c<• Paths 𝑃 = 𝑝0, … , 𝑝@• 𝑝AB: 𝑗-th path for candidate 𝑐A, 𝑝AB = hF → e0 → cI

Page 13: Reasoning in Multi-hop Reading Comprehension · •Graph-based reasoning (implicit) •Question Answering by Reasoning Across Documents with Graph Convolutional Networks, NAACL 2019

Path Extraction

• Find passage 𝑝0 containing ℎ9• Find all named entities 𝑒/ in the

same/subsequent sentence of ℎ9• Find 𝑒/ in 𝑝1• Find 𝑐/ in 𝑝1• can be extended into k hops

𝒉𝒆

𝒆𝟏

𝒆𝟏

𝒆𝟐𝒆𝟐

𝒄𝟏

Page 14: Reasoning in Multi-hop Reading Comprehension · •Graph-based reasoning (implicit) •Question Answering by Reasoning Across Documents with Graph Convolutional Networks, NAACL 2019

Path-based Multi-Hop QA Model

Page 15: Reasoning in Multi-hop Reading Comprehension · •Graph-based reasoning (implicit) •Question Answering by Reasoning Across Documents with Graph Convolutional Networks, NAACL 2019

Path Encoding

• context-based encoding• implicitly encode the relation between ℎ9, 𝑒0 , (𝑒0Q , 𝑐A)

• passage-based• use the whole passages to compute the path representation• Question-weighted Passage Representation• Aggregate Passage Representation

Page 16: Reasoning in Multi-hop Reading Comprehension · •Graph-based reasoning (implicit) •Question Answering by Reasoning Across Documents with Graph Convolutional Networks, NAACL 2019

Path Scoring

Page 17: Reasoning in Multi-hop Reading Comprehension · •Graph-based reasoning (implicit) •Question Answering by Reasoning Across Documents with Graph Convolutional Networks, NAACL 2019

Results

Page 18: Reasoning in Multi-hop Reading Comprehension · •Graph-based reasoning (implicit) •Question Answering by Reasoning Across Documents with Graph Convolutional Networks, NAACL 2019

Remarks

• Two approaches for reasoning, KB2text, dialogue over KB, graph2seq• Path-based

• Knowledge Aware Conversation Generation with Reasoning on Augmented Graph• Step-by-Step Separating Planning from Realization in Neural Data-to-Text Generation,

NAACL 2019• Graph-based

• Text Generation from Knowledge Graphs with Graph Transformers, NAACL 2019