Algorithmic Thinking Theory

10 Dec 2025 · 17 min · 11 chapters

Ask about this episode

Ask anything about it. ChatGPT or Claude reads this page and answers with the times it was said.

Connect VO and ask about every podcast you hear, including the moments you saved. Add to ChatGPT · Add to Claude

In short

Algorithmic Thinking Theory for LLMs on hard math (e.g., IMO-style problems), explaining why single-shot “pass@1” is low but multi-attempt “pass@K” can be high, and formalizing how to assemble multiple flawed attempts into a correct proof.

Guest backgrounds

No guest names or biographies are provided in the transcript.

Key claims

LLM reasoning is modeled as a “reasoning oracle” whose success depends on the quality of a context/scratchpad and on a transfer function. Overfilling context can cause “decaying” success due to noise and correlation. Simple selection (best-of-N) fails; synthesis/verification works.

Notable examples

“Best of 32” on IMO 2025 problems reaches only 31.6–38.1% accuracy, while an IMO 2025 multi-stage pipeline (proof generation, formal verification, error analysis) reaches 85.7%. Reflection improves iteratively; RSA uses population aggregation. Sliding-window context is proven suboptimal and can collapse to near-zero success. Experiments on Gemini 2.5 Pro show accuracy drops when adding 12 noisy wrong solutions despite one correct hint, and rises smoothly as more correct solutions are included in a fixed context size.

Written by AI. May contain mistakes. Listen to the episode to check what was said.

Chapters

Tap a time to open that second in VO

Understanding the Gap in Performance

1:06 to 2:18

Explore the disparity between single-shot performance and the potential of language models.

“So our deep dive today is all about algorithmic thinking theory, which is a new theoretical framework designed to formally model and, well, unlock that hidden power.”

The Importance of Synthesis in Reasoning

2:18 to 4:24

Discover why synthesizing multiple attempts is crucial for improving reasoning accuracy.

“And the best of 32 selection approach, it only got an accuracy between 31.6 % and 38.1%.”

The Decaying Model Explained

4:24 to 6:32

Learn about the decaying model and how context size affects the success probability.

“It really shows that the bottleneck was always the process, not the potential.”

Exploring Algorithmic Structures

6:32 to 8:52

Examine various algorithms for maximizing reasoning success in language models.

“Sometimes too much information, especially flawed information, actually degrades performance.”

Correlation and Its Dangers

8:52 to 12:00

Understand the negative impact of correlation on the performance of language models.

“It gives the synthesis algorithm more room to work.”

Experimental Validation of Theories

12:00 to 14:00

Review experimental evidence supporting the concepts of decay and synthesis in models.

“The sliding window approach seems intuitive, right?”

Exploring Experiment Aput2

14:00 to 14:16

Learn about the practical testing of synthesis in LLMs.

“So it visually validates the need for that F key decay concept.”

Positive Outcomes from Oracle Testing

14:16 to 15:01

Discover how LLMs perform when given multiple correct solutions.

“Here, they fixed the total context size at five solutions, and then they varied the proportion of correct answers included.”

The Evolution of Algorithmic Thinking

15:01 to 15:37

Understand the shift from prompt engineering to algorithm design.

“to aggregate and verify different perspectives, it acts as this powerful synthesis engine, not just a passive information lookup tool.”

Rethinking Solution Evaluation

15:37 to 16:16

Examine the need for evaluating answer diversity in models.

“We are fundamentally shifting from being prompt engineers to being algorithm designers for complex reasoning.”
Show all 11 chapters

Complementarity in Problem Solving

16:16 to 17:13

Learn how combining diverse solutions can improve outcomes.

“Can you give us a real-world example of what that means in this context?”
Hear the part that matters, and keep it.Open this episode in VO. Double tap your headphones to save a moment as you listen.
Get VO free

Transcript

Automatic transcript. May contain errors.

0:00Okay, let's unpack this. We've all seen it, right? We've all been, I mean, just mesmerized by the almost magical capabilities of large language models, especially when you really push them toward these complex reasoning. tasks. I'm thinking competitive math problems, you know, the kind you find in a math data set, or even the International Mathematical Olympiad, the IMO. It's truly amazing. But, you know, there's this paradox that really drives the entire field. If you ask an LLM for a solution just once, what researchers call pass at one. The first guess. Exactly. The first guess. Its performance on those truly brutal problems is often quite low.

0:36It struggles. But here's the kicker. It's latent potential. It's ability to produce a correct answer if you give it, say, 10 or 20 attempts. The pass at K that can be radically higher. And that is the setup, isn't it? That huge, almost frustrating gap between the single shot performance we see and this vast hidden potential that's just waiting behind the curtain. Exactly. This gap, it screams that the LLM has a tremendous reasoning capacity that just isn't being used efficiently in a single rushed forward pass. So our deep dive today is all about algorithmic thinking theory, which is a new theoretical framework designed to formally model and, well, unlock that hidden power.

1:16So it's defining the specific algorithms we need to refine and combine and synthesize all those initial, often flawed attempts into one flawless final answer. That's it. We're moving past treating the LLM like a magic eight ball that gives one answer. Instead, we're building a formal strategic process for really synthetic deep thought. We're giving the model the tools to think like a human mathematician who needs multiple drafts, needs to self-correct and verify their own work. Right. So let's start with why this synthesis step is so critical. If the model has this great pass at K potential, why can't we just generate a whole bunch of solutions, say 32 of them, and then just pick the one that looks the best?

1:55That is the essential question. And the answer is really the limitation that spurred this whole area of research. The failure of simple selection. Sampling and selection approaches, even sophisticated ones called the best of 32 baseline, they just yield disappointingly poor results on the hardest reasoning tasks. And there's hard data on that failure. Oh, absolutely. Researchers recently tested this baseline on a really challenging set of IMO 2025 problems. And the best of 32 selection approach, it only got an accuracy between 31.6 % and 38.1%. Wow. Which tells you something fundamental. The correct answer often doesn't even exist, not fully intact, within those initial samples.

2:39The deep reasoning ability isn't some single monolithic product. It's a capability that's distributed across multiple, diverse, and frankly, individually flawed chains of thought. So it's not selection, it's assembly. It's like taking all these different incomplete puzzle pieces and actually constructing the final image. Precisely. This shift is all about scaling inference time compute. We're intentionally forcing the model to engage in what, you know, Daniel Kahneman termed system two reasoning. The slow, deliberate thinking. Yes, the slow, deliberative, iterative, energy intensive approach. And that's built on top of the base model's rapid, intuitive system one generations.

3:15The algorithms are the bridge between the two. And we've seen some incredible empirical evidence that this algorithmic approach actually works. One of the early breakthroughs was reflection, which showed that giving the model verbal feedback, just having it critique its own work, was enough reinforcement for real iterative improvement. And then there's the massive, just undeniable proof point of the IMO 2025 pipeline. This wasn't some new, complex model architecture. It was a model agnostic, multi-stage verification and refinement pipeline. A pipeline. That sounds more like a factory assembly line than a single shot.

3:51How did they get that huge leap in performance? Well, instead of just selecting, the pipeline had these dedicated stages for proof generation, then formal proof verification, and most importantly, an error analysis stage. That's where the model critiqued its own previous output and self-corrected before moving to the next draft. It's systematic self-auditing. And the result? That complex procedure achieved a stunning 85.7 % accuracy, that's five out of six problems, on the exact same IMO dataset where simple selection barely got over 38%. That is an astonishing increase. It really shows that the bottleneck was always the process, not the potential.

4:28It's absolute proof of concept. And another synthesis method we have to mention is recursive self-aggregation, or RSA. RSA. That sounds like it involves taking a big population of ideas and sort of mushing them together. That's a good analogy. Yeah. RSA is inspired by evolutionary computation. It maintains a whole population of candidate solutions, say 100 drafts, and it iteratively refines them by aggregating subsets. The model is prompted to combine useful intermediate ideas from different partially correct solutions to produce a new kind of genetically superior generation. Again, the mechanism is synthesis.

5:04You're bootstrapping from these partially correct pieces, not just waiting for a single perfect sample to show up. You've got it. Okay, here's where it gets really interesting. Moving from these empirical successes, these clever tricks, to the formal underlying mathematical theory, the framework formalizes the LLM in this context as what they call a reasoning oracle. Yes. Think of the LLM as a highly capable, if maybe sometimes distracted, consultant. We define this consultant as a probabilistic function, Adalder or the reasoning oracle. Adalder takes a context, which is basically your full scratch pad of all the generated solutions and partial attempts, and it produces a new, hopefully better solution, Adalder.

5:44And the quality of that new solution, it has to depend on the quality of the scratch pad you give it. Precisely. The probability of success of that new solution, the dollars, is governed by a transfer function, A dollars. This function, five dollars, is what tracks the magic. How well the LLM can transfer the collective quality and insight of the input context into a higher quality output. Right. And intuition would tell us that better inputs should lead to better outputs, which is why the idea of strong monotonicity is important here. Strong monotonicity, yeah. In this context, it just means that adding more useful solutions to the context bid a dollar should never decrease the expected score of the final output, at least assuming you don't overwhelm the model's memory limits.

6:23In an ideal world, every new piece of information helps. But, and this is a big but, we know the real world doesn't work that way. Sometimes too much information, especially flawed information, actually degrades performance. I think we've all seen a model get confused when the context window is just too full. which brings us to the core mechanism of this theory, the decaying model. The decaying model is so crucial because it accounts for reality. It simplifies the output to just binary correct or wrong. And it assumes the success probability depends on two key things. First, is there at least one correct solution buried somewhere in that context?

7:00And second, just the sheer size of that context,$2. And you have two key functions that model the model's performance here, FK and ZOK. They sound intimidating, but they're actually quite intuitive. They are. Let's translate them. Fk is the success probability when a correct answer is already present in a context of size caroler. So in essence, Fk measures the model's ability to successfully filter the signal from the noise when the answer is already there. Okay, filtering. And Gk? Gk is the success probability when no correct answer is present in the context. So this measures the model's ability to create a correct solution from scratch using only flawed inputs.

7:38So if Fk is filtering, Gk is a pure synthesis. And the really critical finding is that both of these functions are typically monotonically decreasing as the context size carol R gets bigger. That's the formal mechanism for the overthinking phenomenon we see. Too much context, even if it contains the correct answer, can dilute the model's focus, introduce distracting correlations, or just overwhelm its ability to focus. The decay is the tradeoff. We want the power of synthesis, but we risk diminishing returns if we feed it too much noise. So what are some of the theoretical cases they studied under this decaying model?

8:12Well, we examine the limits imposed by different types of decay. The simplest is the uniform model, where 5k and gk are just fixed probabilities, 2 tallers and 2 dollars, up to some limit. It's a useful baseline, but a little unrealistic. And then we get into the more realistic decay scenarios. Yes. The exponential decay model sets fk to something like 2k1. Because that probability drops off so sharply, this model mathematically enforces that you have to use small context sizes to be effective. On the other hand, the polynomial decay model, where if a k is maybe f and o, a k all, drops off much more slowly.

8:47And this theoretically allows for much faster boosting of the overall success probability because larger contexts are penalized less severely. It gives the synthesis algorithm more room to work. Okay, moving on to the algorithms themselves. The goal of all these complex procedures is to maximize the limiting success probability, which the theory calls$6. Let's frame this for you listening. $6 is the theoretical ceiling. It's the best the LLM can possibly do with infinite time and resources, given its base capabilities. Exactly. The goal of these algorithms is to efficiently reach that theoretical ceiling, or as close as you can get.

9:22What's fascinating is that several different algorithmic structures are proven to achieve this maximum achievable probability for these decaying models. It really centers on how efficiently you manage the independence of the generated solutions. Let's start with the theoretical maximum, the branching algorithm. The branching algorithm is pretty straightforward in concept, but it's computationally very demanding. It first generates a large number of independent solutions without any context, and then it merges them in this tree-like fashion. It combines groups of cheeky solutions from the previous layer until you have a single final output.

9:56Its optimality comes from the fact that it perfectly maintains statistical independence at every single step. So it achieves$6 perfectly because every input is fresh and uncorrelated. But that tree structure, that sounds like an exponential explosion of compute resources. You hit the nail on the head. it's the theoretical ideal, but it's completely impractical for anything but the simplest problems. That's why the genetic algorithm is the practical workhorse. And it's directly connected to that RSA approach we talked about earlier. Right. The genetic algorithm reuses solutions from the previous layer operating with a fixed population size.

10:31That's what makes it efficient. Correct. It samples from the previous generation to create the next, and it maintains efficiency by recycling. Crucially, the theory proves that it also achieves optimal success probability. It approaches the performance of the branching algorithm as your population size gets bigger. So if the branching algorithm is the theoretical best because of perfect independence, but the genetic algorithm is the practical one, what percentage of$6 are we usually sacrificing for that efficiency? That's the precise engineering question, isn't it? The sacrifice depends heavily on the specific decay function and the population size you choose.

11:08But the theory gives us the assurance that if you maintain a large enough population and proper diversity, the genetic algorithm performs arbitrarily close to$6. It gives us confidence that we don't need the exponentially expensive branching algorithm to get near optimal results. And there's a third optimal algorithm, the random sampling algorithm. Right, and this one is arguably the simplest structure. It generates new solutions by randomly sampling context from all previously generated solutions, not just the last layer. It also achieves optimal success probability, and in some settings, it even has a better convergence rate than the others.

11:42It can hit that six ceiling very quickly. So we've seen what optimal independence maximizing algorithms look like. Now let's look at the ones that fail, and they fail because they introduce a deadly enemy, correlation. The sources specifically highlight the danger of the sliding window approach. This is maybe the most practical insight from the whole formal theory. The sliding window approach seems intuitive, right? Just always use the dollar most recently generated solutions as your context. But it introduces this deep correlation because solution dollar is highly dependent on CSTU, is highly dependent on CST4, and so on.

12:14And why does that correlation lead to failure? Well, in the simplest case, the uniform model, the sliding window, is proven to be suboptimal. It just fails to reach the maximum $6. But in the more realistic decay models, the exponential or polynomial ones, it's much worse. The probability of success eventually goes to zero over time. Zero. A complete collapse. Why? Because the context eventually contains only highly correlated wrong solutions. The sliding window ensures that. And because the decay function penalizes a large or noisy context, the model can never break out of that failure loop. This is the formal theoretical mechanism that models that practical overthinking trap.

12:53Focusing too much on recent correlated failures leads to a spiraling performance degradation. You literally talk yourself into failure. It's just fascinating that all this theoretical math is grounded so firmly in real-world LLM behavior. Let's look at the experimental evidence they provided. They used the Gemini 2.5 Pro model on the AME 2025 math data set to validate these concepts. Right, and these experiments really confirm the core assumptions of the decaying model. In experiment 8.1, they were investigating decay in practice. They fixed one correct solution in the context, and then they just started increasing the number of incorrect solutions from 0 all the way to 12.

13:31This is where we see that noise beats signal dynamic, correct? Precisely. They found that as the number of incorrect solutions went up, the model's accuracy decayed dramatically. For example, on one question, question 10, it had a base accuracy of 0.36. Giving the model the perfect hint one correct solution, zero incorrect, boosted its accuracy to over 0.9. But when they added 12 noisy incorrect solutions alongside that single correct one, the accuracy dropped significantly. The incorrect context actively undermined the model's ability to use the correct input. So it visually validates the need for that F key decay concept.

14:07That's the real world consequence. Too much noise hurts, even when the perfect answer is technically right there. Okay, now for experiment Aput2, they tested synthesis in practice. Here, they fixed the total context size at five solutions, and then they varied the proportion of correct answers included. So, you know, 0 out of 5, 1 out of 5, all the way to 5 out of 5. This really validates the positive side of the oracle, showing how well the LLM can act as a synthesizer. And the results here were pretty impressive, I take it. They were. The model's accuracy increased very smoothly, very reliably, as the number of correct solutions in the context went up.

14:45And critically, using this five-solution context for a final call always improved over the base, single-pass accuracy of the model on average. Sometimes it showed a gap of about 40 % on the questions they looked at. It just shows that when the LLM is given multiple opportunities to aggregate and verify different perspectives, it acts as this powerful synthesis engine, not just a passive information lookup tool. So what does this all mean for you, for the listener? The key takeaway from algorithmic thinking theory seems clear. The true reasoning power of modern LLMs isn't about their single high-confidence output.

15:20It means that the next generation of capability won't be defined just by the size or architecture of the base model. It's going to be defined almost entirely by the efficiency and the structure of the reasoning algorithm that's used to generate and combine and synthesize all these diverse iterative attempts. We are fundamentally shifting from being prompt engineers to being algorithm designers for complex reasoning. The question isn't how good is the model's first guess anymore. It's how robust and optimal is the reasoning strategy we build around the model. And as we design these better algorithms, the theory itself has to get more complex.

15:56We talked about how the current model is limited by treating solutions as just binary, either right or wrong. What's the next frontier for this theory? The current model is crude, yeah, because it treats all partial solutions the same way. The next theoretical step is to include a measure of answer diversity alongside that simple binary score. We need to formalize complementarity. Complementarity. Can you give us a real-world example of what that means in this context? Sure. Think of two different math solutions to a complex geometry problem. Solution A fails horribly on the algebra part, but its geometric setup is flawless.

16:33Solution B nails the algebra perfectly, but its initial geometric interpretation was totally wrong. They are highly diverse because they failed in complementary ways. If you combine them, you have a perfect solution. Whereas if they failed in the exact same way, combining them would be useless. It would just be a correlated failure, like that sliding window problem. Exactly. Researchers are proposing modeling this diversity by associating a unit vector with each solution. orthogonal vectors would correspond to perfect complementarity, meaning they fail in totally different useful ways. Designing reasoning methods that efficiently combine solutions, not just based on their score, but on their calculated diversity, that is the key challenge.

17:10That will unlock the final, truly optimal systems. It's about leveraging our weaknesses efficiently.

From the publisher

This paper introduce a theoretical framework for studying "algorithmic thinking" in Large Language Models (LLMs), focusing on how iterative refinement and the aggregation of multiple solutions improve performance on complex reasoning tasks, like advanced mathematics problems. This framework formalizes the LLM as a **"reasoning oracle"** that generates new solutions based on a context of previous attempts, modeled by a **transfer function**. The authors define and analyze several algorithmic approaches—including **Branching**, **Genetic**, and **Random Sampling** algorithms—and establish that for certain model types, these iterative methods achieve the **maximum achievable success probability** by favoring solution independence and synthesis over simple selection. Ultimately, the work aims to move beyond empirical successes to provide a **rigorous theory** for designing highly effective, resource-efficient reasoning procedures.

More from Best AI papers explained

All 475 episodes
Algorithmic Thinking TheoryBest AI papers explained · 17 min
Listen in VO