Why masking the 1st hop?
yangky11 opened this issue · 2 comments
yangky11 commented
Hi,
Thanks for releasing the code! I have a minor question about this piece of code:
multihop_dense_retrieval/mdr/retrieval/criterions.py
Lines 127 to 130 in 62eb242
I'm wondering what's the purpose of masking the 1st hop? Does it help the final experimental results? Thanks!
xwhan commented
Hi @yangky11, the reason behind this was to avoid labeling the 2-hop supporting passage as negatives. Sometimes, the hop order might not be obvious and this is especially true for comparison questions. This gave some improvements on some initial experiments.
yangky11 commented
That makes sense. Thank you!