Checked fact 604124 Nov 2026Research
Z.ai says the second loop directly reuses the attention indices generated by the first loop's indexer, and that its experiments show this performs nearly identically to recomputing indices on every pass.
The exact words it rests on
The second loop directly reuses the attention indices generated by the first loop’s indexer, adding zero indexing overhead. Our experiments show this performs nearly identically to recomputing indices on every pass.
What the source said when we opened it, on 23 Nov 2026.
The source
GLM-5.4 overview (Z.ai developer documentation)
Checked
Checked by the notis newsroom on , against the source above.
In the story
How a Loop Transformer gets depth by running shared layers twice in GLM-5.4 24 Nov 2026
Cite this fact
Anyone may quote this address. It does not change; if we correct the story, this page says so.