Deva Annamaraju
← All notes

Feb 2026 · 10 min read

what happens when an ai thinks twice? looped language models explained

a 1.4b parameter model that keeps up with 4b models across most benchmarks. looped language models run the same layers several times instead of adding more parameters.

  • AI
  • Language Models
  • LLMs

the llms most of us use (gpt, claude, gemini) got smarter mostly by getting bigger: more layers and more parameters, which means more compute and more money. that approach works. it's also a bit dull, and it's starting to hit walls.

a paper out of bytedance seed, uc santa cruz, princeton, and mila proposes a different route. instead of making the model wider and deeper, you make it think again by running the same layers several times before it answers.

they call these looped language models, and the results are hard to ignore. their 1.4 billion parameter model matches 4 billion parameter models on most benchmarks. their 2.6 billion parameter model outperforms models up to 8 billion parameters on the reasoning-heavy benchmarks. on math specifically (the math500 benchmark), their 2.6b base model scores 90.85 while qwen3-8b-base gets 62.30.

that's a lot more reasoning per parameter than i expected, so i went through the paper to figure out where it comes from.

2 to 3×
parameter efficiency gain
7.7T
training tokens used
90.85
math500 score (ouro 2.6b base vs 62.30 for qwen3-8b-base)
4×
less kv cache memory when decoding, by sharing one cache across loops
diagram 01: normal transformer vs looped transformer
NORMAL LLM "what is 2+2?" Layer 1 Layer 2 Layer 3 Layer 4 Answer: 4 4 unique layer sets = 4x parameters LOOPED LLM (OURO) "what is 2+2?" Shared Block (same weights) ← loop 1 pass loops 4× Shared Block (same weights) ← loop 2 pass ...2 more loops... Answer: 4 1 shared block set = fraction of parameters
fig 01: in a normal llm, each layer has its own weights. in a looped llm, one block of layers gets reused (looped) several times, so you get the same amount of computation with far fewer parameters to store.

the problem with just making things bigger

adding parameters mostly adds storage. a model with 10 billion parameters knows more than one with 1 billion; it has memorized more facts and seen more patterns. that doesn't automatically make it a better reasoner, and people conflate the two all the time.

the looplm paper has a clever experiment on exactly this. they measured "knowledge capacity", meaning how many bits of information a model can store per parameter. small gpt-2 style models trained on synthetic biographies, looped and regular at the same parameter count, came out nearly identical across the sizes they tried, around 2 bits per parameter. so looping doesn't help a model remember more trivia.

tasks that required doing something with knowledge, like composing facts, multi-hop reasoning, and manipulating information, went very differently. on the paper's synthetic versions of those tasks, looped models beat regular ones with the same number of parameters. and on mmlu, when they ran the same ouro model with one loop and then with four, its accuracy went up 155.6% on elementary mathematics and 143.3% on formal logic. the categories that barely moved were mostly recall, like "global facts" (just trivia, +8.3%) and "moral scenarios" (+7.8%). the facts were already in the model, and the extra loops made it much better at using them.

"the looplm architecture's primary advantage lies in enhancing knowledge manipulation, not raw storage." (zhu et al., appendix b.4)
diagram 02: what looping improves
TASK TYPE → (knowledge recall ············ pure reasoning) % GAIN, LOOP 1 → LOOP 4 +8.3% Global Facts +13.7% Virology +21.4% Anatomy +51.7% College Math +67.3% Clinical Know. +127.8% Logical Fallacies +143.3% Formal Logic +155.6% Elem. Math pure recall: modest gains reasoning: massive gains
fig 02: relative gain in mmlu accuracy when the same ouro model runs 4 loops instead of 1, by category. the biggest gains are on reasoning-heavy subjects (elementary math +155.6%, formal logic +143.3%), while pure memory retrieval barely moves. data from table 15 of the ouro paper.

what happens inside the loops

the loose intuition is how you'd work through a puzzle. the first look gives you a partial picture, and each time you look again you use what you figured out last time to get a bit further.

more precisely, in a standard transformer your input travels through the layers exactly once and comes out as a token prediction. in a looped model, the output of the last layer is fed back in as input for another full pass through the same layers, and each pass is called a "recurrent step." no text gets generated during a loop. the model is updating its hidden representation of what it has read.

the paper calls this "latent reasoning", because it happens entirely inside the model's hidden state space and never shows up as words. chain-of-thought prompting (where you ask a model to write out its reasoning step by step) puts the reasoning in the output; here there's nothing to read. the closest human analogy i can think of is a mathematician staring at a problem for a while before saying anything.

↳ beginner anchor: what is a hidden state?

when a language model processes text, each token gets converted into a big vector of numbers; think of it as a highly specific mathematical "fingerprint" that represents what the model currently understands about that token in context. this fingerprint is the "hidden state." in a looped model, the hidden states get refined with each loop pass, like a blurry photograph being progressively sharpened.

diagram 03: latent reasoning vs chain-of-thought
CHAIN-OF-THOUGHT "what's 15% of 240?" "let me think: 10% of 240 is 24..." "5% would be half of that, so 12..." "so 24 + 12 = 36. the answer is 36." Output: 36 reasoning in visible text tokens → uses more output space LOOPLM LATENT "what's 15% of 240?" hidden state updates (4 silent loop passes) ×4 Output: 36 reasoning in silent vector space → no extra output tokens same answer, less output bloat, more causally faithful reasoning
fig 03: cot writes its reasoning out as visible text, which costs context window. looplm keeps the reasoning internal, in vector space, and the output is more causally connected to the answer since every step is directly supervised by the training loss.

the faithfulness problem with chain-of-thought

this is one of the more interesting findings in the paper, and it touches a worry ai researchers have had for a while: when you ask a model to think step by step, it may not be reasoning at all. it could be writing a plausible-looking post-hoc justification for a decision it already made.

kyle cox showed this on gemma-2 9b: linear probes on the model's activations at the last token of the prompt, before it writes any chain-of-thought, predicted its final answer with an auroc above 0.9 on every dataset he tried except one. the ouro team reproduced it on qwen3-4b-thinking, where a simple linear probe predicts the eventual answer with 0.99 roc auc. so the model has mostly decided before the reasoning starts, and the written-out steps look more like narration than computation.

looplm behaves differently, and the paper measures it. the researchers used the quora question pairs dataset, where you judge whether two questions are asking the same thing, which is often ambiguous. for ouro 1.4b at loop step 2, only 36.1% of answers (361 of 1,000 question pairs) matched what the model would say at loop step 4, so the model kept revising its position from one loop to the next and its internal state was changing at each loop boundary. i'd call that a lot closer to faithful reasoning than a model that settles on an answer and then explains itself.

the smart exit problem: not every question needs four loops

"what color is the sky" does not need the same amount of computation as "prove that there are infinitely many primes." the ouro architecture handles this with an "exit gate", a small learned mechanism that decides at each loop whether more thinking is likely to help. i think it's one of the cleverer parts of the design.

the naive option is to always run four loops, which wastes compute on easy inputs. just letting the gate learn alongside the model doesn't work either. deeper loops get lower loss, so plain next-token training keeps shifting the gate's weight onto the last loop until it always runs the maximum, and the paper notes that adaptive exits in general tend to collapse either to shallow depths or to always running long.

the fix was an entropy regularization term, measured against a uniform prior over exit steps, that keeps the gate from collapsing onto one depth, plus a second training stage where the language model is frozen and the gate learns directly from whether an extra loop actually reduced the loss. how early it exits is then a threshold you pick at deployment. on mmlu, at an average of 2.5 loops, the gate with that second stage scores 66% against about 64% for the gate without it, and always running all four loops scores 67.35%. so you give up very little accuracy for running 1.5 fewer loops on average.

diagram 04: adaptive exit gate, spending compute where it's needed
EASY QUESTION "capital of france?" Loop 1 output exit gate: confident → Paris ✓ exits after 1 loop HARD QUESTION "solve: if 2x+3y=12, x-y=1, find x,y" Loop 1: uncertain exit gate: not yet loop again Loop 2: less uncertain Loop 3: converging... Loop 4: x=3, y=2 ✓ saves compute for simple queries uses full depth for hard queries
fig 04: the exit gate learns which questions are "done" after fewer loops and saves full computation for the problems that benefit from it. on mmlu, exiting at an average of 2.5 loops scores 66%, against 67.35% for always running all 4.

a word on chain-of-thought, and why this might matter more

right now the main way to get better reasoning out of a model is chain-of-thought, where you ask it to think step by step. it works surprisingly well, but every reasoning step is a generated token, and tokens are expensive. a model that writes 1000 tokens of reasoning before answering generates 1000 more output tokens than one that answers directly, each one a full forward pass sitting in the context window, and at scale that adds up to a large compute bill.

with looplm the "thinking" happens inside the forward pass instead of in generated tokens. you scale compute by running the same layers more times rather than by having the model write more. that doesn't make the thinking free. every loop is another pass through the shared layers, so a 4-loop model spends roughly the compute per token of a regular model four times as deep (that's the equal-compute baseline the paper itself uses), and by default it keeps a separate kv cache for every loop. what you save is parameters, because the weights are shared, and output tokens, because the reasoning never gets written out and doesn't eat into your context window. the exit gate and the kv cache sharing trick then win back some of the per-token cost.

the paper also touches briefly on something i think deserves more attention: safety alignment that improves with more loops. usually extra compute buys capability and doesn't do much for safety one way or the other. here, the pca visualizations show that as you add loops, the model's internal representations of "harmful prompt" and "benign prompt" move further apart in vector space, so the model seems less unsure about whether something is dangerous. harmfulness on their safety benchmark (hex-phi) keeps going down as loops increase, even at 5 to 8 loops, past the four the model was trained on.

what interests me most is why the smaller model wins. looping doesn't give it any extra knowledge. it gets more use out of the knowledge it already has.

what this doesn't solve

the paper is upfront about its limits. reinforcement learning, the technique behind the biggest recent reasoning improvements in models like deepseek and o1, doesn't currently work well with looplm, because the dynamic exit mechanism makes it hard for existing rl frameworks to generate rollouts efficiently. the team tried two approaches and neither beat the supervised fine-tuning baseline. my guess is this gets solved, but as of the paper it hasn't been.

the model also struggles past its training depth. it was trained with 4 loops, and if you push it to anywhere from 5 to 8, benchmark performance degrades (safety, oddly, keeps improving). so it seems to have learned a well-tuned 4-step procedure more than a general "think harder" algorithm, which matters if you were hoping to scale compute dynamically at inference time.

the parameter efficiency advantage is real but it has limits, and the paper's own small-scale scaling runs show where. they compared each looped model (up to 1.36b parameters, trained on 20b tokens) with a standard transformer that makes the same number of layer passes using separate, unshared layers, so the same compute but more parameters. the standard model scored higher on the average of six benchmarks in every comparison, and its lead grew as the loop count went up, though it shrank as the models got bigger. where looping matched or beat equal-compute baselines was on the paper's synthetic knowledge-manipulation tasks, like modular arithmetic and multi-hop questions, which are closer to the kind of reasoning i care most about.

the deeper implication

you could read this paper purely as a benchmark story, where a smaller model beats a bigger one and the paper gets cited a lot. that reading is fine as far as it goes.

the part i find more interesting is that looping helps knowledge manipulation but not knowledge storage. that says something about what reasoning is, or at least about what a transformer is doing when we call it "reasoning." more parameters give you more storage, and more loops give you more chances to cross-reference, compose, and apply what's stored. those look like different operations to me.

if that framing is right, the current focus on parameter count as the main axis of capability is probably somewhat misplaced. the most capable models may turn out to be the ones that are best at doing things with facts, which isn't necessarily the same set as the ones holding the most facts, and that could depend on architecture as much as on scale.

the paper calls loop depth a "third scaling axis" alongside parameters and data. nobody knows yet whether that holds up over the long run, or whether looped models at frontier scale can compete with the largest models. still, a 1.4 billion model keeping up with 4 billion models across most benchmarks is a real result and can't be written off as noise. i'd like to see someone try this at a much larger scale.

based on: "scaling latent reasoning via looped language models" by zhu et al., 2025, arxiv:2510.25741 (figures checked against v5: abstract, section 1 and section 5.1 for the 1.4b/2.6b, math500, 2 to 3× and 7.7t numbers; section 4.5 for the rl attempts; section 5.3 for extrapolation past 4 loops; section 5.4 for early exit and kv cache sharing; section 6.1 for knowledge capacity; section 7 and figure 9 for safety, probing and loop agreement; appendix b.4 and table 15 for the mmlu categories; appendix d.1 for the equal-compute comparison) · ouro-llm.github.io · gemma-2 9b probes: kyle cox, "post-hoc reasoning in chain of thought", lesswrong