AI and LLMs · Junior · Question 41 of 75

What is the role of the transformer's attention mechanism?

Show the answer

Correct answer: Letting each token weigh how relevant other tokens are

Explanation

Attention is what lets models use context across long text, and it's a key reason for the transformer architecture's success.

Further reading

Problem with a question

AI and LLMs · Junior · question 41

Test yourself

Take the AI and LLMs · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz