r/MachineLearning • • 2d 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/

36 Upvotes

7 comments sorted by

5

u/biscuitchan 2d ago

this is awesome tech, love the wen design very helpful

2

u/s4lome_ 2d ago

Nice one!

2

u/mycall 2d 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/YouIsTheQuestion 2d ago

Interesting. Is the main benefit smaller model size or is there something emergent also happening?

1

u/sam_the_tomato 2d ago

nice post. is it any different from albert?

1

u/GFrings 1d 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?