Real-Time Open-Domain QA with Dense-Sparse Phrase Index
Minjoon Seo*, Jinhyuk Lee*, Tom Kwiatkowski, Ankur Parikh, Ali Farhadi, Hannaneh Hajishirzi
* denotes equal contribution
Real-Time Open-Domain QA with Dense-Sparse Phrase Index Minjoon - - PowerPoint PPT Presentation
Real-Time Open-Domain QA with Dense-Sparse Phrase Index Minjoon Seo*, Jinhyuk Lee*, Tom Kwiatkowski, Ankur Parikh, Ali Farhadi, Hannaneh Hajishirzi * denotes equal contribution Open-domain QA? Some 1961 Model When was Obama born? 5 Million
Minjoon Seo*, Jinhyuk Lee*, Tom Kwiatkowski, Ankur Parikh, Ali Farhadi, Hannaneh Hajishirzi
* denotes equal contribution
Some Model
When was Obama born? 1961
5 Million documents 3 Billion tokens
Information Retrieval Reader (Model)
When was Obama born? 1961 Chen et al., 2017
TF-IDF, BM-25, LSA
Barack Obama … … (1961-present … … 44th President … … United States. Who is the 44th President of the U.S.? Nearest neighbor search When was Obama born? “Barack Obama (1961-present) was the 44th President of the United States.”
Phrase encoding
Question encoding
Seo et al., 2018
[-3, 0.1, …] [0.3, -0.2, …] [0.5, 0.1, …] [0.7, -0.4, …] [0.5, 0.0, …] [3.3, -2.2, …]
When was Obama born? Nearest neighbor search
[0.5, 0.1, …]
Model phrase question document
Query-Agnostic Decomposition
Question encoder Phrase encoder
…
When was Barack Obama born?
Reader Model 1961
When was Barack Obama born?
…
Query vector for document Dense
1961
Sparse
Retrieve & Read
(Chen et al., 2017)
Phrase Index Document Index
DenSPI
Ours
N = 60 Billion N = 5 Million
According Text Encoder (BERT) to the American Library Association
dot Start vector End vector Coherency vector Coherency scalar We want encoding for this phrase
phrase vector
[CLS] Text Encoder (BERT) When was Barack Obama born?
Start vector End vector Coherency vector Coherency scalar 1
question vector
Wikipedia
We want to be open-research-friendly
neighbor search is non-existent
Weaver (Raison et al., 2018) BERTserini (Yang et al., 2019) 42% EM 39% EM DrQA (Chen et al., 2017) 30% EM DenSPI (Ours) 36% EM 35 s/Q
Red color is query- agnostic. 0.8 s/Q 144x 44x Multi-step reasoner (Das et al., 2019) 32% EM MINIMAL (Min et al., 2018) 35% EM 115 s/Q
Q: What can hurt a teacher’s mental and physical health? … and poor mental health can lead to problems such as substance abuse. Teachers face several
their line of work, including occupational stress… Mental health Teacher Retrieve & Read (Chen et al., 2017) DenSPI (Ours)
Q: Who was Kennedy’s science adviser that opposed manned spacecraft flights? Kennedy’s science advisor Jerome Wiesner, … his opposition to manned spaceflight … Apollo program … and the sun by NASA manager Abe Silverstein, who later said that … Apollo program Although Grumman wanted a second unmanned test, George Low decided … be manned. Apollo program Kennedy’s science advisor Jerome Wiesner, … his opposition to manned spaceflight … Apollo program Jerome Wiesner of MIT, who served as a … advisor to … Kennedy, … opponent of manned Space Race … science advisor Jerome Wiesner … strongly opposed to manned space exploration, … John F. Kennedy
Q: What is the best thing to do when bored? I’m nearly bored to death Bored to Death (song) The twin tunnels were bored by … tunnel boring machine (TBM) … Waterview Connection It’s easier to say you’re bored, or to be angry, than it is to be sad. Bored to Death (song) When bored, she enjoys drawing. Big Brother 2 he can think of a much more fun thing he can do while on his back: painting. Angry Kid She is a live music goer, and her hobby is watching movies. Pearls Before Swine
http://nlp.cs.washington.edu/denspi
representations for encoding lexical, syntactic, and semantic information
exact search
hope future research can close the gap