r/MachineLearning • u/naftalinus • 5d ago
Research What a looped transformer actually does inside its loop [R]
Hey everyone — with looped transformers showing up in Inkling 2 Mini, varloop, and Z.ai's GLM-5.4 this week, I put together an in-depth visual post on how they actually work under the hood, with interactive diagrams, a minimal PyTorch implementation comparing Inkling's restart-and-message loop vs. GLM-5.4's chain-and-write-gate loop, and experiments opening up the two 26.4B open-weight models pass by pass.
Full post: https://drhb.github.io/blog/posts/looped-transformers/
38
Upvotes
5
u/biscuitchan 5d ago
this is awesome tech, love the wen design very helpful
3
u/mycall 5d ago
Oh neat, GPT-6.2 Astra says I can retrofit this onto Deepseek V4.1 Flash. I'll give it a try.
2
u/s4lome_ 5d ago
Nice one!
2
u/YouIsTheQuestion 5d ago
Interesting. Is the main benefit smaller model size or is there something emergent also happening?
1
u/sam_the_tomato 5d ago
nice post. is it any different from albert?
1
u/GFrings 4d ago
Are these looping architectures basically forcing the model to make us of its highly over parameterized weights space? For the same weights you already needed to achieve stable training dynamics, you can now draw longer activation pathways without increasing number of overall params?
1
u/open_formation 1d ago
Is there any nice scaling property in terms of temperature? Eg. if you learn a function to alter the temperature of the output to match as closely as possible the output of some other number of looped layers, does anything interesting happen?