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 α/r\alpha / r and gives its reason. With Adam, tuning α\alpha is roughly the same as tuning the learning rate, if you also scale the starting values of AA and BB to match. So the authors set α\alpha to the first rr they try and never tune it. The scale means less retuning when you change rr.

Without the scale, a bigger rank takes a bigger step

Predict

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