News for hackers. Stuff that matters.
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by noddybear on Monday November 23, 2026 @09:37AM (#50612423)
A normal transformer has N layers, all of which are run forward for each token. A looped transformer is a bit different. Instead of N layers, it has K. These K layers are then looped, such that the output (not a token) of the first run of these K are fed back into the start of the K layer block. This looping happens until a fixed-point is achieved (i.e another loop results in a noop). At that point, a token is sampled. This means that tokens get different amounts of compute, depending on how challenging they are.
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by gmueckl on Monday November 23, 2026 @09:57AM (#50612844)
This is confusing to me: this is asserting that those K layers form a system of equations that can be solved using am iterative strategy until guaranteed convergence for each and every possible input sequence. Unless I am.missing a few fundamental mathematical properties aboutbnonlinear systems of equations, I don't understand how this can be true ober the entire input domain.
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by HarHarVeryFunny on Monday November 23, 2026 @10:46AM (#50613794)
As always with neural net training, you are just minimizing output (in this case prediction) errors over the training set, and hoping that this generalizes.

I don't know how they train these looped transformers - whether they take the lopping into account or not. For training recurrent (i.e. looped) neural networks in general, the historic approach has been to unroll them over some fixed number of timesteps (BPTT = back-propagation through time).

Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by __MatrixMan__ on Monday November 23, 2026 @10:01AM (#50612939)
If the layers are looped, what does it mean that they have an output?

I remember fixed points. An automorphism A on a set S has a fixed point s ∈ S if A(s) = s. If a noop corresponds to a fixed point, then are the elements of the set vectors and the output is a diff from the previous layers? Like, we're looping until we notice a cycle?

Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by HarHarVeryFunny on Monday November 23, 2026 @10:24AM (#50613378)
You could choose to loop a fixed number of times, or alternatively dynamically determine when to stop thereby achieving variable compute (more loops/compute/thought only when needed).

There has been concern that looping internally rather than emitting a token every N (transformer depth) layers reduces visibility and monitor-ability, so OpenAI have talked about severely limiting it to avoid this concern, and Zhipu are (at least initially) doing the same here - limiting it to a fixed two loops/iterations.

Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by AlotOfReading on Monday November 23, 2026 @10:15AM (#50613203)
That's remarkably similar to naive iteration in datalog. I wonder if there's an optimization equivalent to semi naive iteration.
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by eab- on Monday November 23, 2026 @10:22AM (#50613330)
> This looping happens until a fixed-point is achieved (i.e another loop results in a noop).

This is not true; in the article it is made abundantly clear that it runs 2x of 28 of its layers.

Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by drakythe on Monday November 23, 2026 @10:28AM (#50613460)
The 2x is arbitrary and in this particular case, is the fixed-point. I've seen models that do 3x loops for 3/4s of their layers. I suspect we'll see see loop counts increase as this becomes a more popular technique and may reach a point where one of the big labs is confident in their model's ability to loop "indefinitely" without becoming bogged down, reaching some logically measured point.
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by smallmancontrov on Monday November 23, 2026 @12:52PM (#50616082)
"Fixed point" in the context of iterative algorithms usually means "repeat a variable number of times until the output doesn't change." This is in stark contrast to the idea of repeating a fixed number of times. The looped models appear to repeat a fixed number of times.
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by dasyud on Monday November 23, 2026 @01:17PM (#50616467)
I think the point here is that a few fixed number of iterations is enough to approximate the fixed point for most tokens. It's kind of like how iterative algorithms like Newton-Raphson are used in practice in modern optimizers (Muon). Trying to get to the exact fixed point might end up adding noise.
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by sorokod on Monday November 23, 2026 @02:01PM (#50617224)
What guarantees an existence of a fixed point?