Question: What function does self - attention serve in Transformer models? It compresses the input sequence into a fixed - size representation. It allows the model
What function does selfattention serve in Transformer models?
It compresses the input sequence into a fixedsize representation.
It allows the model to selectively attend to different parts of the input sequence and compute the weighted sum of values based on similarity.
It captures syntactical and semantic meaning in the input sentence.
It converts words into word embeddings.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
