Pinned Tweet
1/
How should we structure the forward pass of a recurrent-depth model? And how should we train it?
From a fixed-point perspective of the forward pass we arrive at the Sparrow optimizer which is tailored to each parameter group and provides a drop-in replacement for Muon 🧵
Replying to @tmpethick @gowerrobert @ErnestRyu @jxbz @wen_kaiyue @orvieto_antonio @konstmish @aaron_defazio @FSchaipp @stochasticchasm @fpedregosa @Jianlin_S @leloykun @JohnCLangford @_arohan_ @tonysilveti
I also forgot to mention this great work of @timlautk which is similar in spirit nitter.cf/timlautk/status/208223…
We just posted a reorganized and formalized version of this work for a mathematical optimization audience, treating matrix-valued first-order methods as the primary object of study: optimization-online.org/?p=3…
I should also mention this timely tweet by @AlexShtf and the follow up of @peter_richtarik !
Halpern has a close connection to the resolvent
nitter.cf/AlexShtf/status/209852…
Prediction: the LLM community will notice that looped transformers are fixed point iteration of a learned operator, and will rediscover Halpern alg, resolvents, and other animals.. under new names (smth like "inverse residual looping").
Then they'll rediscover dynamical systems and well see "looping with auxiliary memory".
2
265
Yes, I think there is an important general lesson here:
One might think Occam's razor says "treat all matrices the same and give them spectral constraints!"
But architectures are complex so a tailored optimizer will be as well!
nitter.cf/JohnCLangford/status/2…
Occam's razor here is instead that there is a simply rule (Lipschitz) from which the choices follows
nitter.cf/tmpethick/status/21256…
Replying to @tmpethick
6/
Simply changing the activation changes the geometry!
ReLU² is particularly instructive:
- quadratic in the input ⇒ Jacobian linear in the input
- so the input needs to be bounded (pre-norm!)
- and W_1 should be row norm (2->∞) constraint
So: row + spectral constraint!
1
1
172
Naive Occam's razor also says "if we pre-norm Attention block in the residual stream we should surely also prenorm the MLP block".
Our derivation suggests that this is not the case in general!
nitter.cf/tmpethick/status/21256…
Replying to @tmpethick
7/
Same for gate and value matrices of SwiGLU, which make up 44% of all non-embedding parameters!
Gated attention and SSMs also naturally asks for a row norm constraint (but no spectral constraint... we will get back to this).
90









