02 · Neural Networks & Model Architectures · Topic 06
What is Attention?
Attention is a mechanism that lets a neural network weigh which pieces of information are most relevant to one another.
What is it?
For each part of the input, attention calculates how strongly it should use information from other parts.
The result is a context-aware representation: each token can carry information about relationships that matter for the current task.
Think of it like...
When reading “The trader closed the position because it was risky,” you look at other words to interpret “it” and decide which relationship matters most.
Attention does this using mathematical weights, not human awareness.
How it works
1 · Input TokensBreak the input into pieces the model can process.
2 · Create RepresentationsRepresent each token as numbers.
3 · Compare RelationshipsMeasure how relevant tokens are to one another.