Sentence Embeddings have a problem, the reason sometimes Dall-E2 fails
medium.com
medium.com
when i first looked up sentence embeddings several years ago i was quite surprised how often it was recommended to just take the mean of the word embeddings composing the sentence, as i thought it must be too simple and make this kind of mistake. (also, i just wasn't convinced that you could summarize a sentence's meaning by averaging the words it contains) but, this was before transformers, and i figured by now that sentence embeddings had gotten more sophisticated so I'm a little uncertain why modern, large models would have the same problem.
The techniques we have for pooling or decoding are so infantile in comparison to the encoders it's actually pathetic.
On the other hand, it means we have lots of publication opportunities for anyone who can do better...
But if we did have a way to calculate loss directly on sentence meaning, then you could train a much more intelligent pooling function. In principle. I'm just not sure how that loss function would look. Maybe question answering tasks are part of the key.
We forget this at our peril.
Sometimes we also forget that semantics also exist, but “you can’t argue with a zombie” was already posted recently …
High similarity scores between sentences is not the whole picture. A sentence and it’s negative/opposite are naturally very similar in topic and sentence structure. The mapping from text embedding to image needs to be aware of the most important dimensions of the embedding when constructing the output image.
[1] https://aclanthology.org/2020.acl-main.698/ [2] https://www.annualreviews.org/doi/pdf/10.1146/annurev-lingui...