1. Home
  2. Data Science
  3. Deep Learning
  4. In a transformer model, self-attention allows each token to:

Added 2 Nov 2026

In a transformer model, self-attention allows each token to:

  1. Ignore word order completely in all layers
  2. Process input one character at a time
  3. Look only at the token directly before it
  4. Weigh how relevant every other token is Correct answer

Correct answer

D. Weigh how relevant every other token is

12 views

MCQSEXAM

Explanation

Self-attention computes weights between all token pairs, so the model captures long-range context in parallel. This is why transformers replaced RNNs in most language tasks.

Reference

Asked in: Data Science Interviews, GATE DA

Preparing for an exam?

Doubts & discussion

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

Ask a doubt about this MCQ

Shown after review. No links please.

More Deep Learning MCQs

Practise all Deep Learning MCQs

Similar MCQs