Skip to content
Home
Artificial Intelligence
Generative AI
What is "positional encoding" in Transformers?
What is "positional encoding" in Transformers?
A
Encoding tokens
B
Injecting position information
Correct answer
C
Encoding attention
D
Encoding gradients
Correct answer
B. Injecting position information
10 views
⚔️
Challenge a friend on Generative AI
Same MCQs, timed, live leaderboard. Send the link on WhatsApp – no sign-up needed.
Create challenge
Explanation
Positional encoding injects sequence order information since attention is permutation-invariant. Source: General Transformer knowledge (aligned with FBISE curriculum).
Reference
Asked in: General
Doubts & discussionNot sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ
‹ Previous MCQ What is "grouped-query attention" (GQA)? Next MCQ › What is "RoPE"?
× Get 10 free MCQs every day for PPSC, FPSC & NTS preparation
MG Ask MCQ Guru Need help? Find an MCQ, a short question, a test or your certificate. Just ask.×