EntityQuestions icon indicating copy to clipboard operation
EntityQuestions copied to clipboard

how to train specialized question encoders?

Open wa2lina opened this issue 5 years ago • 1 comments

Could you please elaborate on how you train the specialized question encoders?

wa2lina avatar Oct 21 '21 12:10 wa2lina

Hi there, thanks for checking out our paper!

In this section, we consider a DPR model trained on a single dataset (in our paper, either Natural Questions or Probably Asked Questions) using the regular DPR training procedure. To create a specialized question encoder on a single domain, we consider a training/dev set for the new domain. We then fine-tune the existing model on the dataset for the new domain using the same DPR training procedure, but with the context encoder weights fixed. Specifically, we used a flag --fix_ctx_encoder in the DPR repo, which throws away any updates to the context encoder.

cdsciavolino avatar Oct 22 '21 00:10 cdsciavolino