Home/AI/ML Notes/GenAI and LLMs Summary/Embeddings
⌂ Main Page
GenAI and LLMs Summary

Embeddings

Embeddings in deep learning, embedding quantization and truncation, Word2Vec and GloVe.

On this page

Embeddings in DL

Embedding Quantization & Truncation: substantial cost and latency reductions in retrieval and similarity search + fewer bits for storage. Example: [12, 1, -100, 0.3,] => [1,1,0,1,] (0 if negative):

Embedding Truncation: w/min. performance loss, faster retrieval, clustering, etc. Train model on domain.

Word2Vec

GloVe (Global Vectors for Word Representation): trained on non-zero entries of a global word-word co-occurrence matrix (tabulates how frequently words co-occur with one another in the corpus). Model combines global matrix factorization & local context window methods, leverages statistical information by training only on nonzero elements in a word-word cooccurrence matrix (not the entire sparse matrix or individual context windows)