11/31
Part 3 of 6 · Scale, count and placementLearn
The alpha / r scale keeps one learning rate good at every rank
The last piece of the layer is the scale in front of the branch.
The scale multiplies the branch
# 2.0 for r = 4, alpha = 8
self.scale = alpha / r
y = self.base(x) + self.scale * (x @ self.A.T @ self.B.T)
The paper scales the update by and gives its reason. With Adam, tuning is roughly the same as tuning the learning rate, if you also scale the starting values of and to match. So the authors set to the first they try and never tune it. The scale means less retuning when you change .
Without the scale, a bigger rank takes a bigger step
No scale, and Adam's first step. How does a rank-64 adapter's step compare with a rank-16 one's?
Pick an answer above to see the rest