How does Self-Attention work?
The mechanism computes three projections of the input (queries, keys, values), then for each position takes a weighted sum of all positions' value vectors where the weights are softmax-normalized dot products between the position's query and all keys. Self-attention enables the model to dynamically focus on relevant context regardless of distance, capturing long-range dependencies that recurrent networks struggled with. The platform strengthens ent