Posted by foohis 3 hours ago
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 different 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.
LLMs have layers of data, called weights. During inference, each layer gets computed once. Moving weights from HBM memory to the chip is a major bottleneck because to generate a token, you need to move an entire layer into the chip, compute once, move it out, move the next layer in. Hence, memory bandwidth has been the #1 bottleneck for inference.
A loop transformer optimizes this bottleneck. Instead of one layer being computed once, it will compute the same layer multiple times, increasing the model intelligence without relying memory bandwidth as much. Bandwidth is still important, but not as much anymore.
More intelligence is squeezed by using the GPU compute that is typically sitting idle during inference.
Looped transformers allow models to do more compute in the forward pass for the same total parameter budget (e.g., required VRAM to store the model). This doesn't inherently optimize the memory bandwidth bottleneck. A simple way to see this is that if we reuse a layer during the forward pass, we still need to fetch its weights from HBM again, which incurs additional memory bandwidth usage.
The main advantage is more computation for a fixed parameter count and model-weight VRAM footprint, not more computation for a fixed HBM bandwidth budget.
I assume it's how they get close in benchmarks but the difference is staggering when compounding over several days/weeks/months.
If you look at the "cost per task" metrics, OpenAI is very low because their models use far fewer reasoning and output tokens for a given task.
That's also why Anthropic doesn't get the same, they value the ability to somewhat audit the model via CoT in coherent English over possible efficiency gains. Considering OpenAI models recent issues from compaction during 5.5 and long running task deviation in all models since, which in part was responsible for the HF incident [1], it seems a wise policy.
I am fairly unconvinced that readable CoT makes a models approach to task solving easier to audit given more recent developments, but wouldn't be surprised if OpenAI in future models backtracks on this to some extent.
Because nowadays reasoning from US labs are pretty locked down, how much these models backtrack before the final output is difficult to say as an outsider.
[0] https://www.reddit.com/r/OpenAI/comments/1vd3wfp/gpt56_sol_r...
[1] https://openai.com/index/hugging-face-incident-and-the-road-...
Qwen 3.8FN has caveman-style CoT too. DS4.1F and Kimi are better, GLM is quite readable (and more verbose). It will be interesting to see what happens to the CoT in GLM 5.4 with the new looping. With the Inkling small looped model, more looping resulted in a cleaner CoT with trimmed dead ends, but did not hide any meaningful step; but obviously GLM is a very different starting point.
Also, I don't know why you're singling out Chinese models here. Look at Fable 5.2: "The output tokens per task just exploded. From 118k tokens (46k Answer/71k Reasoning) in 5.1 to 274k tokens (81k Answer/192k Reasoning) in 5.2." https://news.ycombinator.com/item?id=50432202
I suspect this comes down to the so-called anti-distillation changes, where they dropped retained reasoning so you can't see what the models are actually thinking. I say "so-called" because these changes conveniently showed up right after that paper came out on Opus 4.8's decoded reasoning, which proved the models were cheating on the benchmark questions they tested.
GLM and Kimi are well know to think a lot, but I never had this problem with minimax. At least not with M3, but things maybe have changed in M3.1?
turns out long reasoning may not be necessary for performance
And when GLM was doing it , a simple modification to the system prompt to tell it not to was sufficient.
They can have those tps reports on the manager's desk in no time at all.
By the way I agree that speed and consistent re-thinking of their own rationale is an issue in LLMs, but then I wonder: what is the meaningful difference between model A thinking for 4 minutes and model B thinking for 5? Both lead to the same hop on-hop off interaction style and to the same experience.
However, when I’ve tried out some community quants or new serving engines such as TensorFold (which doesn’t accept all the required sampler params), then I’ve encountered disorganized CoT. So it makes me wonder how much of these problems come down to issues with how the models are served.
Conversely, I do see this sort of behaviour with Flash Next, under sglang hosting, the official FP8 quantization, and the recommended sampling parameters. 3.8 Flash-Next appears to be a bit better about this problem than 3.8-27b, but beyond a certain level of task complexity the model becomes very introspective. This can also cross multiple turns; I've seen 100k+ tokens burned in a "plan, verify, re-plan, re-verify" loop before manual interruption.
Quantitatively, about 58% of all output tokens appear to be reasoning tokens, during agentic work where the average session had about 90k output tokens in total.
In addition to the verbose thinking, I also see reversion to RL-training recitation during thinking in 'boring' sections. Where one tool call follows another without much logic in between, more often than not I see a pro forma block like 'The user has repeated their last message. I must use the audit tool to accurately report my thinking.' Once in a while it decides it's solving a logic problem; I've seen the Pigeonhole Principle spontaneously invoked a few times.
Now foo.cpp:
<1000 lines>
Wait, no.
<the same 1000 lines with 1 change somewhere in line 359>
Let me reconsider.
<the same fucking 1000 lines>
OK, finalizing.
<the same 1000 lines>
Now write the file:
</thinking>
<TOOL CALL: write the 1000 lines>BTW I am a big proponent of open models. I have a homelab. I am also consistently annoyed when asking DS4.1 to change something simple and see it run around in circles over a trivial change that takes 10/15 minutes compared to a few seconds it takes for Opus/Sol to do it. I have 60tps on DS, so unless Opus is 1k tps the difference doesn't make sense (take note I'm not comparing capability, I know these are very different sized models, I'm looking at simple use cases, simple changes). I ran GLM5.3 getting 25tps as well. The speed (naively) seems to be enough, but since it's reasoning too much it's fairly useless unless you really want something complex and the time makes sense.
> It's not a problem when dealing with more complex stuff but constantly second guessing themselves even when working with the simplest of things
Just be mindful what you choose and don't leave reasoning on max all the time.
It’s cool that models can do this, but I think it also shows harnesses still have significant weaknesses around long term memory and context, necessitating models use what is essentially a code-as-long-term-memory hack.
The silly example is writing a line of Python to count the Rs in strawberry, but people have moved on from that. I saw a video where the guy pointed out they're getting better at chess, but not great yet. If he had asked it write a chess engine (or if it had chosen to do that on its own), the model would be amazing at chess.
Lean is showing the potential for using code in the math domain. We have more trust in the compiler than we do the models. What are other non-programming areas where we could have "compilers" for the model?
Even if we restrict it to code, I'd rather the model did some trial and error experiments on the side (possibly with a sub-agent) than read pages of its thinking process where it keeps second guessing itself to make zero errors on the first try.
They don't save training compute or inference compute either. The only real advantage I can see is that they allow continued pretraining.
And as for GLM, I'd argue that it's little more than weight sharing rather than looping in the usual sense, since its architecture is tightly coupled to the specific design of the second loop pass.
On a 30B model [...] with identical parameter counts and only ~10% more total training compute, the looped version showed clear gains.
Also, looped architecture translates to fewer weights which is good if your hardware is limited to older generations with less memory. Sounds like a no-brainer for China?None of these things were mentioned, they only talked about a safety review. GLM 5.x is a comparatively smaller model (vs. K3 or Qwen Max) and it's not obvious that even the raw weights would pose any such concern.
You can't abliterate a model that never learnt cyber testing. But this 5.4 release I think within a few weeks will be good for cyber stuff.
Why not just leave that up to the harness? I guess performance. But no benchmarks.