<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Adele Chinda on Medium]]></title>
        <description><![CDATA[Stories by Adele Chinda on Medium]]></description>
        <link>https://medium.com/@chindahel1?source=rss-2210598b1829------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Z1oxjV65WFkrDpkt</url>
            <title>Stories by Adele Chinda on Medium</title>
            <link>https://medium.com/@chindahel1?source=rss-2210598b1829------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 11:33:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chindahel1/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How does a model learn from examples it was never trained on?]]></title>
            <link>https://medium.com/@chindahel1/how-does-a-model-learn-from-examples-it-was-never-trained-on-6be2c6ffbad9?source=rss-2210598b1829------2</link>
            <guid isPermaLink="false">https://medium.com/p/6be2c6ffbad9</guid>
            <dc:creator><![CDATA[Adele Chinda]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 13:54:33 GMT</pubDate>
            <atom:updated>2026-11-24T13:54:33.748Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PAHbp9DBxmmpFRoSndJpNw.png" /></figure><p>Give a language model a few worked examples inside the prompt, and it will do a new task it was never explicitly trained to do. Show it three English sentences translated into French, then an English sentence with no translation, and it produces the French. Show it a few movie reviews labeled positive or negative, then an unlabeled one, and it classifies it. No weights change. No gradient step runs. The model simply reads the examples and adapts, on the spot, in a single forward pass.</p><p>This is in-context learning, and it is the capability that turned language models from text predictors into general-purpose tools. It is also genuinely strange. Learning, in machine learning, has always meant updating parameters. Here there are no updates, and yet the behavior changes like the model had learned something. This post explains what in-context learning is mechanically, the three main explanations for how it works, what the evidence says each explanation gets wrong, and why the question matters.</p><h3>What in-context learning actually is</h3><p>A language model is a function that takes a sequence of tokens and predicts the next one. In-context learning exploits that function without touching it. You put the task description and a handful of examples into the prompt, add the new input, and let the model complete the sequence. The model was trained to predict text, and the prompt is arranged so that the most likely continuation is the correct answer to your task.</p><p>A concrete example makes the mechanics clear. Suppose you want sentiment labels. Your prompt might look like this:</p><p>Review: “The film was a joy from start to finish.” Sentiment: Positive<br>Review: “Two hours I will never get back.” Sentiment: Negative<br>Review: “The acting carried an otherwise thin plot.” Sentiment:</p><p>The model has to predict the next token. Given the pattern, “Positive” is the most likely continuation. Nothing about the model changed between the first example and the last line. The examples are just text in the context window, and the model conditions on all of it when it predicts.</p><p>The zero-shot version works the same way with no examples at all, just an instruction. The few-shot version, with examples, is usually more reliable, because the examples do two jobs at once. They specify the task, which the model may or may not infer from an instruction alone, and they specify the format, so the answer comes back in the shape you want.</p><p>This is worth stating plainly, because it is easy to blur. <strong>In-context learning is not fine-tuning.</strong> Fine-tuning changes the weights and the change persists. In-context learning changes nothing permanently. Close the session and the model forgets the examples entirely. The “learning” is entirely in the activations, the pattern of numbers flowing through the network during that one forward pass, and it vanishes the moment the pass is over.</p><h3>Why it was a surprise</h3><p>Before GPT-3, the standard way to adapt a model to a task was to train it on that task. BERT-era practice was pretrain once, then fine-tune a copy per task, on labeled data, with gradient descent. GPT-3, described by Brown and colleagues in 2020, showed that a large enough model could skip the fine-tuning step entirely. Give it examples in the prompt and it performed tasks it had never been trained on, sometimes competitively with fine-tuned models.</p><p>The surprise was not just that it worked. It was that it worked without any mechanism designed for it. GPT-3 was trained on one objective, predict the next token on internet text. Nobody added a learning algorithm to it. Nobody trained it to learn from examples in context. The ability appeared as a side effect of scale and of the data, which is full of situations where a pattern repeats and then a new instance of the pattern appears. A list of questions and answers, a document with examples followed by a test case, a conversation where a speaker’s style is established and then continues: the internet is full of sequences where the right move is to infer the pattern from the preceding text and continue it. A model trained to predict such text gets good at exactly that skill, and in-context learning is what that skill looks like when you point it at a task.</p><p>Scale mattered, and that is part of the story. Small models show weak or no in-context learning. As models grew, the ability strengthened, and at some size it went from a curiosity to a reliable interface. Researchers still argue about whether this counts as an emergent ability or a smooth improvement that only looks sudden because of how it is measured, but the practical fact is not disputed: below a certain scale, few-shot prompting barely works, and above it, it is the default way people use these models.</p><h3>Explanation one: the model copies patterns</h3><p>The most concrete explanation starts with a mechanism called an induction head. Researchers at Anthropic, led by Elhage and colleagues in 2021, identified a circuit inside transformers that does something simple and powerful. When it sees a token that appeared earlier in the sequence, it looks at what followed that token last time, and it boosts the probability of the same continuation now.</p><p>If the sequence contains “apple … banana … apple”, an induction head helps the model predict “banana” after the second “apple”. That is pattern completion in its purest form, and it is exactly what in-context learning needs at its core. The examples establish a pattern, the query sets up a new instance of it, and the induction mechanism completes it.</p><p>Induction heads form during training in a recognizable phase change: the model’s loss drops suddenly as these circuits come online, and in-context learning ability appears at roughly the same time. The correlation is strong, and the mechanism is simple enough to verify directly by inspecting attention patterns. When researchers ablate induction heads, removing or disabling them, in-context learning degrades.</p><p>This explanation has a satisfying property: it is mechanistic rather than metaphorical. It points to actual circuits doing actual work. But it is also incomplete. Induction heads explain copying and completing repeated patterns, which covers translation pairs and classification labels. They do not obviously explain the harder cases, where the model has to infer an abstract rule from examples and apply it to something genuinely new, rather than completing a pattern it has already seen. A model that can learn a new function from five input-output pairs in the prompt is doing something richer than copying, and induction heads alone do not cover it.</p><h3>Explanation two: the transformer runs a learning algorithm inside the forward pass</h3><p>The second explanation is bolder. It says the forward pass itself implements a learning algorithm, and the prompt is the training data for that inner algorithm. The weights never change, but the activations behave as if a model were being trained on the examples and then applied to the query.</p><p>The evidence for this comes from a series of papers that trained small transformers on synthetic tasks and then examined what the networks had learned to do. Von Oswald and colleagues, in 2022, showed that a transformer trained on linear regression problems in context learns to implement something close to gradient descent in its layers: the attention mechanism computes updates that resemble the steps a gradient descent optimizer would take, and the model’s predictions improve as more examples appear in the context, in the way a trained model improves with more training data. Dai and colleagues, in 2022, showed a similar result from a different angle, mapping the attention computation onto the form of a gradient descent update and finding that the correspondence held in real models, not just synthetic ones.</p><p>Put simply, the claim is that a transformer can be a learning algorithm and a model at the same time. The outer training, gradient descent on next-token prediction, produces an inner algorithm that itself learns from the context. This is sometimes called meta-learning, and it is not a new idea in machine learning. What is new is that it apparently emerged on its own, from training on text, without anyone designing the inner algorithm.</p><p>This explanation handles the harder cases better than induction heads do, because a learning algorithm can generalize from examples rather than just completing patterns. But it has its own problems. The demonstrations of gradient descent inside transformers are mostly on simple synthetic tasks, linear regression and similar, where the inner algorithm is easy to identify. For real language tasks, the correspondence is much harder to pin down, and nobody has shown a clean gradient descent circuit operating inside GPT-3 on a sentiment classification prompt. The explanation may be true in spirit and wrong in detail, or true for simple tasks and a poor description of the real ones. The field has not settled this.</p><h3>Explanation three: the prompt is evidence about a hidden task</h3><p>The third explanation comes from probability rather than circuits. It treats in-context learning as Bayesian inference. The model has learned, from pretraining, a distribution over many possible tasks, topics, and formats. A prompt is evidence about which of those latent tasks you mean. As the model reads the examples, it updates its beliefs about the task, and by the time it reaches the query, it has narrowed down to the right one and answers accordingly.</p><p>Xie and colleagues formalized this view in 2022. In their framing, pretraining data is a mixture of documents, each generated by some latent concept: a topic, a style, a task. The model learns the mixture. A prompt with examples is a sample from one component of the mixture, and the model infers which component produced it. More examples mean stronger evidence, which is why performance usually improves as you add examples, up to a point.</p><p>This explanation is attractive because it predicts several observed behaviors. It predicts that examples help even when their labels are not what matters most, which matches a finding we will come back to. It predicts that in-context learning works best when the task is one the model plausibly saw during pretraining, in some form, which is consistent with the observation that models are good at few-shot tasks that resemble common text formats and bad at tasks that do not. And it does not require any special mechanism: Bayesian inference over latent concepts is just what a good next-token predictor does.</p><p>The weakness of this explanation is that it is hard to falsify. Almost any behavior can be redescribed as inference over some latent variable, which means the explanation risks explaining everything and therefore nothing. Its value is as a framing: it tells you what to expect about when in-context learning will and will not work, and it connects in-context learning to the model’s training data in a useful way. But it does not tell you which circuits do the work, and it does not by itself predict the failure modes.</p><h3>What the evidence says it is not</h3><p>These three explanations are not mutually exclusive. Induction heads may be one mechanism among several, gradient descent may describe what some layers do on some tasks, and the Bayesian view may describe the computation at a higher level. But the experiments also put limits on how much “learning” is really going on, and the limits are important.</p><p>The most cited result is from Min and colleagues, in 2022. They tested what actually matters in the demonstrations by corrupting them. They replaced the correct labels with random ones, keeping the format and the input distribution intact, and performance barely dropped on many tasks. The model did not seem to need the examples to be correct. What it needed was the format: the shape of the task, the distribution of the inputs, the label space. The examples were teaching the model what kind of thing to output, not what the mapping from inputs to outputs was. The mapping, apparently, the model already knew from pretraining.</p><p>That result complicates the “learning” story. If the model ignores wrong labels, it is not learning the task from the examples in the way a trained classifier learns from labeled data. It is retrieving something it already knows and using the examples to locate it. The follow-up literature has qualified this: on harder tasks, and on tasks the model genuinely has not seen, correct labels do matter more, and more recent models are more sensitive to label correctness than the models Min and colleagues studied. But the basic point stands. A large part of what in-context learning does is specification, not instruction. The examples tell the model which of its many capabilities to use, and in what format.</p><p>There are other limits that fit this picture. In-context learning is sensitive to the order of examples, with a recency bias toward the last ones, which is not how a real training set behaves. It is sensitive to the exact wording of the prompt, sometimes dramatically so, in ways that look more like pattern matching than learning. It can be misled by examples that are systematically wrong, and it has no memory: the adaptation lasts exactly one context window and then it is gone. None of this is fatal to the idea that in-context learning is real learning, but it is a reminder that the word “learning” is doing a lot of work, and that much of what happens may be closer to retrieval and specification than to the kind of learning that changes a model.</p><h3>The connection to reasoning, and to diffusion</h3><p>In-context learning is also the mechanism underneath chain-of-thought prompting, which I wrote about earlier in the context of test-time compute. When you ask a model to reason step by step, you are usually showing it examples of step-by-step reasoning, and the model continues the pattern. The reasoning ability, whatever it is, is being elicited by the context, not installed by training. That is why prompt design matters so much for reasoning tasks, and why the same model can look brilliant or foolish depending on what is in its context.</p><p>The same questions now arise for diffusion language models, which is where my own work sits. Diffusion models generate text by iterative refinement rather than left-to-right prediction, and their relationship to in-context learning is less studied. Early results suggest diffusion language models can also learn from examples in context, but the mechanism has to be different, because there is no autoregressive left-to-right pass for induction heads to operate in. Understanding how in-context adaptation works when generation is a denoising process rather than a sequence of predictions is an open question, and it is one of the reasons the broader question matters. If in-context learning is a property of next-token prediction specifically, then models that predict differently may learn differently. If it is a property of large models trained on diverse text, then it should show up everywhere, and the differences between architectures become a way of testing which explanation is right.</p><h3>Why this matters</h3><p>In-context learning matters first because it is the interface. Almost everything people do with language models, from chat to coding assistants to few-shot classification, runs through the prompt. Understanding what the prompt actually does to the model is understanding the tool most people use every day. When a prompt fails, the usual response is to add more examples or reword the instruction, and whether that helps depends on which explanation is right. If the examples are mostly specifying format, then adding more of them has diminishing returns, and the fix is a better description of the task. If the model is running an inner learning algorithm, then more examples should keep helping, and the fix is more or better data in the context.</p><p>It matters second because it changes how models are evaluated. A benchmark score for a language model is now usually a few-shot score, which means it measures the model plus the prompt. Two labs testing the same model with different prompts can get different numbers, and the difference is not noise, it is the capability itself being prompt-dependent. This is why evaluation has become so contentious, and why claims about a model being better than another need a careful look at how each was prompted.</p><p>It matters third because it is the closest thing we have to watching a model learn in real time. Training happens once, behind closed doors, over weeks. In-context learning happens in front of us, in a single forward pass, and we can intervene on it: change an example, reorder the prompt, corrupt a label, and watch the behavior change. That makes it a laboratory for the questions interpretability cares about. If we can work out what the model is doing when it adapts to a prompt, we will have learned something about what it does when it learns anything at all.</p><p>The honest summary is that the field does not yet know which explanation is right, and the answer is probably a combination: pattern completion circuits doing part of the work, something like an inner learning algorithm doing another part, and Bayesian inference over latent tasks describing the whole at a level above the circuits. What is not in doubt is the phenomenon itself. A model whose weights never change can behave as if it learned, and that fact alone rearranged how machine learning is done. The question now is not whether models learn in context. It is what, exactly, they are doing when they appear to.</p><h3>References</h3><ul><li>Brown, T., et al. (2020). Language Models are Few-Shot Learners. arXiv:2005.14165.</li><li>Elhage, N., et al. (2021). A Mathematical Framework for Transformer Circuits. Anthropic.</li><li>Von Oswald, J., et al. (2022). Transformers Learn In-Context by Gradient Descent. arXiv:2212.07677.</li><li>Dai, D., et al. (2022). Why Can GPT Learn In-Context? Language Models Implicitly Perform Gradient Descent as Meta-Optimizers. arXiv:2212.10559.</li><li>Xie, S. M., et al. (2022). An Explanation of In-Context Learning as Implicit Bayesian Inference. arXiv:2111.02080.</li><li>Min, S., et al. (2022). Rethinking the Role of Demonstrations: What Makes In-Context Learning Work? arXiv:2202.12837.</li><li>Wei, J., et al. (2022). Chain-of-Thought Prompting Elicits Reasoning in Large Language Models. arXiv:2201.11903.</li><li>Chan, S., et al. (2022). Data Distributional Properties Drive Emergent In-Context Learning in Transformers. arXiv:2205.05055.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6be2c6ffbad9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why thinking longer helps: test-time compute and the new scaling axis]]></title>
            <link>https://medium.com/@chindahel1/why-thinking-longer-helps-test-time-compute-and-the-new-scaling-axis-8971c85fb0a9?source=rss-2210598b1829------2</link>
            <guid isPermaLink="false">https://medium.com/p/8971c85fb0a9</guid>
            <category><![CDATA[reasoning]]></category>
            <category><![CDATA[inference]]></category>
            <dc:creator><![CDATA[Adele Chinda]]></dc:creator>
            <pubDate>Tue, 17 Nov 2026 15:01:51 GMT</pubDate>
            <atom:updated>2026-11-17T15:01:51.203Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gaK_bprPWQXuFlfT2oqjIQ.png" /></figure><p>In September 2024, OpenAI released a model that did something strange. Asked a hard question, it paused. It produced a long, hidden chain of thought, reconsidered its own steps, and only then answered. On competition math and coding problems it was dramatically better than the models before it, and the improvement did not come from a bigger model or more training data. It came from spending more computation at the moment of answering.</p><p>That release marked a shift in how the field thinks about scaling. For years, the recipe for a better model was fixed: train a bigger model on more data. Test-time compute adds a second axis. Instead of training harder, you let the model think longer. This post explains what that means mechanically, why it works, where it stops working, and why it changes the economics of building with language models.</p><h3>What test-time compute actually is</h3><p>Test-time compute is any computation spent per query, after training is finished. Training compute is spent once, up front, to produce the weights. Test-time compute is spent every time the model answers a question, and you decide how much to spend on each question.</p><p>There are three main ways to spend it.</p><p><strong>The first is to sample many answers and pick the best one.</strong> Instead of generating a single response, the model generates ten, or a hundred, and you keep the answer that shows up most often. This is called self-consistency, and it works for a simple reason: on many problems, the model gets the right answer some of the time but not every time. If it is right 30 percent of the time on a single try, and the right answer is the most common one across many tries, then voting across samples turns a sometimes into a usually. The technique was introduced by Wang and colleagues in 2022, and it remains the simplest way to buy accuracy with compute.</p><p><strong>The second way is to search.</strong> Instead of sampling complete answers independently, the model explores a tree of partial solutions, and a second model, called a verifier, scores each step and prunes the bad branches. This is the same idea as a chess engine searching through moves, except the moves are sentences and the evaluation function is learned. The verifier can be an outcome reward model, which scores only the final answer, or a process reward model, which scores each intermediate step. Process reward models are more expensive to train, because they need labels for steps rather than just for final answers, but they catch errors earlier, before a wrong step poisons the rest of the solution.</p><p><strong>The third way is to revise. </strong>The model writes an answer, critiques it, and rewrites it, repeating the loop until the answer stops improving. This is sequential rather than parallel: one long chain of reasoning instead of many short ones. OpenAI’s o1 and DeepSeek-R1 both use long chains of thought produced this way, trained with reinforcement learning that rewards correct final answers and lets the model discover behaviors like backtracking and self-correction on its own.</p><p>If you work on diffusion models, the third mechanism should feel familiar. A diffusion model also improves its output iteratively, starting from noise and refining step by step. The difference is the medium. A diffusion model refines a continuous representation across denoising steps, while an autoregressive model refines text across tokens. In both cases, the core idea is the same: the first attempt is a draft, and extra computation is spent turning the draft into something better.</p><h3>Why sampling works at all</h3><p>There is a puzzle here. If the model already knows the answer, why does it not just give it the first time? And if it does not know the answer, how does generating more text help?</p><p>The answer is that a language model is a distribution over continuations, not a single answer. When you ask it a question, it assigns probabilities to many possible responses. Greedy decoding, the default, picks the most likely token at each step and produces the single most likely response. But the most likely response is not always the correct one. Sampling from the distribution instead produces a variety of responses, and on reasoning problems, the correct answer often appears among them even when it is not the top choice.</p><p>This is easiest to see with a concrete measure. Researchers distinguish pass@1, the chance the first sample is correct, from pass@k, the chance that at least one of k samples is correct. On hard math problems, pass@k can be far higher than pass@1. The gap between them is the headroom that test-time compute exploits. The knowledge is in the model; the problem is reaching it reliably. Sampling, voting, and search are different ways of reaching it.</p><p>But reaching it requires a way to tell the right answer from the wrong ones, and that is where the verifier comes in. For math and code, verification can be exact: run the code, check the final number. For open-ended questions, verification is itself a learned judgment, which brings us to the central weakness of the whole approach.</p><h3>The verifier is the bottleneck</h3><p>Every test-time method that goes beyond simple majority voting depends on a verifier, and the verifier is only as good as its training. This is the same problem RLHF has with its reward model, and the failure modes are similar. A verifier can be gamed. A model searching against a learned verifier will find outputs that score highly without being correct, because the search is optimizing the verifier’s score, not correctness itself. The longer you search, the more the verifier’s blind spots matter.</p><p>There is also a deeper asymmetry. Verification is supposed to be easier than generation: checking a proof is easier than finding one. That is true for math and code, where an answer can be checked mechanically. It is much less clear for writing, planning, or open-ended reasoning, where there is no ground truth to check against. On those tasks, the verifier is just another model making a judgment, and using one model’s judgment to select another model’s output can amplify shared biases rather than correct them.</p><p>This is why the gains from test-time compute are uneven. On tasks with verifiable answers, thinking longer reliably helps. On tasks where correctness is a matter of taste or judgment, the gains are smaller and harder to trust.</p><h3>How much does it actually buy?</h3><p>The most systematic answer comes from Snell and colleagues at UC Berkeley and Google DeepMind, who studied test-time compute scaling in 2024. Their setup was deliberately careful: they compared different ways of spending a fixed inference budget, measured in floating point operations, against simply training a bigger model with the same total compute.</p><p>Three findings matter.</p><p><strong>First, how you spend the budget matters more than how much you spend.</strong> A strategy that allocates compute adaptively, choosing the method and the budget per question based on an estimate of that question’s difficulty, was more than four times as efficient as naive best-of-N sampling. Easy questions got sequential revision, which worked best there. Harder questions got beam search against a process reward model, which worked best there. Spending the same budget on every question, easy or hard, wastes most of it.</p><p><strong>Second, on easy and medium questions, a smaller model given extra test-time compute could outperform a model fourteen times larger. </strong>The small model already had a non-trivial chance of solving those questions, and extra compute was enough to close the gap. This is the result that made the field pay attention, because it suggests that inference compute can substitute for model size, at least sometimes.</p><p><strong>Third, and just as important, the substitution has limits. </strong>On the hardest questions, where the small model’s success rate was close to zero, extra test-time compute added almost nothing, and more pretraining was the better investment. The authors’ conclusion was that the two kinds of compute are not one-to-one exchangeable. Test-time compute amplifies capability that is already in the model. It does not create capability that is not there.</p><p>That distinction matters for how you read the recent wave of reasoning models. When a model trained with reinforcement learning on verifiable rewards produces a long chain of thought and solves problems it previously could not, part of what happened is test-time compute, and part of it is training: the RL phase taught the model how to use its thinking time well. The two are complements, not substitutes.</p><h3>The other side: what thinking longer costs</h3><p>Test-time compute is not free, and its costs are different in kind from training costs.</p><p>The first cost is latency. A model that thinks for two minutes before answering is unusable for interactive chat, no matter how good the answer is. The second cost is price. Inference compute is paid per query, so a method that uses a hundred samples costs roughly a hundred times as much per answer. A lab can afford to train a big model once; serving it a million times a day at a hundred times the cost is a different budget. Snell and colleagues made this precise: when a model will serve enormous volumes of queries relative to its training, extra pretraining pays for itself, and test-time compute stops being the cheaper option.</p><p>The third cost is subtler. Longer chains of thought can drift. A model that reasons for hundreds of tokens has hundreds of chances to make a wrong turn, and once it commits to a wrong approach, extra thinking can entrench the error rather than correct it. Researchers have documented cases where longer reasoning produces confident, elaborate, wrong answers, and where a model talks itself out of a correct first instinct. Thinking longer helps when the model can check its own work. When it cannot, thinking longer is just more opportunity to be wrong with confidence.</p><p>There is also an open question about what is really being scaled. Is a long chain of thought genuine reasoning, or is it a more thorough search over patterns the model memorized during training? This is the same question I raised about diffusion models in an earlier post, and it has no settled answer here either. The honest position is that test-time compute demonstrably improves accuracy on verifiable tasks, and that whether the underlying process deserves the name reasoning depends on what you mean by the word. The behavior is real either way.</p><h3>Why this matters</h3><p>Test-time compute matters because it changes who can compete. If a smaller model plus thinking time can match a much larger model, then the advantage of whoever can afford the biggest training run shrinks, and the advantage shifts to whoever builds the best verifiers, the best search strategies, and the best ways of deciding how much to think about each question. That is a different kind of engineering, and it is more accessible to smaller labs and to academic researchers.</p><p>It also changes the research agenda. The interesting problems are now about verification: how to build verifiers that are hard to game, how to get process-level supervision without expensive human labels, and how to know when to stop thinking. They are also about adaptivity: spending a lot of compute on the questions that need it and almost none on the ones that do not. And for those of us working on diffusion models, there is a natural connection. Diffusion models are already test-time computers: their entire generation process is iterative refinement, and the number of denoising steps is a test-time budget you can turn up or down. The question of how to spend that budget well, and how to verify intermediate states, is the same question the language modeling world is now asking about chains of thought.</p><p><strong>The first decade of scaling was about training: bigger models, more data. The next one will be about both axes, and about the judgment to use each where it helps. Thinking longer is a powerful lever. Like every lever, it works best when you know what it can and cannot move.</strong></p><h3>References</h3><ul><li><a href="https://arxiv.org/abs/2408.03314">Snell, C., Lee, J., Xu, K., and Kumar, A. (2024). Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters. arXiv:2408.03314.</a></li><li><a href="https://arxiv.org/abs/2203.11171">Wang, X., et al. (2022). Self-Consistency Improves Chain of Thought Reasoning in Language Models. arXiv:2203.11171.</a></li><li><a href="https://openai.com/index/learning-to-reason-with-llms/">OpenAI (2024). Learning to Reason with LLMs (o1).</a></li><li><a href="https://arxiv.org/abs/2501.12948">DeepSeek-AI (2025). DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning. arXiv:2501.12948.</a></li><li><a href="https://arxiv.org/abs/2305.20050">Lightman, H., et al. (2023). Let’s Verify Step by Step. arXiv:2305.20050</a>.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8971c85fb0a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is a world model, and why is everyone building one?]]></title>
            <link>https://medium.com/@chindahel1/what-is-a-world-model-and-why-is-everyone-building-one-0bd5176e2bce?source=rss-2210598b1829------2</link>
            <guid isPermaLink="false">https://medium.com/p/0bd5176e2bce</guid>
            <dc:creator><![CDATA[Adele Chinda]]></dc:creator>
            <pubDate>Mon, 16 Nov 2026 12:51:55 GMT</pubDate>
            <atom:updated>2026-11-16T12:51:55.694Z</atom:updated>
            <content:encoded><![CDATA[<p>A language model predicts the next word. A world model predicts what happens next in the world. Give it a scene and an action, and it tells you, or shows you, what the scene looks like afterwards. That is the whole idea, and it is quietly becoming one of the most important ideas in machine learning.</p><p>The phrase is everywhere right now. OpenAI described Sora as a step toward video generation models as world simulators. DeepMind built Genie, a model that turns a single image into a playable game world. Yann LeCun has argued for years that world models are the missing piece on the path to machines that can plan and reason. Autonomous driving teams use them to simulate traffic. Robotics labs use them to let a robot practice in its head before it moves in the real world.</p><p>But the term is doing a lot of work. A world model can mean a video generator, a learned physics simulator, or a latent predictor that never produces a single pixel. This post sorts out what the term actually means, how the main approaches differ, and where the real debate is: do these models understand the world, or are they just very good at predicting what a video of the world looks like?</p><h3>The idea in one paragraph</h3><p>A world model is a learned model of an environment. It takes the current state of the world and an action, and it predicts the next state. In reinforcement learning, this is the classic definition from Ha and Schmidhuber (2018): the model is a simulator the agent can run inside its own head, so it can try out actions without paying the cost of trying them in reality.</p><p>The word “world” is doing something specific here. The model is not a copy of reality. It is a compressed, predictive representation of the parts of reality that matter for acting. A chess program does not need to model the wood grain of the board. A driving model does not need to model the exact pattern of leaves on a tree. What it needs is the dynamics: if I steer left, the car moves left; if I push this block, it falls. A good world model captures the causal structure of its environment and ignores the rest.</p><p>That compression is what makes world models useful, and it is also what makes them hard to build. The world is high-dimensional, partially observed, and full of irrelevant detail. Learning which parts to keep and which to throw away is the core problem.</p><h3>Two families: video generators and latent predictors</h3><p>There are two broad ways to build a world model, and they differ in what they predict.</p><p>The first family predicts pixels. These are the video generation models: Sora, Runway Gen2, Veo, and DeepMind’s Genie and Genie 2. Given a starting image or a text prompt, plus a sequence of actions, they generate the future as video. Genie takes a single image and a set of controller inputs and produces a playable world, frame by frame, in real time. Genie 2 extends this to longer, richer environments with consistent object behavior. The strength of this approach is generality. These models train on internet-scale video, so they absorb an enormous amount of knowledge about how things look and move, from water pouring to crowds crossing streets. The weakness is that pixels are expensive and unforgiving. Generating every pixel of every frame costs far more compute than the underlying dynamics require, and small errors compound: a ball that drifts a few pixels off course in frame 10 is in the wrong place entirely by frame 100.</p><p>The second family predicts in latent space. These models never reconstruct pixels. They encode the current observation into a compact representation, predict the representation of the future, and decode only when a human wants to look at the result. Dreamer, from Hafner and colleagues, is the canonical example in reinforcement learning: it learns a latent dynamics model, predicts rewards and future latent states, and trains its policy entirely inside imagined rollouts. MuZero, from DeepMind, goes further and learns a latent state that is optimized not to reconstruct the world but to predict the quantities planning needs: the reward, the value, and the best action. It does not know what the board looks like. It knows what the board means for winning.</p><p>Latent models are cheaper to run and more stable over long horizons, because they predict at the level of the dynamics rather than the level of the pixels. Their weakness is the opposite one: if you never reconstruct the observation, it is harder to check what the model actually learned, and easier for it to learn a representation that is convenient for prediction but disconnected from the world.</p><h3>Why predict in latent space? LeCun’s argument</h3><p>The most influential case for latent prediction comes from Yann LeCun’s 2022 position paper, “A Path Towards Autonomous Machine Intelligence.” His argument is about wasted capacity. Predicting pixels means predicting everything, including details that are irrelevant and, worse, unpredictable in principle. No model can predict the exact position of every leaf on a tree in the wind. A model trained to do so will either waste its capacity on noise or learn to blur its predictions into an average that satisfies no one.</p><p>LeCun’s proposed architecture, JEPA (Joint Embedding Predictive Architecture), avoids this by predicting representations instead of pixels. It has two encoders and a predictor. One encoder turns the present observation into a representation. A second, slowly updated target encoder turns the future observation into its representation. The predictor takes the present representation, plus some information about the action or the missing part of the scene, and tries to predict the future representation. There is no decoder and no pixel reconstruction anywhere in the loop.</p><p>The catch is collapse. If the model is free to choose its representations, the easiest way to make prediction perfect is to make every representation the same constant vector. Then the predictor is always right, and the model has learned nothing. JEPA architectures avoid collapse with a combination of tricks: the target encoder is an exponential moving average of the main encoder (so it changes slowly), and the representations are regularized to keep their variance high and their dimensions decorrelated, a technique from the VICReg method. The I-JEPA model (Assran et al., 2023) showed this works for images, and V-JEPA (Bardes et al., 2024) extended it to video, learning representations that predict how a scene evolves over time. V-JEPA 2 (2025) scaled the idea up and showed the resulting representations transfer well to action recognition and even to robot planning.</p><p>The underlying claim is philosophical as much as technical. A world model should model the world at the level of abstraction where prediction is possible and useful. Pixels are too low. Symbols, like words in a language model, are too high: they throw away the continuous structure of physical space. Representations learned by prediction itself sit in between, and LeCun argues that is where the action is.</p><h3>What world models are actually used for</h3><p>The most established use is planning in reinforcement learning. DreamerV3 (Hafner et al., 2023) mastered a wide range of tasks, from Atari games to continuous control, by learning a world model and training its policy on imagined trajectories. Because the policy trains in imagination, it needs far fewer real environment interactions, which matters enormously when real interactions are expensive, slow, or dangerous. MuZero used the same logic to master chess, Go, shogi, and Atari without ever being told the rules of the games. It learned its own latent model of each game and planned inside it.</p><p>Robotics is the second use, and the one with the highest stakes. A robot that can imagine the consequences of its actions can plan a grasp, avoid a collision, or recover from a mistake before it happens. The catch is the gap between the imagined world and the real one: a plan that works in the model fails if the model is wrong about friction, mass, or contact. This is why robotics researchers care so much about model accuracy, and why a world model that is approximately right about video is not necessarily right about the physics a robot needs.</p><p>The third use is generation itself. Interactive world models like Genie are not just simulators; they are creative tools. A designer can sketch a scene and then play inside it. Game studios and film teams are watching this space closely, because a model that can generate a consistent, controllable world is a new medium, not just a new algorithm.</p><p>And the fourth use is the one closest to this line of research: evaluation. If a model claims to understand the world, a world model gives you a way to test the claim. You can ask counterfactual questions (what would happen if the ball were dropped instead of thrown?), intervene on the model’s internal state, and see whether its predictions change the way a real causal model would. A world model turns “does it understand?” from a philosophical question into an experimental one.</p><h3>The debate: do they understand physics, or just pattern-match video?</h3><p>Here is where the two families meet their critics.</p><p>The skeptical case is straightforward. Video models are trained to predict what a video looks like, not what the world is. A model can generate a convincing video of a ball bouncing without having any internal notion of gravity, momentum, or elasticity. It just needs to know what bouncing looks like. And the failures are telling. Generated videos still show objects appearing out of nowhere, liquids that flow uphill, hands with the wrong number of fingers, and balls that pass through walls. These are exactly the failures you would expect from a model that has learned the statistics of video rather than the laws of physics.</p><p>The evidence backs the skeptics up, at least in part. The Physics-IQ benchmark (Motamed et al., 2025) tests video models on intuitive physics scenarios: collisions, gravity, fluid behavior, object permanence. The result is that even the best models score far below human performance, and their errors are not subtle. They are the errors of a system that has memorized appearances. Earlier benchmarks like IntPhys and CLEVRER, which test physical reasoning in controlled synthetic scenes, tell a similar story: models can be fluent and wrong at the same time.</p><p>The optimistic case is that this is a matter of degree, not kind. Human understanding of physics is also learned from observation, and it is also approximate. The fact that a model makes mistakes does not mean it has no model of the world; it means its model is imperfect. And the models are improving fast. Genie 2 maintains object identity and spatial layout over long horizons in ways that earlier video models could not. World models trained with action conditioning show genuine controllability: press left, and the character moves left, consistently, over hundreds of frames. That is not nothing. It is a learned dynamics model, even if it is a crude one.</p><p>There is also a deeper point the optimists make. The distinction between “understanding physics” and “predicting video well” may not be as sharp as it sounds. A model that could predict video perfectly, at every level of detail, over arbitrarily long horizons, would have to encode the laws of physics, because the laws of physics are what determine the video. The question is whether current models are on the path to that limit, or whether they are stuck in a regime where fluent short-horizon prediction never turns into real understanding. Nobody knows yet, and that is why this is an active research question rather than a settled one.</p><h3>The evaluation problem</h3><p>Underneath the debate is a measurement problem. How do you test whether a world model understands the world?</p><p>Generation quality is not enough. A video can look realistic and be physically wrong, and human raters are easily fooled by fluency. The benchmarks that exist, like Physics-IQ, IntPhys, and CLEVRER, are a start, but they are limited. They test specific scenarios, and a model can be tuned to pass them without generalizing.</p><p>The more principled approach is counterfactual and interventional testing, the same logic that drives mechanistic interpretability research. Change one thing in the scene and see whether the model’s prediction changes in the right way. Remove an object and see whether the model notices. Ask the model to predict the outcome of an action it has never seen. These are the tests that distinguish a model that has learned causal structure from one that has learned correlations. They are also hard to run at scale, because they require controlled environments and careful experimental design.</p><p>This is where the field is heading. The next generation of world model papers will be judged less on how beautiful their generated videos are and more on whether their models survive intervention. Can you change the model’s internal representation of an object’s position and get the right change in its prediction? Can it generalize to a new combination of objects and forces? Those are the questions that separate a video generator from a world model in the strong sense.</p><h3>Why this matters</h3><p>World models matter because they are the bridge between perception and action. A language model can describe the world. A world model can predict it, and prediction is what planning requires. Every agent that needs to act in the world, a robot, a self-driving car, a game character, a scientific simulator, needs some version of this capability. Pure reactive systems, models that map inputs directly to outputs without an internal model of what comes next, hit a ceiling. They cannot plan, they cannot simulate consequences, and they cannot answer “what if” questions.</p><p>They also matter because they are where the biggest open questions in the field now live. How much of the world can you learn from video alone? Does prediction in latent space scale the way language modeling did? Can a world model be combined with a language model to get a system that both reasons in words and simulates in the world? These are the questions that labs are hiring for, and they are the questions that will decide whether the next leap in AI comes from bigger language models or from models that understand the world they are talking about.</p><p>For researchers, the practical takeaway is this. Do not be impressed by a beautiful generated video. Ask what the model predicts when you intervene, what happens over a long horizon, and whether its errors look like the errors of a system that knows physics or the errors of a system that knows what physics looks like. The difference between those two things is the difference between a video generator and a world model, and it is the most important distinction in this part of the field right now.</p><h3>References</h3><ul><li><a href="https://arxiv.org/abs/1803.10122">Ha, D. and Schmidhuber, J. (2018). World Models. arXiv:1803.10122.</a></li><li><a href="https://www.alphaxiv.org/abs/2603.a-path-towards-autonomous-machine-intelligence">LeCun, Y. (2022). A Path Towards Autonomous Machine Intelligence.</a></li><li><a href="https://arxiv.org/abs/2301.04104">Hafner, D., et al. (2023). Mastering Diverse Domains through World Models. arXiv:2301.04104.</a></li><li><a href="https://arxiv.org/abs/1911.08265">Schrittwieser, J., et al. (2020). Mastering Atari, Go, Chess and Shogi by Planning with a Learned Model.</a></li><li><a href="https://arxiv.org/abs/2301.08243">Assran, M., et al. (2023). Self-Supervised Learning from Images with a Joint-Embedding Predictive Architecture.</a></li><li><a href="https://arxiv.org/abs/2404.08471">Bardes, A., et al. (2024). Revisiting Feature Prediction for Learning Visual Representations from Video.</a></li><li><a href="https://openai.com/index/video-generation-models-as-world-simulators/">OpenAI (2024). Video Generation Models as World Simulators. The Sora technical report.</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0bd5176e2bce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Same accuracy, different trajectory: measuring reasoning in diffusion language models]]></title>
            <link>https://medium.com/@chindahel1/same-accuracy-different-trajectory-measuring-reasoning-in-diffusion-language-models-c12bb874fd2a?source=rss-2210598b1829------2</link>
            <guid isPermaLink="false">https://medium.com/p/c12bb874fd2a</guid>
            <category><![CDATA[diffusion-models]]></category>
            <category><![CDATA[interpretability]]></category>
            <dc:creator><![CDATA[Adele Chinda]]></dc:creator>
            <pubDate>Sat, 14 Nov 2026 14:01:02 GMT</pubDate>
            <atom:updated>2026-11-14T14:01:02.397Z</atom:updated>
            <content:encoded><![CDATA[<h3>The accuracy number is not the whole story</h3><p>Take two language models. Both score 88 percent on the same benchmark. Are they equally good at reasoning?</p><p>Not necessarily. One may work through the problem step by step and settle on the answer. The other may pick an answer in the first few steps and spend the rest of its output justifying a choice it already made. A third may flip between answers the whole way and happen to land on the right one at the end. Final-answer accuracy gives all three the same score.</p><p>This matters more for diffusion language models than for ordinary autoregressive models. A diffusion model does not write left to right. It starts from a fully masked answer and refines it over hundreds of denoising steps. That gives us something an autoregressive model does not: a visible trajectory of the answer forming. At every step we can ask, what does the model believe right now? When did that belief lock in? Did it ever change?</p><p>I built traj-eval to answer those questions. It is an open source toolkit that scores the trajectory, not just the final answer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v095i7Crrvrca8OiIqYzxQ.png" /></figure><h3>What it measures</h3><p>traj-eval treats each denoising run as a sequence of verdicts, one per step, and computes a small set of interpretable quantities:</p><p><strong>Verdict convergence step</strong>. The first step after which the verdict stops changing. A model that knows the answer immediately converges at step 3 or 4. A model that is still working converges at step 190.</p><p><strong>Flip rate.</strong> How often the verdict changes between consecutive steps. Genuine reasoning changes its mind a few times and then settles. Oscillation flips repeatedly and never settles.</p><p><strong>Rationalization components.</strong> Three numbers, reported separately and labeled as a heuristic, not a proof. Early factor: how much of the reasoning text appears after the verdict is already fixed. Post-change rate: how much the text keeps changing after the verdict stops changing. Length growth: how much the text grows after convergence. When all three are high, the trajectory looks like rationalization: answer first, reasoning after. The scalar score is gated, so a trajectory with no real commitment cannot score high by accident.</p><p><strong>Commitment clocks.</strong> The step where the answer commits, the lag between commitment and stability, and how much reasoning is still unwritten when the answer converges.</p><p>One rule runs through all of it: a step with no verdict yet is recorded as no verdict, not as a change of mind. That sounds trivial, but it is the difference between measuring reasoning and measuring noise.</p><h3>What we found</h3><p>We ran three open checkpoints on 64 items each from ARC-Challenge and GSM8K, in two conditions: direct answering, and step-by-step reasoning with a canonical prompt.</p><p>On Dream-7B, ARC-Challenge, reasoning made accuracy worse:</p><p>ModelConditionAccuracyMean convergence stepDream-7BDirect0.89063.8Dream-7BReasoning0.8281189.5LLaDA-8B-InstructDirect0.8754.5LLaDA-8B-InstructReasoning0.906232.1LLaDA-1.5Direct0.8757.4LLaDA-1.5Reasoning0.921921.7</p><pre>Model              Condition  Accuracy  Mean convergence step<br>Dream-7B           Direct     0.8906    3.8<br>Dream-7B           Reasoning  0.8281    189.5<br>LLaDA-8B-Instruct  Direct     0.875     4.5<br>LLaDA-8B-Instruct  Reasoning  0.9062    32.1<br>LLaDA-1.5          Direct     0.875     7.4<br>LLaDA-1.5          Reasoning  0.9219    21.7</pre><p>The same intervention, the same benchmark, opposite results. That is exactly what a trajectory metric is for. On Dream, the direct answer locks in by step 4 on average, so there is almost no reasoning trajectory to measure, and asking for reasoning hurts. On LLaDA, reasoning helps, and the trajectory shows real deliberation before convergence.</p><p>On GSM8K, Dream scores 0.7656 and LLaDA scores 0.6562 on the numeric condition.</p><p>The rationalization components tell the same story from the other side, on Dream only. Direct answering has an early factor of 0.9852 and a post-change rate of 0.0001: the verdict is fixed almost immediately and the text barely changes after. Reasoning has an early factor of 0.2559 and a post-change rate of 0.1597: the verdict forms late and the text keeps developing. One of these looks like reasoning. The other looks like an answer with a justification attached.</p><h3>One trajectory, two conditions</h3><p>The clearest example is a single ARC-Challenge item. With step-by-step reasoning, the verdict moves from no verdict, to A, to C across the denoising steps, then stays at C. With direct answering on a comparable item, the verdict locks in at C almost immediately and never moves.</p><p>Same final answer. Completely different process. If you only record the final letter, you cannot tell them apart.</p><h3>Try it</h3><p>traj-eval is MIT licensed, needs only Python 3.10 and numpy, and runs a demo with no model weights:</p><pre>pip install -e .<br>python -m traj_eval demo</pre><p>You can score your own trajectories from a JSONL file, compare direct and reasoning conditions, and get the same tables and plots. The project page has the full results and an interactive trajectory explorer:</p><ul><li>Project page: <a href="https://arrdel.github.io/traj-eval/">https://arrdel.github.io/traj-eval/</a></li><li>Code: <a href="https://github.com/arrdel/traj-eval">https://github.com/arrdel/traj-eval</a></li><li>Data and explorer: <a href="https://huggingface.co/collections/arrdel/traj-eval-diffusion-lm-reasoning-trajectories">https://huggingface.co/collections/arrdel/traj-eval-diffusion-lm-reasoning-trajectories</a></li></ul><h3>Does it scale?</h3><p>Yes, and we checked before claiming it. The framework was stress tested on the full ARC-Challenge test set (1,172 items) and the full GSM8K test set (1,319 items), plus a synthetic 10,000-trajectory file. Scoring 1,000 trajectories takes 4.3 seconds on CPU, and 10,000 takes about 34 seconds, inside a pre-registered budget of 10 minutes and 4 GB of memory. The full report is in the repo.</p><h3>Honest caveats</h3><p>Three things this does not claim. First, the metrics are descriptive, not causal proof. A high rationalization score means a trajectory looks like rationalization by this operational definition, not that the model was proven to rationalize. Second, the headline model numbers are 64-item suites, which are enough to show the patterns and the method, not to rank models definitively. Third, the rationalization components are reported for Dream only; the LLaDA values have not been checked against the definition and are deliberately left out.</p><h3>What comes next</h3><p>The next step is scale: the same measurement applied at full scale, with the trajectory as the object of study rather than the final answer. The toolkit is the first piece. If you work on diffusion language models, reasoning evaluation, or interpretability, try it and tell me where it breaks. That is the point of putting it out in the open.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c12bb874fd2a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How does RLHF actually work, and what does it change?]]></title>
            <link>https://medium.com/@chindahel1/how-does-rlhf-actually-work-and-what-does-it-change-84a5d5b08e4c?source=rss-2210598b1829------2</link>
            <guid isPermaLink="false">https://medium.com/p/84a5d5b08e4c</guid>
            <category><![CDATA[rlhf-language-models]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <dc:creator><![CDATA[Adele Chinda]]></dc:creator>
            <pubDate>Tue, 10 Nov 2026 14:05:31 GMT</pubDate>
            <atom:updated>2026-11-10T14:06:23.578Z</atom:updated>
            <content:encoded><![CDATA[<p>GPT-3 was already an impressive model when it arrived in 2020. Given a prompt, it could write essays, translate languages, and answer questions. But if you asked it a question, it was as likely to continue with another question as to answer yours. ChatGPT, built on the same family of models, answered directly, admitted uncertainty, and refused when asked for something harmful. The difference between the two was not more pretraining data or a bigger model. It was a post-training recipe called RLHF, reinforcement learning from human feedback.</p><p>RLHF is the process that turns a raw next-token predictor into an assistant. It is also one of the most misunderstood parts of modern language model training. This post walks through the mechanics, stage by stage, and then asks the question researchers still argue about: does RLHF actually teach a model anything new, or does it just dress up what pretraining already put there?</p><h3>The problem: a model that completes, not a model that helps</h3><p>Pretraining teaches a model one thing: predict the next token. Given a large corpus of internet text, the model learns to assign high probability to the continuations that look most like what a human would have written. That is a powerful skill, but it is not the same as being helpful.</p><p>Ask a raw pretrained model “What is the capital of France?” and a plausible completion is “What is the capital of Germany?” The model is not answering. It is continuing a pattern, and a list of questions is a perfectly good pattern. Ask it to write a polite email, and it may write three more emails, or a critique of the first one. The model has no notion of your intent. It only knows what text usually comes next.</p><p>Supervised fine-tuning, the first stage of RLHF, fixes the most visible part of this problem. But it cannot fix the deeper one, which is that “helpful” is a judgment, not a fact. There is no dataset of correct answers to train on, because for most prompts there is no single correct answer. There are only answers people prefer. RLHF is a way to train on preferences instead of on correct answers.</p><h3>Stage 1: supervised fine-tuning</h3><p>The first stage is the simplest. Human annotators write example prompts and the ideal responses to them, thousands of them, covering instructions, questions, coding tasks, and conversation. The pretrained model is then fine-tuned on these examples with ordinary supervised learning: given the prompt, predict the response token by token.</p><p>After this stage, the model has learned the format of an assistant. It answers instead of continuing, it structures its output, and it follows the style of the demonstrations. This stage is doing a lot of heavy lifting, and it is worth remembering that. Many of the behaviors people attribute to RLHF, like polite formatting and structured answers, are already present after supervised fine-tuning.</p><p>But supervised fine-tuning has a ceiling. It can only teach the model to imitate the demonstrations it was shown. It cannot teach the model which of two plausible answers is better, because the training signal is just “produce this exact text.” It also inherits every flaw in the demonstrations. If the annotators wrote verbose answers, the model learns to be verbose. RLHF exists to go beyond imitation.</p><h3>Stage 2: the reward model</h3><p>The second stage is where human preferences enter. The fine-tuned model is given a prompt and generates two or more different responses. Human annotators rank them, or simply pick the better one. Nobody writes a score. They just say: this answer is better than that one.</p><p>Those pairwise comparisons become the training data for a second model, the reward model. It is usually a copy of the language model with its output head replaced by a single number, a score. It is trained so that its score for the preferred answer is higher than its score for the rejected one. The loss is the Bradley-Terry form, the standard way to turn pairwise comparisons into scores:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rnEloY2OZvJ8uQkq8v47rQ.png" /></figure><p>Here r(x, y) is the reward model’s score for response y to prompt x, y_w is the preferred (winning) response, y_l is the rejected (losing) response, and sigma is the sigmoid function. The loss pushes the gap between the two scores up. It never says what a good answer is in absolute terms. It only learns the direction of preference.</p><p>There is a reason preferences are collected as comparisons rather than as scores. Asking a person to rate an answer from 1 to 10 is noisy: one annotator’s 7 is another’s 5, and the same annotator drifts over a long session. Asking which of two answers is better is a much more reliable judgment, and it is easier to do consistently. The reward model is, in effect, a distillation of many small comparative judgments into a function that can score any answer instantly.</p><p>Once trained, the reward model is a stand-in for the human raters. It can score millions of responses without anyone in the loop. That scalability is the whole point. Human feedback is expensive and slow, so RLHF uses humans to train a judge, and then lets the judge do the work at scale.</p><p>The catch is that the judge is imperfect. It is a model trained on a finite set of comparisons, and it has blind spots. Anything that comes next inherits those blind spots, which is why the third stage needs a leash.</p><h3>Stage 3: reinforcement learning with PPO</h3><p>In the third stage, the language model itself becomes a reinforcement learning agent, called the policy. It is given a prompt, generates a response, and the reward model scores it. The policy’s weights are updated to produce higher-scoring responses, using an algorithm called Proximal Policy Optimization, or PPO.</p><p>The objective the policy maximizes is the reward, minus a penalty for drifting too far from the model it started from:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qcd_ltkr5CS61BnJemcDPA.png" /></figure><p>Here <em>pi</em> is the policy being trained, <em>pi_ref</em> is the frozen supervised fine-tuned model it started from, r is the reward model score, and beta controls the strength of the KL penalty. KL is the Kullback-Leibler divergence, a measure of how different two probability distributions are. The penalty is the leash: improve your score, but do not wander far from sensible language.</p><p>The leash exists because of reward hacking. Left unchecked, reinforcement learning will find the easiest way to maximize the reward, and the easiest way is usually not what a human wants. A policy can learn to produce text that the reward model loves but that is gibberish to a person: repeated flattery, strange tokens, confident nonsense, or answers that are long because the reward model learned that longer answers tended to be preferred. The reward model is only a proxy for human judgment, and reinforcement learning is ruthlessly good at exploiting proxies. The KL penalty keeps the policy in the region where the reward model’s judgments are still reliable.</p><p>PPO itself is worth a brief note, because it is the source of much of RLHF’s reputation for being hard to run. It is an on-policy algorithm, which means it must generate fresh responses from the current policy at every training step, score them, and then update. That requires holding the policy, the reference model, the reward model, and often a value model in memory at once, and the loop is famously sensitive to hyperparameters. This engineering cost is the main reason the field has been moving toward simpler alternatives.</p><h3>The shortcut: DPO</h3><p>In 2023, Rafailov and colleagues showed that the whole reward model and reinforcement learning apparatus could be skipped. Their method, Direct Preference Optimization, or DPO, starts from a mathematical observation: the KL-constrained reward maximization in stage 3 has a closed-form optimal policy, and that policy can be rewritten in terms of the reward. Working backward, the reward can be expressed in terms of the policy, which means the preference data can be used to train the policy directly, with no reward model and no RL loop:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z7WR-PkRtxJUxH7paKRpRw.png" /></figure><p>The loss increases the likelihood of the preferred response relative to the rejected one, measured against the reference model, with beta again controlling how far the policy is allowed to drift. It is a single supervised-style objective on the same preference pairs the reward model would have used.</p><p>DPO is simpler, more stable, and far cheaper to run, and on many benchmarks it matches or beats PPO-based RLHF. It is now the default preference method in many open models. Meta’s Llama 3, for example, used DPO rather than PPO for its instruction-tuned versions. But the simplification comes with a tradeoff. DPO trains only on the fixed set of preference pairs, while PPO explores: it generates new responses, gets them scored, and can in principle discover answers that no human ever demonstrated. Whether that exploration matters in practice is an open question, and it is one reason the strongest labs still run RL in some form.</p><h3>Two views of what RLHF actually does</h3><p>Here is the debate. One view says RLHF, and alignment more broadly, is mostly superficial. The argument, made crisply in the LIMA paper by Zhou and colleagues, is that almost all of a model’s knowledge and capability comes from pretraining, and alignment training mostly teaches style and format: how to present an answer, when to refuse, how to structure a response. On this view, RLHF does not make the model smarter. It makes the model behave like an assistant. The evidence is suggestive. LIMA showed that fine-tuning a strong base model on just 1,000 carefully chosen examples produced responses competitive with models trained on far more alignment data. If alignment were teaching deep new skills, a thousand examples should not be enough.</p><p>The other view says that misses what reinforcement learning can do. When the reward is not a learned model of human preference but a verifiable signal, like whether a piece of code passes its tests or a math answer is correct, RL can push a model to genuinely better reasoning. The most striking recent example is DeepSeek-R1, which used reinforcement learning with verifiable rewards to produce a model that reasons far better than its supervised-only counterpart, discovering behaviors like self-correction and extended chains of thought that were not in its training data. On this view, RL is not just a style layer. It is a way to elicit capabilities that pretraining put in the model but that imitation alone cannot surface.</p><p>Both views have evidence, and the honest summary is that it depends on the reward. When the reward is a learned model of human taste, RLHF mostly reshapes behavior toward what people like, and it inherits the reward model’s blind spots, including a tendency to reward confident, fluent, slightly longer answers. When the reward is grounded in correctness, RL can genuinely improve reasoning. The interesting research question, and the one that matters most for the next generation of models, is how to get more of the second kind of reward: signals that are verifiable, hard to game, and aligned with what we actually want the model to do.</p><h3>Why this matters</h3><p>RLHF matters because it is where a model’s behavior is decided. Pretraining determines what a model can do. Post-training determines what it will do. The same base model can become a helpful assistant, a terse coder, or a sycophant, depending on the preference data and the reward it was trained against. That makes the details of alignment, who writes the preferences, what the reward model learns, how strong the KL leash is, into design decisions with real consequences for millions of users.</p><p>It also matters because the current recipe is unstable. PPO-based RLHF is expensive and finicky, DPO is simpler but does not explore, and reward hacking is a standing problem whenever the reward is a learned proxy. The field is actively searching for the next recipe: RL with verifiable rewards, methods that train on AI-generated feedback, and approaches that make the reward itself more reliable. If you are building or studying language models, the alignment stage is where the most consequential open questions live. The model learns language from the internet. It learns how to behave from us, and how well that works depends on how carefully we teach it.</p><h3>References</h3><ul><li><a href="https://arxiv.org/abs/2203.02155">Ouyang, L., et al. (2022). Training Language Models to Follow Instructions with Human Feedback. arXiv:2203.02155. The InstructGPT paper that defined the three-stage RLHF pipeline.</a></li><li><a href="https://arxiv.org/abs/1707.06347">Schulman, J., et al. (2017). Proximal Policy Optimization Algorithms. arXiv:1707.06347. PPO, the RL algorithm behind stage 3.</a></li><li><a href="https://arxiv.org/abs/2305.18290">Rafailov, R., et al. (2023). Direct Preference Optimization: Your Language Model is Secretly a Reward Model. arXiv:2305.18290. DPO, the shortcut that skips the reward model and the RL loop.</a></li><li><a href="https://arxiv.org/abs/2305.11206">Zhou, C., et al. (2023). LIMA: Less Is More for Alignment. arXiv:2305.11206. The case that alignment mostly teaches style and format.</a></li><li><a href="https://arxiv.org/abs/2501.12948">DeepSeek-AI (2025). DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning. arXiv:2501.12948. RL with verifiable rewards improving reasoning.</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84a5d5b08e4c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How do multimodal models actually combine text and images?]]></title>
            <link>https://medium.com/@chindahel1/how-do-multimodal-models-actually-combine-text-and-images-cd68d9998545?source=rss-2210598b1829------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd68d9998545</guid>
            <category><![CDATA[encoder-decoder]]></category>
            <category><![CDATA[multimodality]]></category>
            <dc:creator><![CDATA[Adele Chinda]]></dc:creator>
            <pubDate>Thu, 05 Nov 2026 14:41:16 GMT</pubDate>
            <atom:updated>2026-11-05T14:41:16.488Z</atom:updated>
            <content:encoded><![CDATA[<p>Show a modern model a photo of a kitchen and ask what is on the counter, and it will answer. It feels like the model can see. It cannot, at least not the way you do. What it can do is convert an image into the same kind of representation it already uses for text, and then let the two representations interact inside one system. The trick is not vision. The trick is translation.</p><p>Here is the whole pipeline in one picture. Everything in this post is a zoomed-in view of one of these boxes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t6kpUdyKl2y45yfcKbu1RA.png" /><figcaption>From pixels to words: the standard multimodal pipeline</figcaption></figure><p>To understand how that works, start with a basic problem. Text and images live in completely different worlds. Text arrives as a sequence of discrete tokens, each one a word or word fragment with a fixed identity. An image arrives as a grid of pixels, continuous numbers with no built in meaning. A language model knows what to do with tokens. It has no idea what to do with a grid of pixels. So before any reasoning can happen, the image has to be turned into something token shaped.</p><h3>From pixels to patches</h3><p>The first step is to break the image into pieces. Most vision encoders cut the image into a grid of small square patches, often 14 by 14 or 16 by 16 pixels, and treat each patch as a unit. Each patch is flattened into a vector of numbers, projected into the model’s working space, and given a position marker so the model knows where it came from:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*_wEz1C3Tge2mgBUm3hwmBA.png" /></figure><p>Here E is the learned projection, and p_i is the position embedding for patch i. The result is passed through a neural network, usually a vision transformer, that produces a vector representation for every patch. These vectors are sometimes called visual tokens, and the name is deliberate: they are meant to play the same role that word tokens play for text.</p><p>A patch on its own means almost nothing. A 16 by 16 square of brown pixels could be a table, a dog, or a shadow. Meaning comes from context, and the vision encoder builds that context the same way a language model builds context for words: self attention. Each patch representation is updated based on the patches around it, using the same operation that powers language models:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*JJ3bgddfHQWLrJfZtYPVzg.png" /></figure><p>Each patch asks every other patch how relevant it is (the QK term), weights the answers, and mixes them together. So a patch next to other brown patches in a horizontal line starts to look like a table edge. After several layers of this, the patch vectors carry information about what is in the image and where it is, at least in rough form.</p><p>This is the first thing to notice about multimodal models. The model never sees the image. It sees a set of vectors that summarize the image at patch resolution. Anything smaller than a patch, or any detail the encoder failed to capture, is simply not available to the rest of the system. That limitation explains a surprising amount of what these models get wrong.</p><h3>The bridge between two worlds</h3><p>Once the image is a set of vectors, the next problem is alignment. The language model was trained on text, so its internal space is organized around words and their relationships. The vision encoder was trained on images, so its space is organized around visual patterns. These two spaces do not match by default. A vector that means “dog” to the vision encoder is just an arbitrary point to the language model.</p><p>The bridge is usually a small learned module, often just a linear projection or a small multilayer network, that maps visual vectors into the language model’s space. After this mapping, the image patches are concatenated with the text tokens into a single sequence, and the language model processes the whole thing together. From the language model’s point of view, it is just reading a longer sequence, where some of the tokens came from an image instead of from text.</p><p>How does the bridge learn the right mapping? The most common answer is contrastive pretraining, the approach behind CLIP. Take millions of image and caption pairs from the internet, and train the vision encoder and a text encoder so that the vector for an image ends up close to the vector for its caption, and far from the vectors for unrelated captions. The training objective is a contrastive loss over a batch of pairs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*3ab5Gb-dRCDqaJ5r7CDT6Q.png" /></figure><p>For each image I, the loss rewards high similarity with its true caption T and penalizes similarity with every other caption T_j in the batch. After enough of this, the two spaces line up: images and text that mean similar things sit near each other.</p><p>This shapes what these models are good at and what they are not. Alignment by caption matching teaches the model to connect images with the kinds of things people write in captions. Captions tend to name the main subject, the setting, and the action. They rarely mention how many windows are in the background, whether the dog is to the left or the right of the chair, or the exact shade of the wall. So the alignment is strong for the gist of an image and weak for the details.</p><h3>Three ways to put the pieces together</h3><p>Not every multimodal model combines text and images the same way, and the choice is a real design decision with tradeoffs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5GxuX9gbtpsvnYDBx0-uig.png" /></figure><p>The first approach is early fusion. The projected image vectors are fed into the language model together with the text tokens from the very start, and a single transformer processes the combined sequence. Its strength is flexibility: any token can attend to any other token, so the model can relate a specific word to a specific image region. Its cost is compute. Images produce many tokens, often hundreds per image, and attention cost grows with the square of the sequence length, so a single image can dominate the model’s budget.</p><p>The second approach is cross attention. The language model keeps its own sequence of text tokens, and at certain layers it is allowed to attend to the image vectors through a separate attention mechanism. The image is consulted, rather than merged in. This is cheaper and more modular, since you can swap in a different vision encoder without retraining the whole language model. The tradeoff is that the interaction is more limited: the text can look at the image, but the image representations are not updated by the text.</p><p>The third approach is late fusion, where separate models process each modality and their outputs are combined only at the end. This works for classifying an image with a text label, but it is a poor fit for open ended generation, because the language model never gets to reason jointly over the image and the text. Most modern systems have moved away from it.</p><p>These are not abstract options. Flamingo used cross-attention, keeping the language model frozen and letting it consult the image through gated layers. BLIP-2 used a small querying transformer as the bridge, distilling the image into a handful of tokens for a frozen language model. LLaVA took the simplest route, a single linear projection from CLIP features into the language model’s space, and showed that a small amount of instruction tuning on top was enough to get a working visual chatbot. Same problem, three different answers about where the two modalities should meet.</p><p>In practice, early fusion has become the dominant choice for general purpose multimodal models, because it gives the strongest joint reasoning. But the tradeoff is real, and it is one reason these models are expensive to run: every image costs hundreds of tokens of attention.</p><h3>What the model actually sees, and what it misses</h3><p>Once you know the mechanics, the characteristic failures of multimodal models start to make sense. They are not random. They follow directly from how the image is represented.</p><p>Counting is a good example. Ask a model how many apples are in a bowl, and it will often get the number wrong. Counting requires keeping track of individual instances, but the image has been compressed into patch vectors, and nearby apples may fall into the same patch or blur together. The model has a rough sense of “several apples” but no reliable count, because the representation it works with does not preserve that information cleanly.</p><p>Spatial relations fail for a similar reason. “Is the cup to the left of the plate?” is a hard question for a model that represents the image as patch vectors with only approximate position information. Small objects, fine text, and subtle differences between similar objects suffer most. A model can tell you a photo shows a street scene, but it may miss the small sign in the background or misread a number on a jersey.</p><p>There is also a subtler bias. Because the language model is far larger than the vision encoder, and because text dominates its training, the model often leans on language priors instead of looking carefully at the image. Ask it about a photo of a blue banana, and it may answer as if the banana were yellow, because “banana” is so strongly associated with yellow in text that the prior overrides the visual evidence. Researchers call this language bias, and it is one of the main reasons multimodal models can seem to ignore what is right in front of them.</p><h3>Two views of what is happening</h3><p>There is a genuine debate about whether this architecture amounts to understanding, and it is worth stating both sides plainly.</p><p>One view says that aligning image and text vectors in a shared space is a real form of grounding. The model is learning a representation where visual and linguistic information about the same concept coincide, and that shared representation lets it answer questions, describe scenes, and reason about images in ways that transfer to new examples. On this view, the failures are engineering problems: better encoders, higher resolution, more careful training, and the model will keep getting closer to genuinely seeing.</p><p>The other view says the model is matching patterns across modalities without building the kind of structured understanding that vision requires. It can tell you what is in a photo because it has learned statistical associations between image features and words, not because it has a model of the scene with objects, positions, and relationships. On this view, the counting and spatial failures are not bugs to be patched. They are symptoms of an architecture designed for language that had vision bolted on, and real progress may require representing spatial structure explicitly rather than squeezing it into token vectors.</p><p>Both views have evidence. Multimodal models are genuinely useful, and they keep improving on benchmarks that test visual understanding. At the same time, their failures cluster exactly where a structured scene representation would help, and where a bag of patch vectors would struggle. The honest summary is that current models are very good at recognizing and describing, and much weaker at the kind of precise, structured perception that humans do without thinking.</p><h3>Why this matters</h3><p>Multimodality matters because the world is not text. Most of the information humans use to reason comes through vision: diagrams, charts, photographs, handwriting, the layout of a page. A model that can only read text is cut off from most of that. Bringing images into the same reasoning system is what lets a model read a graph, check a screenshot, or help with a problem written on a whiteboard.</p><p>It also matters for the research direction that follows. If the failures come from how images are compressed into tokens, then the interesting questions are about representation: how much detail should survive, how should position be encoded, and when should the model be allowed to look again at the raw image instead of relying on a compressed summary. Some of the most active work in the field is exactly here, giving models tools to zoom in, to attend to regions, or to reason over images in multiple passes rather than a single forward sweep. A multimodal model does not see a photo. It reads a sequence of vectors that a vision encoder produced from a photo, translated by a learned bridge into a space built for words. Everything it can do with an image, and everything it cannot, follows from that fact.</p><h3>References</h3><ul><li><a href="https://arxiv.org/abs/2010.11929">Dosovitskiy, A., et al. (2020). An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale. arXiv:2010.11929. The vision transformer: images as sequences of patch tokens.</a></li><li><a href="https://arxiv.org/abs/2103.00020">Radford, A., et al. (2021). Learning Transferable Visual Models From Natural Language Supervision. arXiv:2103.00020. CLIP and the contrastive alignment behind the bridge.</a></li><li><a href="https://arxiv.org/abs/2204.14198">Alayrac, J.-B., et al. (2022). Flamingo: A Visual Language Model for Few-Shot Learning. arXiv:2204.14198. The cross-attention design.</a></li><li><a href="https://arxiv.org/abs/2301.12597">Li, J., et al. (2023). BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models. arXiv:2301.12597. The querying transformer bridge.</a></li><li><a href="https://arxiv.org/abs/2304.08485">Liu, H., et al. (2023). Visual Instruction Tuning. arXiv:2304.08485. LLaVA, the simple projection plus instruction tuning recipe.</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd68d9998545" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why language models hallucinate]]></title>
            <link>https://medium.com/@chindahel1/why-language-models-hallucinate-c16e092253b3?source=rss-2210598b1829------2</link>
            <guid isPermaLink="false">https://medium.com/p/c16e092253b3</guid>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[Adele Chinda]]></dc:creator>
            <pubDate>Tue, 03 Nov 2026 17:07:07 GMT</pubDate>
            <atom:updated>2026-11-04T13:14:39.177Z</atom:updated>
            <content:encoded><![CDATA[<p>Ask a language model a question it cannot answer, and it rarely says “I don’t know.” It answers anyway, fluently, confidently, and sometimes completely wrong. It invents a citation, a date, a name, or a fact that sounds exactly right until you check it. This behavior has a name, hallucination, and it is one of the most misunderstood properties of modern language models. It is not a bug bolted onto an otherwise reliable system. It is a direct consequence of how these models are built.</p><p>To understand why, you have to start with what a language model actually does. It does not look things up. It does not check a database before it speaks. It predicts the next token, one piece of text at a time, choosing the continuation that is most probable given everything that came before. That is the whole job, and everything else, including the appearance of knowledge, emerges from it.</p><h3>Prediction is not retrieval</h3><p>When a model answers a factual question correctly, it is not recalling a fact in the human sense. During training, it saw millions of sentences, and its weights adjusted so that certain patterns of text became likely continuations of other patterns. Ask it about the capital of France, and “Paris” is the most probable continuation because that pairing appeared over and over in the training data. The model is not consulting a stored fact. It is reproducing a statistical regularity.</p><p>This works remarkably well for facts that are common, consistent, and repeated in many contexts. It breaks down in exactly the situations where a human would hesitate. Rare facts appear few times in training, so the model’s estimate of the right continuation is weak. Contradictory facts appear in different contexts, so the model averages over them. And questions about things that never appeared in training, like a paper published last week or a person who does not exist, have no correct continuation for the model to find. In all three cases, the model still has to produce something, because that is what it was trained to do: always produce the next token.</p><p>The crucial detail is that the model has no built in sense of its own uncertainty that matches ours. It does produce probabilities over possible next tokens, and sometimes those probabilities are spread out, which is a signal of uncertainty. But the text it generates does not carry that signal. When you sample the single most likely continuation at each step, a shaky guess and a certain fact look identical on the page. Both come out as clean, grammatical sentences. Fluency is not a signal of truth. It is a signal that the model is good at producing plausible text, and plausible text is often wrong.</p><h3>Why hallucinations sound so convincing</h3><p>A hallucination is rarely random gibberish. It is usually a coherent, well structured answer that borrows the shape of a correct one. A fabricated citation has a plausible author, a plausible venue, and a plausible year. A fabricated historical claim fits the style of a history paragraph. This happens because the model has learned the form of these things very well, even when it has not learned the content.</p><p>Think of it this way. The model knows what a citation looks like, what a biography paragraph looks like, and what an explanation of a scientific result looks like. When it needs to fill in the details and does not have them, it fills them in with the most probable details given the form. The result reads like a real answer because the structure is real. Only the specifics are invented.</p><p>This is also why hallucinations get worse when a question is specific and confident. If you ask a vague question, the model can give a vague answer, and vague answers are hard to get wrong. If you ask for a specific name, date, or number, there is exactly one right answer and many plausible wrong ones. The model must commit to one, and the pressure to sound specific pushes it toward a confident guess rather than a hedged one. Training with human feedback can make this worse: models are often rewarded for giving helpful, complete sounding answers, and penalized, implicitly, for refusing or hedging. The system learns that a confident answer is a good answer, even when the content is wrong.</p><p>There is a second, subtler driver. Language models are trained on text written by humans, and human text is full of confident assertions. Training data rarely contains sentences like “I am not sure about this, so I will stop here.” It contains finished articles, confident explanations, and polished arguments. The model imitates that style. It does not imitate doubt, because doubt is rarely written down in the form it was trained on.</p><h3>Two views of the problem</h3><p>Researchers disagree about how deep the problem runs, and the disagreement matters for what fixes are worth pursuing.</p><p>One view treats hallucination as a knowledge gap. On this view, the model hallucinates because it does not know enough, and the fix is more knowledge: bigger models, more training data, or retrieval systems that let the model look up facts before answering. Retrieval augmented generation, where the model is given relevant documents and asked to answer from them, is the most successful version of this idea. When the model has the right document in context, its answers get much more accurate, because the task shifts from recalling a fact to reading one. The limitation is that retrieval only helps when the right document exists and is found. For questions with no clear source, or where the retrieved documents are misleading, the model can still go wrong, now with a citation attached.</p><p>The other view treats hallucination as a structural property of prediction itself. On this view, no amount of knowledge fully fixes the problem, because a model that must always produce a next token will always be able to produce a wrong one, and because some questions have no answer in any document. The fix, on this view, is not just better knowledge but better calibration: models that can say “I don’t know,” that can express uncertainty in their answers, and that can refuse when the evidence is thin. This is harder than it sounds, because teaching a model to abstain requires training data and rewards that value honesty over helpfulness, and those two goals are often in tension. A model that refuses too often is useless. A model that never refuses is untrustworthy.</p><p>Both views have evidence behind them. Retrieval clearly reduces hallucinations on questions with documented answers. Calibration research clearly shows that models can be trained to express uncertainty more honestly. The honest summary is that hallucination has more than one cause, so it will need more than one fix.</p><h3>How to read a model’s answer</h3><p>None of this means language models are useless for factual questions. It means they should be read the way you would read a confident stranger, not the way you would read an encyclopedia.</p><p>First, check the kind of claim. Broad, widely repeated facts are usually safe. Specific names, dates, numbers, and citations are where hallucinations cluster. If an answer hinges on one specific detail, verify that detail independently.</p><p>Second, notice whether the answer could have been generated without knowing anything. A summary that restates your question in polished language, or an explanation that sounds general enough to fit many cases, may contain no real information at all. Fluency is cheap. Specificity that checks out is the real signal.</p><p>Third, use the model for what it is good at: drafting, brainstorming, explaining, and reformatting. For those tasks, a plausible answer is a useful starting point, and errors are easy to catch. For tasks where a single wrong fact is costly, like medical, legal, or safety critical decisions, the model is a drafting assistant, not an authority.</p><h3>Why this matters</h3><p>Hallucination matters because it sits at the boundary between capability and trust. Language models are becoming infrastructure: they draft documents, answer customer questions, summarize research, and help write code. In all of these roles, a confident wrong answer is more dangerous than an obvious error, because it passes unnoticed. The more fluent models become, the harder it gets to tell the difference between a model that knows and a model that is guessing well.</p><p>The research direction that follows from this is not just “make models bigger.” It is to build systems that know what they do not know, that can show their sources, and that can separate a confident answer from a guess in a way the user can see. Until then, the most important skill for anyone using these models is a simple one: treat fluency as style, not evidence, and check the specifics. The model will always answer. Whether the answer is true is a question only evidence can settle.</p><h3>References</h3><ul><li><a href="https://arxiv.org/abs/2509.04664">Kalai, A. T., Nachum, O., Vempala, S. S., and Zhang, E. (2025). Why Language Models Hallucinate. arXiv:2509.04664.</a></li><li><a href="https://arxiv.org/abs/2311.14648">Kalai, A. T., and Vempala, S. S. (2024). Calibrated Language Models Must Hallucinate.</a></li><li><a href="https://arxiv.org/abs/2207.05221">Kadavath, S., et al. (2022). Language Models (Mostly) Know What They Know. arXiv:2207.05221.</a></li><li><a href="https://arxiv.org/abs/2005.11401">Lewis, P., et al. (2020). Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. NeurIPS 2020. arXiv:2005.11401.</a></li><li><a href="https://arxiv.org/abs/2311.05232">Huang, L., et al. (2023). A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questions. arXiv:2311.05232.</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c16e092253b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Can we read a model’s mind? What probing actually tells us (and what it does not)]]></title>
            <link>https://medium.com/@chindahel1/can-we-read-a-models-mind-what-probing-actually-tells-us-and-what-it-does-not-8f8e2182ff14?source=rss-2210598b1829------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f8e2182ff14</guid>
            <category><![CDATA[reasoning]]></category>
            <category><![CDATA[diffusion-models]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[mechanistic-interp]]></category>
            <dc:creator><![CDATA[Adele Chinda]]></dc:creator>
            <pubDate>Thu, 29 Oct 2026 13:04:33 GMT</pubDate>
            <atom:updated>2026-10-29T13:04:33.437Z</atom:updated>
            <content:encoded><![CDATA[<p>When researchers say a model “knows” something, what do they mean? Usually they mean something more specific than the model getting the right answer. They mean that somewhere inside the model, in the numbers it passes from layer to layer, there is information about that thing, and that the model uses it. Probing is the main tool for checking that claim. It is also one of the most misunderstood tools in interpretability.</p><p>A probe is a small classifier trained on a model’s hidden states. You feed the model many inputs, record the activations at some layer, and train the probe to predict a property from those activations. If the probe predicts well, you conclude the information is present in that layer. If it predicts poorly, you conclude it is absent. That sounds straightforward. It is not.</p><h3>What a probe actually measures</h3><p>Start with what the probe sees. A modern language model turns each input token into a vector, and each layer transforms those vectors. By the middle layers, a single vector can carry information about the word itself, the words around it, the sentence structure, and sometimes facts about the world. A probe asks whether a simple function can extract one specific property from that vector.</p><p>The key word is simple. Probes are deliberately kept small, often just a linear classifier. The reasoning is that if the information can be read out with a simple function, then it is represented in a usable form, not just hidden somewhere in the numbers. If you allowed an arbitrarily powerful probe, it could learn the property itself from correlations, and you would learn nothing about the model.</p><p>Even with that restriction, a positive probe result is a weak claim. It says the information is present and linearly readable at that layer. It does not say the model uses it. A model can carry information it ignores. Your blood test can reveal what you ate for lunch, but that does not mean your lunch caused your decisions that afternoon. Presence is not use.</p><p>A negative probe result is even weaker than it looks. It says a linear probe could not read the property from that layer. It does not say the information is absent. It might be encoded nonlinearly, spread across several vectors, or present in a form the probe cannot reach. Failing to find something with one tool is not proof it is not there.</p><h3>The three questions probing cannot answer alone</h3><p>This is why careful interpretability work treats probing as the start of an investigation, not the conclusion. A probe result leaves three questions open, and each needs a different method.</p><p>First, <em>is the information causally used?</em></p><p>To answer that, you have to intervene. Change the hidden state in the direction the probe identifies, or remove that information, and see whether the model’s output changes in the expected way. If editing the representation changes the answer, the information was doing work. If the answer stays the same, the probe found a passenger, not a driver. This distinction matters because models are full of passengers. Representations pick up correlations from training data that never influence the final output.</p><p>Second, <em>is the probe reading the model or the data?</em></p><p>A probe trained on sentences about Paris will learn to predict “France” from activations that mention Paris, but the probe might be exploiting a shortcut in the dataset rather than a fact the model computed. Good probe design controls for this by testing on held-out patterns, using minimal pairs that differ only in the property of interest, and checking whether the probe still works when the surface cues are removed. A probe that only works on easy cases is a statement about the dataset, not the model.</p><p>Third, <em>at what point does the information appear, and what happens to it later</em>?</p><p>Probing layer by layer gives a profile: the property may be absent early, appear in the middle layers, and vanish again near the output. That profile is useful, but it is easy to overread. Information can be transformed rather than lost. A model might convert a syntactic property into a semantic decision, so the probe stops finding syntax not because the model forgot it, but because it no longer needs it in that form. Disappearance is not the same as irrelevance.</p><h3>Why probes still matter, despite all this</h3><p>Given these limits, why do researchers keep probing? Because probes are cheap, fast, and surprisingly diagnostic when used as part of a larger toolkit.</p><p>Probes tell you where to look. If a property is linearly readable at layer 12 but not at layer 4, an intervention study has a concrete place to start. Without the probe, you would be searching blind through dozens of layers and thousands of dimensions.</p><p>Probes also give you a baseline for comparison. Train the same probe on a randomly initialized model, or on shuffled labels, and you get a control. If the trained model’s probe beats the control by a wide margin, something real happened during training. If it does not, the property may be an artifact of the architecture or the input itself, present before any learning took place. Controls turn a suggestive result into a meaningful one.</p><p>And probes scale to questions that are hard to study any other way. You can probe hundreds of properties across every layer of a model in an afternoon, and use the pattern of results to form hypotheses. Those hypotheses then get tested with interventions, which are slower and more targeted. Probing is the survey; intervention is the experiment.</p><h3>What a good probing study looks like</h3><p>If you read a paper that uses probing, here is a short checklist for judging it.</p><p>Does it use simple probes with controls? A linear probe compared against a random model and shuffled labels is the minimum. Without controls, a high accuracy number means very little.</p><p>Does it go beyond presence to use? The strongest papers follow a probe result with an intervention: edit or erase the probed direction and report what happens to the output. A probe alone is a claim about representation. A probe plus an intervention is a claim about mechanism.</p><p>Does it test generalization? A probe that only works on the training distribution may be memorizing dataset quirks. The convincing version works on new sentences, new entities, or new phrasings of the same property.</p><p>Does it avoid claiming the model “understands”? Probing can show that information is present and used. It cannot show understanding in the human sense, because understanding is not a property you can read off a vector. Papers that keep their language precise, talking about representation and causal effect rather than beliefs and knowledge, are usually the ones to trust.</p><h3>Why this matters</h3><p>Probing matters because it is how we move from <strong>treating models as black boxes</strong> to <strong>treating them as systems we can inspect</strong>. But the move only works if we are honest about what each method shows. A probe result is not a mind-reading result. It is evidence that information is encoded in a readable form at a particular place. That evidence becomes powerful when combined with interventions that show the information is used, and with evaluations that show the use changes outcomes in ways we care about.</p><p>The broader lesson applies beyond probing. In interpretability, the most common mistake is not a technical one. It is a language one: upgrading a narrow measurement into a grand claim. A model does not “know” something just because a probe can predict it, just as a model does not “reason” just because it produces a plausible chain of thought. The work is in closing the gap between what we measured and what we claimed, one intervention at a time. That discipline is what will make model internals genuinely auditable, rather than merely impressive to describe.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f8e2182ff14" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Thinking without words: verbal chain-of-thought vs latent and trajectory-based reasoning]]></title>
            <link>https://medium.com/@chindahel1/thinking-without-words-verbal-chain-of-thought-vs-latent-and-trajectory-based-reasoning-2b34a7693000?source=rss-2210598b1829------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b34a7693000</guid>
            <dc:creator><![CDATA[Adele Chinda]]></dc:creator>
            <pubDate>Tue, 27 Oct 2026 13:14:06 GMT</pubDate>
            <atom:updated>2026-10-27T13:14:06.484Z</atom:updated>
            <content:encoded><![CDATA[<p>When a language model solves a hard problem, we usually watch it think in words. It writes out steps, one token at a time, and then gives an answer. That visible reasoning, called chain-of-thought, has become the default way we judge whether a model is really reasoning. But it is not the only way a model can think. A model can also reason in its hidden states, in continuous vectors that never become words, or across the intermediate states of a diffusion trajectory that revises itself as it goes.</p><p>The question is not which style looks more like thinking. It is what each style hides, and what we lose when we can only see one of them.</p><h3>Verbal chain-of-thought: thinking you can read</h3><p>Verbal chain-of-thought works because it turns reasoning into generation. The model produces intermediate tokens, and each new token is conditioned on the ones before it. That gives reasoning three useful properties.</p><p>First, it is inspectable. You can read the steps, find where they go wrong, and grade them. Second, it is intervenable. You can edit a step, prompt the model to reconsider, or ask it to check its own work. Third, it is compositional in a familiar way. Steps can be reused, quoted, and checked by another model or by a person.</p><p>That readability is also the source of its main weakness. Words are a bottleneck. A model must compress whatever it computed internally into a sequence of discrete tokens, in a single order, at a fixed granularity. Some computations do not fit that shape well. A geometric intuition, a probability distribution over alternatives, or a partial result that is still uncertain may have no clean verbal form, and forcing one can distort it.</p><p>There is a deeper problem too. A verbal chain of thought is generated, not observed. The model is producing text that looks like reasoning, and the final answer is conditioned on that text, but that does not guarantee the text caused the answer in the way it appears to. Research on faithfulness has repeatedly found cases where models give the right answer for the wrong stated reason, or change their stated reasoning while keeping the answer fixed. The steps can be a rationalization written after the conclusion was already favored, rather than the path that produced it.</p><p>So verbal reasoning hides two things: the computation that did not fit into words, and the gap between the story the model tells and the computation it actually performed.</p><h3>Latent and trajectory-based reasoning: thinking you cannot read</h3><p>Latent reasoning skips the verbal bottleneck. Instead of writing steps, the model reasons in continuous hidden states, sometimes called latent thoughts, and only decodes an answer at the end. A related idea appears in diffusion language models. There, generation is an iterative trajectory: the model starts from a masked sequence and repeatedly refines it. The intermediate states of that trajectory are a kind of reasoning trace, but they are not sentences. They are partial answers in various stages of revision.</p><p>This style has real advantages. It avoids the cost of generating many reasoning tokens, and it avoids forcing every intermediate idea into language. A diffusion trajectory can also revise itself. A token committed early can be remasked and changed once the surrounding context sharpens, which a left to right chain of thought cannot do without starting over or adding an explicit correction step.</p><p>But what it gains in flexibility, it loses in auditability. You cannot read a hidden vector the way you read a sentence. You can probe it, decode it, or perturb it, and each of those methods tells you something, but none of them gives you the clean, checkable record that a verbal trace promises. The trajectory of a diffusion model is more inspectable than a single hidden state, since you can watch tokens appear and change, yet it still lacks a clean separation between deliberation and answer. The model is answering continuously, and we are the ones deciding which part of that process counts as thinking.</p><p>Latent reasoning therefore hides something different: the reasoning itself. When a latent model is wrong, it is harder to say where it went wrong, whether it considered an alternative, or whether an intervention would have helped. When it is right, it is harder to say why, or whether it would be right again on a slightly different problem.</p><h3>The real trade-off</h3><p>It is tempting to frame this as a contest, with one style winning. The more honest framing is a trade-off between expressiveness, efficiency, and accountability.</p><p>Verbal reasoning is accountable but lossy. It gives us a record we can check, at the price of forcing thought through language and trusting a record that may be partly invented.</p><p>Latent reasoning is expressive and efficient but opaque. It lets the model use its full internal representation, at the price of a record we cannot directly read.</p><p>Trajectory-based reasoning sits between the two. A diffusion trajectory is partly readable, because tokens appear and change over time, and partly opaque, because there is no labeled boundary between thinking and answering. That in-between position is why it is interesting to study. It may offer a way to keep some revisability and efficiency while recovering some inspectability, if we learn to read trajectories properly.</p><h3>What would settle it</h3><p>Three kinds of experiments would move this debate from preference to evidence.</p><p>First, causal interventions. Perturb a latent state, or force a different token mid-trajectory, and see whether the model recovers, propagates the error, or reaches a genuinely different answer. A reasoning process should show structured recovery, not collapse or blind persistence.</p><p>Second, decoding and probing. Train probes to read latent states, or decode them into words, and test whether the decoded content predicts the final answer better than chance, and whether editing the decoded content changes the answer. If the latent content is causally upstream of the answer, that is evidence it is doing work rather than decorating it.</p><p>Third, commitment-point analysis. Find the point in a verbal chain, a latent trajectory, or a diffusion trajectory after which the final answer becomes predictable, and measure how much of the remaining compute changes anything. A model that commits early and then decorates is not deliberating for the rest of its budget, whatever its trace looks like.</p><p>My own view is that neither style is the true form of machine reasoning, and that is the point. Verbal chains are a useful interface, not a transparent window. Latent states are a useful substrate, not a guarantee of thought. The research problem is to build evaluations that test whether intermediate computation, in whatever form, actually changes outcomes for the better, and to build methods that let us intervene on it when it does not.</p><h3>Why this matters</h3><p>If you are building models, this choice decides where your compute and your trust go. Scaling verbal reasoning is easy to benchmark and easy to demo, but if many of those tokens are rationalization, you are paying for decoration. Scaling latent reasoning is efficient, but if you cannot audit it, you cannot deploy it in settings where a wrong answer needs an explanation, or where a failure needs a diagnosis.</p><p>The higher-leverage direction is not to pick a side. It is to make each style more honest: verbal traces that are checked for faithfulness, latent methods that can be probed and intervened on, and trajectories whose commitment points are measured rather than assumed. A model that reasons well should be able to show its work when asked, revise its work when wrong, and do useful work that never needed words in the first place. We do not yet have all three in one system, and closing that gap is the interesting problem.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b34a7693000" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Do diffusion models actually reason, or just denoise?]]></title>
            <link>https://medium.com/@chindahel1/do-diffusion-models-actually-reason-or-just-denoise-de730f39a9ca?source=rss-2210598b1829------2</link>
            <guid isPermaLink="false">https://medium.com/p/de730f39a9ca</guid>
            <dc:creator><![CDATA[Adele Chinda]]></dc:creator>
            <pubDate>Sun, 25 Oct 2026 03:06:43 GMT</pubDate>
            <atom:updated>2026-10-25T03:06:43.146Z</atom:updated>
            <content:encoded><![CDATA[<p>Autoregressive models generate by sampling from p(x_t | x_&lt;t), one token at a time, with no mechanism for revising a token once it is committed. Discrete diffusion language models replace that process with iterative refinement: start from a fully masked sequence and repeatedly apply a learned denoiser to unmask positions in parallel. The question this raises is not rhetorical. If a model passes through dozens of intermediate states before producing its final answer, is the trajectory doing computational work that deserves the name reasoning, or is it just converging to a sample?</p><h3>The mechanics, briefly</h3><p>In absorbing-state discrete diffusion, the forward process progressively replaces tokens with a mask token according to a noise schedule, until the sequence is fully masked. The learned reverse process, the denoiser, predicts the clean sequence from the noisy one. Generation runs this in reverse: at each step, the model scores all masked positions, unmasks a subset (usually the highest-confidence predictions, under some unmasking policy), and optionally remasks low-confidence positions for reconsideration.</p><p>Two properties distinguish this from autoregressive decoding. First, prediction is bidirectional: a token can be conditioned on both left and right context as it emerges. Second, the process is revisable: a position unmasked at step t can be remasked and changed at step t+k. The number of function evaluations (NFE) becomes a compute knob that autoregressive decoding does not have. More steps means more chances to revise, at the cost of more compute.</p><p>So the trajectory, the sequence of intermediate states x_T, x_{T-1}, …, x_0, is a real object with structure. The question is whether that structure is doing reasoning work.</p><h3>The case for yes: trajectories carry information</h3><p>There is evidence that intermediate states are not just noisy versions of the final answer. Three observations matter:</p><ol><li><strong>Corrections happen.</strong> A position unmasked early with the wrong token can be remasked and corrected once surrounding context sharpens. The final answer depends on the path, not just the endpoint distribution.</li><li><strong>Compute scales with steps.</strong> Up to a point, increasing NFE improves output quality, which means later steps are adding information rather than merely resampling.</li><li><strong>Unmasking policy matters.</strong> Which positions you unmask, and in what order, changes both accuracy and efficiency. If the trajectory were epiphenomenal, the policy would not matter. Recent work on learned unmasking policies shows it matters a lot: a small learned policy can push the accuracy-per-NFE frontier outward on models like LLaDA-8B and transfer to Dream-7B.</li></ol><p>This is the motivation behind trajectory-level evaluation: instead of grading only the final sample, study the path. Where does the model commit? Where does it revise? Which steps change the answer, and which only change the wording?</p><h3>The case for no: early commitment and rationalization</h3><p>The counterevidence is serious. A March 2026 study of masked diffusion models found that verdicts on reasoning tasks frequently converge very early in the trajectory, with remaining steps largely elaborating or justifying the early commitment rather than reopening it. More damning, when researchers forced longer deliberation before commitment, accuracy dropped from 86.2 percent to 71.9 percent. Forcing the model to “think longer” made it worse.</p><p>That pattern has a name in human cognition: rationalization. The system picks an answer, then spends its remaining budget making the answer look well-supported. The trajectory looks like deliberation, but the decision was already made. If the intermediate steps cannot change the outcome, they are not reasoning steps, no matter how fluent they look.</p><p>There is a second, subtler problem. In autoregressive models, chain-of-thought tokens are at least causally upstream of the answer: the answer is conditioned on them. In diffusion models, the “reasoning” is distributed across the trajectory, and there is no clean separation between the deliberation and the answer itself. The model is not thinking and then answering. It is answering continuously, and we are retroactively calling part of that process thinking.</p><h3>What would settle it: interventions, not vibes</h3><p>This is where the debate needs to move from interpretation to measurement. Three kinds of experiments would actually discriminate reasoning from rationalization:</p><ol><li><strong>Trajectory interventions.</strong> Perturb an intermediate state (for example, force a different token at a position the model had settled) and see whether downstream steps recover, propagate the error, or converge to a genuinely different answer. A reasoning process should show structured recovery, not collapse or blind persistence.</li><li><strong>Step-ablation curves.</strong> Measure accuracy as a function of NFE, but per task type. If additional steps help on tasks requiring multi-step inference and hurt on tasks requiring a single judgment, that tells you something about what the steps are doing.</li><li><strong>Commitment-point analysis.</strong> Identify the step at which the final answer becomes predictable from the trajectory, and measure how much of the remaining compute changes anything. A model that commits at step 5 of 50 and then decorates is not deliberating for 45 steps.</li></ol><p>My own view, and the direction of my current research, is that today’s diffusion LMs sit between the two poles. They do genuine revision, and unmasking policy results show the path is load-bearing. But they also commit early and rationalize, and the forced-deliberation result should worry anyone who assumes more steps equals more thought. The honest summary: diffusion models have a substrate on which reasoning could be built, and a trajectory that sometimes does real work, but we do not yet have the evaluations to say how often, or on which tasks.</p><h3>Why this matters</h3><p>If you are building diffusion LMs, this distinction decides where your compute goes. Scaling NFE is cheap to implement and easy to benchmark, but if most steps are rationalization, you are burning compute on decoration. The higher-leverage direction is understanding the trajectory: better unmasking policies, better remasking criteria, and evaluations that reward models whose intermediate steps actually change outcomes for the better. That is the difference between a model that looks like it reasons and one that does.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de730f39a9ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>