![mean pooling often outperforms [CLS] for sentence similarity tasks](/_next/image?url=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2Fe%2Fe0%2FIran_econ.jpg&w=3840&q=75)
Mean pooling captures overall sentence meaning better than [CLS] token embedding
Image: These maps and charts are scanned from "Atlas of the Middle East", published in January 1993 by the U.S. Central Intelli, Public domain, via Wikimedia Commons
Mean pooling captures overall sentence meaning better than [CLS] token embedding
[CLS] pooling does: uses the first token's embedding as the sentence representation
CLS pooling: uses the first token's embedding as the sentence representation
mean pooling does: averages all token embeddings to get a sentence embedding
How can we summarize a whole sentence's meaning with just one number?
weight tying does in language models: shares embedding and output projection matrices
Ever wonder how machines understand the sequence of words in a sentence?
cosine similarity is preferred over dot product for normalized embeddings
Why do we need a special way to measure similarity in high-dimensional spaces?
384-dim all-MiniLM-L6-v2 optimizes: fast sentence similarity with 6 layers
All-MiniLM-L6-v2 optimizes fast sentence similarity with 6 layers
1536-dim OpenAI text-embedding-3-large is used for: semantic search and RAG
Used for semantic search, RAG, and enhancing language models' understanding
Swipe through 100 ML concepts daily
Open Pocket Polymath