princeton-nlp / SimCSE

[EMNLP 2021] SimCSE: Simple Contrastive Learning of Sentence Embeddings https://arxiv.org/abs/2104.08821
MIT License
3.33k stars 505 forks source link

Word embedding and sentence embedding #213

Closed xiachenrui closed 1 year ago

xiachenrui commented 1 year ago

Hi, thanks for your great work !

Could you please tell me if there are some relationship between sentence embedding and word embedding ?

For example, if it is meaningful to use sentence embedding add/minus word embedding? (This is feasible in the text-image embedding space)

Best!

gaotianyu1350 commented 1 year ago

Hi,

In some sentence embedding model (for example, average of Glove word embeddings), there is a straightforward connection between sentence and word embeddings. However, in our case where sentence embeddings are from a transformer model output, we expect them to be different.

xiachenrui commented 1 year ago

Thanks for your reply 😁