Building a Smart Question Answering System from Scratch
Minjoon Seo PhD Student University of Washington
Building a Smart Question Answering System from Scratch Minjoon - - PowerPoint PPT Presentation
Building a Smart Question Answering System from Scratch Minjoon Seo PhD Student University of Washington UWNLP What is Question Answering System? Q: Which airports are in New York City? There are four airports in NYC: JFK, LeGuardia,
Minjoon Seo PhD Student University of Washington
Michael Jordan Professor of Computer Science UC Berkeley
Question Answer Which airports are in New York City? JFK, LeGuardia, Newark, and Stewart Which NFL team represented the AFC .. Denver Broncos Who wrote Harry Potter?
… …
Q: Which NFL team represented the AFC at Super Bowl 50? A: Denver Broncos
Attention Modeling MLP + softmax 𝑗" = 0 𝑗% = 1 Donald Trump is the president of the U.S. Who leads the United States? Attention
Modeling Layer Output Layer Attention Flow Layer Phrase Embed Layer Word Embed Layer
x1 x2 x3 xT q1 qJ
LSTM LSTM LSTM LSTM
Start End
h1 h2 hT u1 uJ
LSTM + Softmax Dense + Softmax
Context Query
Query2Context and Context2Query Attention Character Embed Layer
g1 g2 gT m1 m2 mT
Facebook, Google, …
Q: Which NFL team represented the AFC at Super Bowl 50?
“Where was Barack Obama born?” Search Alg. Document 1 Document 2 Document n QA System “Hawaii, USA” …
Sandra got the apple there.
!" !" #"
"
#"
$
%"
"
%"
$
Where is Sandra?
Sandra dropped the apple
!$ !$ #$
"
#$
$
%"
"
%$
$
Daniel took the apple there.
!& !& #&
"
#&
$
%"
"
%&
$
Where is Daniel?
Sandra went to the hallway.
!' !' #'
"
#'
$
%"
"
%'
$
Where is Daniel?
Daniel journeyed to the garden.
!( !( #(
"
#(
$
%"
"
%(
$ → *
+
Where is Daniel?
Where is the apple?
#
garden Where is Sandra?
∅ ∅ ∅ ∅
0.5 1 1.5 2 2.5 3 3.5 4 4.5 MemN2N (FAIR) DNC (DeepMind) GMemN2N DMN+ (MetaMind) QRN (Ours)
Avg Error (%)
Avg Error (%)
Where did Super Bowl 50 take place ?
Super%Bowl%50%was%an%American%football%gam e% to%determine%the%champion%of%the%National% Football%League%(%NFL%)%for%the%2015%season%.% The%American%Football%Conference%(%AFC%)% champion%Denver%Broncos%defeated%the% National%Football%Conference%(%NFC%)%champion% Carolina%Panthers%24–10%to%earn%their%third% Super%Bowl%title%.%The%game%was%played%on% February%7%,%2016%,%at at%Levi% i%'s%Stad adium%in in%the% Sa San%Francisco%Bay%Area%at%Sa Santa%Clara%,% Ca California .%As%this%was%the%50th%Super%Bowl%,% the%league%emphasized%the%"%golden% anniversary%"%with%various%goldZthemed% initiatives%,%as%well%as%temporarily%suspending% the%tradition%of%naming%each%Super%Bowl%gam e% with%Roman%numerals%(%under%which%the%game% would%have%been%known%as%"%Super%Bowl%L%"%)%,% so%that%the%logo%could%prominently%feature%the% Arabic%numerals%50%.
at, the, at, Stadium, Levi, in, Santa, Ana [] Super, Super, Super, Super, Super Bowl, Bowl, Bowl, Bowl, Bowl 50 initiatives
January September August July May may
effect and may result in the state may not aid
Opening in May 1852 at debut on May 5 , from 28 January to 25 but by September had been