QuestionQ3Verified/Core Machine Learning and AI KnowledgeCopy linkReport a problemAsk AstroTutorSave questionIn large language models, what is the role of the attention mechanism?ATo measure the importance of the words in the output sequence.BTo determine the order in which words are generated.CTo capture the order of the words in the input sequence.DTo assign weights to each word in the input sequence.Show AnswerAnswerExplanationAttention 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 | TensorFlowLearn moreNeural machine translation with attention | TensorFlowShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion