You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have been doing some experimentation for getting sentence embedding using gpt2 for semantic similarity task. But failing to get desired results.
Gpt is left to right autoregressive language model, so thought it might be good at picking up context of the whole sentence.
I tried 2 approaches for getting representation of the sentence.
Mean pooling of embeddings of all input words present in sentence
Embedding of last word
But nothing seems to work well.
On the other hand have also tried the same with gpt3 API and the quality of embeddings seems good.
Evaluated the embeddings subjectively on the task of semantic similarity.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Hi, I have been doing some experimentation for getting sentence embedding using gpt2 for semantic similarity task. But failing to get desired results.
Gpt is left to right autoregressive language model, so thought it might be good at picking up context of the whole sentence.
I tried 2 approaches for getting representation of the sentence.
But nothing seems to work well.
On the other hand have also tried the same with gpt3 API and the quality of embeddings seems good.
Evaluated the embeddings subjectively on the task of semantic similarity.
Thanks in advance.
The text was updated successfully, but these errors were encountered: