QuestionQ3

VerifiedCore Machine Learning and AI Knowledge

In large language models, what is the role of the attention mechanism?

Explanation

Attention calculates normalized relevance weights over input tokens and uses them to form a weighted combination of their representations. This lets the model focus more on the input words that are most relevant to the current prediction. Positional information is supplied separately, rather than being captured by attention alone. Neural machine translation with attention | TensorFlow

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!