-
Notifications
You must be signed in to change notification settings - Fork 796
Search pairwise ranking implementation #198
Conversation
@kmalik22 Thanks a lot for the PR. It looks like you want a two-tower model that can represent a query and a document and learns by using pairwise ranking loss. Have you checked out |
774944e
to
61f5ffb
Compare
Summary: Pull Request resolved: facebookresearch#198 Implements a pairwise ranking model for search. Training Datum: {search query, positive response, negative response} Loss function: pairwise ranking hinge loss: https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/35662.pdf Differential Revision: D13166103 fbshipit-source-id: f9ec4bc62dfab969089dbfb089e490b6721e4d4d
@hikushalhere, thanks for your comment. For SearchPairwiseRanking, the input is three documents: {query, response1, response2}. We want to find which response is better for the query in question. In this case (unlike PairClassification), the query is a document and needs to go through an embedding-->representation(LSTM, eg)-->MLP layers. Fundamentally, PairClassification is solving a classification problem, computing something like similarity(doc1, doc2) and mapping that to a label (eg., via a Softmax layer) Hope this makes sense! |
61f5ffb
to
dc41cae
Compare
Summary: Pull Request resolved: facebookresearch#198 Implements a pairwise ranking model for search. Training Datum: {search query, positive response, negative response} Loss function: pairwise ranking hinge loss: https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/35662.pdf Differential Revision: D13166103 fbshipit-source-id: f3e3db849ae57da4bb675c7ed6790e0d98fb2a34
dc41cae
to
395c536
Compare
Summary: Pull Request resolved: facebookresearch#198 Implements a pairwise ranking model for search. Training Datum: {search query, positive response, negative response} Loss function: pairwise ranking hinge loss: https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/35662.pdf Differential Revision: D13166103 fbshipit-source-id: 0fe0cfc44ab58fa3737c96d43b8e0e176140d657
395c536
to
d2026e0
Compare
Summary: Pull Request resolved: facebookresearch#198 Implements a pairwise ranking model for search. Training Datum: {search query, positive response, negative response} Loss function: pairwise ranking hinge loss: https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/35662.pdf Differential Revision: D13166103 fbshipit-source-id: bab8a626e63b9259126f034cba49e353b106500c
d2026e0
to
4f0cce5
Compare
Summary: Pull Request resolved: facebookresearch#198 Implements a pairwise ranking model for search. Training Datum: {search query, positive response, negative response} Loss function: pairwise ranking hinge loss: https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/35662.pdf Differential Revision: D13166103 fbshipit-source-id: a9a146cab03e97b44354f8e5d3fc6bb509978e11
4f0cce5
to
f7ba885
Compare
Summary: Pull Request resolved: facebookresearch#198 Implements a pairwise ranking model for search. Training Datum: {search query, positive response, negative response} Loss function: pairwise ranking hinge loss: https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/35662.pdf Differential Revision: D13166103 fbshipit-source-id: 0d5c2562f5e72e13493ddf139dac9e1783ce4640
f7ba885
to
8b7c31f
Compare
Summary: Pull Request resolved: facebookresearch#198 Implements a pairwise ranking model for search. Training Datum: {search query, positive response, negative response} Loss function: pairwise ranking hinge loss: https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/35662.pdf Differential Revision: D13166103 fbshipit-source-id: a52a813e112d1b19690dcfdd3cfcd38d8cfb80d7
8b7c31f
to
c525f72
Compare
Summary: Pull Request resolved: facebookresearch#198 Implements a pairwise ranking model for search. Training Datum: {search query, positive response, negative response} Loss function: pairwise ranking hinge loss: https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/35662.pdf Differential Revision: D13166103 fbshipit-source-id: e632904a2ed50d2d056eec3e3f1eda3bbc5146f7
c525f72
to
d9b094a
Compare
Summary: Pull Request resolved: facebookresearch#198 Implements a pairwise ranking model for search. Training Datum: {search query, positive response, negative response} Loss function: pairwise ranking hinge loss: https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/35662.pdf Differential Revision: D13166103 fbshipit-source-id: cdff270177d13ab6fb6bb49a6255744ecac00978
d9b094a
to
fcf4213
Compare
Summary: Pull Request resolved: facebookresearch#198 Implements a pairwise ranking model for search. Training Datum: {search query, positive response, negative response} Loss function: pairwise ranking hinge loss: https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/35662.pdf Differential Revision: D13166103 fbshipit-source-id: ea4d9633e29c7fc17f600db2de290fac09d835c3
fcf4213
to
a8488c9
Compare
Summary: Pull Request resolved: facebookresearch#198 Implements a pairwise ranking model for search. Training Datum: {search query, positive response, negative response} Loss function: pairwise ranking hinge loss: https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/35662.pdf Differential Revision: D13166103 fbshipit-source-id: b269de4cb6f7de04be0bd3549ab4e065a4097cae
Summary: Pull Request resolved: facebookresearch#198 Implements a pairwise ranking model for search. Training Datum: {search query, positive response, negative response} Loss function: pairwise ranking hinge loss: https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/35662.pdf Reviewed By: hikushalhere Differential Revision: D13166103 fbshipit-source-id: cb46c44d8633cdc8690493f8131c9dedf70468b1
a8488c9
to
ecbc611
Compare
Summary:
Implements a pairwise ranking model for search.
Training Datum: {search query, positive response, negative response}
Loss function: pairwise ranking hinge loss: https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/35662.pdf
Differential Revision: D13166103