Hacker News new | ask | show | jobs
by bluepoint 11 days ago
What is the catch of loop transformers? Is training harder? Or what was the reason that this was not tried first? I mean first you consider a for loop and if you find a reason you unroll it. For transformers it went backwards?

Edit: typos

4 comments

The motivation for the Transformer's stacked layers approach (as described by Jakob Uszkoreit whose idea it was) was linguist's sentence parse trees, where each layer of the Transformer corresponds to a layer/level of the parse tree.

The overall goal for what would become the Transformer was to create a new language modelling architecture that could take better advantage of the available parallel (GPU, etc) hardware, as opposed to RNNs which required sequential training of each time step. Uszkoreit's insight was that language is as much parallel as it is sequential, as can be seen from these parse trees where different branches (parts of the sentence) can be analyzed independently and in parallel, until they join together at a higher level.

So, this is why the Transformer consists of explicitly stacked layers, because it is mimicking the layers/levels of a parse tree.

The evolution (assuming this direction sticks) of the architecture to a looped vs pass-thru design could perhaps be thought as moving away from this original linguistic inspiration to more of a brain-like architecture, although in reality the motivation is probably more practical to reduce parameter count.

They are much less transparent from an A.I. safety perspective. Loops allow the transformer to reason in high-bandwidth, hard-to-interpret latent tokens instead of in human-readable CoT.
The catch is partially that it wasn't obvious that there was a reason to do it and now it seems there is.
> What is the catch of loop transformers?

On the inference side, it's primarily compute requirements: A 3x looping model needs ~3x as much compute as a normal non-looping model of the same size.

...But you'll hit bandwidth bottlenecks way before you can properly worry about it.