Reasoning-driven Question Answering
Daniel Khashabi
NYU
Sept, 2018
@DanielKhashabi
Exams
2
Q: Which physical structure would best help a bear to�survive a winter in New York State?
A: (A) big ears (B) black nose (C) thick fur (D) brown eyes
Standardized science exams (Clark et al, 2015):
Biology exams (Berant et al, 2014):
Q: What does meiosis directly produce?
(A) Gametes (B) Haploid cells
P: … Meiosis produces not gametes but haploid cells that then divide by mitosis and give rise to either unicellular descendants or a haploid multicellular adult organism. Subsequently, the haploid organism carries out further mitoses, producing the cells that develop into gametes.
P: … Polar bears, saved from the bitter cold by their thick fur coats, are among the animals in danger …
Linguistic variability
3
Which physical structure would best help a bear to survive a winter?
(A) big ears (B) black nose (C) thick fur (D) brown eyes
A given “meaning” can be phrased in many surface forms!
Thick fur helps a bear survive a winter.
A thick coat of white fur helps bears survive in these cold latitudes.
Polar bears, saved from the bitter cold by their thick fur coats, are among the animals in danger of extinction because of the global warming and human activities.
QA is a language understanding problem!
4
Which physical structure would best help a bear to survive a winter?
(A) big ears (B) black nose (C) thick fur (D) brown eyes
Polar bears, saved from the bitter cold by their thick fur coats, are among the animals in danger of extinction because of the global warming and human activities.
QA is fundamentally an NLU problem
preposition
comma
A single abstraction is not enough
verb
High-level view
5
Question Answering
Question Answering
Semantic Abstractions
Global Reasoning
as Global Reasoning
over Semantic Abstractions
Collections of semantic graphs
Create a unified representation of families of graphs
6
A single representation is not enough to capture the complexity of language
e.g named-entities
e.g co-reference
e.g semantic role labeling �(verb, preposition, comma)
e.g dependency parse
e.g tables
Our representation has nothing to do with the QA task. It reflects our understanding of the language
TableILP: IJCAI’16
- Surface word
- Label, e.g. subj.
- W2V representation
…
5
Consequently, we expect these representations to be useful for a range of tasks
Reasoning With a Meaning Representation
7
QA Reasoning formulated as finding “best” explanation – subgraph connecting Q to A via P
Question Instance
Question
Paragraph
Answer
Edges reflect similarity / entailment
This is a realization of
abductive reasoning!
(Incomplete)
Observations
Best explanation (maybe true)
Example subgraph
8
Question Instance
Question
Paragraph
Answer
(Irrelevant edges and graphs are dropped for simplicity)
SemanticILP, some details.
Translate QA into a search for an optimal subgraph
9
Formulate as Integer Linear Program (ILP) optimization
Objective: Capture what’s a valid reasoning, what’s preferred
Constraint: Incorporate global and local constraints
Evaluation: notable baselines
Thick white fur is an animal adaptation most needed for the climate in which biome?
(A) deserts (B) taiga (C) deciduous forest (D) tundra
10
Type constrained rules:�(X, helps in, Y), (Z, has, Y) => (X, helps in, Z)
Thick fur | helps in | cold winter |
Tundra biome | has | cold winter |
helps in
We compare with the best baseline on each domain.
However we use one version of our systems across all the datasets.
Results #1: Science Questions
11
(exam scores, shown as a percentage)
Higher is better
[AAAI, 2018]
Results #2: Biology Questions
12
A single system tested on different datasets.
More experiments
in the paper!
Using additinal supervision
[AAAI, 2018]
A Comment on Robustness
13
How robust are approaches to simple question perturbations�that would typically make the question easier for a human?
[IJCAI’16]
In New York State, the longest period of daylight�occurs during which month?
(A) March (B) June (C) September (D) December
[Jia&Liang,EMNLP’17, ...]
years
history
eastern
There must be some limits
There must be limits to multi-step reasoning
14
Reasoning problems that require longer reasoning tend to be harder
Assembling chains with more than 3-4 facts suffers from "semantic drift" (Fried et al, 2015, Jansen et al 2017)
Figure credit: �Peter Jansen
The impossibility of long-range reasoning
15
H1
(Conceptualization)
Language as communication channel�(with symbolic information)
Observations
H2
at least one of the hypotheses require d-step connectivity within a graph with n nodes
Theorem (informal)
If d∈Ω(log n)
no algorithm can confidently distinguish between H1 and H2.
and “sufficient” noise
[In Submission]
a small number
Lessons from “theoretical limitations”
16
There might be fundamental barriers for a class of reasoning systems.
Pushing it further
17
[NAACL, 2018]
https://cogcomp.org/multirc
Wrap up
18
System design
Limits of reasoning
Acknowledgment
19
Dan Roth (UPenn)
Tushar Khot (AI2)
Ashish Sabharwal (AI2)
Snigdha Chaturvedi (UCSC)
Michael Roth �(Saarland Univ)
Shyam Upadhyay �(Uepnn)
Peter Clark �(AI2)
Oren Etzioni �(AI2)
Erfan Sadeqi Azer (Indiana U)
Questions?
That’s it folks
20