
Tech, UX, photography | #Testing & #QA | QA Practice Manager @PractiaGlobal | My opinions are my own.
Buenos Aires, Argentina
Joined September 2009
- Tweets3.7K
- Following412
- Followers253
- Likes9K
Una explicación muy sencilla de qué son los "#embeddings", la magia detrás de los modelos de #IA (Todo el contenido que comparte Santiago es muy interesante--hilo abajo).
Para SkyNet, nuestras existencias humanas se reducirán a un embedding de tan solo 4 dimensiones 🤭
A 2-minute introduction to the fundamental building block behind Large Language Models:
Text Embeddings
The Internet is mainly text. For centuries, we've captured most of our knowledge using words, but there's one problem:
Neural networks hate text.
Judging by how good language models are today, this might not be obvious, but turning words into numbers is more complex than you think.
Imagine a 4-word vocabulary: King, Queen, Prince, and Princess.
The most straightforward approach to turning our vocabulary into numbers is to use consecutive values:
• King → 1
• Queen → 2
• Prince → 3
• Princess → 4
Unfortunately, neural networks tend to see what's not there. Is the concept of a princess four times as important as a king? How can we prevent the network from misreading these values?
We need a better representation.
Instead of using numerical values, we can use a group of ones and zeros to differentiate each word:
• King → [1, 0, 0, 0]
• Queen → [0, 1, 0, 0]
• Prince → [0, 0, 1, 0]
• Princess → [0, 0, 0, 1]
Notice how we create a different vector for each word by changing the position of the 1. This encoding fixes the problem of a network misinterpreting ordinal values but introduces a new one.
According to the Oxford English Dictionary, there are 171,476 words in use. If we wanted to represent the entire language, we would have to deal with huge vectors full of zeroes.
Here is where the idea of "word embeddings" enters the picture.
We can use a different model to learn vectors that represent words. These vectors will be smaller, dense, and will have a crucial characteristic:
Vectors representing related words should be close to each other.
The attached image is a two-dimensional chart where I placed the four words from our vocabulary. I organized them so the pair King/Queen and Prince/Princess are closer to each other. That's the crucial part!
But something magic happens.
Move on the horizontal axis from left to right. We go from masculine (King and Prince) to feminine (Queen and Princess). Our embedding encodes the concept of "gender"!
And if we move on the vertical axis, we go from young (Prince and Princess) to old (King and Queen). Our embedding also encodes the concept of "age"!
We can derive the new vectors from the coordinates of the chart:
• King → [3, 1]
• Queen → [3, 2]
• Prince → [1, 1]
• Princess → [1, 2]
The first component represents the concept of "age": King and Queen have a value of 3, indicating they are older than Prince and Princess with a value of 1.
The second component represents the concept of "gender": King and Prince have a value of 1, indicating male, while Queen and Princess have a value of 2, indicating female.
I used two dimensions for this example because we only have four words, but using more dimensions would allow us to represent many more concepts besides gender and age. For instance, OpenAI uses 12,288 dimensions to encode their vocabulary.
Embeddings are the backbone of generative AI models. They encode complex relationships in a compact form. However, we need to fine-tune these embeddings to tailor a model for specific tasks.
Fine-tuning adjusts the model to better suit particular applications, refining its responses to be contextually relevant. Fine-tuning a model is a complex, expensive process. It takes a lot of time, effort, and GPU computing. Fortunately, techniques like LoRA and QLoRA will help you fine-tune a larger model faster and cheaper than ever before.
If you have a model and want to fine-tune it, check @monsterapis' platform. Monsterapi.ai built the first platform that offers no-code fine-tuning of open-source models. They sponsored me and gave me 10,000 free credits for anyone who uses the code "SANTIAGO" in their dashboard.
If you want to read their latest updates, get free credits and special offers, join their Discord server: discord.com/invite/mVXfag4kZ…
1
70
Aquí Santiago explica de manera simple de cómo poner ese conocimiento en práctica con @cohere: teapawt.org/svpino/status/18044857…
I recorded this introduction to embeddings (perhaps the most essential concept behind how LLMs.)
But this is different from everything else you've seen:
We will generate embeddings from scratch using a Siamese Network and a contrastive loss.
This video is for 5 year olds.
14
Quedé gratamente sorprendido de lo maravillosamente simple que fue realizar una devolución en MercadoLibre.
Recientemente hice una devolución en Amazon USA desde BsAs: trámite con DHL como en ML años atras: imprimir yo papeles y pegarlos al paq. (cont)
@ML_Argentina
1
99
Hoy, en mi devolución con MELI, tan solo llevé el paquete, y con el QR en mi celu la persona del local en 1 minuto concluyó el trámite y me despidió. A los dos minutos ya tenia el dinero reembolsado en @mercadopago. Impecable todo; mucho más agil y simple que Amazon 😍🫶🏻 (cont)
1
21
Maldito @Santander_Ar! Siempre falta algo para que la experiencia del cliente sea digna. Aprendan de @brubankarg
1
32
Ya pasaron 35 años de la creación de la web, y los de @Santander_Ar son los únicos especímenes del planeta que vienen llamando “Usuario” a una CONTRASEÑA durante por lo menos los últimos 27.
#UXfail #UX #OnlineBanking
1
51
Podríamos decir que Chomsky está en su Forma Normal.
🔴 #AHORA | Desmienten la muerte del filósofo Noam Chomsky.
57
Después de más de una década como usuario de iPhone, el maldito predictivo aun sigue eligiendo palabras inusuales, o directamente incoherentes en el contexto, en vez de las alternativas obvias que uso frecuentemente para redactar. Ya podrían aprovechar los adelantos en IA.
2
1
104
Y después de 30 años de pelearse con las listas en celdas de Excel, llega el autocomplete 💪🏻💪🏻💪🏻:
Speed up data entry and validation with AutoComplete for dropdown lists in Excel for Windows insider.microsoft365.com/en-…
56
Pago de VEP. Pesadilla en mi otro banco. Facilísimo en @brubankarg!!
Los amo @PabloSanchez 🫶🏼
Explicación plausible de lo que está pasado en Twitter:
“Twitter se está enviando a sí mismo unas 10 peticiones por segundo para tratar de obtener contenido que nunca llega porque la última genial innovación de Elon es bloquear la posibilidad de que la gente pueda +
1
1
69
Unpopular opinion: I just finished setting up a Mastodon account. It was a terrible #UX, and it continues to be as I start using it. Blocking errors everywhere, UI elements not behaving as expected, unnatural user flows. +
1
1
70
+ Like in most open-source software, #UX is still relegated to a secondary role in the product's construction. At this stage of the O-S evolution it’s about time to prioritize that aspect too.
30
Deleznables esos indicadores de progreso en una pantalla, que suben de 1% a 89% en segundos y luego se clava como media hora, dejándote sin saber si sigue andando, se colgó todo, o qué.
Debería durar cada punto porcentual el mismo tiempo. #ux
34
No sé, @TwitterLatAm, pero no creo que tampoco sea como para ponerse así.
49
Como early -EARLY desde la pancita- adopter de @brubankarg, me había perdido la oportunidad del unboxing de la tarjeta con este packaging espectacular:
3
597

![Vector encodings for a 4-word vocabulary: • King → [3, 1] • Queen → [3, 2] • Prince → [1, 1] • Princess → [1, 2]](https://pbs.twimg.com/media/F_s3odBXMAAkbhg.jpg?name=small&format=webp)














