BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

NVIDIA NCA-GENL Exam - Topic 6 Question 9 Discussion

Posted by Jerry on Aug 05, 2025 at 05:18 AM

In the transformer architecture, what is the purpose of positional encoding?

Suggested Answer: C

Positional encoding is a vital component of the Transformer architecture, as emphasized in NVIDIA's Generative AI and LLMs course. Transformers lack the inherent sequential processing of recurrent neural networks, so they rely on positional encoding to incorporate information about the order of tokens in the input sequence. This is typically achieved by adding fixed or learned vectors (e.g., sine and cosine functions) to the token embeddings, where each position in the sequence has a unique encoding. This allows the model to distinguish the relative or absolute positions of tokens, enabling it to understand word order in tasks like translation or text generation. For example, in the sentence 'The cat sleeps,' positional encoding ensures the model knows 'cat' is the second token and 'sleeps' is the third. Option A is incorrect, as positional encoding does not remove information but adds positional context. Option B is wrong because semantic meaning is captured by token embeddings, not positional encoding. Option D is also inaccurate, as the importance of tokens is determined by the attention mechanism, not positional encoding. The course notes: 'Positional encodings are used in Transformers to provide information about the order of tokens in the input sequence, enabling the model to process sequences effectively.'


Get Premium NCA-GENL Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
28 comments · newest first
OR
Orville 11 months ago
I’m surprised it’s so crucial for understanding context!
BR
Brittani 11 months ago
Nah, it's definitely about the order of tokens.
BI
Billy 11 months ago
Wait, I thought it was for semantic meaning?
DI
Dierdre 12 months ago
Totally agree, it's all about sequence info.
KA
Karrie 12 months ago
Positional encoding helps with token order!
MI
Mitsue 1 year ago
I’m confused because I thought it was more about the meaning of tokens, but now I’m not so sure. Maybe I should go with C too?
CH
Chana 1 year ago
I practiced a similar question, and I feel like positional encoding definitely relates to the sequence of tokens. C seems like the best choice to me.
SH
Shawn 1 year ago
I remember something about how it helps the model understand sequence, but I’m not entirely sure if it’s just about order or something else too.
IL
Ilene 1 year ago
I think positional encoding is about adding information on the order of tokens, right? So I might lean towards option C.
JO
Jody 1 year ago
I'm not entirely sure about this one. Is the purpose of positional encoding to remove redundant information from the input sequence, or to add information about the order of the tokens? I'll have to review my notes on the transformer architecture to be sure.
AL
Alaine 1 year ago
Okay, I think I've got this. The purpose of positional encoding is to add information about the order of each token in the input sequence, so that the model can understand the structure and context of the input. Option C seems like the best answer here.
HY
Hyun 1 year ago
Hmm, I'm a bit confused about this one. Is the purpose of positional encoding to encode the semantic meaning of each token, or to add information about the order? I'll have to think about this more carefully.
EM
Emerson 1 year ago
I'm pretty sure the purpose of positional encoding in the transformer architecture is to add information about the order of each token in the input sequence. That's option C, right?
RU
Rupert 1 year ago
B) To encode the semantic meaning of each token in the input sequence. But isn't that what the token embeddings are for? I'm so confused.
EL
Elenore 10 months ago
↳ replying to Rupert
But isn't B also important? Token embeddings do that.
AR
Art 11 months ago
↳ replying to Rupert
Yeah, I agree! Without it, the model can't understand sequence.
VE
Veronica 11 months ago
↳ replying to Rupert
I think it's C. Positional encoding is all about order.
MA
Mabelle 12 months ago
↳ replying to Rupert
True, but positional encoding specifically handles the order aspect.
JO
Johnathon 1 year ago
I believe positional encoding is important for the model to differentiate between tokens based on their position in the sequence.
TA
Tanesha 1 year ago
I agree with Joaquin. Positional encoding helps the model understand the position of each token in the sequence.
NI
Nidia 1 year ago
D) To encode the importance of each token in the input sequence. Wait, what? Isn't that what the attention mechanism is for?
RA
Rashad 1 year ago
↳ replying to Nidia
B) To encode the semantic meaning of each token in the input sequence.
TH
Theodora 1 year ago
↳ replying to Nidia
A) To remove redundant information from the input sequence.
ED
Edgar 1 year ago
Hmm, I think C is the way to go. Positional encoding is all about giving the transformer a sense of where each token belongs.
LI
Lizette 1 year ago
C) To add information about the order of each token in the input sequence. Gotta keep those tokens in line, you know?
TE
Tess 1 year ago
↳ replying to Lizette
A) To remove redundant information from the input sequence.
BR
Brendan 1 year ago
↳ replying to Lizette
C) To add information about the order of each token in the input sequence. Gotta keep those tokens in line, you know?
JO
Joaquin 1 year ago
I think the purpose of positional encoding is to add information about the order of each token in the input sequence.
0/2000 characters

Save Cancel