News for hackers. Stuff that matters.
Re:Transformer Attention is off by one by leecarraher on Monday July 24, 2023 @02:41PM (#36852496)
The author says to add a unity vector to the context, i presume of each layer, to not mess with gradient calculations. But most modern DL frameworks compute the gradient for you, (i know this is true for JAX and Pytorch). Is it maybe that hand coded gradient for a well-known enough dl architecture like transformer is faster than letting the framework autodiff it?

Otherwise, i fear some of the 'magic' of transformer networks is that this amplification effect allows it to encode/memorize some results verbatim. And we often are seeing a heavily tuned internet regurgitator. So similar to the rise and fall of RNNs with attention which supposedly allowed them to focus on things, tended to often overfit despite super effective gradient descent functions.

Re:Transformer Attention is off by one by bearzoo on Monday July 24, 2023 @03:04PM (#36852833)
think the author is talking about having to fix the extra vector in V to be zeros and making sure to not compute/apply gradients to it