<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><generator uri="https://jekyllrb.com/" version="4.3.4">Jekyll</generator><link href="https://yjkim-stat.github.io/log/feed.xml" rel="self" type="application/atom+xml"/><link href="https://yjkim-stat.github.io/log/" rel="alternate" type="text/html" hreflang="en"/><updated>2026-08-21T01:05:02+00:00</updated><id>https://yjkim-stat.github.io/log/feed.xml</id><title type="html">Research Log</title><subtitle>Paper reviews, recent research trends, and notes on machine learning research. </subtitle><entry><title type="html">The Expressive Power of Transformers with Chain of Thought</title><link href="https://yjkim-stat.github.io/log/blog/2026/expressive-power-cot/" rel="alternate" type="text/html" title="The Expressive Power of Transformers with Chain of Thought"/><published>2026-08-09T00:00:00+00:00</published><updated>2026-08-09T00:00:00+00:00</updated><id>https://yjkim-stat.github.io/log/blog/2026/expressive-power-cot</id><content type="html" xml:base="https://yjkim-stat.github.io/log/blog/2026/expressive-power-cot/"><![CDATA[<p><strong>Paper.</strong> William Merrill, Ashish Sabharwal. <em>The Expressive Power of Transformers with Chain of Thought.</em> ICLR 2024 (Poster). New York University, Allen Institute for AI. <a href="https://arxiv.org/abs/2310.07923">[arXiv]</a> · <a href="https://openreview.net/forum?id=NjNGlPh8Wh">[OpenReview]</a></p> <hr/> <p>Second post in the <a href="/log/blog/tag/reasoning"><code class="language-plaintext highlighter-rouge">reasoning</code></a> series, and a deliberate change of register from the first. <a href="/log/blog/2026/landscape-of-thoughts/">Landscape of Thoughts</a> asked <em>where does reasoning actually go</em> by looking at trajectories empirically. This paper asks the question one level down: <strong>what can a transformer that emits chain-of-thought tokens compute at all</strong>, as a matter of circuit complexity — independent of any particular model, dataset, or training run. It’s the theoretical floor and ceiling that every empirical CoT result in this series will implicitly sit inside.</p> <h2 id="0-the-picture-in-one-paragraph">0. The Picture in One Paragraph</h2> <p>Without chain of thought, a transformer that has to answer immediately after reading its input is provably stuck inside <strong>TC0</strong> — the class of problems solvable by constant-depth, polynomial-size threshold circuits. That’s a real ceiling: TC0 can’t even reliably do things like check whether two nodes in a directed graph are connected, because that kind of problem is inherently <em>serial</em> — each step depends on the result of the previous one, and a constant-depth circuit has no way to unroll an unbounded number of sequential steps. Chain of thought changes the computational model itself: each generated token is fed back in and attended to, so the transformer effectively gets one more “layer” of computation per CoT token. The paper’s central result is that this isn’t a vague intuition — it’s an exact trade curve. Zero or constant CoT steps: still TC0. Logarithmically many steps: only a marginal gain. Linearly many steps: the transformer can recognize every regular language. Polynomially many steps: the transformer recognizes <strong>exactly P</strong>, no more and no less. Length of chain of thought isn’t a knob you turn for style — it’s the resource that literally determines which complexity class you’re computing in.</p> <h2 id="1-the-problem--why-tc0-is-the-right-question-to-ask">1. The Problem — Why “TC0” Is the Right Question to Ask</h2> <p>Merrill and Sabharwal’s own prior work had already pinned down what a transformer <em>without</em> CoT can do: under standard assumptions (log-precision, poly-size), a transformer’s forward pass is simulable by a uniform TC0 circuit family. TC0 is a narrow class — it’s below NL (nondeterministic log-space, the class containing graph reachability) and believed to be strictly below P. So there’s a concrete, well-known list of problems a no-CoT transformer <em>cannot</em> solve at scale, no matter how it’s trained: directed graph connectivity, simulating a finite-state automaton, evaluating a boolean formula with unbounded nesting. These aren’t exotic edge cases — they’re the textbook shape of “the next step depends on everything before it,” which is exactly the shape of a lot of multi-step reasoning.</p> <p>Empirically, chain-of-thought prompting was already known to help transformers with exactly this flavor of task. The open theoretical question was whether that’s a real expansion of computational power or just a more favorable way of asking the same TC0-bounded model for an answer. The paper’s answer is unambiguous: it’s a real expansion, and its size is governed almost entirely by how many CoT tokens you allow.</p> <h2 id="2-the-result--a-trade-curve-not-a-threshold">2. The Result — A Trade Curve, Not a Threshold</h2> <p>The framing is circuit complexity throughout: a “decoding step” is one generated CoT token, fed back into the transformer before the next step. The paper walks the number of allowed decoding steps up from constant to polynomial and tracks what complexity class falls out at each point.</p> <h3 id="21-constant-and-logarithmic-steps--barely-more-than-nothing">2.1 Constant and logarithmic steps — barely more than nothing</h3> <p>A constant number of CoT steps doesn’t change the class at all — still TC0, since a constant number of extra “layers” doesn’t help a constant-depth circuit escape its own definition. Allowing O(log n) steps (n = input length) buys only a modest amount of extra power, still well short of what’s needed for NL-complete problems like graph connectivity. This is the paper’s most counter-intuitive finding for anyone who assumes “more CoT tokens = proportionally more reasoning power”: logarithmically many tokens is a rounding error, computationally speaking.</p> <h3 id="22-linear-steps--all-regular-languages">2.2 Linear steps — all regular languages</h3> <p>Once the number of decoding steps scales linearly with input length (and with a mild architectural condition the paper calls “projected pre-norm”), the transformer can recognize <strong>every regular language</strong> — i.e., simulate an arbitrary finite-state automaton step by step, writing its running state into the CoT and reading it back. This is the point where the earlier example — “can a transformer track state across an unboundedly long sequence” — flips from impossible to solvable.</p> <h3 id="23-polynomial-steps--exactly-p">2.3 Polynomial steps — exactly P</h3> <p>With polynomially many decoding steps and a further generalization of pre-norm, the paper proves the transformer’s expressive power is <strong>exactly P</strong> — not an upper bound, an exact characterization, in both directions: anything in P can be computed by some CoT transformer with polynomially many steps, and no CoT transformer with a polynomial step budget can compute more than P. The general form of the argument is almost a simulation lemma: any problem decidable in time t(n) can be solved by a transformer using roughly t(n) chain-of-thought tokens, because each CoT step can simulate one step of a general computation. The paper calls this the first exact characterization of a transformer variant in terms of a standard, unconditional complexity class — most prior transformer-expressivity results are one-sided (upper bounds only).</p> <h3 id="24-the-example-problems-that-carry-the-intuition">2.4 The example problems that carry the intuition</h3> <p>Three recurring examples do the work of making this concrete: <strong>s-t reachability</strong> in a directed graph (NL-complete, needs more than log-length CoT), <strong>simulating a finite-state automaton</strong> (the canonical regular-language task that linear-length CoT unlocks), and <strong>composing a sequence of permutations</strong> (an inherently serial, non-parallelizable task used to illustrate why constant-depth circuits struggle with “chained” operations even when each individual operation is trivial).</p> <h2 id="3-why-it-matters">3. Why It Matters</h2> <p>For a blog whose reasoning series so far has been almost entirely architectural — looped transformers, latent iteration, adaptive compute — this paper is the piece that explains <em>why</em> those architectures are chasing the effect they’re chasing. Think-at-Hard, LoopFormer, and Huginn all spend extra computation per token to approximate what unrolled, serial reasoning buys you; this paper says precisely what that serial computation is worth, in classical complexity terms, when it’s spent as explicit CoT tokens instead of implicit latent iterations. It also gives a principled reading of a purely empirical observation that recurs across the CoT literature: short reasoning traces plateau on genuinely serial problems not because the model “isn’t trying hard enough,” but because a chain of thought that’s too short is, provably, still stuck below the complexity class the problem lives in. If a task is NL-hard-flavored, no amount of prompting cleverness inside a logarithmic-length CoT budget will get a TC0-bounded model there — the length of the chain has to actually grow with the problem.</p> <h2 id="4-limitations-worth-knowing">4. Limitations Worth Knowing</h2> <p>This is a <strong>computability result, not a learnability result.</strong> The paper shows what a transformer of appropriate size and weights <em>could</em> compute given enough CoT steps — it says nothing about whether gradient descent on realistic pretraining data would ever find those weights, or how much CoT-annotated data that would take. The polynomial-steps-equal-P result also depends on a specific architectural assumption (“generalized pre-norm”) rather than holding for every transformer variant unconditionally, so the exact correspondence is a statement about a well-defined model family, not a claim that any transformer with enough CoT tokens automatically reaches P. And “chain of thought” here means <em>any</em> generated intermediate token sequence used as scratch space — the paper is not making claims about whether <em>human-readable, semantically coherent</em> reasoning traces (the kind actually produced by CoT-prompted LLMs) achieve these bounds in practice, only that some sequence of tokens of the given length could.</p> <h2 id="5-the-takeaway-for-a-first-reader">5. The Takeaway for a First Reader</h2> <p>Chain-of-thought length is not a stylistic hyperparameter — it is, provably, the resource that determines which complexity class a transformer’s answer can come from. Constant or logarithmic CoT barely moves the needle past TC0; it takes linear CoT to reach all regular languages and polynomial CoT to reach all of P. Every subsequent paper in this series that tries to make reasoning cheaper by shortening or compressing the chain of thought is implicitly trading against this curve, and it’s worth having Merrill &amp; Sabharwal’s exact version of the trade-off in mind as a reference point for what “shorter” is actually giving up.</p> <h2 id="references">References</h2> <ul> <li>Merrill, W., &amp; Sabharwal, A. (2024). <em>The Expressive Power of Transformers with Chain of Thought.</em> ICLR 2024. <a href="https://arxiv.org/abs/2310.07923">arXiv:2310.07923</a></li> <li>Related, complementary ICLR 2024 result: Li, Z., et al. <em>Chain of Thought Empowers Transformers to Solve Inherently Serial Problems.</em> <a href="https://arxiv.org/abs/2402.12875">arXiv:2402.12875</a></li> <li>This blog: <a href="/log/blog/2026/landscape-of-thoughts/">Landscape of Thoughts</a> — the empirical companion to this post’s theory, first in the <code class="language-plaintext highlighter-rouge">reasoning</code> series.</li> <li>This blog: <a href="/log/blog/2026/think-at-hard/">Think-at-Hard</a>, <a href="/log/blog/2026/loopformer/">LoopFormer</a>, <a href="/log/blog/2026/recurrent-depth/">recurrent-depth / Huginn</a> — architectures that spend extra per-token computation to approximate the effect this paper attributes to explicit CoT length.</li> </ul>]]></content><author><name></name></author><category term="paper-review"/><category term="reasoning"/><category term="chain-of-thought"/><category term="theory"/><category term="expressivity"/><category term="transformers"/><category term="llm"/><summary type="html"><![CDATA[Paper review of Merrill & Sabharwal (ICLR 2024, NYU / Allen Institute for AI) — a circuit-complexity characterization of what decoder-only transformers can compute once they are allowed to generate intermediate chain-of-thought tokens, and exactly how many of those tokens it takes to buy how much extra power.]]></summary></entry><entry><title type="html">Landscape of Thoughts — Visualizing Where LLM Reasoning Actually Goes</title><link href="https://yjkim-stat.github.io/log/blog/2026/landscape-of-thoughts/" rel="alternate" type="text/html" title="Landscape of Thoughts — Visualizing Where LLM Reasoning Actually Goes"/><published>2026-08-07T00:00:00+00:00</published><updated>2026-08-07T00:00:00+00:00</updated><id>https://yjkim-stat.github.io/log/blog/2026/landscape-of-thoughts</id><content type="html" xml:base="https://yjkim-stat.github.io/log/blog/2026/landscape-of-thoughts/"><![CDATA[<p><strong>Paper.</strong> Zhanke Zhou, Zhaocheng Zhu, Xuan Li, Mikhail Galkin, Xiao Feng, Sanmi Koyejo, Jian Tang, Bo Han. <em>Landscape of Thoughts: Visualizing the Reasoning Process of Large Language Models.</em> ICLR 2026. TMLR Group @ Hong Kong Baptist University, Stanford University, Mila – Québec AI Institute, Université de Montréal, HEC Montréal, Intel AI Lab. <a href="https://arxiv.org/abs/2503.22165">[arXiv]</a> · <a href="https://landscape-of-thoughts.github.io/">[project page]</a> · <a href="https://github.com/tmlr-group/landscape-of-thoughts">[code]</a></p> <hr/> <p>This is the first post in what will be an ongoing series of reasoning paper reviews on this blog, tagged <a href="/log/blog/tag/reasoning"><code class="language-plaintext highlighter-rouge">reasoning</code></a>. It felt right to start with a paper that isn’t proposing a new reasoning <em>method</em>, but a way to actually <strong>look at</strong> what existing reasoning methods are doing — a lens that every later review in this series can implicitly use.</p> <hr/> <h2 id="0-the-picture-in-one-paragraph">0. The Picture in One Paragraph</h2> <p>Chain-of-thought reasoning is evaluated almost exclusively by its final-answer accuracy — a single scalar that says nothing about <em>how</em> the model got there, or where it went wrong along the way. <strong>Landscape of Thoughts (LoT)</strong> opens up that black box with a simple but under-explored idea: take every intermediate reasoning state in a trajectory (each partial chain-of-thought so far), compute how close that state is to each candidate answer using <strong>perplexity as a distance metric</strong> (asking the same LLM how likely it is to complete the trajectory with each answer choice), and project all these per-state distance vectors into <strong>2D via t-SNE</strong>. The result is a literal landscape: the answer choices sit as fixed points, and a reasoning trajectory becomes a path that either converges toward the correct answer, drifts, or wanders. This single visualization — backed by three quantitative metrics (perplexity, uncertainty, consistency) — turns out to reliably distinguish strong models from weak ones, correct trajectories from incorrect ones, and can even be repurposed into a lightweight verifier that improves test-time scaling.</p> <hr/> <h2 id="1-the-problem--accuracy-tells-you-nothing-about-the-path">1. The Problem — Accuracy Tells You Nothing About the Path</h2> <p>Reasoning research has produced a large zoo of prompting and search strategies — chain-of-thought, self-consistency, tree-of-thoughts, MCTS-guided search — and the standard way to compare them is a leaderboard of final-answer accuracy on math and QA benchmarks. This is a reasonable summary statistic, but it collapses everything interesting about <em>how</em> a model reasons into one number:</p> <ul> <li>Two models can reach the same accuracy while one converges confidently and the other gets there by essentially guessing late.</li> <li>A single model can look identical on aggregate accuracy across two datasets while behaving completely differently at the trajectory level.</li> <li>Failure analysis usually means reading individual chain-of-thought transcripts by hand — it doesn’t scale, and it’s hard to turn into a quantitative signal.</li> </ul> <p>LoT’s premise is that the <em>sequence of intermediate states</em> a reasoning trajectory passes through is itself informative, and that information is currently thrown away by accuracy-only evaluation.</p> <hr/> <h2 id="2-the-method--from-text-states-to-a-2d-landscape">2. The Method — From Text States to a 2D Landscape</h2> <h3 id="21-sampling-and-segmenting-trajectories">2.1 Sampling and segmenting trajectories</h3> <p>For a given multi-choice question, a reasoning method (chain-of-thought being the base case, though the tool is designed to work with its derivatives too) is used to sample a reasoning trajectory from an LLM. That trajectory is segmented into individual <strong>thoughts</strong> — the intermediate reasoning steps — so a single trajectory becomes a sequence of partial states: state after thought 1, state after thought 1+2, and so on up to the final answer.</p> <h3 id="22-turning-each-state-into-a-distance-vector">2.2 Turning each state into a distance vector</h3> <p>The core trick: for each intermediate state, LoT asks <strong>the same LLM that generated the trajectory</strong> to estimate how well that partial reasoning path would lead into each candidate answer, using <strong>perplexity</strong> as the distance metric. This produces, for every state, a vector of distances — one number per answer choice — without needing a separate reward model or verifier. A state’s distance vector is a self-consistent measure of “given what’s been reasoned so far, how compatible is this with each possible answer.”</p> <h3 id="23-projecting-into-a-landscape">2.3 Projecting into a landscape</h3> <p>These distance vectors across all states in all sampled trajectories are projected into <strong>2D with t-SNE</strong>, with the answer choices treated as fixed anchor points. A single trajectory then reads as a literal path across the plot: it starts somewhere ambiguous and either converges toward the correct-answer anchor, converges toward a wrong one, or fails to converge at all — visually distinguishable at a glance, and aggregatable across many trajectories to compare models, datasets, or reasoning methods side by side.</p> <h3 id="24-three-quantitative-metrics">2.4 Three quantitative metrics</h3> <p>The visualization is backed by three scalar metrics that don’t require looking at a plot at all:</p> <ul> <li><strong>Perplexity</strong> — the raw distance-to-answer-choice signal itself, usable to estimate how compatible a state is with each candidate across different thought lengths.</li> <li><strong>Uncertainty</strong> — how confident the model is about its prediction at intermediate steps (not just at the final answer).</li> <li><strong>Consistency</strong> — roughly, whether the model already “knows” the eventual answer early in the trajectory, rather than only converging on it very late (or not at all).</li> </ul> <hr/> <h2 id="3-findings">3. Findings</h2> <h3 id="31-scale-changes-the-shape-of-the-landscape-not-just-the-accuracy">3.1 Scale changes the shape of the landscape, not just the accuracy</h3> <p>Using the Llama-3.1 family swept from 1B to 70B parameters with CoT prompting on AQuA, the landscape visibly changes shape with scale: larger models converge faster toward the correct-answer region, with higher density of late-trajectory states clustered near the correct answer — consistent with, and visually explaining, their higher accuracy. Quantitatively, larger models show <strong>higher consistency, lower uncertainty, and lower perplexity</strong> — the three metrics move together with scale, not just the final accuracy number.</p> <h3 id="32-the-landscape-separates-correct-from-incorrect-trajectories">3.2 The landscape separates correct from incorrect trajectories</h3> <p>Across models and datasets, LoT reliably distinguishes correct trajectories from incorrect ones — correct trajectories show a different convergence pattern (faster, more monotonic movement toward the right answer) than incorrect ones. This holds not just as a qualitative visual pattern but as a quantifiable signal: <strong>convergence speed itself predicts whether a trajectory will land on the correct answer</strong>, distinct between success and failure cases.</p> <h3 id="33-it-surfaces-failure-modes-accuracy-alone-cant-show">3.3 It surfaces failure modes accuracy alone can’t show</h3> <p>Because the tool exposes per-state uncertainty and consistency, it can flag reasoning patterns that look fine in the final answer but are fragile underneath — low consistency (the model doesn’t settle on an answer until very late, essentially getting there by chance) and high uncertainty (the model never becomes confident even when it ends up correct). These are exactly the patterns that aggregate accuracy metrics cannot distinguish from confident, well-grounded correct reasoning.</p> <h3 id="34-from-visualization-to-verifier">3.4 From visualization to verifier</h3> <p>The same per-state distance/convergence features that make the landscape interpretable are also useful as a <strong>standalone signal</strong>: the authors adapt LoT into a lightweight verifier that scores trajectory correctness using these features, without training a separate reward model from scratch. Used to select among multiple sampled trajectories, this verifier <strong>improves reasoning accuracy and strengthens the test-time scaling effect</strong> — i.e., the same interpretability tool doubles as a practical component for best-of-N-style inference.</p> <hr/> <h2 id="4-why-it-matters">4. Why It Matters</h2> <p>Two things make this a useful paper to have read before diving into method-proposing reasoning papers:</p> <ol> <li><strong>It reframes “does this method work” as “how does this method’s trajectory move through state space.”</strong> Every reasoning method review that follows in this series — search-based, budget-aware, latent-iteration, whatever the mechanism — is implicitly making a claim about <em>how it shapes the trajectory’s path toward the answer</em>. LoT gives a vocabulary (convergence speed, consistency, uncertainty) for that claim that doesn’t require a new benchmark number.</li> <li><strong>The verifier repurposing is the sharper practical point.</strong> A visualization tool that also functions as a free, training-free-ish scoring signal for trajectory selection is a different kind of contribution than “we made a prettier plot” — it suggests that the geometry of intermediate reasoning states carries real, exploitable signal about correctness, not just a post-hoc explanation of it.</li> </ol> <hr/> <h2 id="5-limitations-worth-knowing">5. Limitations Worth Knowing</h2> <ul> <li><strong>Requires multi-choice structure.</strong> The distance-to-answer-choice feature construction depends on having a fixed, enumerable set of candidate answers — it isn’t a direct fit for open-ended generation tasks where there’s no small set of anchor points to project against.</li> <li><strong>Perplexity as a distance metric is model-relative.</strong> The distance vector for a given state is computed using the same LLM that produced the trajectory, so landscapes are not directly comparable across models without care — a “close to the correct answer” reading from one model’s self-assessment isn’t necessarily calibrated the same way as another’s.</li> <li><strong>t-SNE distortion.</strong> Like any t-SNE projection, the 2D layout is a nonlinear compression of a higher-dimensional space; visual distances and cluster shapes can mislead if read too literally, and the quantitative metrics (perplexity, uncertainty, consistency) are the more trustworthy artifacts than the plot geometry itself.</li> <li><strong>Verifier gains are reported at a general level</strong> in the sources used for this review — exact accuracy deltas and which datasets/ reasoning methods the verifier was tested against were not fully confirmed against the primary PDF, so treat the “boosts accuracy and test-time scaling” claim as directionally correct pending a closer read of the paper’s tables.</li> </ul> <hr/> <h2 id="6-the-takeaway-for-a-first-reader">6. The Takeaway for a First Reader</h2> <p>If you remember three things:</p> <ol> <li><strong>LoT visualizes reasoning trajectories, not just final accuracy</strong> — every intermediate state in a chain-of-thought is turned into a distance-to-each-answer-choice vector (via perplexity) and projected into 2D with t-SNE, so a trajectory becomes a literal path toward (or away from) the correct answer.</li> <li><strong>Three metrics — perplexity, uncertainty, consistency — move together with model scale and correctness.</strong> Bigger models converge faster and more confidently; correct trajectories are quantitatively distinguishable from incorrect ones by how they move, not just where they end up.</li> <li><strong>The same features double as a lightweight, training-free-ish verifier</strong> for selecting among sampled trajectories — turning an interpretability tool into a practical test-time-scaling component.</li> </ol> <hr/> <h2 id="references">References</h2> <ul> <li>Zhou, Z., Zhu, Z., Li, X., Galkin, M., Feng, X., Koyejo, S., Tang, J., &amp; Han, B. (2026). <em>Landscape of Thoughts: Visualizing the Reasoning Process of Large Language Models.</em> ICLR 2026. <a href="https://arxiv.org/abs/2503.22165">arXiv:2503.22165</a> · <a href="https://landscape-of-thoughts.github.io/">project page</a> · <a href="https://github.com/tmlr-group/landscape-of-thoughts">code</a>.</li> </ul>]]></content><author><name></name></author><category term="paper-review"/><category term="reasoning"/><category term="interpretability"/><category term="chain-of-thought"/><category term="visualization"/><category term="llm"/><category term="evaluation"/><summary type="html"><![CDATA[Paper review of Landscape of Thoughts (Zhou, Zhu, Li, Galkin, Feng, Koyejo, Tang, Han — ICLR 2026, TMLR Group @ HKBU / Stanford / Mila / Université de Montréal / HEC Montréal / Intel AI Lab) — the first visualization tool that projects every intermediate reasoning state of an LLM's chain-of-thought trajectory into a 2D "landscape" relative to the answer choices, turning perplexity-based distance into a picture of how (and whether) reasoning converges toward the right answer.]]></summary></entry><entry><title type="html">Magellan — Guided MCTS for Escaping the Gravity Wells of LLM Creativity</title><link href="https://yjkim-stat.github.io/log/blog/2026/magellan/" rel="alternate" type="text/html" title="Magellan — Guided MCTS for Escaping the Gravity Wells of LLM Creativity"/><published>2026-07-27T21:25:00+00:00</published><updated>2026-07-27T21:25:00+00:00</updated><id>https://yjkim-stat.github.io/log/blog/2026/magellan</id><content type="html" xml:base="https://yjkim-stat.github.io/log/blog/2026/magellan/"><![CDATA[<p><strong>Paper.</strong> Lufan Chang. <em>Magellan: Guided MCTS for Latent Space Exploration and Novelty Generation.</em> 1st Open Conference on AI Agents for Science (agents4science 2025). Independent Researcher. <a href="https://arxiv.org/abs/2510.21341">[arXiv]</a></p> <hr/> <h2 id="0-the-picture-in-one-paragraph">0. The Picture in One Paragraph</h2> <p>Ask an LLM to generate a novel idea and it tends to default to high-probability, familiar concepts — the paper’s framing is that generation gets stuck in training-data <strong>“gravity wells.”</strong> Tree-of-Thoughts-style search tries to escape this by exploring multiple branches, but it relies on the LLM’s own <strong>self-evaluation</strong> to score and prune those branches — an unprincipled and, empirically, unreliable signal for judging genuine novelty. <strong>Magellan</strong> reframes creative generation as <strong>guided MCTS over an LLM’s latent conceptual space</strong>, replacing self-evaluation with a <strong>hierarchical guidance system</strong>: a <strong>semantic compass</strong> vector (built via orthogonal projection of concept embeddings) sets the long-range direction of the search toward a promising, non-obvious region of the solution space, while a <strong>landscape-aware value function</strong> — combining coherence (token log-probability), novelty (semantic distance from established knowledge), and progress (“semantic momentum,” how much new information a step adds relative to its parent) — makes the local, step-by-step tactical decisions inside the UCT selection formula. On a scientific idea generation task, Magellan wins <strong>92% of head-to-head comparisons</strong> against zero-shot, CoT, ReAct, and ToT baselines, using only a <strong>Qwen3-1.7B</strong> backbone.</p> <hr/> <h2 id="1-the-problem--gravity-wells-and-unreliable-self-evaluation">1. The Problem — Gravity Wells and Unreliable Self-Evaluation</h2> <p>Two separable failures compound in naive creative generation with LLMs:</p> <ol> <li><strong>Gravity wells.</strong> Sampling from an LLM’s output distribution over-weights common, familiar concepts from training data — genuine novelty is, almost by definition, lower-probability, so unstructured generation rarely reaches it.</li> <li><strong>Unreliable self-evaluation.</strong> Search-based mitigations like Tree-of-Thoughts try to explore multiple candidate branches and prune with the LLM’s own judgment of which branch is “better” — but an LLM judging its own candidate ideas for novelty and promise is exactly the same distribution-following process that produced the gravity-well problem in the first place, just applied one level up.</li> </ol> <hr/> <h2 id="2-the-magellan-method">2. The Magellan Method</h2> <h3 id="21-semantic-compass--global-guidance">2.1 Semantic compass — global guidance</h3> <p>A <strong>semantic compass</strong> vector is computed via <strong>orthogonal projection</strong> of concept embeddings: it is constructed to preserve the core problem context (so the search doesn’t drift off-topic) while maximizing the influence of directions that lead toward novel mechanistic pathways. This vector gives the whole MCTS search a consistent long-range target — a fixed sense of “which direction is interesting” that doesn’t have to be re-derived and re-judged at every node.</p> <h3 id="22-landscape-aware-value-function--local-guidance">2.2 Landscape-aware value function — local guidance</h3> <p>Instead of asking the LLM to self-evaluate each candidate node, a value function combines three explicit, computable terms:</p> <ul> <li><strong>Coherence</strong> — average token log-probability, measuring local fluency/plausibility.</li> <li><strong>Novelty</strong> — semantic distance from established (training-data- typical) knowledge.</li> <li><strong>Progress</strong> — “semantic momentum”: how much substantially new information a step introduces relative to its parent node, penalizing branches that just restate or trivially rephrase prior content.</li> </ul> <p>This weighted combination is added directly as a guidance term inside the standard <strong>UCT</strong> (Upper Confidence bound applied to Trees) selection formula, replacing the role that self-evaluation would otherwise play in choosing which branch to expand next.</p> <hr/> <h2 id="3-results">3. Results</h2> <p>Evaluated on a scientific idea generation task, judged by an LLM judge (<strong>DeepSeek-V3.1-Think</strong>) scoring 1–10 on Plausibility, Clarity, and Innovation, with all methods using a <strong>Qwen3-1.7B</strong> generation backbone:</p> <table> <thead> <tr> <th>Method</th> <th>Plausibility</th> <th>Clarity</th> <th>Innovation</th> <th>Overall</th> <th>Win rate</th> </tr> </thead> <tbody> <tr> <td>Zero-shot</td> <td>7.98 ± 0.62</td> <td>8.48 ± 0.68</td> <td>7.14 ± 0.78</td> <td>7.87</td> <td>0.0%</td> </tr> <tr> <td>CoT</td> <td>8.66 ± 0.48</td> <td>9.48 ± 0.54</td> <td>7.74 ± 0.49</td> <td>8.63</td> <td>8.0%</td> </tr> <tr> <td>ReAct</td> <td>4.58 ± 2.33</td> <td>4.82 ± 1.65</td> <td>4.28 ± 2.37</td> <td>4.56</td> <td>0.0%</td> </tr> <tr> <td>ToT</td> <td>5.48 ± 1.64</td> <td>4.30 ± 1.53</td> <td>5.02 ± 1.65</td> <td>4.93</td> <td>0.0%</td> </tr> <tr> <td><strong>Magellan</strong></td> <td><strong>8.98 ± 0.32</strong></td> <td>9.30 ± 0.54</td> <td><strong>8.54 ± 0.71</strong></td> <td><strong>8.94</strong></td> <td><strong>92.0%</strong></td> </tr> </tbody> </table> <p>ReAct and ToT score notably below even the zero-shot baseline, with the paper attributing this to “thematic drift” and shallow, repetitive exploration — a pointed illustration of the self-evaluation failure mode Magellan is designed to avoid, though the severity of this gap is worth treating cautiously (see limitations below).</p> <h3 id="ablation">Ablation</h3> <p>Removing the guidance term from the UCT selection formula — i.e., falling back to plain UCT exploration without the semantic compass/value function — drops the win rate from 90.0% to <strong>10.0%</strong>, a near-total collapse that indicates the guidance system, not the MCTS scaffolding itself, is doing essentially all of the work.</p> <h3 id="efficiency">Efficiency</h3> <p>MCTS is configured for a maximum of 30 iterations, but the search reportedly converges in roughly <strong>3 iterations on average</strong> — the guidance signal is precise enough to avoid the kind of broad, unguided exploration that would need many more iterations.</p> <hr/> <h2 id="4-why-it-matters">4. Why It Matters</h2> <p>The core claim worth taking seriously is architectural, not just empirical: <strong>self-evaluation is not a free source of judgment</strong> — asking an LLM to score its own candidate outputs for a property like novelty inherits the same biases that make naive generation gravity-well-prone in the first place. Magellan’s answer — decompose “is this idea good” into explicit, separately-computable signals (fluency, distance-from-known, information-gain-over-parent) rather than one holistic self-judgment — is a pattern that could generalize well beyond scientific idea generation to any LLM-search setting where self-evaluation is currently the default (which includes most ToT/MCTS-for-reasoning systems).</p> <hr/> <h2 id="5-limitations-worth-knowing">5. Limitations Worth Knowing</h2> <ul> <li><strong>Single-author, independent research</strong>, evaluated on one domain (scientific idea generation) with one LLM judge — independent replication at larger scale and across different creative domains (e.g., open-ended design, creative writing) would strengthen the claim.</li> <li><strong>Small backbone (1.7B).</strong> Whether the gap over baselines persists, narrows, or widens with a larger generation backbone is untested.</li> <li><strong>ReAct/ToT baseline failures are unusually severe</strong> (overall scores of 4.56 and 4.93, both <em>below</em> zero-shot) — this could reflect a genuine limitation of those methods for this task, but it is also consistent with under-tuned baseline implementations; the magnitude of the gap should be interpreted cautiously until independently reproduced.</li> <li><strong>LLM-judge evaluation</strong> (DeepSeek-V3.1-Think scoring 1–10) inherits whatever biases that judge model has about what counts as “innovative” — a single automated judge is a narrower validation than human expert evaluation on genuinely novel scientific ideas.</li> </ul> <hr/> <h2 id="6-the-takeaway-for-a-first-reader">6. The Takeaway for a First Reader</h2> <p>If you remember three things:</p> <ol> <li><strong>LLMs default to familiar, high-probability concepts</strong> (“gravity wells”), and Tree-of-Thoughts-style self-evaluation is an unreliable way to escape them, since the judge and the generator share the same underlying bias.</li> <li><strong>Magellan replaces self-evaluation with two explicit guidance signals</strong>: a global semantic-compass vector (orthogonal projection of concept embeddings) and a local landscape-aware value function (coherence + novelty + progress) injected directly into MCTS’s UCT formula.</li> <li><strong>92% win rate</strong> against zero-shot/CoT/ReAct/ToT baselines on scientific idea generation with a small 1.7B backbone — and an ablation showing the guidance term, not the search scaffolding, is responsible for nearly all of the gain (90% → 10% win rate when removed).</li> </ol> <hr/> <h2 id="references">References</h2> <ul> <li>Chang, L. (2025). <em>Magellan: Guided MCTS for Latent Space Exploration and Novelty Generation.</em> 1st Open Conference on AI Agents for Science (agents4science 2025). <a href="https://arxiv.org/abs/2510.21341">arXiv:2510.21341</a>.</li> <li>Related on this site: <a href="/log/blog/2026/priorzero/">PriorZero</a> — another MCTS-plus-LLM-guidance system, applied to sequential decision-making rather than creative idea generation; <a href="/log/blog/2026/bg-mcts/">BG-MCTS</a> — budget-aware MCTS for reasoning, a related use of guided search under a different objective.</li> </ul>]]></content><author><name></name></author><category term="paper-review"/><category term="mcts"/><category term="creativity"/><category term="llm"/><category term="search"/><category term="reasoning"/><summary type="html"><![CDATA[Paper review of Magellan (Lufan Chang, agents4science 2025) — a framework that reframes creative idea generation as guided MCTS over an LLM's latent conceptual space, replacing unreliable self-evaluation heuristics (as used in Tree-of-Thoughts) with a hierarchical guidance system: a global "semantic compass" and a local landscape-aware value function combining coherence, novelty, and progress.]]></summary></entry><entry><title type="html">PriorZero — Injecting LLM Priors into MuZero-Style World Models at the MCTS Root</title><link href="https://yjkim-stat.github.io/log/blog/2026/priorzero/" rel="alternate" type="text/html" title="PriorZero — Injecting LLM Priors into MuZero-Style World Models at the MCTS Root"/><published>2026-07-27T21:20:00+00:00</published><updated>2026-07-27T21:20:00+00:00</updated><id>https://yjkim-stat.github.io/log/blog/2026/priorzero</id><content type="html" xml:base="https://yjkim-stat.github.io/log/blog/2026/priorzero/"><![CDATA[<p><strong>Paper.</strong> Junyu Xiong, Yuan Pu, Jia Tang, Yazhe Niu. <em>PriorZero: Bridging Language Priors and World Models for Decision Making.</em> arXiv preprint, 2026. <a href="https://arxiv.org/abs/2605.12289">[arXiv]</a></p> <hr/> <h2 id="0-the-picture-in-one-paragraph">0. The Picture in One Paragraph</h2> <p>MuZero-family agents (and their scalable descendant, <strong>UniZero</strong>) learn a latent world model and plan over it with MCTS — powerful, but they learn everything about the environment’s dynamics and semantics from scratch through interaction. LLMs, in contrast, carry rich static world knowledge but no grounding in a specific environment’s actual transition dynamics — injecting their priors naively risks a <strong>prior-dynamics mismatch</strong> that corrupts the agent’s own learned lookahead. <strong>PriorZero</strong> resolves this with a deliberately narrow injection point: an LLM policy prior (computed from prompt log-probabilities over admissible actions, using a chain-of-thought prefix) is blended into the action distribution <strong>only at the MCTS root node</strong>. Every deeper simulation step — dynamics rollout, value backup, expansion — remains purely world-model-driven. The LLM cheaply biases <em>which actions get explored first</em> without ever touching the model’s own learned notion of how the environment actually behaves. On sparse-reward Jericho text-adventures and the compositional- generalization BabyAI suite, this gives PriorZero a clear edge over plain UniZero — including reaching 0.96 on a compositional level (SynthLoc) where UniZero alone learns almost nothing.</p> <hr/> <h2 id="1-the-problem--prior-dynamics-mismatch">1. The Problem — Prior-Dynamics Mismatch</h2> <p>An LLM’s world knowledge is static and general; a MuZero-style world model’s knowledge is learned, task-specific, and grounded in actual observed transitions. If an LLM prior is injected deeply into a planning process — say, at every internal MCTS node — it risks steering the search toward actions that <em>sound</em> plausible in general but are wrong for the actual (possibly idiosyncratic) dynamics of the specific environment, corrupting the value estimates the world model would otherwise have produced through honest simulation.</p> <hr/> <h2 id="2-the-priorzero-method">2. The PriorZero Method</h2> <p>Three gradient-decoupled components:</p> <ol> <li><strong>UniZero world model + latent MCTS</strong> — the base scalable MuZero-family planner, unchanged in its own dynamics/value/policy learning.</li> <li><strong>LLM prior module</strong> — scores admissible action strings via prompt log-probabilities, using a chain-of-thought prefix, normalized with a softmax (temperature 1) into a smooth prior distribution over the actions available at the current state.</li> <li><strong>Alternating trainer</strong> — the world model continually updates on interaction data (dynamics, policy, value losses) while its own value estimates, in alternation, provide a fine-grained credit-assignment signal used to fine-tune the LLM.</li> </ol> <h3 id="root-prior-injection">Root-prior injection</h3> <p>The core design decision: the LLM’s policy prior is blended into the action distribution <strong>only at the root node</strong> of each MCTS search. Internal nodes, dynamics rollouts, and value backups are left entirely to the world model. This means the LLM’s contribution is limited to biasing <em>which branches get explored/expanded first</em> from the current real state — a cheap, low-risk way to inject semantic knowledge without letting a potentially wrong static prior propagate through deep, compounding simulation steps.</p> <hr/> <h2 id="3-results">3. Results</h2> <p><strong>Jericho</strong> (text-adventure interactive fiction — Detective, Acorncourt, Zork1, Omniquest):</p> <ul> <li>On the sparse-reward games (Acorncourt, Omniquest), PriorZero reaches high-return regions substantially earlier than UniZero.</li> <li>On Detective, UniZero has an early advantage but PriorZero overtakes it as training progresses.</li> <li>On Zork1 (a large action space, &gt;50 admissible actions/step, long horizon), PriorZero reaches a higher asymptotic return than UniZero.</li> </ul> <p><strong>BabyAI</strong> (18 instruction-following gridworld levels):</p> <ul> <li>PriorZero’s average asymptotic score across levels is <strong>0.82</strong> versus UniZero’s <strong>0.79</strong>.</li> <li>On the compositional-generalization level <strong>SynthLoc</strong>, where UniZero learns almost nothing (near-zero), PriorZero reaches <strong>0.96</strong> — the clearest single result in the paper for where language priors help most: generalizing to novel action/object compositions the world model has not directly experienced.</li> </ul> <h3 id="llm-capacity-ablation">LLM capacity ablation</h3> <p>Swapping the default <strong>Qwen2.5-3B-Instruct</strong> prior source for <strong>Qwen2.5-7B-Instruct</strong> converges faster and reaches a higher asymptotic score on Zork1 — the quality of the injected prior scales with the underlying LLM’s capacity, as one would hope.</p> <hr/> <h2 id="4-ablations">4. Ablations</h2> <ul> <li><strong>Alternating vs. non-alternating fine-tuning schedule</strong> — confirms the alternating (decoupled rollout/training) design is preferable to jointly optimizing world model and LLM prior in lockstep.</li> <li><strong>CoT-prefixed prior extraction with weighted token loss vs. plain action scoring</strong> — the CoT-prefixed variant is the one used in the main results.</li> <li><strong>LLM capacity</strong> (3B vs. 7B) — larger LLM priors help, as above.</li> <li><strong>Necessity of MCTS lookahead depth</strong> — confirms that PriorZero’s gains depend on retaining genuine world-model search depth, not just on the LLM prior alone; a shallow-search variant loses much of the advantage.</li> </ul> <hr/> <h2 id="5-relationship-to-prior-work">5. Relationship to Prior Work</h2> <p>PriorZero is built directly on <strong>UniZero</strong>, itself part of the MuZero/EfficientZero lineage and released alongside the <strong>LightZero</strong> benchmark codebase. Its contribution relative to that lineage is narrow and specific: rather than proposing a new world model or a new MCTS variant, it identifies the <strong>root node</strong> as the right, minimally-invasive injection point for external LLM priors — a design choice that is easy to describe but whose value is only demonstrated empirically through the sparse-reward and compositional generalization results above.</p> <hr/> <h2 id="6-why-it-matters">6. Why It Matters</h2> <p>MCTS-based planners are excellent at exploiting a well-learned world model but can be slow to discover good actions in sparse-reward or combinatorially large action spaces, precisely because undirected search has to stumble onto the right branch before the world model can even evaluate it well. PriorZero’s root-only injection is a minimal-risk way to use an LLM’s general knowledge to narrow that initial search — a design pattern that generalizes beyond text adventures to any MCTS-based agent operating in an action space large enough that undirected exploration is the actual bottleneck, not world-model accuracy.</p> <hr/> <h2 id="7-limitations-worth-knowing">7. Limitations Worth Knowing</h2> <ul> <li><strong>Evaluated only on text/language-grounded environments</strong> (Jericho, BabyAI) — no results on classic MCTS domains like Atari, board games, or continuous-control robotics, where action spaces are not naturally describable as admissible strings for an LLM to score.</li> <li><strong>Inference-cost overhead of the added LLM scoring step</strong> at the MCTS root (extra LLM forward passes per search) is not reported in the sources reviewed here.</li> <li><strong>Root-only injection may leave value on the table</strong> in settings where useful semantic guidance would help deeper in the tree, not just at the root — the paper doesn’t explore that trade-off space.</li> <li><strong>Generalization beyond Jericho/BabyAI-scale action spaces</strong> is untested; both benchmarks are relatively small/discrete compared to many real-world decision-making settings.</li> </ul> <hr/> <h2 id="8-the-takeaway-for-a-first-reader">8. The Takeaway for a First Reader</h2> <p>If you remember three things:</p> <ol> <li><strong>Naively injecting LLM priors deep into MCTS risks corrupting the world model’s own learned lookahead</strong> — a prior-dynamics mismatch problem PriorZero avoids by design.</li> <li><strong>Root-prior injection</strong> blends the LLM’s policy prior into the action distribution only at the MCTS root node, leaving all deeper simulation, value backup, and dynamics rollout purely world-model-driven.</li> <li>The gains are <strong>largest exactly where undirected search struggles most</strong>: sparse-reward text-adventures and compositional generalization (0.96 vs. near-zero on BabyAI’s SynthLoc level) — suggesting the technique targets exploration bottlenecks specifically, not general sample efficiency.</li> </ol> <hr/> <h2 id="references">References</h2> <ul> <li>Xiong, J., Pu, Y., Tang, J., &amp; Niu, Y. (2026). <em>PriorZero: Bridging Language Priors and World Models for Decision Making.</em> <a href="https://arxiv.org/abs/2605.12289">arXiv:2605.12289</a>.</li> <li>Related on this site: <a href="/log/blog/2026/bg-mcts/">BG-MCTS</a> — budget-aware MCTS for LLM reasoning, a complementary use of search budget rather than search guidance; <a href="/log/blog/2026/magellan/">Magellan</a> — another MCTS-plus-LLM-guidance system, applied to creative idea generation rather than sequential decision-making.</li> </ul>]]></content><author><name></name></author><category term="paper-review"/><category term="rl"/><category term="mcts"/><category term="world-models"/><category term="llm"/><category term="decision-making"/><summary type="html"><![CDATA[Paper review of PriorZero (Xiong, Pu, Tang, Niu) — a method for combining LLM semantic priors with UniZero-style latent world models by blending the LLM's policy prior into MCTS only at the root node, preserving the world model's own deep lookahead while cheaply steering exploration toward semantically plausible actions. Strong gains on sparse-reward Jericho text-adventures and compositional generalization in BabyAI.]]></summary></entry><entry><title type="html">SuperThoughts — Reasoning Tokens in Superposition</title><link href="https://yjkim-stat.github.io/log/blog/2026/superthoughts/" rel="alternate" type="text/html" title="SuperThoughts — Reasoning Tokens in Superposition"/><published>2026-07-27T21:15:00+00:00</published><updated>2026-07-27T21:15:00+00:00</updated><id>https://yjkim-stat.github.io/log/blog/2026/superthoughts</id><content type="html" xml:base="https://yjkim-stat.github.io/log/blog/2026/superthoughts/"><![CDATA[<p><strong>Paper.</strong> Zheyang Xiong, Shivam Garg, Max Yu, Vaishnavi Shrivastava, Haoyu Zhao, Anastasios Kyrillidis, Dimitris Papailiopoulos. <em>SuperThoughts: Reasoning Tokens in Superposition.</em> ICML 2026. University of Wisconsin–Madison, Microsoft Research, Princeton University, Rice University. <a href="https://arxiv.org/abs/2606.13862">[arXiv]</a></p> <hr/> <h2 id="0-the-picture-in-one-paragraph">0. The Picture in One Paragraph</h2> <p>Long chain-of-thought reasoning is expensive not because of the total number of FLOPs alone, but because tokens are generated strictly <strong>sequentially</strong> — one forward pass, one token, repeat. Prior attempts to reason in continuous latent space (Coconut, CODI, CoLaR) sidestep discrete decoding but tend to be unstable to train and don’t scale past short reasoning chains. <strong>SuperThoughts</strong> takes a middle path: during the CoT phase, a <strong>Compressor</strong> module folds each <em>pair</em> of consecutive CoT tokens into a single latent vector; from that one latent, a <strong>Main module</strong> predicts the next token and a lightweight <strong>Multi-Token Prediction (MTP)</strong> module predicts the token after that — two tokens decoded per forward step, while discrete token supervision is preserved throughout training (the key stabilizer missing from pure continuous-latent methods). Because compressing every step this aggressively is fragile on hard reasoning tokens, a <strong>confidence-based adaptive mechanism</strong> checks the MTP module’s max softmax probability at each step against a threshold: below it, the model falls back to the slower, more reliable Main-module decoding. Evaluated on Qwen2.5-Math models, this yields roughly <strong>20–30% CoT length reduction with near-parity accuracy</strong> on MATH500, AMC, OlympiadBench, and GPQA-Diamond.</p> <hr/> <h2 id="1-the-problem--sequential-decoding-is-the-bottleneck">1. The Problem — Sequential Decoding Is the Bottleneck</h2> <p>Standard autoregressive CoT generates one token per forward pass, in order. Even if two consecutive tokens are jointly “easy” to predict together, the model still pays for two full forward passes. Prior attempts to fix this by reasoning in continuous latent space entirely (no discrete tokens at all) run into two problems: <strong>training instability</strong> (there’s no clean supervision signal for a latent that was never meant to be decoded) and <strong>short-horizon-only</strong> effectiveness — Coconut, CODI, and CoLaR are reported to work for reasoning chains of roughly 20–60 tokens but don’t transfer to the longer, more complex chains typical of real math/reasoning benchmarks.</p> <hr/> <h2 id="2-the-superthoughts-method">2. The SuperThoughts Method</h2> <h3 id="21-three-modules">2.1 Three modules</h3> <ul> <li><strong>Compressor</strong>: encodes a pair of consecutive CoT tokens into one latent vector.</li> <li><strong>Main module</strong>: from that latent, predicts the immediate next token — this is the “primary,” higher-quality decoding path.</li> <li><strong>MTP module</strong>: a lightweight head that, from the same latent, predicts the token <em>after</em> the Main module’s prediction — a second token “in superposition” with the first, decoded without an additional full forward pass.</li> </ul> <h3 id="22-two-stage-training">2.2 Two-stage training</h3> <ol> <li><strong>Latent-space alignment</strong>: the compressed latent space is distilled from a discrete-token teacher, so the compressed representation starts out anchored to real token semantics rather than drifting into an arbitrary continuous space.</li> <li><strong>Joint end-to-end training</strong>: all three modules are trained together, with <strong>discrete token supervision preserved throughout</strong> — unlike Coconut-style approaches that drop discrete supervision once latent reasoning kicks in. This is the paper’s claimed source of training stability at longer horizons.</li> </ol> <h3 id="23-confidence-gated-adaptive-inference">2.3 Confidence-gated adaptive inference</h3> <p>At each step, the MTP module’s max softmax probability is compared against a threshold τ. If confidence is high, the fast two-token superposition path is used. If confidence falls below τ, the model discards the MTP shortcut and falls back to feeding the latent into the Main module for standard, single-token decoding — self-regulating speed so that easy spans compress aggressively while hard reasoning steps get full-resolution treatment.</p> <hr/> <h2 id="3-results">3. Results</h2> <p>Backbones: <strong>Qwen2.5-Math-1.5B, -7B, -14B</strong> (Instruct variants), evaluated on <strong>MATH500, AMC, OlympiadBench, GPQA-Diamond</strong>.</p> <p><strong>With adaptive (confidence-gated) inference:</strong></p> <table> <thead> <tr> <th>Model</th> <th>Setting</th> <th>Accuracy</th> <th>CoT length reduction</th> </tr> </thead> <tbody> <tr> <td>1.5B</td> <td>τ = 0.999</td> <td>MATH500: 73.0% vs. 72.4% baseline</td> <td>~36%</td> </tr> <tr> <td>7B</td> <td>τ = 0.9999</td> <td>within 0.9–2.2 pts of baseline across benchmarks</td> <td>~30–34%</td> </tr> </tbody> </table> <p><strong>Without adaptive fallback (fixed 2-token superposition on every step):</strong></p> <table> <thead> <tr> <th>Model</th> <th>Length reduction</th> <th>Accuracy cost</th> </tr> </thead> <tbody> <tr> <td>1.5B</td> <td>47–54%</td> <td>−14.7 to −21.3 points</td> </tr> <tr> <td>7B</td> <td>48–53%</td> <td>−5.6 to −12.1 points</td> </tr> </tbody> </table> <p>Two things stand out here. First, the <strong>adaptive mechanism is doing most of the work</strong> — pure fixed-rate compression is aggressive but expensive in accuracy, while confidence-gated compression recovers near-parity accuracy at a more modest (but still substantial) compression rate. Second, there is a clear <strong>scale-tolerance effect</strong>: the 7B model degrades less than the 1.5B model under equally aggressive fixed compression, suggesting larger models have more redundant capacity to absorb the loss of per-token discrete supervision.</p> <hr/> <h2 id="4-why-speculative-decoding-isnt-the-right-comparison">4. Why Speculative Decoding Isn’t the Right Comparison</h2> <p>The paper is explicit that speculative decoding is not a fair baseline: speculative decoding targets <strong>latency under low hardware utilization</strong> (using spare compute to verify guesses in parallel), not a reduction in the <strong>total FLOPs</strong> spent on reasoning — which is SuperThoughts’ actual target. A method judged by tokens/sec under speculative decoding could look identical to SuperThoughts in latency while doing strictly more total computation.</p> <hr/> <h2 id="5-relationship-to-prior-work">5. Relationship to Prior Work</h2> <p>The MTP module design builds on prior multi-token-prediction work (Gloeckle et al., 2024, Meta; Liu et al., 2024). Relative to continuous-latent reasoning methods:</p> <table> <thead> <tr> <th>Method</th> <th>Supervision during latent phase</th> <th>Chain length tested</th> </tr> </thead> <tbody> <tr> <td>Coconut</td> <td>Dropped once in latent mode</td> <td>Short (~20–60 tokens)</td> </tr> <tr> <td>CODI</td> <td>Dropped once in latent mode</td> <td>Short</td> </tr> <tr> <td>CoLaR</td> <td>Dropped once in latent mode</td> <td>Short</td> </tr> <tr> <td><strong>SuperThoughts</strong></td> <td><strong>Preserved throughout (discrete supervision)</strong></td> <td><strong>Long, full benchmark-length CoT</strong></td> </tr> </tbody> </table> <p>Since Qwen2.5 models lack native multi-token-prediction heads, the authors train the MTP module from scratch; they note that models with native MTP support (Qwen3-Next, MiMo) would likely align more easily and could simplify training.</p> <hr/> <h2 id="6-why-it-matters">6. Why It Matters</h2> <p>SuperThoughts is a useful data point in the broader “compress reasoning without losing discrete supervision” agenda: rather than betting everything on a fully continuous latent reasoning space (which has repeatedly struggled to scale past short chains), it keeps one foot in discrete-token land while still getting a real 2× decode-step reduction on the fast path. The confidence gate is the load-bearing piece — it is what turns an aggressive-but-fragile compression scheme into one that holds up at benchmark-length reasoning chains.</p> <hr/> <h2 id="7-limitations-worth-knowing">7. Limitations Worth Knowing</h2> <ul> <li><strong>Requires training an MTP module from scratch</strong> for backbones without native multi-token-prediction support, adding training complexity absent in models that ship with MTP already.</li> <li><strong>Non-adaptive (fixed-rate) compression is fragile</strong>, especially at smaller scale — the adaptive mechanism is not optional for maintaining accuracy.</li> <li><strong>Throughput-doubling is a per-step decode claim</strong>, not an independently reported wall-clock tokens/sec measurement in the sources reviewed here — real-world speedup will depend on how the confidence-gated fallback rate behaves across different task distributions.</li> <li><strong>Scale-tolerance trend is only shown up to 14B parameters</strong>; whether even larger models could tolerate 3+ tokens in superposition is speculated but not tested.</li> </ul> <hr/> <h2 id="8-the-takeaway-for-a-first-reader">8. The Takeaway for a First Reader</h2> <p>If you remember three things:</p> <ol> <li><strong>SuperThoughts compresses pairs of consecutive CoT tokens into a single latent</strong>, decoding two tokens per forward step via a Main module (primary) and a lightweight MTP module (secondary) — while keeping discrete token supervision throughout training, unlike prior continuous-latent reasoning methods.</li> <li>A <strong>confidence-gated adaptive mechanism</strong> falls back to standard single-token decoding on hard steps, which is what makes the method hold up on long reasoning chains rather than degrading sharply.</li> <li><strong>~20–30% CoT length reduction with near-parity accuracy</strong> on Qwen2.5-Math models across MATH500, AMC, OlympiadBench, and GPQA-Diamond — with larger models tolerating more aggressive compression than smaller ones.</li> </ol> <hr/> <h2 id="references">References</h2> <ul> <li>Xiong, Z., Garg, S., Yu, M., Shrivastava, V., Zhao, H., Kyrillidis, A., &amp; Papailiopoulos, D. (2026). <em>SuperThoughts: Reasoning Tokens in Superposition.</em> ICML 2026. <a href="https://arxiv.org/abs/2606.13862">arXiv:2606.13862</a>.</li> <li>Related on this site: <a href="/log/blog/2026/sol/">SOL</a> — token-level efficiency policies via GRPO, a complementary axis of inference-time compute reduction; <a href="/log/blog/2026/reasoning-cache/">Reasoning Cache</a> — another approach to controlling the cost of long reasoning traces.</li> </ul>]]></content><author><name></name></author><category term="paper-review"/><category term="reasoning"/><category term="efficiency"/><category term="latent-reasoning"/><category term="inference"/><category term="llm"/><summary type="html"><![CDATA[Paper review of SuperThoughts (Xiong, Garg, Yu, Shrivastava, Zhao, Kyrillidis, Papailiopoulos, ICML 2026, UW-Madison / Microsoft Research / Princeton / Rice) — compressing pairs of consecutive chain-of-thought tokens into a single latent representation and decoding two tokens per step via a lightweight multi-token-prediction module, with a confidence-gated fallback to standard decoding on hard reasoning steps. ~20-30% CoT length reduction near accuracy parity.]]></summary></entry><entry><title type="html">Huginn — Scaling Test-Time Compute via Recurrent Depth in Latent Space</title><link href="https://yjkim-stat.github.io/log/blog/2026/recurrent-depth/" rel="alternate" type="text/html" title="Huginn — Scaling Test-Time Compute via Recurrent Depth in Latent Space"/><published>2026-07-27T21:10:00+00:00</published><updated>2026-07-27T21:10:00+00:00</updated><id>https://yjkim-stat.github.io/log/blog/2026/recurrent-depth</id><content type="html" xml:base="https://yjkim-stat.github.io/log/blog/2026/recurrent-depth/"><![CDATA[<p><strong>Paper.</strong> Jonas Geiping, Sean McLeish, Neel Jain, John Kirchenbauer, Siddharth Singh, Brian R. Bartoldson, Bhavya Kailkhura, Abhinav Bhatele, Tom Goldstein. <em>Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach.</em> arXiv preprint, February 2025. ELLIS Institute Tübingen / Max-Planck Institute for Intelligent Systems / Tübingen AI Center, University of Maryland, Lawrence Livermore National Laboratory. <a href="https://arxiv.org/abs/2502.05171">[arXiv]</a></p> <hr/> <h2 id="0-the-picture-in-one-paragraph">0. The Picture in One Paragraph</h2> <p>Most test-time scaling scales compute by writing more chain-of-thought tokens — which requires specialized reasoning training data, burns context-window budget, and represents “thinking” as literal words. This paper (whose resulting model is nicknamed <strong>Huginn</strong>, after one of Odin’s two ravens — “Thought,” as opposed to its counterpart Muninn, “Memory”) takes a different route: a transformer split into a <strong>prelude</strong>, a small <strong>recurrent core</strong> (a handful of shared blocks), and a <strong>coda</strong>, where the recurrent core is looped R times <em>in latent space</em> before the coda decodes an output. No specialized chain-of- thought data is needed, small context windows suffice (the “thinking” never leaves latent space to consume context tokens), and R is a free knob at test time — more recurrence, more effective compute, without changing the parameter count. Trained at <strong>3.5B parameters and 800B tokens</strong> on Oak Ridge’s Frontier supercomputer, the model shows reasoning-benchmark gains that scale with recurrence depth up to a compute load roughly equivalent to a <strong>50B-parameter</strong> non-recurrent model — though it still trails the strongest explicit-CoT models on some benchmarks like GSM8K.</p> <hr/> <h2 id="1-the-problem--chain-of-thought-is-one-specific-way-to-spend-test-time-compute">1. The Problem — Chain-of-Thought Is One Specific Way to Spend Test-Time Compute</h2> <p>Explicit CoT test-time scaling works, but it has costs baked into its form: it needs reasoning-annotated or RL-shaped training data, it consumes the context window with literal reasoning tokens, and it assumes that useful intermediate computation can always be represented in words. The paper’s premise is that at least some of that computation is better represented as continued <strong>latent-space refinement</strong> of a hidden state, unconstrained by having to be periodically projected back into vocabulary space and re-embedded.</p> <hr/> <h2 id="2-architecture--prelude-recurrent-core-coda">2. Architecture — Prelude, Recurrent Core, Coda</h2> <p>The model is split into three parts:</p> <ul> <li><strong>Prelude</strong> (~2 transformer blocks): embeds the input into an initial latent state.</li> <li><strong>Recurrent core</strong> (~4 transformer blocks): a small shared bank of blocks that is looped R times, injected with a randomly initialized latent state at the start of recurrence and iteratively refining it.</li> <li><strong>Coda</strong> (~2 blocks + unembedding head): reads the final latent state after R iterations and decodes the output.</li> </ul> <p>Because the recurrent core is weight-tied across iterations, looping it R times adds no parameters — only compute. R is chosen at test time (commonly 16–128 in the paper’s experiments), giving <strong>per-token adaptive compute</strong>: easy tokens can be decoded after few iterations, hard tokens can keep looping. The design is also compatible with KV-cache sharing across recurrence steps and with speculative decoding, since the recurrent core’s weight-tying means cached key/value projections from earlier iterations remain valid.</p> <h3 id="training-the-recurrence">Training the recurrence</h3> <p>Rather than fixing R during training, the depth per training step is sampled from a <strong>Poisson-log-normal distribution with mean 32</strong>, and backpropagation is <strong>truncated to the last 8 recurrence passes</strong> to bound memory and compute. This lets the model see a wide range of recursion depths during training without paying the full back-through-time cost of the deepest ones.</p> <hr/> <h2 id="3-training-scale">3. Training Scale</h2> <p>The model was trained at <strong>3.5B parameters</strong> on <strong>800B tokens</strong>, using <strong>21 training segments of 4,096 AMD MI250X GPUs</strong> on the Oak Ridge Frontier supercomputer — a substantial systems effort in its own right, reflecting the difficulty of training recurrent-depth models at scale (variable computational graphs per step complicate standard data/pipeline parallelism).</p> <hr/> <h2 id="4-results">4. Results</h2> <p>Reasoning-benchmark performance improves — “sometimes dramatically” — as recurrence depth R increases, up to a compute budget roughly equivalent to a <strong>50B-parameter</strong> non-recurrent model, at which point gains from further recurrence plateau or mildly decline (tested out to R ≈ 128–256). On GSM8K without explicit CoT prompting, accuracy rises with more recurrence steps before plateauing — outperforming similarly-sized non-recurrent open baselines like Pythia-6.9B and Pythia-12B on ARC and GSM8K. Gains are most pronounced on math- and logic-heavy benchmarks (GSM8K, ARC-Challenge); they are flatter on knowledge-heavy benchmarks like MMLU and HellaSwag, where extra latent recurrence has less to work with. Notably, plain recurrent-depth scaling still <strong>lags the strongest explicit-CoT models</strong> on GSM8K, even as it substantially closes the gap against non-recurrent baselines of similar parameter count.</p> <hr/> <h2 id="5-emergent-latent-space-behavior">5. Emergent Latent-Space Behavior</h2> <p>Qualitative analysis of the recurrent core’s trajectories through latent space finds recognizable geometric patterns tied to task type:</p> <ul> <li><strong>Orbits</strong> — rotating, cyclic trajectories on tasks with an iterative structure.</li> <li><strong>Sliders</strong> — progressive, monotonic movement through latent space on counting-like tasks.</li> <li><strong>Fixed-point convergence</strong> — the latent state settling into a stable point once further recurrence stops changing the answer.</li> </ul> <p>The authors also report a genuine <strong>self-correction</strong> behavior: on some examples, the model detects and revises an earlier wrong intermediate value during later recurrence steps — computation that happens entirely in latent space, never surfacing as a visible, correctable chain-of-thought token.</p> <hr/> <h2 id="6-why-it-matters">6. Why It Matters</h2> <p>This paper is a foundational reference point for the whole looped/recurrent-depth transformer line — both LoopFormer’s elastic-depth training and Think-at-Hard’s selective per-token iteration (both reviewed alongside this post) explicitly position themselves relative to it. Huginn establishes that (a) latent-space recurrence is trainable at real scale (3.5B/800B tokens) without specialized reasoning data, and (b) depth genuinely functions as a test-time compute knob with measurable accuracy gains — the base result that later work refines by making depth <em>elastic</em> (LoopFormer) or <em>selective per token</em> (TaH) rather than a single global recurrence count.</p> <hr/> <h2 id="7-limitations-worth-knowing">7. Limitations Worth Knowing</h2> <ul> <li><strong>Proof-of-concept scale.</strong> The authors describe this as an early demonstration; 3.5B parameters is modest by frontier-model standards, and it is unclear how the recurrence-depth scaling curve behaves at 10× or 100× the parameter count.</li> <li><strong>Gains plateau and can mildly degrade at very high recurrence counts</strong> (roughly R ≈ 128–256 in the reported experiments) — more test-time compute is not unboundedly beneficial.</li> <li><strong>Still trails top explicit-CoT models on some benchmarks</strong> (e.g., GSM8K), meaning recurrent-depth latent reasoning is not (yet) a strict replacement for chain-of-thought, more a complementary or partially substitutable mechanism.</li> <li><strong>Wall-clock cost of recurrence versus explicit CoT tokens</strong> is not directly compared in a hardware-normalized way in the sources reviewed here; the “compute-equivalent to 50B parameters” framing is a FLOPs-style comparison, not a latency benchmark.</li> </ul> <hr/> <h2 id="8-the-takeaway-for-a-first-reader">8. The Takeaway for a First Reader</h2> <p>If you remember three things:</p> <ol> <li><strong>Test-time compute doesn’t have to be spent on explicit CoT tokens</strong> — this paper scales it instead through R iterations of a shared recurrent block in latent space, with no specialized reasoning training data required.</li> <li>The architecture is <strong>prelude → recurrent core (looped R times) → coda</strong>, trained by sampling R per step from a Poisson-log-normal distribution (mean 32) with truncated backprop through the last 8 passes.</li> <li>At <strong>3.5B parameters / 800B tokens</strong>, the model (nicknamed <strong>Huginn</strong>) shows accuracy gains scaling with recurrence up to a ~50B-parameter compute-equivalent, with emergent latent-space self-correction — while still trailing top explicit-CoT models on some benchmarks.</li> </ol> <hr/> <h2 id="references">References</h2> <ul> <li>Geiping, J., McLeish, S., Jain, N., Kirchenbauer, J., Singh, S., Bartoldson, B.R., Kailkhura, B., Bhatele, A., &amp; Goldstein, T. (2025). <em>Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach.</em> <a href="https://arxiv.org/abs/2502.05171">arXiv:2502.05171</a>.</li> <li>Related on this site: <a href="/log/blog/2026/loopformer/">LoopFormer</a> — trains a single model for elastic, budget-conditioned loop depth, directly building on this recurrent-depth foundation; <a href="/log/blog/2026/think-at-hard/">Think-at-Hard</a> — pushes the same latent-iteration idea down to per-token selectivity rather than a single global recurrence count.</li> </ul>]]></content><author><name></name></author><category term="paper-review"/><category term="latent-reasoning"/><category term="test-time-scaling"/><category term="architecture"/><category term="reasoning"/><category term="llm"/><summary type="html"><![CDATA[Paper review of "Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach" (Geiping, McLeish, Jain, Kirchenbauer, Singh, Bartoldson, Kailkhura, Bhatele, Goldstein — ELLIS Institute Tubingen, University of Maryland, Lawrence Livermore National Laboratory) — the "Huginn" model, which scales test-time compute by looping a shared recurrent block in latent space instead of emitting explicit chain-of-thought tokens, trained at 3.5B parameters / 800B tokens on the Frontier supercomputer.]]></summary></entry><entry><title type="html">LoopFormer — Elastic-Depth Looped Transformers via Shortcut Modulation</title><link href="https://yjkim-stat.github.io/log/blog/2026/loopformer/" rel="alternate" type="text/html" title="LoopFormer — Elastic-Depth Looped Transformers via Shortcut Modulation"/><published>2026-07-27T21:05:00+00:00</published><updated>2026-07-27T21:05:00+00:00</updated><id>https://yjkim-stat.github.io/log/blog/2026/loopformer</id><content type="html" xml:base="https://yjkim-stat.github.io/log/blog/2026/loopformer/"><![CDATA[<p><strong>Paper.</strong> Ahmadreza Jeddi, Marco Ciccone, Babak Taati. <em>LoopFormer: Elastic-Depth Looped Transformers for Latent Reasoning via Shortcut Modulation.</em> ICLR 2026. University of Toronto, Vector Institute, University Health Network. <a href="https://arxiv.org/abs/2602.11451">[arXiv]</a></p> <hr/> <h2 id="0-the-picture-in-one-paragraph">0. The Picture in One Paragraph</h2> <p>Looped transformers — a shared block applied M times instead of M distinct layers — have become a popular way to add algorithmic and latent-reasoning inductive bias without adding parameters. But every prior design (Universal Transformers, ACT, recurrent-depth models like Huginn) <strong>fixes the loop count</strong> at training time, or samples it randomly without ensuring different depths are actually consistent with each other. <strong>LoopFormer</strong> asks a different question: can a <em>single trained model</em> support <strong>elastic depth</strong> at inference — pick any budget M ≤ L after training, with quality degrading gracefully rather than collapsing? The mechanism is <strong>shortcut modulation</strong>: each loop iteration is conditioned on its cumulative normalized time and step size via sine-cosine embeddings feeding a FiLM-style layer that scales norms and gates residual updates. Training adds a <strong>shortcut-consistency</strong> objective — coarse (shortcut) schedules are distilled to match the representation a fine-grained (full) schedule would have produced — so that fewer, coarser steps at inference still approximate what many fine steps would give. The result is a model that scales <em>smoothly</em> with added inference budget rather than requiring a separately trained model per depth.</p> <hr/> <h2 id="1-the-problem--depth-as-a-training-time-hyperparameter">1. The Problem — Depth as a Training-Time Hyperparameter</h2> <p>Weight-tied looped transformers repeat one block M times. Prior designs pick M once and bake it in:</p> <ul> <li><strong>Universal Transformers / ACT</strong>: per-token adaptive halting, but the halting policy is learned jointly with a specific training-time schedule.</li> <li><strong>Huginn (recurrent-depth)</strong>: samples the recurrence depth per <em>training step</em> from a distribution, discarding any explicit halting mechanism, and treats depth as a test-time knob — but does not explicitly train different depths to be <em>consistent</em> with each other.</li> </ul> <p>None of these give a single model a <strong>principled, budget-conditioned</strong> way to trade inference compute for quality at deployment time, with a guarantee that a shorter schedule is a genuine approximation of a longer one rather than an arbitrary truncation.</p> <hr/> <h2 id="2-the-loopformer-mechanism">2. The LoopFormer Mechanism</h2> <h3 id="21-time-and-step-size-conditioning">2.1 Time and step-size conditioning</h3> <p>Each loop iteration i is given two scalars: the cumulative normalized time t_{i-1} (how far along the 0→1 schedule the model already is) and the step size Δ_i = t_i − t_{i-1} it is about to take. Both are turned into sine-cosine frequency embeddings, passed through small MLPs, and summed into a single conditioning vector e_i — the same style of timestep conditioning used in diffusion models, repurposed for transformer loop depth.</p> <h3 id="22-shortcut-modulation">2.2 Shortcut modulation</h3> <p>The conditioning vector e_i drives a small FiLM-style MLP that produces scale parameters (γ1, γ2) for two RMSNorm layers and gates (α1, α2) applied before the attention and FFN residual connections. This lets the same shared block behave differently depending on where in the schedule — and how coarse a step — the current iteration represents.</p> <h3 id="23-shortcut-consistency-training">2.3 Shortcut-consistency training</h3> <p>Within a batch, LoopFormer runs <strong>both</strong> a full-length route (many fine-grained steps) and a shorter “shortcut” route (a coarser step schedule) through the <em>same</em> weights. The shortcut route’s final representation is trained — via a stop-gradient target from the full route — to match what the full route would have produced. This is a form of self-distillation <em>within the loop</em>: coarse schedules learn to approximate the outcome of fine-grained ones, rather than just being truncated fine-grained runs.</p> <h3 id="24-elastic-depth-inference">2.4 Elastic-depth inference</h3> <p>At inference, a user picks any budget M ≤ L and any step schedule (e.g., coarser early, finer late — an ablation finding), with no retraining required. The architecture itself is a NanoGPT fork with RMSNorm in place of LayerNorm, kept close to the original for reproducibility.</p> <hr/> <h2 id="3-results">3. Results</h2> <p>LoopFormer is evaluated across a budget sweep of loop counts K ∈ {1, 3, 6, 9, 12}, with <strong>language-modeling perplexity</strong> and <strong>zero-shot accuracy across roughly ten benchmarks</strong> — COPA, HellaSwag, LAMBADA, OpenBookQA, PIQA, RACE, Social IQA, ARC (Easy + Challenge), SciQ, and WinoGrande — compared at matched compute against vanilla non-looped transformers, fixed-depth looped baselines, and adaptive early-exit baselines.</p> <p>The headline qualitative finding: <strong>LoopFormer scales smoothly and monotonically with added inference budget</strong>, whereas fixed-depth baselines that are asked to run at an off-schedule depth degrade sharply rather than gracefully. (The paper’s precise numeric perplexity/accuracy tables were not independently verifiable while drafting this review — arXiv access was intermittently blocked — so treat the exact magnitudes as reported by the authors rather than independently re-derived here.)</p> <hr/> <h2 id="4-ablations">4. Ablations</h2> <ul> <li><strong>Schedule shape matters.</strong> The best-performing schedules take coarser steps early in the loop and finer steps late — mirroring a common pattern in diffusion-model noise schedules.</li> <li><strong>Perplexity-optimal ≠ accuracy-optimal.</strong> The schedule that minimizes language-modeling perplexity is not always the one that maximizes downstream reasoning accuracy — a reminder that perplexity is an imperfect proxy for reasoning quality.</li> <li><strong>Training cost.</strong> Running both a full and a shortcut route per batch increases training cost roughly 1.5× relative to training a single fixed-depth schedule.</li> </ul> <hr/> <h2 id="5-relationship-to-prior-work">5. Relationship to Prior Work</h2> <table> <thead> <tr> <th>Method</th> <th>Depth policy</th> <th>Consistency across depths</th> </tr> </thead> <tbody> <tr> <td>Universal Transformer / ACT</td> <td>Per-token learned halting</td> <td>Implicit via halting loss</td> </tr> <tr> <td>Huginn (recurrent depth)</td> <td>Randomly sampled per training step</td> <td>Not explicitly enforced</td> </tr> <tr> <td>Neural GPUs, DEQ</td> <td>Fixed-point / equilibrium depth</td> <td>N/A (single operating point)</td> </tr> <tr> <td><strong>LoopFormer</strong></td> <td><strong>User-chosen budget at inference</strong></td> <td><strong>Explicit shortcut-consistency distillation</strong></td> </tr> </tbody> </table> <p>The key differentiator from Huginn — the most directly comparable prior system, and reviewed separately on this site — is that Huginn samples depth randomly during training without an explicit mechanism ensuring a short rollout approximates a long one; LoopFormer makes that approximation an explicit training objective.</p> <hr/> <h2 id="6-why-it-matters">6. Why It Matters</h2> <p>Elastic inference-time depth, if it holds up at larger scale, turns “how much do I want to spend on this token/prompt” into a genuine runtime knob rather than a model-selection decision made before training. Combined with token-level selective iteration methods (like Think-at-Hard, reviewed alongside this post), the looped-transformer line is converging on a picture where compute allocation is both <strong>elastic at the sequence level</strong> (LoopFormer) and <strong>selective at the token level</strong> (TaH) — two largely orthogonal axes of the same broader “stop paying uniform compute for reasoning” agenda.</p> <hr/> <h2 id="7-limitations-worth-knowing">7. Limitations Worth Knowing</h2> <ul> <li><strong>Global, sequence-level budget.</strong> The chosen depth M applies to the whole sequence, not per-token or per-instance — LoopFormer does not currently combine its elastic budget with the kind of per-token selectivity TaH introduces.</li> <li><strong>~1.5× training overhead</strong> from running both full and shortcut routes per batch.</li> <li><strong>Representation-consistency analysis is correlational</strong>, not a causal guarantee that shortcut routes always faithfully approximate full routes on out-of-distribution inputs.</li> <li><strong>Scale and exact benchmark numbers</strong> were not independently re-verified for this review beyond what search-indexed sources reported; readers should consult the primary PDF for exact figures.</li> </ul> <hr/> <h2 id="8-the-takeaway-for-a-first-reader">8. The Takeaway for a First Reader</h2> <p>If you remember three things:</p> <ol> <li><strong>Prior looped transformers fix loop depth at training time</strong>; LoopFormer instead trains one model to support <strong>elastic, user-chosen depth at inference</strong>.</li> <li>The mechanism is <strong>shortcut modulation</strong> (time/step-size conditioning via FiLM-style gates) plus <strong>shortcut-consistency training</strong> — coarse schedules are explicitly distilled to approximate fine-grained ones.</li> <li>LoopFormer <strong>scales smoothly with added budget</strong> where fixed-depth and early-exit baselines degrade sharply off their trained schedule — depth becomes a genuine runtime trade-off knob.</li> </ol> <hr/> <h2 id="references">References</h2> <ul> <li>Jeddi, A., Ciccone, M., &amp; Taati, B. (2026). <em>LoopFormer: Elastic-Depth Looped Transformers for Latent Reasoning via Shortcut Modulation.</em> ICLR 2026. <a href="https://arxiv.org/abs/2602.11451">arXiv:2602.11451</a>.</li> <li>Related on this site: <a href="/log/blog/2026/think-at-hard/">Think-at-Hard</a> — token-level selective iteration, an orthogonal axis of compute allocation to LoopFormer’s sequence-level elastic depth; <a href="/log/blog/2026/sol/">SOL</a> — token-level efficiency policies for frozen LLMs, another point in the same design space of learned, granular compute allocation.</li> </ul>]]></content><author><name></name></author><category term="paper-review"/><category term="looped-transformers"/><category term="adaptive-compute"/><category term="latent-reasoning"/><category term="architecture"/><category term="llm"/><summary type="html"><![CDATA[Paper review of LoopFormer (Jeddi, Ciccone, Taati, ICLR 2026, University of Toronto / Vector Institute / UHN) — a looped transformer trained on variable-length recurrence trajectories so a single set of weights supports elastic inference-time depth. A shortcut-consistency training scheme distills coarse-schedule representations toward fine-schedule ones, letting users trade compute for quality at inference without retraining.]]></summary></entry><entry><title type="html">Think-at-Hard — Selective Latent Iteration for Looped Reasoning Transformers</title><link href="https://yjkim-stat.github.io/log/blog/2026/think-at-hard/" rel="alternate" type="text/html" title="Think-at-Hard — Selective Latent Iteration for Looped Reasoning Transformers"/><published>2026-07-27T21:00:00+00:00</published><updated>2026-07-27T21:00:00+00:00</updated><id>https://yjkim-stat.github.io/log/blog/2026/think-at-hard</id><content type="html" xml:base="https://yjkim-stat.github.io/log/blog/2026/think-at-hard/"><![CDATA[<p><strong>Paper.</strong> Tianyu Fu, Yichen You, Zekai Chen, Guohao Dai, Huazhong Yang, Yu Wang. <em>Think-at-Hard: Selective Latent Iterations to Improve Reasoning Language Models.</em> ICML 2026. Tsinghua University (NICS-EFC Lab). <a href="https://arxiv.org/abs/2511.08577">[arXiv]</a></p> <hr/> <h2 id="0-the-picture-in-one-paragraph">0. The Picture in One Paragraph</h2> <p>Looped transformers give every token a second (or third) latent forward pass before it commits to an output — a cheap, training-data-free form of test-time reasoning. The implicit assumption is that more iteration is always at least neutral. <strong>Think-at-Hard (TaH)</strong> shows this assumption is false: a fixed “always iterate twice” policy flips more correct first-pass predictions into wrong ones than it fixes — a <strong>latent overthinking phenomenon</strong>, the looped-transformer analogue of overthinking in explicit chain-of-thought. TaH replaces the fixed policy with a <strong>lightweight neural decider</strong> that predicts, per token, whether the first pass is likely wrong and only then triggers a second latent iteration. To make this selective computation actually fast in parallel hardware, TaH introduces <strong>duo-causal attention</strong> — a causal mask extended across a 2D (sequence position, iteration depth) grid — plus <strong>depth-aware LoRA adapters</strong> that activate only on the extra pass. The result: TaH beats a fixed-two-iteration baseline by <strong>8–11%</strong> while skipping <strong>94%</strong> of second iterations, and beats a same-data single-iteration Qwen3 baseline by roughly <strong>4–5%</strong>.</p> <hr/> <h2 id="1-the-problem--latent-overthinking">1. The Problem — Latent Overthinking</h2> <p>A looped transformer processes a token through a shared block once, then optionally again, refining the hidden state before it is decoded. The implicit bet made by every prior looped-transformer design (Universal Transformers, Huginn-style recurrent depth) is that iterating uniformly across all tokens can only help or be neutral.</p> <p>TaH’s diagnostic experiment — an <strong>“AlwaysThink”</strong> ablation that forces a second iteration on every token — shows the opposite: tracking per-token prediction transitions across iteration depths reveals that <strong>more predictions flip from correct to incorrect than from incorrect to correct</strong>. Most tokens are already right after the first pass; the second pass, applied indiscriminately, does more harm than good on average. This mirrors the well-documented overthinking failure mode in explicit CoT reasoning, but at the level of a single token’s hidden state rather than a whole reasoning trace.</p> <hr/> <h2 id="2-the-tah-framework">2. The TaH Framework</h2> <h3 id="21-lightweight-neural-decider">2.1 Lightweight neural decider</h3> <p>A small classifier reads the first-pass hidden state at each token position and predicts whether that token’s first-pass top-1 prediction is likely wrong. It is trained against oracle labels: a token is labeled “iterate” if running the second pass actually corrects it relative to a reference. At inference, the decider gates the second iteration per token — most tokens skip it entirely.</p> <h3 id="22-duo-causal-attention">2.2 Duo-causal attention</h3> <p>Selective, per-token iteration creates a structural problem: different tokens in the same sequence are now at different iteration depths, but training and inference still need to run in parallel, not token-by-token. TaH’s fix is to extend the causal mask from the usual 1D (sequence position) axis to a <strong>2D grid of (position, depth)</strong>: a token attends to all earlier positions and to states at or below its own iteration depth at the same and earlier positions. This preserves causality on both axes while keeping full sequence-level parallelism — no serialization penalty for mixing 1-pass and 2-pass tokens in one forward call.</p> <h3 id="23-depth-aware-lora-adapters">2.3 Depth-aware LoRA adapters</h3> <p>Small LoRA adapters are active <em>only</em> during the second (extra) pass. This decouples the backbone’s original next-token objective (used on the first pass) from a narrower refinement objective (used only when the decider triggers a second pass), letting the extra parameters specialize in fixing likely-wrong tokens rather than diluting the general-purpose first-pass behavior.</p> <h3 id="24-tah--a-cheap-upper-bound">2.4 TaH+ — a cheap upper bound</h3> <p>A variant, TaH+, skips the decider and its selective gating entirely, always running the second pass with the LoRA adapters active (under 3% extra parameters). It is not meant to be efficient — it is a cheap way to check how much of TaH’s decider-gated gain comes from the adapters themselves versus the selectivity.</p> <hr/> <h2 id="3-training">3. Training</h2> <p>TaH is fine-tuned from <strong>Qwen3-Base</strong> at <strong>0.6B and 1.7B</strong> scale on the <strong>Open-R1</strong> reasoning dataset. The decider is trained as a binary classifier against oracle iterate/don’t-iterate labels derived from per-token correctness deltas between the first and second pass. Evaluation spans <strong>nine benchmarks</strong> across math, QA, and coding, including GSM8K, MATH500, and AIME24/AIME25.</p> <hr/> <h2 id="4-results">4. Results</h2> <table> <thead> <tr> <th>Comparison</th> <th>TaH gain</th> <th>Second-iteration compute saved</th> </tr> </thead> <tbody> <tr> <td>vs. AlwaysThink (fixed 2-pass on every token)</td> <td><strong>+8.1 to +11.3%</strong></td> <td><strong>94%</strong> of second passes skipped</td> </tr> <tr> <td>vs. Ouro (looped-transformer baseline, same data)</td> <td>+3.8 to +4.4%</td> <td>93% of second passes skipped</td> </tr> <tr> <td>vs. Standard single-iteration Qwen3 (same data)</td> <td>~4–5%</td> <td>—</td> </tr> <tr> <td>Oracle iteration policy (upper bound)</td> <td>up to +7.3%</td> <td>—</td> </tr> </tbody> </table> <p>On AIME25, TaH reaches 17.9% versus a 13.3% standard single-iteration baseline. The gap between TaH’s realized gains and the <strong>oracle ceiling of +7.3%</strong> is itself informative: the trained decider captures most, but not all, of the available headroom — there is still knowable-but-unexploited signal about which tokens need a second pass.</p> <hr/> <h2 id="5-why-it-matters">5. Why It Matters</h2> <p>Looped/recurrent-depth transformers (this blog has covered several — see the recurrent-depth and elastic-depth family below) treat “how many iterations” as either a fixed hyperparameter or a global, sequence-level budget. TaH pushes the granularity down to <strong>individual tokens</strong>, and — more importantly — demonstrates empirically that uniform iteration is not merely wasteful but actively <strong>harmful</strong> on net. That reframes the design question for the whole looped-transformer line: the goal isn’t just “skip iterations to save compute,” it’s “skip iterations because most of them are actively hurting accuracy.”</p> <hr/> <h2 id="6-limitations-worth-knowing">6. Limitations Worth Knowing</h2> <ul> <li><strong>Decider imperfectly approximates the oracle.</strong> The 7.3% oracle ceiling versus TaH’s realized 8–11% gain over AlwaysThink (a different, weaker baseline) shows there is still room for a better decider — the selectivity mechanism is good but not optimal.</li> <li><strong>Small-scale evaluation.</strong> Results are reported at 0.6B and 1.7B parameter scale; whether the overthinking phenomenon and the decider’s effectiveness hold at larger scales is untested here.</li> <li><strong>Binary, per-token gating is coarse.</strong> The decider makes a single iterate/don’t-iterate call; it does not decide <em>how much</em> extra computation a hard token deserves beyond one more pass.</li> <li><strong>Fine-tuned rather than pretrained from scratch.</strong> TaH is built on top of an existing Qwen3-Base checkpoint; interactions between the decider and pretraining-time objectives are not explored.</li> </ul> <hr/> <h2 id="7-the-takeaway-for-a-first-reader">7. The Takeaway for a First Reader</h2> <p>If you remember three things:</p> <ol> <li><strong>Looped transformers can overthink.</strong> Forcing a second latent iteration on every token flips more correct predictions to incorrect than the reverse — indiscriminate iteration is a net negative, not just a compute cost.</li> <li><strong>TaH fixes this with three pieces</strong>: a lightweight decider that gates the second pass per token, duo-causal attention that lets mixed-depth tokens be processed in parallel, and depth-aware LoRA adapters that specialize the extra pass toward refinement.</li> <li><strong>8–11% accuracy gain over a fixed-iteration baseline while skipping 94% of second passes</strong> — selective computation beats uniform computation, and the decider captures most (not all) of the oracle’s theoretical headroom.</li> </ol> <hr/> <h2 id="references">References</h2> <ul> <li>Fu, T., You, Y., Chen, Z., Dai, G., Yang, H., &amp; Wang, Y. (2026). <em>Think-at-Hard: Selective Latent Iterations to Improve Reasoning Language Models.</em> ICML 2026. <a href="https://arxiv.org/abs/2511.08577">arXiv:2511.08577</a>.</li> <li>Related on this site: <a href="/log/blog/2026/loopformer/">LoopFormer</a> — elastic, budget-conditioned loop depth trained via shortcut-consistency, a complementary approach to token-level selective iteration; <a href="/log/blog/2026/bg-mcts/">BG-MCTS</a> — another budget-aware test-time mechanism, at the level of search rather than latent iteration.</li> </ul>]]></content><author><name></name></author><category term="paper-review"/><category term="reasoning"/><category term="looped-transformers"/><category term="test-time-scaling"/><category term="adaptive-compute"/><category term="llm"/><summary type="html"><![CDATA[Paper review of Think-at-Hard / TaH (Fu, You, Chen, Dai, Yang, Wang, Tsinghua University) — a looped transformer that learns to run a second latent iteration only on tokens likely to be wrong after the first pass, via a lightweight decider, duo-causal attention across the (position, depth) grid, and depth-aware LoRA adapters. TaH gains 8-11% accuracy over a fixed-two-iteration baseline while skipping 94% of second passes.]]></summary></entry><entry><title type="html">Process Reward Agents — Online Step-Wise Steering for Knowledge-Intensive Reasoning</title><link href="https://yjkim-stat.github.io/log/blog/2026/pra/" rel="alternate" type="text/html" title="Process Reward Agents — Online Step-Wise Steering for Knowledge-Intensive Reasoning"/><published>2026-07-19T04:00:00+00:00</published><updated>2026-07-19T04:00:00+00:00</updated><id>https://yjkim-stat.github.io/log/blog/2026/pra</id><content type="html" xml:base="https://yjkim-stat.github.io/log/blog/2026/pra/"><![CDATA[<p><strong>Paper.</strong> Jiwoong Sohn, Tomasz Sternal, Kenneth Styppa, Torsten Hoefler, Michael Moor. <em>Process Reward Agents for Steering Knowledge-Intensive Reasoning.</em> ICML 2026. ETH Zürich · Heidelberg University. <a href="https://arxiv.org/abs/2604.09482">[arXiv]</a></p> <hr/> <h2 id="0-the-picture-in-one-paragraph">0. The Picture in One Paragraph</h2> <p>In math and code, intermediate reasoning steps are locally verifiable — you can check each algebraic step or run the code. In knowledge-intensive domains like medicine, step verification requires cross-referencing vast external knowledge bases, and a subtly wrong clinical inference may propagate through an entire reasoning trace undetected. <strong>Process Reward Agents (PRA)</strong> address this by training a dedicated <em>reward agent</em> — distinct from the reasoning policy — to observe the unfolding CoT trace, selectively query external knowledge via retrieval, and assign scalar reward scores to candidate continuations <em>during</em> beam search. The policy model is never fine-tuned; only the reward agent is trained. The result is a modular, backbone-agnostic plug-in: a frozen Qwen3-4B-Instruct reaches <strong>80.8% on MedQA</strong> (new SOTA at the 4B scale), with up to <strong>+25.7% improvement</strong> across frozen policy models ranging from 0.5B to 8B parameters. Unlike Self-Consistency, which degrades on hard benchmarks as more samples are added, PRA continues improving monotonically as inference compute scales.</p> <hr/> <h2 id="1-the-problem--non-local-verifiability">1. The Problem — Non-Local Verifiability</h2> <p>Process reward models (PRMs) have been applied successfully to mathematics: you train a reward model to score each step of a proof or calculation, then use those scores to guide beam search toward correct solutions. The recipe works because math steps are <em>locally verifiable</em> — you can determine whether an intermediate algebraic transformation is correct without knowing the final answer.</p> <p>Medical reasoning is structurally different:</p> <table> <thead> <tr> <th>Property</th> <th>Math / Code</th> <th>Medicine</th> </tr> </thead> <tbody> <tr> <td>Local verifiability</td> <td>Yes — each step checkable in isolation</td> <td>No — verifying a clinical inference requires synthesizing clues across large knowledge bases</td> </tr> <tr> <td>Error propagation</td> <td>Detectable early</td> <td>Subtle errors compound undetected through the trace</td> </tr> <tr> <td>External knowledge needed</td> <td>Rarely</td> <td>Constantly (drug interactions, symptom prevalence, guidelines)</td> </tr> </tbody> </table> <p>Prior retrieval-augmented PRMs score <em>completed</em> trajectories after the fact. They cannot steer what is generated — by the time a bad reasoning path is scored, the trajectory is already done. PRA’s contribution is making the process reward signal <em>online</em> and <em>integrated into the generation loop</em>.</p> <hr/> <h2 id="2-the-architecture--frozen-policy--reward-agent">2. The Architecture — Frozen Policy + Reward Agent</h2> <p>PRA decouples two roles that prior work combined:</p> <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Policy model (frozen)   →   generates candidate CoT continuations
         ↓
Reward agent (trained)  →   reads partial trace
                        →   decides whether to retrieve
                        →   synthesizes retrieved docs with trace
                        →   assigns reward score per candidate
         ↓
Beam search             →   prunes low-reward candidates
                        →   propagates high-reward candidates
</code></pre></div></div> <h3 id="21-frozen-policy-model">2.1 Frozen policy model</h3> <p>The reasoning policy generates text. It is never updated during PRA deployment. This separation means: when a better backbone model becomes available, you swap the frozen policy with no retraining of the reward agent. Domain expertise transfers.</p> <h3 id="22-reward-agent">2.2 Reward agent</h3> <p>A separate LLM trained to:</p> <ol> <li>Read the partial CoT trace up to the current step.</li> <li>Decide whether to issue a retrieval query.</li> <li>If retrieval is useful: select a query, retrieve relevant documents (medical literature, PubMed, clinical guidelines), and synthesize them with the trace.</li> <li>Assign a scalar reward score to each candidate continuation produced by the frozen policy.</li> </ol> <p>The reward agent’s training labels are generated by a teacher model: given the partial trace and retrieved documents at each step, the teacher assesses whether the partial step is on track. This produces “reasoning labels” that train the reward agent to assign reliable intermediate rewards at inference time.</p> <h3 id="23-integration-into-beam-search">2.3 Integration into beam search</h3> <p>At each beam search step:</p> <ol> <li>The frozen policy autoregressively proposes K candidate continuations.</li> <li>The reward agent scores each candidate.</li> <li>Beam search uses scores to rank and prune: low-scoring candidates are discarded, high-scoring ones propagate.</li> <li>Repeat until the final answer is generated.</li> </ol> <p>This is <strong>online</strong> (rewards computed during generation, not after) and <strong>process-level</strong> (rewards at intermediate steps, not just the final answer).</p> <hr/> <h2 id="3-results">3. Results</h2> <h3 id="31-medqa-usmle-style">3.1 MedQA (USMLE-style)</h3> <table> <thead> <tr> <th>Model</th> <th>Accuracy</th> </tr> </thead> <tbody> <tr> <td>PRA + Qwen3-4B-Instruct</td> <td><strong>80.8%</strong> (new SOTA at 4B scale)</td> </tr> <tr> <td>Improvement across 0.5B–8B frozen policies</td> <td>up to <strong>+25.7%</strong></td> </tr> </tbody> </table> <p>All improvements are achieved without modifying the policy model.</p> <h3 id="32-generalization-benchmarks">3.2 Generalization benchmarks</h3> <p>PRA is evaluated out-of-distribution on:</p> <ul> <li><strong>MedBullets Op4 / Op5</strong> (harder USMLE-style)</li> <li><strong>MedMCQA</strong> (Indian medical licensing exam)</li> <li><strong>MMLU-Med</strong> (medical subset of MMLU)</li> <li><strong>GPQA</strong> (graduate-level “Google-proof” expert questions)</li> <li><strong>Lancet clinical cases</strong> (real-world Lancet journal cases)</li> <li><strong>NEJM clinical cases</strong> (New England Journal of Medicine cases)</li> </ul> <p>PRA consistently outperforms baselines (greedy CoT, RAG, Self-Consistency, Best-of-N, post-hoc PRM scoring) across all benchmarks under matched sampling budgets.</p> <h3 id="33-inference-time-scaling-behavior">3.3 Inference-time scaling behavior</h3> <p>This is the most practically important finding:</p> <p><strong>Self-Consistency degrades on hard benchmarks.</strong> As the number of sampled trajectories increases past ~8, majority vote begins amplifying errors — the policy frequently produces incorrect responses across samples, so the plurality answer is wrong. Self-Consistency actively <em>hurts</em> accuracy on GPQA and Lancet at high sample counts.</p> <p><strong>PRA continues improving.</strong> Because step-wise steering recovers from early errors (rather than averaging over them), PRA’s accuracy increases monotonically with inference compute. There is no observed saturation point in the evaluated range.</p> <p>The mechanism is clear: when the policy starts down a wrong path, the reward agent’s low score causes that branch to be pruned before the error compounds. Self-Consistency has no such pruning — it samples independently and votes.</p> <h3 id="34-ablations">3.4 Ablations</h3> <table> <thead> <tr> <th>Ablation</th> <th>Finding</th> </tr> </thead> <tbody> <tr> <td>Process-level vs. outcome-level rewards</td> <td>Process-level substantially better</td> </tr> <tr> <td>Online vs. offline (post-hoc) timing</td> <td>Online substantially better</td> </tr> <tr> <td>Both process + online</td> <td>Necessary; removing either reduces performance substantially</td> </tr> </tbody> </table> <hr/> <h2 id="4-relation-to-prior-work">4. Relation to Prior Work</h2> <h3 id="post-hoc-prms">Post-hoc PRMs</h3> <p>Standard PRMs and retrieval-augmented PRMs score completed trajectories. They can identify good vs. bad completions after the fact, but they cannot intervene during generation to prevent bad paths from developing. PRA makes the reward signal <em>generative</em> — it shapes what is produced, not just evaluates what was produced.</p> <h3 id="rag-retrieval-augmented-generation">RAG (Retrieval-Augmented Generation)</h3> <p>Standard RAG appends retrieved documents to the prompt at the beginning. PRA retrieves <em>selectively at each step</em> based on what has been reasoned so far. The reward agent decides <em>whether</em> to retrieve and <em>what</em> to query based on the partial trace — a more targeted and dynamic use of retrieval.</p> <h3 id="best-of-n">Best-of-N</h3> <p>Best-of-N samples N complete trajectories and picks the highest-reward one. PRA prunes <em>during</em> generation, preventing bad branches from completing. This is more efficient and produces better results because early pruning stops error compounds before they occur.</p> <hr/> <h2 id="5-why-it-matters">5. Why It Matters</h2> <p>Three reasons:</p> <ol> <li><strong>Process-level rewards for knowledge-intensive domains.</strong> The PRM literature has largely focused on math. PRA is a concrete recipe for extending the process reward paradigm to domains where step verification requires external knowledge — a much larger class of real-world tasks.</li> <li><strong>Frozen policy + trained reward agent = modular deployability.</strong> The decoupled design means domain expertise lives in the reward agent, not the policy. You can upgrade the backbone reasoning model without retraining domain knowledge. This is a practically important architectural property for medical AI deployment.</li> <li><strong>Online steering vs. post-hoc scoring changes the scaling curve.</strong> Self-Consistency’s failure mode at high compute (degrading on hard tasks) is well-documented but underappreciated in practice. PRA’s demonstration that online process rewards maintain monotonic improvement where Self-Consistency fails is a direct argument for moving beyond best-of-N and majority vote as inference scaling strategies.</li> </ol> <hr/> <h2 id="6-limitations-worth-knowing">6. Limitations Worth Knowing</h2> <ul> <li><strong>Not a deployment system.</strong> The paper explicitly states this is a method contribution, not a ready-to-deploy medical decision-support system.</li> <li><strong>Hallucination not eliminated.</strong> PRA reduces the propagation of incorrect intermediate steps but does not guarantee their absence.</li> <li><strong>Inference cost.</strong> Every generation step incurs retrieval overhead plus reward computation, making PRA more expensive than greedy decoding or standard RAG.</li> <li><strong>Hard tasks remain hard.</strong> On very challenging benchmarks (GPQA, Lancet), PRA is more stable than Self-Consistency but still operates under the inherent difficulty of the domain.</li> </ul> <hr/> <h2 id="7-the-takeaway-for-a-first-reader">7. The Takeaway for a First Reader</h2> <p>If you remember three things:</p> <ol> <li><strong>Knowledge-intensive reasoning has a non-local verification problem</strong> — you can’t check a clinical inference without consulting external knowledge. Prior PRMs were post-hoc; PRA trains a <strong>dedicated reward agent</strong> that reads the partial trace at each step, selectively retrieves relevant knowledge, and assigns step-level reward scores <strong>during</strong> beam search — <strong>without touching the policy model</strong>.</li> <li><strong>Self-Consistency degrades on hard benchmarks as samples increase</strong> (majority vote amplifies errors). <strong>PRA continues improving monotonically</strong> because early pruning prevents bad paths from compounding into completed trajectories.</li> <li><strong>PRA + Qwen3-4B-Instruct achieves 80.8% on MedQA</strong> (SOTA at 4B scale), with <strong>up to +25.7%</strong> improvement across frozen 0.5B–8B policy models and consistent gains across 7 medical reasoning benchmarks.</li> </ol> <hr/> <h2 id="references">References</h2> <ul> <li>Sohn, J., Sternal, T., Styppa, K., Hoefler, T., &amp; Moor, M. (2026). <em>Process Reward Agents for Steering Knowledge-Intensive Reasoning.</em> ICML 2026. <a href="https://arxiv.org/abs/2604.09482">arXiv:2604.09482</a>.</li> <li>Related on this site: <a href="/log/blog/2026/rlhf-to-ruler/">RLHF → RULER trend note</a> — the process reward model context this work extends; <a href="/log/explorations/2026-07-06-adversarial-feedback-design/">Ch.8 Adversarial Feedback Design</a> — external patterns in critic/verifier agent design.</li> </ul>]]></content><author><name></name></author><category term="paper-review"/><category term="reasoning"/><category term="process-reward"/><category term="retrieval"/><category term="medical-ai"/><category term="beam-search"/><summary type="html"><![CDATA[Paper review of PRA (Sohn, Sternal et al., ICML 2026, ETH Zürich / Heidelberg) — a framework that trains a separate reward agent to provide online, process-level, retrieval-grounded feedback to a frozen policy model during beam search. A 0.5B–8B frozen reasoner gets up to +25.7% on MedQA; Qwen3-4B-Instruct reaches 80.8% SOTA at 4B scale. Self-Consistency degrades on hard benchmarks; PRA continues improving as inference compute scales.]]></summary></entry><entry><title type="html">Tele-Lens — How Far Ahead Do LLMs Actually Plan in Chain-of-Thought?</title><link href="https://yjkim-stat.github.io/log/blog/2026/tele-lens/" rel="alternate" type="text/html" title="Tele-Lens — How Far Ahead Do LLMs Actually Plan in Chain-of-Thought?"/><published>2026-07-19T03:00:00+00:00</published><updated>2026-07-19T03:00:00+00:00</updated><id>https://yjkim-stat.github.io/log/blog/2026/tele-lens</id><content type="html" xml:base="https://yjkim-stat.github.io/log/blog/2026/tele-lens/"><![CDATA[<p><strong>Paper.</strong> Liyan Xu, Mo Yu, Fandong Meng, Jie Zhou. <em>How Far Ahead Do LLMs Plan? Uncovering the Latent Horizon in Chain-of-Thought Reasoning.</em> ICML 2026. WeChat AI, Tencent. <a href="https://arxiv.org/abs/2602.02103">[arXiv]</a> · <a href="https://github.com/lxucs/tele-lens">[code]</a></p> <hr/> <h2 id="0-the-picture-in-one-paragraph">0. The Picture in One Paragraph</h2> <p>A persistent question in CoT interpretability: do LLMs actually plan globally in their hidden states before verbalizing the reasoning steps, or are they making purely local token-by-token transitions? Prior evidence suggests both directions — hidden states seem to encode future information, yet removing explicit CoT steps destroys compositional reasoning. <strong>Tele-Lens</strong> settles this question empirically with a probing framework that tracks three signals simultaneously across the full CoT trajectory: predicted next tokens, predicted final answer, and predicted total reasoning length. The answer is <strong>myopic</strong>: for compositional tasks (multi-step algorithmic reasoning), the model’s hidden states carry <strong>near-chance final-answer predictions (0.49–0.51) throughout most of the trajectory</strong>, spiking to 0.94–0.99 only in the final one or two steps before completion. LLMs do not pre-plan; they compute step by step. This insight has two practical payoffs: a <strong>sparse set of “pivot” positions</strong> (identified by Tele-Lens signals near CoT completion) can represent the full trajectory’s uncertainty with <strong>+6% accuracy improvement</strong>, and automatic CoT bypass achieves a <strong>16.2% bypass rate with negligible performance loss</strong> by detecting when hidden states already carry high early confidence.</p> <hr/> <h2 id="1-the-open-question--do-llms-plan-ahead-in-their-hidden-states">1. The Open Question — Do LLMs Plan Ahead in Their Hidden States?</h2> <p>The empirical evidence before this paper pulled in two directions:</p> <p><strong>Evidence suggesting latent planning:</strong> “Future Lens” (Pal et al., ACL 2023) showed that intermediate Transformer layer activations encode information about tokens and even final answers <em>before</em> those outputs are verbalized. This implies some degree of latent forward planning.</p> <p><strong>Evidence against global planning:</strong> For tasks requiring compositional computation — multi-step algorithms, logical deduction chains — removing explicit CoT steps causes catastrophic performance drops. If the answer were truly pre-planned in latent space, removing intermediate verbalizations should matter less.</p> <p>Tele-Lens asks: <strong>at what point in the CoT trajectory do hidden states reliably encode the final answer?</strong> If the model is planning globally, that signal should appear early. If it is computing locally, the signal should appear only near the end.</p> <hr/> <h2 id="2-tele-lens--a-probing-framework-for-teleological-information">2. Tele-Lens — A Probing Framework for Teleological Information</h2> <h3 id="21-conceptual-lineage">2.1 Conceptual lineage</h3> <p>Tele-Lens generalizes two prior probing tools:</p> <ul> <li><strong>Logit Lens</strong> (Nostalgebraist, 2020): bridges each Transformer layer’s hidden state to the LM head, showing how token predictions evolve through depth.</li> <li><strong>Future Lens</strong> (Pal et al., 2023): extends this to predict <em>subsequent</em> tokens from a single hidden state.</li> </ul> <p>Tele-Lens adds a third dimension — <strong>reasoning length prediction</strong> — and applies all three probes simultaneously across the temporal dimension (CoT trajectory position) rather than just depth.</p> <h3 id="22-three-probing-dimensions">2.2 Three probing dimensions</h3> <p>For each hidden state at each step in a CoT trajectory, Tele-Lens trains probes to predict:</p> <table> <thead> <tr> <th>Dimension</th> <th>What it probes</th> </tr> </thead> <tbody> <tr> <td><strong>Subsequent tokens</strong></td> <td>What comes next at a given offset (1-step, 2-steps ahead)</td> </tr> <tr> <td><strong>Final answer</strong></td> <td>What the model’s final answer will be (classification head)</td> </tr> <tr> <td><strong>Reasoning length</strong></td> <td>How long the total CoT trajectory will be (regression head)</td> </tr> </tbody> </table> <h3 id="23-architecture">2.3 Architecture</h3> <p>A bottleneck low-rank adapter with added nonlinearity is trained on top of each hidden state to produce the three probing outputs. The adapter has far fewer parameters than the LLM itself, reducing overfitting risk. One adapter per task family is trained on held-in data.</p> <h3 id="24-two-model-settings">2.4 Two model settings</h3> <ul> <li><strong>In-Domain LLM:</strong> Qwen2.5-7B-Instruct fine-tuned via <strong>GRPO</strong> on the target tasks. Chosen because this model lacks a native “thinking” mode, enabling a clean bootstrap of CoT.</li> <li><strong>Off-the-shelf LLM:</strong> Publicly available models without task-specific training.</li> </ul> <h3 id="25-task-suite">2.5 Task suite</h3> <p>12 datasets across three categories:</p> <table> <thead> <tr> <th>Category</th> <th>What it requires</th> </tr> </thead> <tbody> <tr> <td><strong>Explicit Compositional</strong></td> <td>Multi-step algorithmic reasoning (Parity, Cycle, Subsum)</td> </tr> <tr> <td><strong>Implicit Compositional</strong></td> <td>Mathematical and logical reasoning</td> </tr> <tr> <td><strong>Semantics &amp; Knowledge</strong></td> <td>MMLU-style factual understanding</td> </tr> </tbody> </table> <hr/> <h2 id="3-the-core-empirical-finding--myopic-planning">3. The Core Empirical Finding — Myopic Planning</h2> <h3 id="31-final-answer-probability-trajectory">3.1 Final-answer probability trajectory</h3> <p>For <strong>compositional tasks</strong> (the hardest and most diagnostic category), the final-answer probability extracted from hidden states follows a characteristic profile:</p> <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Most of CoT trajectory:   ~0.49–0.51 (near chance)
Final 1–2 steps:          0.94–0.99 (decisive spike)
</code></pre></div></div> <p>The model has essentially no reliable internal prediction of the final answer until the very last steps of the chain, regardless of how long the chain is. This directly contradicts a “latent global planning” hypothesis.</p> <p>Concrete examples:</p> <ul> <li><strong>Parity task</strong> (is the number of 1s in a binary string odd or even?): The model cannot predict parity until it has counted every bit. The final-answer hidden state signal only appears after the last digit is processed.</li> <li><strong>Cycle task</strong> (does a graph contain a cycle?): The answer crystallizes only after the model has verbally traced a complete path or detected a cycle step-by-step.</li> </ul> <h3 id="32-reasoning-length-prediction--no-global-clock">3.2 Reasoning length prediction — no global clock</h3> <p>Early hidden states show no reliable internal estimate of total reasoning length — with an important caveat:</p> <p>For <strong>Parity</strong> and <strong>Subsum</strong>, early states appear to correlate with true reasoning length. But this turns out to be a <strong>confound</strong>: in those tasks, reasoning length is proportional to input length (a surface shortcut). For <strong>Cycle</strong> tasks, reasoning length scales with path depth — which is <em>not</em> proportional to input length — and here early states completely fail to predict reasoning length.</p> <p>This exposes the Parity/Subsum correlation as shallow pattern matching, confirming the absence of genuine global planning.</p> <h3 id="33-simple-tasks--coarse-gist-not-plan">3.3 Simple tasks — coarse gist, not plan</h3> <p>For semantics/knowledge tasks, early hidden states do carry some predictive signal about the final answer. But the paper characterizes this as <strong>pattern-matching gist</strong> — recognizing a coarse category from surface features — not step-by-step planning. The signal is imprecise and degrades on unfamiliar inputs.</p> <h3 id="34-what-this-means-for-cot">3.4 What this means for CoT</h3> <p>The findings land squarely on one side of a foundational debate:</p> <blockquote> <p><strong>CoT = scratchpad computation</strong>, not “decoding a latent plan.”</p> </blockquote> <p>For compositional reasoning tasks, the intermediate steps are not verbalizations of a pre-existing internal plan — they <em>are</em> the computation. Removing them removes the reasoning itself.</p> <hr/> <h2 id="4-practical-applications">4. Practical Applications</h2> <h3 id="41-pivot-based-uncertainty-estimation">4.1 Pivot-based uncertainty estimation</h3> <p>The finding that useful hidden-state signal concentrates in the final 1–2 steps of CoT suggests that a <strong>sparse set of “pivot positions”</strong> (positions where Tele-Lens signals are most informative) can stand in for full-trajectory uncertainty estimation.</p> <p>Result: <strong>+6% accuracy improvement</strong> compared to naive full-trajectory uncertainty estimation.</p> <p>Comparison: positions selected by standard LM entropy spread across the whole trajectory; positions selected by Tele-Lens cluster near CoT completion — confirming that Tele-Lens adds signal beyond vanilla entropy.</p> <h3 id="42-automatic-cot-bypass">4.2 Automatic CoT bypass</h3> <p>When Tele-Lens signals show high early confidence — the model’s hidden states already encode the final answer clearly from the start — CoT may be unnecessary overhead.</p> <p>Result: <strong>16.2% bypass rate</strong> (proportion of inputs where full CoT is skipped entirely) <strong>with negligible performance loss</strong>.</p> <p>This provides an inference-time efficiency win without requiring a separately labeled router.</p> <hr/> <h2 id="5-why-it-matters">5. Why It Matters</h2> <p>Three reasons:</p> <ol> <li><strong>It resolves the latent-planning debate empirically.</strong> The question “are LLMs pre-computing in latent space?” has significant implications for understanding what CoT is doing and how to improve it. Tele-Lens gives a definitive answer for compositional tasks: no. The scratchpad is the computation.</li> <li><strong>It reframes the value of CoT.</strong> If CoT were just verbalizing a latent plan, you could in principle extract the plan directly and skip the verbalizations. Tele-Lens shows this is not possible: each CoT step genuinely updates the model’s internal state in a way that previous steps did not accomplish. This validates the investment in long CoT for hard tasks.</li> <li><strong>The uncertainty estimation application has practical value.</strong> A method that can reliably identify the handful of positions in a CoT trajectory that carry the most uncertainty information — using learned probes, not heuristics — enables cheaper and better calibration of model confidence, with direct deployment relevance.</li> </ol> <hr/> <h2 id="6-limitations-worth-knowing">6. Limitations Worth Knowing</h2> <ul> <li><strong>Training requirement.</strong> Tele-Lens requires a trained probing adapter, which needs task-specific data. It is heavier than zero-shot interpretability approaches.</li> <li><strong>In-domain focus.</strong> Key quantitative results are on the GRPO- trained Qwen2.5-7B-Instruct model on the curated 12-task suite. Direct generalization to frontier closed-source models (GPT-4, Claude, Gemini) is not confirmed.</li> <li><strong>Task scope.</strong> The 12 tasks skew toward controlled algorithmic and knowledge-QA settings. Whether the myopic pattern holds for open-ended long-horizon tasks (multi-document synthesis, large codebase reasoning) remains open.</li> <li><strong>Correlational, not causal.</strong> Probing establishes that hidden states do not encode future planning signals early — but does not establish <em>why</em>, or whether interventions could force global planning.</li> <li><strong>Per-domain adapter calibration.</strong> The adapter needs domain- specific calibration, limiting plug-and-play deployability across arbitrary tasks.</li> </ul> <hr/> <h2 id="7-the-takeaway-for-a-first-reader">7. The Takeaway for a First Reader</h2> <p>If you remember three things:</p> <ol> <li><strong>LLMs are myopic planners.</strong> For compositional tasks, hidden states carry <strong>near-chance final-answer predictions (0.49–0.51) throughout CoT</strong>, spiking to <strong>0.94–0.99 only in the final 1–2 steps</strong>. There is no evidence of global latent planning — CoT is scratchpad computation, and each step genuinely advances the reasoning in a way hidden states alone could not.</li> <li><strong>Tele-Lens probes three signals simultaneously</strong> across the CoT trajectory: subsequent tokens, final answer, and reasoning length — using a bottleneck low-rank adapter trained per task family. The reasoning-length result exposes a surface confound in simpler tasks, strengthening the myopia conclusion.</li> <li><strong>Two practical payoffs:</strong> a sparse set of <strong>pivot positions</strong> near CoT completion can represent full-trajectory uncertainty with <strong>+6% accuracy improvement</strong>, and automatic <strong>CoT bypass achieves 16.2% bypass rate</strong> with negligible performance loss by detecting early high-confidence hidden states.</li> </ol> <hr/> <h2 id="references">References</h2> <ul> <li>Xu, L., Yu, M., Meng, F., &amp; Zhou, J. (2026). <em>How Far Ahead Do LLMs Plan? Uncovering the Latent Horizon in Chain-of-Thought Reasoning.</em> ICML 2026. <a href="https://arxiv.org/abs/2602.02103">arXiv:2602.02103</a>.</li> <li>Code &amp; data: <a href="https://github.com/lxucs/tele-lens">https://github.com/lxucs/tele-lens</a></li> <li>Pal, A., <em>et al.</em> (2023). <em>Future Lens: Anticipating Subsequent Tokens from a Single Hidden State.</em> ACL 2023.</li> <li>Related on this site: <a href="/log/blog/2026/mctd/">MCTD review</a> — inference-time search as an alternative to relying on a single CoT trace.</li> </ul>]]></content><author><name></name></author><category term="paper-review"/><category term="interpretability"/><category term="chain-of-thought"/><category term="reasoning"/><category term="probing"/><category term="llm"/><summary type="html"><![CDATA[Paper review of Tele-Lens (Xu, Yu et al., ICML 2026, WeChat AI / Tencent) — a probing framework that measures how far ahead LLMs plan in hidden states during chain-of-thought reasoning. The answer: myopic. Final-answer probability in hidden states stays near chance (0.49–0.51) throughout CoT for compositional tasks, spiking to 0.94–0.99 only in the last 1–2 steps. Leveraging this, pivot-based uncertainty estimation improves accuracy +6%, and automatic CoT bypass achieves 16.2% bypass rate with negligible performance loss.]]></summary></entry></feed>