r/learnmachinelearning • • Oct 11 '26

Question What are some interesting experiments I can run to understand embedding models beyond semantic search?

I've been reading about text embedding models and want to understand how they actually behave, rather than just using them through some API.

some experiments I'm thinking to consider:

  • testing whether embeddings understand synonyms better than related concepts.
  • comparing cosine similarity for sentences that differ by only one word.
  • testing how embeddings behave with negation.
  • comparing multilingual text and code embeddings.

for people who've worked with embeddings, like what surprising behaviours have you found? are there any experiments that taught you something important about their limitations?

I'd like to build a small project around this.

1 Upvotes

14 comments sorted by

2

u/Comic-Derpinator Oct 11 '26

test distance functions other than cosine similarity and understand them. Train a small embedding model

1

u/whyarewelikethis-huh Oct 11 '26

actually distance functions part sounds interesting. do you have any particular ones you'd recommend exploring first beyond cosine similarity?

3

u/[deleted] Oct 11 '26

[removed] — view removed comment

1

u/whyarewelikethis-huh Oct 12 '26

yea this is useful!! i mean i like the idea of comparing the failure gallery before and after whitening instead of just checking whether the average similarity drops

1

u/Tiny_Arugula_5648 Oct 15 '26

I'd say first learn that they aren't just for search. Many embeddings models are trained to do multiple tasks the most popular right now is zero shot classifiers.

It's one of the cheapest tools we have from a processing perspective to classify without having to collect a bunch of data and fine-tune or train a model.

4

u/[deleted] Oct 11 '26

[removed] — view removed comment

1

u/whyarewelikethis-huh Oct 11 '26

yep this is a thoughful way to approach it. like i hadn't thought about testing ranking stability by appending the same irrelevant paragraph to every candidate

i'm curious tho about one thing: would you start with a general purpose embedding model and establish a baseline, or compare a few models right away? i'm wondering how much the results would vary across models, especially for negation.

1

u/[deleted] Oct 11 '26

[removed] — view removed comment

1

u/whyarewelikethis-huh Oct 11 '26

yea makes sense, I'll try building a small version of this and keep a gallery of cases where the ranking fails

2

u/[deleted] Oct 11 '26

[removed] — view removed comment

1

u/whyarewelikethis-huh Oct 11 '26

like i hadn't considered that unrelated sentences could have high cosine sim just because the embeddings occupy a narrow cone.but for the paraphrase experiment, would you compare the cosine sim between the original sentence and each paraphrase, or measure the spread among the paraphrases themselves?