![[CLS] pooling does: uses the first token's embedding as the sentence representation](/_next/image?url=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2F7%2F79%2FBritish.coalfields.19th.century.jpg&w=3840&q=75)
CLS pooling: uses the first token's embedding as the sentence representation
Image: myself, CC BY-SA 3.0, via Wikimedia Commons
CLS pooling: uses the first token's embedding as the sentence representation
mean pooling often outperforms [CLS] for sentence similarity tasks
Mean pooling captures overall sentence meaning better than [CLS] token embedding
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?
1536-dim OpenAI text-embedding-3-large is used for: semantic search and RAG
Used for semantic search, RAG, and enhancing language models' understanding
the embedding layer does: maps discrete token IDs to dense learned vectors
Embeddings convert token IDs to dense vectors for neural network processing
Graph neural network
Graph pooling reduces graphs to single vectors for graph-level prediction
Swipe through 100 ML concepts daily
Open Pocket Polymath