LAMB (You et al., 2019) combines Adam's per-parameter scaling with a LARS-style layer trust ratio. The ratio compares the weight norm to the norm of the Adam direction, so each layer's step is sized relative to its weights.
Implement lamb_trust_ratio(w, r), the ratio of the weight norm to the update norm.
Divide the norm of the weights by the norm of the update direction.
No results yet
Run your code to check it against the examples, or submit to run every test.