Slide 17
Slide 17 text
Model: Hash Layer
17
Passage
Encoder
Question
Encoder
Passage Question
Reranking
Inner product
[1.1, -0.3, …, 0.1]∈ℝd [0.2, -0.7, …, 0.3]∈ℝd
Hash layer Hash layer
[1, -1, …, 1]∈{-1, 1}d [1, -1, …, 1]∈{-1,1}d
Hamming distance
Candidate generation
Hash layer is placed on top of each encoder
A continuous vector computed by each
encoder is converted to a binary code
Hash layer is implemented using
sign function: