Rajandran R Creator of OpenAlgo Sketchmaker, RagZ. Building GenAI Applications. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Now the recent curiosity on building Trading AI Agents.

What the Looped Transformer Architecture Changes in AI Models

6 min read

Watercolour banner of looping AI layers, a GPU and a trading desk in a server room, for the looped transformer architecture

A looped transformer architecture does something simple that changes the economics of large language models. Instead of stacking many unique layers that each look at the data once, it reuses the same layers several times, so the model gets more thinking steps from fewer parameters. Two new releases this month, Inkling 2 Mini and GLM-5.4, put that idea into production-scale models. Here is how it works, how it differs from a standard transformer, and why the cost, memory and GPU story matters to traders and investors.

What a standard transformer does

Think of a standard transformer as a research desk with 24 specialist analysts. One reads price action, one reads volume, one reads news tone, and so on. A chart, an earnings note or a prompt comes in. Each analyst reads the file once, writes a short note, and hands it on. When the file reaches the end of the line, the desk prints the next word and starts over.

That is the design Vaswani and colleagues introduced in 2017, and it still sits under most models in daily use. To get a deeper read, the usual answer has been to hire more specialists: 48 unique layers instead of 24, then hundreds. That works. It also makes the model larger, more expensive to store, and harder to run on a laptop. The trading version is a morning meeting where 24 people each glance at the Nifty chart once and pass the pad along. You get breadth. You do not get anyone sitting with the same chart for a second pass, catching a divergence that was easy to miss on the first look.

AI Bootcamp 2.0 for traders and investors

AI FOR TRADERS

AI Bootcamp 2.0 for traders and investors

Use ChatGPT, Claude and AI agents for research, coding and automation in your trading workflow.

  • Prompting and agent workflows for markets
  • Build tools without being a full-time coder
  • 6 courses in one bootcamp
See the bootcamp →by Marketcalls

What a looped transformer architecture changes

A looped transformer keeps a smaller desk and asks some of the same analysts to reread the file. The weights stay limited. The number of thinking steps goes up.

The usual pattern has three parts. A short first block, the prelude, translates the raw input into the model’s internal language, the way a dealing-room assistant turns a broker call into a clean ticket. A shared middle block then runs several times, refining the same hidden state on each pass. A short last block, the coda, turns that finished view back into words. Dehghani and colleagues set out the core idea in 2018 in the Universal Transformer paper: share the same layer weights across depth, and let the model revise its representation more than once.

Picture one experienced analyst taking the same Bank Nifty options chain through three passes. The first pass maps the strikes and spots the obvious imbalance. The second pass checks whether that still holds once the calendar spreads are in view. The third pass tightens the conclusion. You did not hire two extra people. You gave the same person more time with the same page.

Research backs the main claim. In 2025, Saunshi and colleagues, in “Reasoning with Latent Thoughts: On the Power of Looped Transformers,” showed that a k-layer model looped L times can nearly match a kL-layer model on many reasoning tasks. Geiping and colleagues found the same pattern in Huginn, a 3.5 billion parameter recurrent-depth model, and Yang and colleagues, in “Looped Transformers for Length Generalization,” showed that adaptive loops helped models handle longer algorithmic problems than they had seen in training.

The cost mix changes. You store fewer unique weights, so memory costs fall and the model is easier to move, but you may spend more compute on each output token because the middle layers run more than once. The offset, when it appears, is a shorter written chain of thought. A smaller weight file is also what makes local use realistic: a research assistant on a notebook during a flight, rather than a rented terminal in a remote data centre. Loops help most on serial, multi-step work, such as a long filing where a footnote contradicts the headline number. They help much less when the job is to remember a fact. A loop is extra time with the file already on the desk, not an extra filing cabinet. Thinking Machines says looping improved Inkling 2 Mini’s reasoning, but did not help it store more facts. Knowledge still tracks total parameter count.

Standard vs looped, side by side

Standard transformerLooped transformer
How layers runEach unique layer runs once per tokenA shared block of layers runs several times
Parameters vs thinking stepsMore depth usually means more unique parametersMore thinking steps from the same stored weights
Memory for weightsGrows with the number of unique layersStays tied to the smaller stored stack
Compute per tokenOne pass through the stackHigher, because middle layers are reused
Knowledge and factsFavours larger parameter countsExtra loops add little factual capacity
ReasoningDepth helps, but you pay for it in sizeStronger on multi-step work, at a given size
Local and edge useLarge stacks are harder to fit on a laptopSmaller files are easier to run locally
Training patternThe default for most large modelsFrom-scratch looping has lagged at the same pre-training budget; some labs now convert an already trained model

A simple picture: a standard model is 48 different juniors each reading one page of an annual report once. A looped model is a smaller team reading the same report two or three times, with a better chance of catching the cash-flow footnote that contradicts the press release.

Two new models: Inkling 2 Mini and GLM-5.4

Until this month, most looped results lived in papers and in small research models such as Huginn. That changed in a week.

Inkling 2 Mini, released on 20 November 2026 by Thinking Machines Lab, is a confirmed looped transformer. Official sources describe a multimodal, decoder-only Mixture-of-Experts model with 24 layers, of which the middle 12 run three times with shared weights, giving 48 layer applications per token from 24 stored layers. Total parameters are 26.4 billion, with 3.4 billion active, and 5.4 billion effective active parameters per token once looping is counted. The Apache 2.0 open-weight checkpoint is about 20GB, with a context window of up to 1 million tokens, and is specified to run on Apple silicon or other GPUs with 32GB or more of memory, including NVIDIA’s DGX Spark. Thinking Machines reports that it leads every open-weights model with fewer than 100 billion total parameters on DeepSWE v1.1 (48.2 percent) and Vals Index v2.2 (46.5 percent). Those figures are the company’s own published scores, not an independent audit. A research variant kept improving on a serial N-Hop Lookup test out to ten loops. More passes helped long-context and reasoning tests, and did not lift closed-book factual question answering.

GLM-5.4, released on 23 November 2026 by Z.ai (also known as Zhipu AI), is also a confirmed Loop Transformer, at a much larger scale. The official blog says the model loops 28 layers of the GLM-5 base for two iterations, and describes the work as being at 750-billion-parameter scale. Z.ai claims intelligence comparable to models with 2 trillion to 3 trillion parameters. That comparison is the company’s own, and the launch post did not include a full benchmark table for the flagship itself. The detailed numbers it shared come from a controlled 30 billion parameter test: about 10 percent more training compute, clearer gains on math, scientific reasoning and long-context tasks, and 10 to 14 percent shorter average output on several benchmarks. Z.ai says looped models trained from scratch have still lagged standard models under the same pre-training compute, so it adapted an already trained base through continued training. It also flags a limitation: the model can get caught in long “marathon thinking” loops. GLM-5.4 is available to GLM Coding Plan users, in ZCode and in Z.ai Chat. The API and open weights had not shipped at launch; Z.ai says the API will follow a safety evaluation, and that weights will follow safety hardening.

Which architecture matters most?

Neither architecture wins on every job. The evidence points to a split, not a replacement.

Standard transformers still have the better case when the task is memory-heavy: storing facts, recalling knowledge, or covering a wide universe the way a scanner covers 200 stocks. Inkling 2 Mini’s own results show factual tests barely moving as loops are added. Z.ai draws the same line, and also says a looped model trained from scratch still trails an unshared model at the same pre-training budget.

Looped transformers help when the constraint is size, memory or reasoning depth: a local model that has to fit in a 20GB-class file, or work that looks like multi-hop reasoning, coding, maths or a long agent session. The trading analogue is the difference between scanning a watchlist and working through one messy hedge, line by line. For the second job, rereading is the point.

The industry does not appear to be picking one path. Z.ai says it is pursuing both deeper loops and larger models. Thinking Machines looped the middle layers of a small open model and left the first and last blocks unlooped. Adaptive compute, giving harder tokens more loops, is still an open research question. The honest read of November 2026 is that looped designs have entered flagship and laptop-scale products, while standard transformers still carry most of the world’s knowledge-heavy serving.

What this means for traders and investors

The first-order effect is on inference cost, not on a single ticker. A looped model can be cheaper to store and easier to place on a local machine, which matters to anyone paying for tokens from an inference provider or running a local trading agent. It can also be more expensive per token of compute, because the middle layers run twice or three times. The net bill depends on whether shorter written reasoning offsets that extra work, and the public numbers so far are mostly vendor tests.

GPU demand does not simply fall. Training a flagship still requires a large cluster, and serving it still burns cycles on every loop. What can ease is pressure on memory, a point already familiar from the open-weight model and VRAM trade-offs in smaller models. NVIDIA remains at the centre of both stories: Inkling 2 Mini ships in NVIDIA’s NVFP4 format, and in March 2026 Thinking Machines and NVIDIA announced a multi-year plan to deploy at least one gigawatt of Vera Rubin systems, with NVIDIA also taking a stake in the private lab. Apple sits on the local side, as a high-memory Mac is now a realistic place to run a model in this class.

The listed name directly tied to this week’s flagship is Z.ai, which trades in Hong Kong under the ticker 2513. Thinking Machines Lab is private. There is no Indian-listed company that has announced a looped-transformer model of its own. The India angle is downstream: rupee-denominated API bills, on-device models for desks that do not want market data leaving the machine, and the same global GPU and memory suppliers that already dominate AI capex. The architecture buys thinking time without a matching pile of new parameters. That is a real shift in how labs spend compute. It is not, on the evidence these launches provide, a reason to treat the standard transformer as finished, or to assume GPU demand is about to roll over.

Python Elite membership

MEMBERSHIP

Python Elite membership

15 Python, AI and algo trading programs in one plan, including QuantFlow and AI Bootcamp live mentorship.

  • Python from fundamentals to trading apps
  • Backtesting, broker APIs and OpenAlgo
  • Live QuantFlow and AI Bootcamp sessions
View Python Elite →by Marketcalls

Learn by watching: free videos every week

Market Profile, order flow, Python, AI and OpenAlgo tutorials on YouTube.

Rajandran R Creator of OpenAlgo Sketchmaker, RagZ. Building GenAI Applications. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Now the recent curiosity on building Trading AI Agents.

Leave a Reply

Get Notifications, Alerts on Market Updates, Trading Tools, Automation & More