3 ms·
Not sure there is any real lookup happening. Q,K are the same and sometimes even v is the same…
by naveen99 3y ago
Not sure there is any real lookup happening. Q,K are the same and sometimes even v is the same…
- toxik 3y agoQ, K, V are not the same. In self-attention, they are all computed by separate linear transformation of the same input (ie the previous layer’s output). In cross-attention even this is not true, then K and V are computed by linear transformation of whatever is cross-attended, and Q is computed by linear transformation of the input as before.