Questions
FINTECH 540.01.Fa25 Final Exam
Single choice
ย On scaled dot-product attention and training stability of a transformer: ย I Without scaling by ๐ท ๐ , the variance of the dot product ๐ ๐ โค ๐ ๐ grows with dimensionality, producing large logits that can saturate the softmax. II Scaling by ๐ท ๐ primarily solves exploding-gradient problems inside the value projection ๐ . III The softmax-normalized matrix S o f t m a x ( ๐ ๐พ โค ) is applied row-wise, making each row represent how strongly a query attends to all keys. IV Scaled dot-product attention computes A t t e n t i o n ( ๐ , ๐พ , ๐ ) = S o f t m a x ! ( ๐ ๐พ โค ๐ท ๐ ) ๐ , and the resulting matrix always has the same dimension as ๐ . ย
View Explanation
Verified Answer
Please login to view
Step-by-Step Analysis
Letโs parse the statements about scaled dot-product attention and training stability in transformers, and test each one against the standard formulation.
Option I: 'Without scaling by Dk, the variance of the dot product q_n^โค k_m grows with dimensionality, producing large logits that can saturate the softmax.' This is correct in spirit. The unscaled dot product between Q and K tends to have variance that grows with the dimensionality Dk, which makes the distribution produced by softmax very peaky as Dk increases. Scaling by sqrt(Dk) is introduced precisely to counteract this by keeping the variance of QK^โค/โDk roughly constant regardless of Dk. The claim......Login to view full explanationLog in for full answers
We've collected overย 50,000 authentic exam questionsย andย detailed explanationsย from around the globe. Log in now and get instant access to the answers!
Similar Questions
Which innovation is at the core of the transformer architecture and enables modeling long-range dependencies effectively?
As defined in Attention is All You Need, what is the size of the cross-attention matrix between the encoder and decoder given the following English to Spanish translation: I am very handsome -> Soy muy guapo Please assume the following: d_k = d_q = 64 d_v = 32 Please ignore the <SOS> and <EOS> tokens. cross-attention means Attention(Q, K, V) NOTE: Please round to the nearest integer. [Fill in the blank] rows[Fill in the blank] columns
Which of the following attention models uses a subset of the input to derive the output, and can not be trained directly with gradient methods?
Why is the attention mechanism particularly suitable for modeling financial time series?ย
More Practical Tools for Students Powered by AI Study Helper
Making Your Study Simpler
Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!