Sentence embedding models

Pretrained language models · neural · 2019 · text

What it is

Transformers trained so a single pooled vector represents a sentence — bi-encoders with contrastive objectives.

When to use it

Semantic search, clustering, deduplication, RAG retrieval (Sentence-BERT, E5, BGE, GTE, Contriever).

Caveats

A single fixed-length vector loses detail for long or multi-topic texts. Models trained for similarity do not automatically work for other notions of relevance, they degrade outside their training domain, and scores from different models are not comparable.

Key ideas

  • Map a whole sentence or passage to one vector, so similar meanings land close together
  • Trained contrastively on pairs of related texts
  • Bi-encoder design: texts are embedded once and compared with cosine similarity
  • The basis of semantic search and retrieval

Related architectures

Original paper

Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks (2019, arXiv)

Browse all 198 architectures

The architecture landscape, in one place.

Two things get called “ML architecture”: the classical statistical model families, and the neural network wirings. Both are here, tagged by what they are and what data they eat.

Start from your problem

Architectures

0 shortlisted