1. Home
  2. Data Science
  3. Machine Learning Algorithms
  4. In machine learning, what is the primary purpose of the…

Added 12 Sep 2025

In machine learning, what is the primary purpose of the attention mechanism in transformer models?

  1. Weight initialization
  2. Dynamic focus on input parts Correct answer
  3. Gradient computation
  4. Regularization

Correct answer

B. Dynamic focus on input parts

14 views

MCQSEXAM

Explanation

The attention mechanism allows the model to focus on different parts of the input sequence dynamically.

Reference

Asked in: GATE CS, IIT JAM CS

https://arxiv.org/abs/1706.03762

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Machine Learning Algorithms MCQs

Practise all Machine Learning Algorithms MCQs

Similar MCQs