Re:Differential Transformer
by smallnamespace on Tuesday October 08, 2024 @06:40PM
(#41782523)
> using max(0, exp(x)-1) instead of exp(x)
Won't this cause the gradient to vanish on the left half, causing problems with training?
I wonder if a different approach without that issue exists. For instance, using max(0, exp(x)-1) instead of exp(x) in the softmax attention formula. That way when the query is orthogonal to the key (or worse), it does not contribute.