Attention
16 articles on BlogLLM
- Speculating Where to Look for Fast and Reliable Agentic MLLMs
I recently came across a paper titled "SpecLook: Speculating Where to Look for Fast and Reliable Agentic MLLMs" that caught my attention. As someone who works with large language…
- How does attention work, without the maths overload
Attention is how a model decides which words matter to each other. Every word looks at every other word in the sentence and picks up the ones that change its meaning. That is the…
- How do LLMs work, start to finish in 10 minutes
A language model does four things, in order. It cuts your words into tokens. It turns each token into a list of numbers. It lets the tokens listen to each other with attention…
- How Translation Went From Dictionary Lookup to Attention
Machine translation is one of the oldest tasks in AI, and this Stanford lecture tells its history in three acts: dictionaries, statistics, and neural networks. The first act…
- Attention Is All You Need, Explained
Before 2017, the standard way to translate a sentence in NLP was a recurrent neural network. You read the source sentence word by word, turn each word into a vector, and fold it…
- A Transformer Is a Network That Lets Its Inputs Talk to Each Other
Machine learning is learning a mapping from inputs to outputs. House features go in, a price comes out. Words go in, spam or not spam comes out. Neural networks learn that mapping…
- How Slot Attention Learns to See Objects
Look at a photo and you see objects, a gray cube here, a green cube there, a yellow cylinder. That feels obvious, but most computer vision models do not see the world that way…
- How DeepSeek Rewrote the Transformer
In January 2025, DeepSeek shocked the world with R1, a model that matched the best Western LLMs on a fraction of the compute. More surprising, DeepSeek published the weights, the…
- Attention Pulls Words Toward Their Meaning
Embeddings are the bridge between words and numbers. Every word becomes a list of numbers, a vector, and similar words get similar numbers. In a toy two-dimensional embedding…
- Attention Is Just Similarity, Measured Three Ways
The last video showed attention as gravity: words pull each other closer so the model can tell a fruit from a brand. This one does the math behind those moving embeddings…
- Attention Mechanisms in Transformers
As I was exploring the inner workings of transformers, I stumbled upon an interesting concept called attention mechanisms. Essentially, it's a way for the model to focus on…
- Understanding Transformers: The Attention Mechanism
I recently watched a video about large language models, and it really made me appreciate the beauty of the attention mechanism. It's a crucial part of transformers, which allow…
- The Magic of Attention in Neural Networks
Attention is a crucial mechanism that allows a neural network to focus on specific parts of the input data when making predictions. I found Josh Starmer's video to be incredibly…
- The Secret to ChatGPT's Magic: Attention and Transformers
I recently watched The AI Buzz and was blown away by the simplicity of ChatGPT's technology. As I dug deeper, I realized that its success lies in its use of attention and…
- The Matrix Math Behind Transformers
Transformers use matrix multiplication to calculate self-attention scores, which is a crucial component of their architecture. I was surprised to learn how transformers rely on…
- Decoder-Only Transformers: The Secret Sauce Behind ChatGPT
To understand how decoder-only transformers work, let's start with a simple example: I tested a decoder-only transformer on a chatbot task, and it generated responses that were…