{
  "id": "looped-transformer",
  "code": "PTL-0274",
  "term": "Looped Transformer",
  "aliases": [
    "loop transformer",
    "looped language model",
    "LoopLM",
    "Universal Transformer",
    "weight-tied recurrent depth",
    "recurrent-depth transformer"
  ],
  "category": "foundations",
  "definition": "A looped transformer is a transformer that applies the same block of weight-shared layers several times within one forward pass, so the model gains effective depth and computation without adding parameters.",
  "description": "Dehghani et al. proposed the Universal Transformer in 2018, which applies one shared transformer block recurrently across depth and adds a dynamic per-position halting mechanism. Giannou et al. used the name \"looped transformers\" in 2023, showing that a looped 13-layer transformer with fixed weights can run small programs such as a basic calculator and linear algebra routines. Zhu et al. pretrained a family of looped language models, Ouro, on 7.7T tokens in 2025, with iterative computation in latent space and an entropy-regularized objective for learned depth allocation; they reported that their 1.4B and 2.6B models match the results of up to 12B state-of-the-art models, an advantage they attribute to knowledge manipulation rather than knowledge capacity. The approach is described as a way to scale reasoning in latent computation rather than in generated tokens. The term spread in November 2026 when Z.ai described GLM-5.4 as its first \"Loop Transformer\", which by Z.ai's account reuses 28 layers of the GLM-5 base model across two iterations with per-token gates for each iteration, and on most benchmarks shortens average output length by 10 to 14%; these figures are vendor-reported. Z.ai also notes that the model can get caught in overly long thinking.",
  "example": null,
  "broader": [
    "transformer"
  ],
  "narrower": [],
  "related": [
    "test-time-compute-scaling",
    "reasoning-model",
    "overthinking",
    "mixture-of-experts",
    "neural-scaling-laws"
  ],
  "introduced": 2018,
  "added": "2026-11-27",
  "sources": [
    {
      "title": "Universal Transformers",
      "authors": "Dehghani et al.",
      "year": 2018,
      "url": "https://arxiv.org/abs/1807.03819"
    },
    {
      "title": "Looped Transformers as Programmable Computers",
      "authors": "Giannou et al.",
      "year": 2023,
      "url": "https://arxiv.org/abs/2301.13196"
    },
    {
      "title": "Scaling Latent Reasoning via Looped Language Models",
      "authors": "Zhu et al.",
      "year": 2025,
      "url": "https://arxiv.org/abs/2510.25741"
    },
    {
      "title": "GLM-5.4",
      "authors": "Z.ai",
      "year": 2026,
      "url": "https://docs.z.ai/guides/llm/glm-5.4"
    }
  ],
  "url": "https://protologue.com/t/looped-transformer/",
  "citation": "Protologue. (2026). Looped Transformer. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0274). https://protologue.com/t/looped-transformer/"
}