## Welcome & The Base Model Dilemma Norris: Welcome back to Mechanical Dreams, the podcast where we untangle the webs of machine learning and natural language processing, one paper at a time. I am Professor Norris, and as always, I am joined by my brilliant student, Linda, who consistently manages to drag me out of my comfortable skepticism and into the exciting world of cutting-edge research. How are you today, Linda? Linda: I am doing fantastic, Professor! And I am super excited about today's episode because we are tackling a problem that literally costs the AI industry millions of dollars in compute. Norris: Ah, millions of dollars in compute. Music to the ears of hardware vendors, but an absolute nightmare for the rest of us. What paper have you brought to the table to save our research grants today? Linda: It is a brand new paper from a team at NVIDIA, titled 'Before They Can Solve: Predicting Post-Training Coding-Agent Performance from Base Models'. Norris: Catchy title. And it hits on a very real, very painful point in the field right now. For our listeners who might not be deep in the trenches of training pipelines, the base model is essentially the raw brain of the AI. It has read the entire internet, but it does not really know how to behave yet. Linda: Exactly. It is like a super-genius who has memorized every programming textbook in the world but has never actually held a job as a software engineer. To turn that raw base model into a useful coding agent, one that can navigate a repository, run tests, and fix bugs autonomously, you have to put it through a grueling round of agentic post-training. Norris: And post-training is where you really burn through your budget. You have supervised fine-tuning, reinforcement learning, setting up complex evaluation harnesses. It is a massive investment in compute, engineering, and time. Linda: Right! And here is the core dilemma the paper addresses: choosing which base checkpoint to post-train is a high-stakes decision that you have to make before the model's actual agentic capabilities can be realized. Norris: It sounds a bit like drafting a high school athlete for the professional leagues based solely on their raw physical measurements. You have to pick your champion and bet the farm on them, but you do not really know if they will succeed until after you have invested all that time and money. Linda: That is a perfect analogy, Dr. Norris. If you pick a dud of a base checkpoint, you have wasted a massive amount of resources for a model that will never actually resolve complex GitHub issues. Norris: So why is it so hard to just evaluate the base models up front? Surely we can just give them a coding test before we commit to post-training them? Linda: You would think so! But base models are too raw for modern evaluations. If you drop an untuned base checkpoint into an end-to-end agentic coding benchmark, like SWE-bench Verified, it completely fails. The pass rate is practically zero. The base model simply does not know how to operate the tool-use harnesses required to even take the test. Norris: Makes sense. It might theoretically know the code required to fix a bug, but it will just output a rambling explanation instead of actually formatting a JSON payload to call the terminal. It is not agentic enough to participate. Linda: Precisely! And you cannot just use simple, non-agentic benchmarks either, but we will get into why those fail shortly. The NVIDIA researchers set out to answer a profound question: how can we evaluate the true agentic coding potential of a base model without requiring it to already behave like an agent? And their methodology for solving this is honestly brilliant. ## The Goldilocks Problem of Benchmarks Norris: You mentioned at the end of our last segment that simple, non-agentic benchmarks also fail us here. But as a professor, I have to ask, why? We have been using benchmarks like HumanEval and MBPP for years to test coding models. Surely, if a base model is brilliant at writing Python functions, it will be a brilliant software engineering agent after we train it? Linda: That is exactly what you would intuitively think, Dr. Norris. But the NVIDIA team found that this is the other side of the Goldilocks problem. End-to-end agentic benchmarks are too hot. But bounded coding benchmarks are too cold. They just are not agentic enough. Norris: Explain 'too cold'. Are you saying my favorite function synthesis tests are obsolete? Linda: Not obsolete, just measuring the wrong thing for this specific problem. They test isolated capabilities. In HumanEval, you get a prompt and you write a standalone function. But in a real agentic task, the model has to sustain interaction with an evolving repository, run shell commands, check logs, and maintain a coherent state over many steps. Norris: Right. Writing a beautiful sorting algorithm on a blank whiteboard is very different from untangling a million-line enterprise codebase that someone wrote in 2014 and abandoned. Linda: Exactly. And the data proves how different those skills are. The researchers correlated the base models' scores on these simple benchmarks with their eventual post-trained performance on SWE-bench Verified. The results were shockingly inconsistent. For MBPP, the Spearman correlation was basically flat at 0.091. Norris: Flat? So being good at MBPP tells you essentially nothing about whether the model will be a good agent. Linda: It gets worse. For HumanEval, the correlation was actually negative 0.394! Norris: Wait, negative? Are you telling me that if a base model scores higher on HumanEval, it might actually be worse at real software engineering after post-training? Linda: That is exactly what the data suggests across these ten model pairs. The synthesis benchmarks supply almost no signal, and sometimes a negative one. Even the strongest bounded baseline they tested, RepoBench XFirst, still trailed the new methods introduced in this paper. The scores on these older benchmarks are just too compressed at the top to differentiate the models meaningfully. Norris: That is absolutely wild, but it makes a twisted kind of sense. We are optimizing for a party trick instead of a profession. But just to play devil's advocate, what if we just force the base models to run the SWE-bench end-to-end anyway? I know you said they fail, but what if one gets lucky? Linda: The researchers actually tried that! They ran six base checkpoints on SWE-bench Verified without any trajectory context. Five out of the six resolved exactly zero tasks. They all tied at the absolute floor. Norris: So you cannot even rank them. They all just fail equally. Linda: Right! And the one model that did score anything, Qwen-3.5-35B-Base, scored 20.2 percent. It ranked first end-to-end as a base model. But here is the kicker: its post-trained family actually ranks fourth out of the six downstream. Norris: Oh, it is a complete trap! The one non-zero signal you get points you in the completely wrong direction. It is probably just because that specific base model happened to be more familiar with the format of the agent harness, not because it is actually a better coder. Linda: Precisely. As the paper puts it, current evaluations are either too agentic to run or not agentic enough to predict downstream performance. We need an evaluation that sits right in the middle. Norris: The Goldilocks zone. We need a test that reveals the model's potential to do complex, multi-step reasoning, without requiring it to actually execute all those steps perfectly from a cold start. How on earth do we build that? ## The Decisive Step Methodology Norris: So, at the end of our last chapter, we established that we desperately need a Goldilocks zone. We need an evaluation that sits right between 'writing a standalone Python function' and 'navigating an entire messy codebase from scratch.' How do the NVIDIA researchers thread that needle? Linda: They start by leaning on something called the 'coverage principle.' The idea is that a highly capable base model might not know how to format a tool call perfectly or drive an agent loop, but it should still assign a high probability mass to the correct, high-quality behaviors. Norris: Ah, so the knowledge is in there, trapped under the surface. Pre-training enables post-training. If the probability mass isn't there in the base model, no amount of fine-tuning is going to magically conjure it out of thin air. Linda: Exactly! The post-training process just sharpens the model's ability to sample those solutions. So, to test if that probability mass exists for complex software engineering, the researchers use successful agent trajectories as a guide. Norris: Wait, where are they getting successful agent trajectories if the base models can't generate them? Linda: They cheat a little bit, in the best possible way. They use frontier, fully post-trained LLMs—like GPT-4-class models or Claude Opus—to solve tasks on existing agentic coding benchmarks. They record everything: the commands, the observations, the environment state. Norris: I see. They have a highly capable expert do all the tedious work of exploring the repository, running 'grep', reading files, and figuring out the context. They just record the expert's screen, so to speak. Linda: Yes. And then, they replay that recorded trajectory step by step. But here is the crucial innovation: after every single step that changes the code, they extract the cumulative patch and run the benchmark's actual test suite against it. Norris: Okay, running the verifier at every step. What are they looking for? Linda: They are looking for the exact moment the repository flips from failing the tests to passing them. They call this the 'Decisive Step'. Norris: The Decisive Step. I like that. It is the critical strike. The exact turn where the bug is squashed. Linda: Right. And the specific action the expert model took at that step is dubbed the 'Golden Action.' It is certified by the task's own verifier, not by a human-written reference fix. It's a real, executable action produced by a coding agent. Norris: Now, let me put my skeptical professor hat on for a second. If you have this beautiful, 20-step trajectory from an expert model, why only evaluate the base model at that one decisive step? Wouldn't evaluating it across all 20 steps give you more data? We love data. Linda: I love that you asked that, because the authors anticipated it and ran an ablation study comparing 'all steps' to just the 'decisive step'. It turns out, rewarding a base model for agreeing with the expert on every step mainly measures how well it imitates the expert's quirks, rather than its actual problem-solving ability. Norris: Ah, of course. The expert model might just be poking around, reading unrelated files, or maybe it made a typo on step four and had to fix it on step five. You don't want to penalize a base model for not predicting a typo. Linda: Exactly! Or after the task is technically solved, the expert might add some incidental comments or formatting changes. The decisive step is the only one that yields a verifier-certified golden action. When they restricted their evaluation to just that step, the rank agreement with downstream agent capability shot up. Norris: It stripped out the noise. That is incredibly elegant. It is like pausing an action movie right before the hero defuses the bomb, bringing in the base model, and asking it, 'Alright kid, which wire do we cut?' Linda: That is the perfect analogy. You give the base model all the rich, interactive context built up by the expert, up to the critical moment, and just evaluate its potential at the boundary of success. Norris: I do have one logistical question though. Running a complex test suite—spinning up a Docker container, installing dependencies, running integration tests—is brutally slow and expensive. Doing that for every single step of thousands of trajectories sounds like an infrastructure nightmare. Linda: It is definitely the bottleneck of the pipeline, because verifier executions are the scarce resource, not forward passes. But the engineering team at NVIDIA was clever. Instead of scanning linearly through the steps to find the decisive one, they use a bisection search. Norris: A binary search on a test suite! Oh, that warms my computer science heart. Since the cumulative patch will continue to pass tests after it is fixed, it's a monotonic function. You can find the exact step in logarithmic time. Linda: Exactly. It drops the number of test suite executions per trajectory from the total number of steps down to just the log of the steps. Once they find that decisive step, they extract the context, the golden action, and start building their probes to test the base models. Norris: This is a fantastic setup. We have our perfectly curated, verifier-certified Goldilocks context. Now we just need to know how they actually probe the base models at that step, which brings us to the three metrics. ## Three Probes for Base Models Norris: Alright, so we have paused the movie. The hero is staring at the bomb. The decisive step is queued up in our interactive environment. How exactly do we ask the base model which wire to cut? Linda: The researchers built three distinct, complementary probes to ask exactly that. The first one is the most straightforward: Decisive-Action BPB, which stands for Bits Per Byte. It asks an absolute question: how much probability mass does the base checkpoint assign to the golden action? Norris: Ah, good old negative log-likelihood. But wait, different models use different tokenizers. A model with a larger vocabulary will use fewer tokens and naturally have a lower loss. How do they compare them fairly if they tokenize differently? Linda: That is exactly why they normalize the loss by byte length, rather than token length. It puts all ten base models they evaluated on a level playing field. But there is another catch. We talked earlier about how base models do not know how to format tool calls yet. If the golden action contains a bunch of JSON formatting and role tags, the base model will spike in loss just because it is confused by the syntax, not the actual code. Norris: Oh, that is a great point. You want to measure if the model understands the logic of the fix, not whether it has memorized a specific API's brackets and quotes. Linda: Exactly. So, they apply a formatting mask. They mask out the chat template tokens and the fixed tool-call boilerplate during the BPB calculation. They only accumulate loss over the semantic content, meaning the actual natural language and the code arguments. Their ablation study showed this masking significantly improves the correlation with downstream performance. Norris: Very smart. But I see a flaw with just measuring absolute likelihood. A model might assign a high probability to the golden action, sure, but it might assign an even higher probability to a patch with a glaring off-by-one error. Linda: Dr. Norris, you are tracking right along with the authors. BPB alone cannot tell you if the model distinguishes between a correct fix and a near-miss. That is why the second probe is a Patch MCQ, a multiple-choice question. It asks a comparative question. Norris: Let me guess. Option A is the golden action, and Options B, C, and D are distractors. Linda: Right! But the distractors are not just random strings of code. They are plausible alternative actions sampled from other models that were applied at that exact same trajectory prefix and rejected by the verifier. Norris: I love that. They are grounded in observed task outcomes. They are actual failed attempts. How do they score the multiple choice? Do they just look at which option has the lowest BPB? Linda: Interestingly, no. They tried scoring each option independently, what they call argmin-BPB, but the correlation with post-trained performance was actually pretty weak. Instead, they present all four options in a single context window and read the probability of the next token being the answer letter, A, B, C, or D. Joint scoring. Norris: Ah, that forces the model to compare them simultaneously. But LLMs have terrible positional bias in multiple choice. They love to just pick Option A, or whatever letter happens to be last. Linda: True, which is why they use cyclic option reordering. They rotate the options through every position and average the probabilities. It completely cancels out that positional prior. They also found that letting the model generate a little bit of reasoning before answering provided a modest bump in accuracy. Norris: Outstanding rigor. So we have an absolute probe, and a discriminative probe. What is the third one? Linda: The third is Prefix-conditioned pass at K. It asks a generative question: given this perfect trajectory prefix, can the base checkpoint actually generate a continuation that passes the verifier? They sample K continuations and see if at least one resolves the bug. Norris: Hold on. In chapter one, you said base models crash and burn when generating because they spit out rambling prose instead of proper commands. How did they get them to generate executable code here? Linda: That is where they did some incredibly clever engineering. They built a bridge between the agent interface and the base model. To stop the model from rambling, they use a trick called 'prefilling the action envelope'. Norris: Prefilling? Like typing the first few characters for it? Linda: Exactly. After giving it a plain-text transcript of the trajectory, they literally append the opening bracket of a JSON array, or the opening of a bash code fence, depending on the format. The model's very first sampled token is forced to land inside an open action. It makes continuing with regular prose grammatically incorrect to the model. Norris: That is hilarious, and brilliant. You essentially shove the model onto the stage, put an instrument in its hands, and say play. And it works? Linda: It does! Without the prefill, nearly half the generations were just the model talking to itself, writing fake 'Tool Result' logs. With it, the share of parseable, executable actions skyrocketed. And they found that generating just 16 continuations, meaning K equals 16, was enough to capture nearly all the attainable correlation with post-trained performance. Norris: So we have three beautifully designed, complementary probes: Decisive-Action BPB for likelihood, Patch MCQ for discrimination, and Prefix-conditioned pass at K for generation. Linda: That is right. And they all run inside that efficient, verifier-certified Goldilocks zone we established. It gives us a 360-degree view of the model's potential. Norris: Well, I am completely sold on the setup. Now it is time to see the final report card. Let us take a look at the results and what this means for the industry. ## Results and Industry Impact Norris: So we have seen the methodology and those three beautifully engineered probes. You teased some correlation numbers earlier, but let us get into the hard evidence. How rigorously did they actually test this? Linda: Incredibly rigorously. Beyond just correlating their probes with public leaderboards, they ran a highly controlled Supervised Fine-Tuning, or SFT, experiment. They took three different base checkpoints and fine-tuned them using the exact same internal recipe and dataset. Norris: Ah, holding the post-training pipeline constant. That is the scientific method in action. When you compare models from different labs, you never really know if a model won because of its base capabilities or because of some secret sauce in their alignment process. Linda: Exactly! And the results of that controlled test were stunning. The final performance order of those three models perfectly matched the rankings predicted by the Decisive-Action BPB and the other probes computed on the raw base models. The base checkpoint truly dictates the ceiling. Norris: That is the smoking gun right there. But did it only work for standard SWE-bench? We all know how easy it is to accidentally overfit a new evaluation metric to one specific python-heavy benchmark. Linda: They anticipated that criticism too! They tested the probes against SWE-bench Multilingual and Terminal-Bench 2.1. The rank agreement held up beautifully on the multilingual tasks, reaching a 0.976 Spearman correlation for the BPB probe. Norris: A 0.976 correlation across multiple programming languages. That is frankly remarkable. Linda: It really is. They did note a slight drop in correlation when predicting Terminal-Bench, because that benchmark focuses on command-line workflows rather than repository issues. But even then, the generative pass at K probe held a strong 0.930 correlation. The authors point out that if you want to predict command-line performance perfectly, you just need to source your expert trajectories from command-line tasks instead. Norris: Which makes perfect sense, given that the framework is entirely generic. You just swap out the source trajectory corpus. So, bringing this all home to the industry impact. What is the ultimate takeaway for the engineers and the accountants listening to us right now? Linda: The takeaway is massive cost and time savings. Right now, choosing a base model is a high-stakes gamble. You are committing thousands of GPU hours and engineering resources to post-train a model, crossing your fingers, and just hoping it becomes a capable agent at the end. Norris: And with this new framework, you can screen dozens of base models in a fraction of the time. You just need a handful of successful trajectories from a frontier model, run that clever bisection search to find the decisive step, and probe your candidates. Linda: Exactly, Dr. Norris. It completely shifts the evaluation paradigm. It turns expensive, downstream agentic benchmarks into cheap, upstream base-model evaluations. It lets you confidently pick your champion before you bet the farm on post-training. Norris: A triumph of clever engineering over brute force compute. I always love to see that. Linda, this has been an absolutely stellar paper and an even better breakdown. Thank you for bringing this into the studio today. Linda: My pleasure, Professor! It is always a blast sharing these breakthroughs with you and our listeners. Norris: That does it for this week's episode of Mechanical Dreams. Keep your code clean, your checkpoints decisive, and we will see you next time!