News for hackers. Stuff that matters.
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by HarHarVeryFunny on Monday November 23, 2026 @08:04AM (#50611040)
I love the transparency, or at least given technical details, that Ziphu provide - a refreshing change from the locked-down approach of the western companies, and an interesting glimpse into the direction of SOTA LLMs.

Looped Transformers are an obvious direction even if there are still problems to be worked out. The original Transformer is a bit like an unrolled for loop, and rather unnaturally pairs given sets of weights, both for attention and feed forward (knowledge) with different "layers" (aka loop iterations). Far more natural is to strive for something more like our brain's thalamo-cortical loop and association cortex, where "thought" is iterative and there are no restrictions as to what patterns/knowledge get applied when.

A similar idea has been explored before ("Universal Transformer", 2019), seemingly going nowhere, but perhaps "necessity is the mother of invention" and compute-starved Chinese companies are finding a way to make it work.

Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by abixb on Monday November 23, 2026 @08:26AM (#50611245)
For those who are in computing but not in AI, looped transformers are like chain-of-thought but for every token during every forward pass (based on the number of loops as spec'd in the model architecture), correct?

Does this mean we're opening up a whole new space of efficiency and performance gains even while keeping model sizes (chinchilla-optimal models) constant?

This is mind-blowing, though. Reality (the universe) just keeps on giving to our newfound tech tree branch of artificial neural networks.

Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by datadrivenangel on Monday November 23, 2026 @09:31AM (#50612260)
That sounds like speculative execution for regular computing
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by muddi900 on Monday November 23, 2026 @12:03PM (#50615223)
I can't believe I did not make that connection. This is a very good abstract model to think about this.
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by HarHarVeryFunny on Monday November 23, 2026 @01:51PM (#50617002)
I don't see any similarity.

Speculative execution goes hand in hand with branch prediction, and refers to speculatively executing the instructions that you think (based on branch prediction) will follow a branch before you get there, with the goal of keeping the execution pipeline full. If the branch prediction proves to be incorrect then you need to throw away those speculatively executed results and instead execute the instructions on the path that the branch actually took.

With a looped transformer, there is no speculation. You are basically choosing to put some layers in a loop rather than have them duplicated. For example if you previously had 6 layers A B C A B C then you could put (A B C) in a loop and execute the loop twice instead. There is no speculation here - you are always going to execute A B C A B C in either case. The benefit of using a loop is that by avoiding the duplication of layers you are avoiding duplication of parameters and so keeping the model smaller.

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?
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by Footprint0521 on Monday November 23, 2026 @09:52AM (#50612744)
This sounds like AI 2027 losing COT and control of models, but irl and in real time

But also I’m excited for the performance gains anyways

Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by mlmonkey on Monday November 23, 2026 @11:14AM (#50614288)
So many questions...

What does a Looped Transformer (LT) do for the loop during training? The output of a layer is typically garbage until it has done some iterations of training.

How is the output fed back into the input? Via a smoothing function ( e.g. gamma * Input + (1 - gamma)*Looped_Output as gamma goes from 1.0 to 0.5 ) ?

Do you loop back each layer? Or a block of layers??

Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by HarHarVeryFunny on Monday November 23, 2026 @11:48AM (#50614934)
> What does a Looped Transformer (LT) do for the loop during training? The output of a layer is typically garbage until it has done some iterations of training.

The same is true for any deep neural net - so you need to make sure that errors/gradients flow back to the lowest levels, which is what "residual connections" do.

> How is the output fed back into the input?

They show that on their architecture diagram (the "Damp Gates") - they appear to be blending (learning to?) the old and the new, similar to what an LSTM does.

> Do you loop back each layer? Or a block of layers??

In this case it's a block. Perhaps the idea is that it takes more than one layer to implement a useful group of transformations (e.g. it takes two layers to implement an "induction head", which is one of a Transformers emergent mechanisms).

We don't need to guess too much since they show us the architecture!

Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by nagaiaida on Monday November 23, 2026 @01:43PM (#50616850)
repeating a chunk of middle layers is relatively common in model merging; presumably it's pretrained unlooped first and then the section to loop is identified and trained further while looping
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by dadoum on Monday November 23, 2026 @08:29AM (#50611269)
(Zhipu iirc)
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by SubiculumCode on Monday November 23, 2026 @08:33AM (#50611316)
If they were in the lead, you would be naive to think that these models would still be open.
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by darkwater on Monday November 23, 2026 @08:38AM (#50611356)
Reversing the equation, if OpenAI were tailing chinese labs, they would be actually open then?
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by jrflo on Monday November 23, 2026 @09:09AM (#50611705)
Yep, just like Meta used to release open weights, then went to closed when they started to catch up.
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by stann on Monday November 23, 2026 @09:40AM (#50612466)
Meta did go closed source when they started to catch up. They did so in order to catch up. These are not the same things. The last models they released before closing up was not the best of models even then
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by yogthos on Monday November 23, 2026 @10:09AM (#50613100)
The only reason they did that was because Yann LeCun insisted on it as part of coming on board
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by WarmWash on Monday November 23, 2026 @09:42AM (#50612518)
Another element is that the Chinese labs are an arm of the government and used for state goals. Read another way, they work for the state, not investors, and money matters a lot less.
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by yogthos on Monday November 23, 2026 @10:09AM (#50613086)
lmfao and American labs aren't, were you born yesterday?
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by mannyv on Monday November 23, 2026 @10:21AM (#50613312)
There are different degrees of state control, just like there are different degrees of autism.
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by audience_mem on Monday November 23, 2026 @10:53AM (#50613895)
this comment is amazing
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by WarmWash on Monday November 23, 2026 @10:25AM (#50613387)
China and America have fundamentally different social/government structures.

Every business in China is owned by the state. Full stop. People confuse the loose leash that they afford some companies with the voluntary collaboration that American companies undertake with the US government.

But don't get it confused, one is fully under control of the state and the other has a business relationship with the state.

If you are unsure of this, you can look up the number of times Chinese companies have sued the state and won (spoiler: It's never happened and doesn't even make sense because they are the same thing)

Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by muddi900 on Monday November 23, 2026 @12:09PM (#50615332)
Voluntary seems suspect.

Pretty much every company that becomes big enough becomes a defense contractor. And most of them are supplying infrastructure needs, but active combat support.

For example, The Ball Corporation, originally a mason jar manufacturer, has a whole subsidiary to "Aerospace"

Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by yogthos on Monday November 23, 2026 @12:45PM (#50615958)
The state doesn't exist in a vacuum because it represents the interests of the ruling class, which in the US happens to be the capital owning class. It's a structural outcome of owners of capital being in control of investment, employment, production, and the media.

The oligarchs directly influence politics through campaign finance, lobbying, regulatory capture, and revolving door policy of politicians getting cushy jobs at large corporations.

So the American state is effectively a management committee for the American oligarchs. Its raison d'etre is to resolve conflict between different factions of billionaires in a peaceful fashion, while preserving the broader system of capital ownership that all capitalist factions depend on. The state operates strictly within limits set by the class that holds power in society.

Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by randysalami on Monday November 23, 2026 @01:45PM (#50616898)
I think this is the most succinct and correct take. Going to start citing this in the future. Thank you!
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by andai on Monday November 23, 2026 @09:26AM (#50612115)
> thalamo-cortical loop

Ah, of course! I've got one of those in my backpack!

As for "association cortex", is that kind of like what Qwen and DeepSeek did in recent releases, mapping sequences of tokens into vector space as a memory aid?

A separate subsystem I believe, which must have been helpful for some reason.. maybe it was transplanted from a much bigger model?

Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by HarHarVeryFunny on Monday November 23, 2026 @10:16AM (#50613212)
The thalamo-cortical loop refers to the connections in our brain between the neocortex and the thalamus, with the thalamus acting as kind of a patch panel that routes/loops activations back to different areas of the cortex.

The association cortex is that part of our cortex (brain) where activations originating from different sensory modalities come together, distinct from the sense-specific areas (visual cortex, auditory cortex, etc) where they are initially processed. This is what allows patterns/correlations across different senses to be recognized, such as lip-reading assisting with speech recognition.

I'm not aware of any transformer variants where different input modalities (text, audio, video) are processed separately, so it's all more like non-specific association cortex in that regard. There is not necessarily any advantage to initially processing different sensory inputs on their own before combining them - our brain probably just does this as a matter of plumbing - the bit of the cortex nearest to our eyes/optical nerve processes vision, etc.

Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by Eridrus on Monday November 23, 2026 @09:27AM (#50612168)
It's great that they share details, but the whole Looped Transformer thing seems to have started with a leak about OpenAI.

A lot of innovation really seems to leak out of OpenAI because people love to brag lol. Interestingly, nothing seems to leak from the Anthropic cult.

Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by andai on Monday November 23, 2026 @09:30AM (#50612235)
Maybe they think, if someone else steals our superior tech we're all gonna die! (At least, their stance on China appears to be consistent with that.)
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by HarHarVeryFunny on Monday November 23, 2026 @10:02AM (#50612970)
These sort of looped Transformer variants are not new, and not from OpenAI. The "Universal Transformers" paper I referred to, from 2019, is from Google, including Jakob Uszkoreit who was the one to come up with the Transformer idea in the first place.

https://arxiv.org/pdf/1807.03819

Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by Eridrus on Monday November 23, 2026 @04:07PM (#50619299)
I get that Schmidhuber invented everything and nothing is new under the sun, but it seems like OAI leaks about things working for them do in fact drive other labs' direction (MoE, Reasoning, Looped Transformers).
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by cchance on Monday November 23, 2026 @10:01AM (#50612935)
There was a time when google and openai were open to... ah the good ol days
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by bluepoint on Monday November 23, 2026 @10:31AM (#50613508)
What is the catch of loop transformers? Os training harder? Or what was the reason that this wan 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?
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by HarHarVeryFunny on Monday November 23, 2026 @11:06AM (#50614141)
The motivation for the Transformer 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.

Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by Ohentis on Monday November 23, 2026 @11:23AM (#50614461)
The catch is partially that it wasn't obvious that there was a reason to do it and now it seems there is.
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by gozucito on Monday November 23, 2026 @10:36AM (#50613599)
Didnt Kurzweil (fruitlessly) work on something like this (brain loops) at Google a decade ago?

Edit: Found it: https://www.youtube.com/watch?v=fBU7e3-ulR4

Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by Aachen on Monday November 23, 2026 @11:01AM (#50614035)
Behind that random ID: "Raymond Kurzweil - How Do Brains Function?" Oct 2020
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by Aurornis on Monday November 23, 2026 @11:00AM (#50614011)
> a refreshing change from the locked-down approach of the western companies, and an interesting glimpse into the direction of SOTA LLMs

If you haven’t seen it, Thinking Machines released an interesting looped model, open weights, last week with some interesting writeups:

https://thinkingmachines.ai/news/inkling-2-mini/

To be honest, I’m getting a little tired of the “eastern vs western” discourse seeping in to so much of the LLM discourse, especially when the east versus west distinction doesn’t exist as much as implied. In this case, looped model research came out of “the west” and a “western” lab was first to release an open looped model. Can we drop the whole east versus west thing and just appreciate the progress and research?

Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by HarHarVeryFunny on Monday November 23, 2026 @11:24AM (#50614489)
I was really referring to the open discussion/disclosure of architecture, rather that who's innovating, although some ideas may be obvious as a concept yet require considerable expertise to actually make work (as was the case with the Transformer itself).

In any case, it's well known that all neural network architectures, present and future, were originated by Schmidhuber :) In this case there is some truth to it given that his LSTMs were the first to tame RNNs and make them practical.

Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by Aurornis on Monday November 23, 2026 @02:02PM (#50617229)
> I was really referring to the open discussion/disclosure of architecture

So was I. This "west versus east" division you're drawing on this topic doesn't make sense if you've been reading the architecture discussions from around the world.

This was last week from a "western" lab also discussing their looped model's architecture: https://huggingface.co/blog/inkling2mini

Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by KerrAvon on Monday November 23, 2026 @03:20PM (#50618622)
I have been following this space, and corporately Inkling seems pretty unique. Can you name another?

I'm not trolling; I'm trying to come up with another western company as forthcoming, and having trouble. Is Poolside one?

Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by matt_d on Monday November 23, 2026 @05:06PM (#50620082)
NVIDIA Megatron has been pretty open:

- https://github.com/NVIDIA/Megatron-LM

- https://github.com/NVIDIA-NeMo/Megatron-Bridge/

Over the past few years they've been releasing papers that have been foundational for how TP and SP are being done today:

- Megatron-LM, https://arxiv.org/abs/1909.08053

- Reducing Activation Recomputation, https://arxiv.org/abs/2205.05198

and there's new ones, too, e.g., Scalable Training of Mixture-of-Experts Models with Megatron Core, https://arxiv.org/abs/2603.07685

Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by aktenlage on Monday November 23, 2026 @05:14PM (#50620158)
Aleph Alpha with their Kolibri 1 comes to mind.
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by janalsncm on Monday November 23, 2026 @03:57PM (#50619161)
> the locked-down approach of the western companies

Some Western companies. Thinking Machines, Nvidia, etc are pretty open in LLM development.