NLP Domain Adaptation

I want to do similarity tasks using existing sentence transformer model like all-mpnet-base-v2. I have data which is unlabeled (need to check similarity between pairs). Is there a way to do domain adaptation on this model for my task? Thanks

Posted Jul 16, 2023, 2:51 AM UTC

13
DigThatData•
1
mcoolinhamOP•

Thanks for the link, was not aware of this. I am looking here: https://huggingface.co/docs/peft/task_guides/semantic-similarity-lora. This seems to suggest that I need labeled data for the training to happen. Is it possible to do this with unlabeled data? For example, I want to find the pair wise similarity between sentences in my domain, so I don’t have labeled data. (I am not interested in semantic search task, my goal is to generate more accurate sentence embedding which I can then use cosine similarity on to determine similarity).

1
DigThatData•

absolutely, that's just a function of the particular task they're using in that demo. you can use LoRA to finetune against an unsupervised training objective exactly the same way. Here's a demonstration using a different framework: https://github.com/cccntu/LoRAnanoGPT

1