Skip to main content

Blog

Learn About Our Meetup

5000+ Members

MEETUPS

LEARN, CONNECT, SHARE

Join our meetup, learn, connect, share, and get to know your Toronto AI community. 

JOB POSTINGS

INDEED POSTINGS

Browse through the latest deep learning, ai, machine learning postings from Indeed for the GTA.

CONTACT

CONNECT WITH US

Are you looking to sponsor space, be a speaker, or volunteer, feel free to give us a shout.

[D] Computing `q dot q` instead of `q dot k` when calculating scores for self-attention in Transformer

Going through the Transformer paper, and its implementation, I have had a question:

In the self-attention routine in the encoder, is it plausible to compute q dot q instead of q dot k when calculating scores for each input token?

I see that in the self-attention, the memory_antecedent = query_antecedent and q, k, v is computed (and trained) separately (c.f. compute_qkv in T2T).

Would utilizing the same q for the computation of scores (rather than having a separate k) seriously deteriorate the performance?

submitted by /u/kingsiguk
[link] [comments]