LLM architecture trend: Inkling 2 Mini uses a Looped Transformer
Models with a Looped Transformer pass through the same transformer layers multiple times, reusing the parameters as they do so.
(Image: pncha.me / Shutterstock.com)
- Dr. Christian Winkler
Recently, among large language models with open weights and therefore known architectures, Chinese models have stood out in particular for their increased focus on optimized attention architectures.
Since mid-November, however, the most popular model on Hugging Face has come from U.S.-based Thinking Machines. It stands out for its Looped Transformer. This is based on a technology that is not entirely new, but that more and more models are using today.
The basic idea behind the Looped Transformer
The basic idea is compelling in its simplicity. When large language models already have so many parameters, using each parameter only once per pass borders on waste. Looped Transformers do things differently (see Figure 1):
The diagram makes it look as though the token embeddings naively propagate through layers 2 to n multiple times, and that any standard LLM could be turned into a loop LLM by changing the execution procedure. Unfortunately, that doesn’t work, because the loops also contain gates that differ from one iteration to the next. Since this architecture also requires training the gates, the training process for loop LLMs differs from that of conventional models. The number of loops is also determined by training the gates (see Figure 2). Older models such as Nvidia’s Dory work somewhat differently and don’t train the gates.
Layer propagation with gates (Fig. 2)
The number of parameters doesn’t increase – or increases only negligibly in the gates –, yet the model makes better predictions for tokens. It doesn’t need more graphics memory for the weights, only for the key-value cache. But there are some drawbacks: The model takes longer to compute new tokens. The changed architecture doesn’t increase the model’s knowledge, because that knowledge is stored in the weights.
Putting the technology to the test
The Inkling 2 Mini model has particularly excited the LLM community. It’s highly capable for its size, with 26.4 billion parameters, 3.4 billion of which are active. Thinking Machines released the model as a checkpoint in mixed NVFP4 and MXFP8 precision, reducing its memory footprint to about 20 GB. Of its 24 layers, the model uses the first six and last six only once, while it runs through the middle 12 three times. That amounts to 48 effective layer passes (counting the loop layers multiple times) for each token prediction. Each additional pass through the loop layers uses about 1 billion parameters, so two extra passes result in an effective 5.4 billion parameters being used per token.
Videos by heise
In its published results, Inkling 2 Mini is on par with Qwen3.8-27B. Unlike Inkling, the three-month-old model is a dense model that has to perform significantly more computations. The somewhat older dense model Gemma 4 31B trails Inkling 2 Mini by a wide margin in almost all published benchmarks. In our own tests, the model generally works well, although its answers sometimes seem a little terse and occasionally contain words in other languages.
Inkling wasn’t the first popular model with a loop architecture; SenseNova-Loop-9B was. It has 32 layers, 24 of which it runs through twice, for a total of 56 layer executions. In practice, that means nearly 15 billion parameters contribute to each individual token prediction — more than with Inkling 2 Mini.
Z.ai’s new GLM-5.4 also has a loop architecture, but it’s significantly larger. Its first 26 layers make up the Prelude, while its final 24 layers form the Coda. The model runs through the 28 layers in between twice, for a total of 106 effective layers in each token prediction. The gates are implemented as token gates, so they let different numbers of results through depending on the token.
Z.ai has also come up with creative solutions for attention and the key-value cache. It arrived at the optimal loop configuration through experiments with smaller (30B) models. At 750 billion parameters, the final model is significantly leaner than Qwen4-Max or Kimi K3.1. Z.ai also reports performance figures: GLM-5.4 can generate up to 200 tokens per second when unburdened, and still manages 80 tokens per second under load. Local language models such as Qwen3.8-Flash-Next can already keep up in speed with consumer hardware.
Better predictions without additional parameters
Looped Transformers are an extremely interesting way to improve models’ token predictions without increasing the number of parameters and therefore the memory requirements. Commits to llama.cpp and Hugging Face’s Transformers library suggest that Nvidia is also planning to use these models on a larger scale, and has already made a version of Dory available to try.
One intriguing possibility is to intervene in the loop process itself. Some experts have successfully tried this, using new technologies that improve the model’s predictions even further. This example uses findings Apple newly published in October to further improve the Inkling-2-Mini model, which was released in November.
It could be interesting to use N-gram embeddings alongside a Looped Transformer in a model, adding further knowledge without requiring additional GPU memory. The long-awaited open Qwen4 models could be the first to do so.
This blog post offers a good visual explanation of the loop architecture.
(olb)