Violet Xiang$^{2}$, Charlie Snell$^{3}$, Kanishk Gandhi$^{2}$, Alon Albalak$^{1}$, Anikait Singh$^{2}$, Chase Blagden$^{1}$, Duy Phung$^{1}$, Rafael Rafailov$^{2,1}$, Nathan Lile$^{1}$, Dakota Mahan$^{1}$, Louis Castricato$^{1}$, Jan-Philipp Fränken$^{2}$, Nick Haber$^{2}$, Chelsea Finn$^{2}$
$^{1}$ SynthLabs.ai
$^{2}$ Stanford University
$^{3}$ UC Berkeley
We propose a novel framework, Meta Chain-of-Thought (Meta-CoT), which extends traditional Chain-of-Thought (CoT) by explicitly modeling the underlying reasoning required to arrive at a particular CoT. We present empirical evidence from state-of-the-art models exhibiting behaviors consistent with in-context search, and explore methods for producing Meta-CoT via process supervision, synthetic data generation, and search algorithms. Finally, we outline a concrete pipeline for training a model to produce Meta-CoTs, incorporating instruction tuning with linearized search traces and reinforcement learning post-training. Finally, we discuss open research questions, including scaling laws, verifier roles, and the potential for discovering novel reasoning algorithms. This work provides a theoretical and practical roadmap to enable Meta-CoT in LLMs, paving the way for more powerful and human-like reasoning in artificial intelligence.
Authors are ordered randomly. Correspondence to [email protected].
Give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime. -Proverb
Executive Summary: Large language models (LLMs) have transformed fields like natural language processing by predicting the next word in a sequence, enabling tasks from translation to content generation. However, they often falter on complex reasoning problems, such as advanced mathematics or puzzles requiring deep exploration, where even top models like GPT-4o produce errors on problems that simplify to basic algebra. This limitation stems from training data that captures only the final solutions, not the iterative, trial-and-error thinking humans use for hard problems. As AI applications expand into science, engineering, and decision-making, improving reasoning is critical to make LLMs more reliable and versatile, especially now with growing demands for AI in high-stakes areas like research and policy.
This document proposes Meta Chain-of-Thought (Meta-CoT), a framework to enhance LLMs' reasoning by modeling the hidden "thinking" process behind solutions, drawing from cognitive science's idea of deliberate, effortful thought (System 2 reasoning). It aims to evaluate why current methods fall short and demonstrate how to train models that internalize this process for better performance on tough tasks.
The authors combine theory, empirical analysis, and practical methods. They analyze behaviors in leading models like OpenAI's o1 and DeepSeek-R1 using math benchmarks with thousands of problems from high-school to Olympiad levels, spanning recent years. Key techniques include generating synthetic data through search algorithms like Monte Carlo Tree Search and A* on verifiable math problems, then using instruction tuning to teach models these search patterns and reinforcement learning (RL) to refine them. They assume access to outcome verifiers (e.g., correct answers) and focus on domains like math for reliability, without delving into code or tools.
The core findings highlight three main insights. First, traditional Chain-of-Thought prompting boosts simple reasoning but fails on complex tasks because training data lacks the non-linear exploration—such as backtracking or verifying dead ends—that real solutions require; advanced models like o1 generate 2-5 times more tokens on hard problems, suggesting they simulate this internally. Second, inference-time search (sampling multiple paths and selecting the best) lifts accuracy by 20-40% on benchmarks, with tree-based methods like A* being 3-4 times more efficient than random sampling, but verifiers (models scoring paths) lag oracles by 20-30%, creating a persistent gap. Third, training models on linearized search traces via instruction tuning and RL induces in-context exploration: models learn to generate 2-6 attempts per problem, adapting more on difficult ones, with RL outperforming tuning alone by 5-10% in self-correction, though prompting elicits fake behaviors without real gains.
These results mean LLMs can approach human-like reasoning more closely, reducing errors in areas like scientific modeling or financial analysis by enabling deliberate exploration without external tools. Unlike expectations that scaling model size alone suffices, the work shows search internalization shifts performance curves leftward (higher accuracy at lower compute), cutting risks from hallucinations and timelines for AI deployment. It challenges prior views by revealing that RL, not just data volume, drives meta-reasoning, potentially unlocking novel problem-solving strategies.
Next, organizations should pursue the outlined pipeline: start with instruction tuning on synthetic search data from the new "Big MATH" dataset (over 1 million cleaned, verifiable math problems), followed by RL using discounted rewards to balance compute and accuracy. For decisions, prioritize verifiable domains like math or code; pilot on internal tasks to test efficiency gains. If resources allow, explore options like tool integration (e.g., calculators) for 20-50% faster scaling or meta-search (search over model outputs) to handle longer contexts.
Uncertainties include data quality gaps in non-math domains and the verifier gap, which could limit open-ended tasks like proofs without human annotation. Compute constraints mean results are preliminary for models beyond 70 billion parameters; confidence is strong in the framework's validity (supported by multiple studies) but moderate for full-scale deployment, warranting caution on unverified applications until more pilots confirm benefits.
Section Summary: Large language models, which predict the next word in a sequence to understand and generate text, excel at simple tasks like basic math but often fail at more complex problems, such as simplifying algebraic expressions, unless guided to think step by step through a method called chain-of-thought. Even then, these models have limits in capturing the deeper, iterative reasoning needed for advanced tasks. This paper explores those limitations and introduces Meta Chain-of-Thought, a new approach inspired by how humans think, which models hidden thinking processes, provides evidence from top AI models, and outlines ways to train systems for better reasoning using techniques like search algorithms and reinforcement learning.
A key aspect of the current era of Large Language Models has been the foundational principle of next-token prediction ([1, 2]). That is, tokenizing text (or other continuous modalities) into a discrete sequence in the following way:
$ \text{"The quick brown fox jumps over the lazy dog."}\to \mathbf{y}_1, \mathbf{y}_2, \ldots, \mathbf{y}_n, $
where $\mathbf{y}i$ are elements of some finite vocabulary and, subsequently, train a large parameterized neural network $p{\theta}$ (transformer) model with the following maximum likelihood objective:
$ \mathcal{L}{\theta} =\mathbb{E}{\mathcal{D}{\text{train}}}\left[-\sum_t \log p{\theta}(\mathbf{y}{t+1}|\mathbf{y}{\leq t})\right]. $
Behind this approach is a simple principle often abbreviated as "compression is intelligence", or the model must approximate the distribution of data and perform implicit reasoning in its activations in order to predict the next token (see Solomonoff Induction; [3]). That is, language models learn the implicit meaning in text, as opposed to the early belief some researchers held that sequence-to-sequence models (including transformers) simply fit correlations between sequential words.
A fundamental question, however, is: What is the relationship between the complexity of the underlying data stream and the model's capability to learn the data-generating algorithm? While natural language has some irreducible entropy, this question holds even in deterministic scenarios (as demonstrated below). Mathematical reasoning is a good domain to demonstrate and evaluate these questions. One can ask an LLM to generate a response to questions like:
"What is 1+2?"
to which most immediately answer " $3''$. We can increase the complexity of the question by asking, for example:
"What is the value of
$
\frac{(x^2 - 1)(x + 1)}{x^3 - x} - \frac{1}{x}
$
evaluated at $x=\pi$?"
This is actually a simple question since the expression is canonically equal to 1, yet even powerful LLMs such as GPT-4o and Claude fail to answer it correctly even once. That is, the true conditional generative process $p(\mathbf{y}_{t+1}|\mathbf{y}_t)$ could have arbitrarily high computational complexity even when it is deterministic as in the example above. In contrast, if we instruct models to "think step by step" and produce a chain-of-thought we can significantly improve their capabilities producing traces like the following:
We are tasked with evaluating
$ \frac{(x^2 - 1)(x + 1)}{x^3 - x} - \frac{1}{x} $
at $x = \pi$ . Let us simplify the expression before substituting $x = \pi$ .
Step 1: Simplify $(x^2 - 1)(x + 1)$
The numerator of the first term can be rewritten:
$ x^2 - 1 = (x - 1)(x + 1), $
so
$ (x^2 - 1)(x + 1) = (x - 1)(x + 1)^2. $
Step 2: Simplify $x^3 - x$ in the denominator Factorize $x^3 - x$ :
$ x^3 - x = x(x^2 - 1) = x(x - 1)(x + 1). $
Thus, the first term becomes:
$ \frac{(x^2 - 1)(x + 1)}{x^3 - x} = \frac{(x - 1)(x + 1)^2}{x(x - 1)(x + 1)}. $
Cancel $(x - 1)$ and one factor of $(x + 1)$ :
$ \frac{(x^2 - 1)(x + 1)}{x^3 - x} = \frac{x + 1}{x}. $
Step 3: Subtract $\frac{1}{x}$ Now substitute this simplified result into the full expression:
$ \frac{x + 1}{x} - \frac{1}{x}. $
Combine the terms over the common denominator $x$ :
$ \frac{x + 1}{x} - \frac{1}{x} = \frac{x + 1 - 1}{x} = \frac{x}{x} = 1. $
Step 4: Evaluate at $x = \pi$ The expression simplifies to $1$, which is independent of $x$ . Thus, the value at $x = \pi$ is:
$ \boxed{1}. $
There have been multiple explanations for this phenomenon ([4, 5, 6, 7]), however we focus on the complexity hypothesis ([4]). Specifically, a CoT expansion allows for (in-theory) arbitrarily large amounts of compute to be deployed towards the prediction of answer tokens. A large theoretical literature has been developed arguing for the representational complexity of transformers with and without CoT ([4, 8, 9]). The literature says that endowing LLMs with CoT allows them to represent new orders of complexity and (with assumptions, such as infinite memory) may even make them Turing complete. However, in practice, today's LLMs can only reliably solve problems of limited complexity ([10]).
In this paper, we investigate the limitations of current LLMs in handling complex reasoning tasks and propose a novel framework, Meta Chain-of-Thought (Meta-CoT), to address these shortcomings. We argue that traditional Chain-of-Thought (CoT) methods, while effective for simpler problems, fail to capture the true data-generating process of complex reasoning which often involves a non-linear, iterative, and latent process of exploration and verification. Meta-CoT extends CoT by explicitly modeling this latent "thinking" process, which we hypothesize is essential for solving problems that require advanced reasoning capabilities.
We draw inspiration from Cognitive Science's dual-process theory, framing Meta-CoT as a form of System 2 reasoning. We establish the theoretical foundations of Meta-CoT, demonstrating how it can be realized through systematic search processes, and how these processes can be internalized within a single auto-regressive model. We then present empirical evidence supporting our claims, including analyses on state-of-the-art models like OpenAI's o1 ([11]) and DeepSeek-R1 ([12]), which exhibit behaviors consistent with internalized (in-context) search. We further explore methods for training models on Meta-CoT through process supervision, and synthetic data generation via search algorithms like Monte Carlo Tree Search (MCTS) and A*.
Finally, we outline a concrete pipeline for achieving Meta-CoT in a single end-to-end system, incorporating instruction tuning with linearized search traces and reinforcement learning (RL) post-training. We discuss open research questions, including the scaling laws of reasoning and search, the role of verifiers, and the potential for discovering novel reasoning algorithms through meta-RL. We also present the "Big MATH" project, an effort to aggregate over 1, 000, 000 high-quality, verifiable math problems to facilitate further research in this area. Our work provides both theoretical insights and a practical road map to enable Meta-CoT in LLMs, paving the way for more powerful and human-like reasoning in artificial intelligence.
Section Summary: This section introduces the meta chain-of-thought process as a way to better capture how humans solve complex reasoning problems, like advanced math puzzles, by accounting for hidden mental steps that aren't laid out in a simple step-by-step sequence. It explains that while standard chain-of-thought prompting works well for straightforward tasks, such as basic algebra, it falls short for tougher problems because their solutions aren't generated linearly from left to right; instead, they involve interconnected ideas that require understanding the whole approach upfront. Using a notoriously difficult math olympiad problem about rotating lines and points as an example, the section argues that real reasoning often relies on latent thoughts and exploration, which current language models struggle to replicate through autoregressive training.
In this section, we first formulate the meta chain-of-thought process and discuss how it can describe the problem solving process for complex reasoning problems. Then, we describe and demonstrate why classical chain-of-thought fails under certain circumstances.
A question to ask ourselves is: Should language models with Chain-Of-Thought prompting really be able to express any function, and thus solve arbitrarily complex problems, which was the theoretical point of the previous section? We will stick with the mathematical reasoning domain for the purpose of the discussion. Today, the capabilities of frontier models are enough for a large class of mathematical reasoning problems. Current state-of-the art systems such as GPT-4o and Claude largely solve the Hendrycks MATH Levels 1-3 Benchmark ([13]), however, they still struggle with advanced problems such as those in Levels 4 and 5, HARP ([14]) and Omni-MATH ([15]) (as well as other advanced reasoning tasks). We put forward the following theory to explain these empirical observations.
Reasoning data present in pre-training corpuses does not represent the true data generation process, especially for complex problems, which is a product of extensive latent reasoning. Moreover, this process generally does *not* occur in a left-to-right, auto-regressive, fashion.
In more details, the CoT reasoning data prevalent in the pre-training corpus and post-training instruction tuning follows the true data-generating process for solutions of simple problems such as algebraic computations, counting, basic geometry etc.. That is, for example, the textbook solutions for solving high-school algebra present the general process of generating those solutions. If we follow some set of steps or approaches present in existing textbooks, we can eventually arrive at the solution. Hence, these are learnable with a constant-depth transformers that can express the complexity of each individual step in the process. In contrast, complex reasoning problems do not follow that pattern. We may have a set of triples $(\mathbf{q}, \mathbf{S}, \mathbf{a})$ of questions $\mathbf{q}$, solution steps $\mathbf{S}=(\mathbf{s}_1, \ldots, \mathbf{s}_n)$ and (optionally) answers $\mathbf{a}$, but the true data generation process is not auto-regressive:
$ \mathbf{q}\to\mathbf{z}_1\to\ldots\to\mathbf{z}_K\to(\mathbf{s_1}, \ldots, \mathbf{s}_n, \mathbf{a}),\tag{1} $
where $\mathbf{z}_i$ are the latent "thoughts" left out of the solutions steps, which can be represented fully with left-to-right generation, while the dataset solution $\mathbf{S}=(\mathbf{s}_1, \ldots, \mathbf{s}_n)$ is generated jointly. Let us illustrate this with an example from the International Mathematics Olympiad 2011. This is the (in)famous "windmill" problem:
"Let $\mathcal{S}$ be a finite set of at least two points in the plane. Assume that no three points of $\mathcal{S}$ are collinear. A windmill is a process that starts with a line $\ell$ going through a single point $P \in \mathcal{S}$. The line rotates clockwise about the pivot $P$ until the first time that the line meets some other point belonging to $\mathcal{S}$. This point, $Q$, takes over as the new pivot, and the line now rotates clockwise about $Q$, until it next meets a point of $\mathcal{S}$. This process continues indefinitely. Can we choose a point $P$ in $\mathcal{S}$ and a line $\ell$ going through $P$ such that the resulting windmill uses each point of $\mathcal{S}$ as a pivot infinitely many times."
which has the following solution:
"Let $|S|=n$. Now consider an arbitrary point $P$ in $S$ and choose a line $l$ through $P$ which splits the points in the plane into roughly equal chunks. Next notice that as the line rotates it will sweep a full $2\pi$ angle against some fixed reference frame. Now take another random point $P'$ and similarly constructed stationary line $l'$. At some point in the windmill process we will have $l \parallel l'$. However notice that $l$ and $l'$ split the points into the same two sets and are parallel. Therefore we must have that $l \equiv l'$ and thus $l$ passes through $P'$. This of course holds for any $P' \in S$. Applying the same argument recursively yields the final proof that it is in fact possible to make such a construction for any set $S$ with these properties."
The solution above does not use any prior knowledge and fits within a few sentences. Yet, this problem was considered among the most difficult in the competition (there were only a handful of solutions among the 600+ participants). What makes the problem difficult is the highly non-linear structure of the solution. Most participants would follow the standard "generative" solution process and investigate approaches based on the convex hull construction or use tools from Hamiltonian graph theory, none of these leading to a solution. Instead, participants who solved the problem followed an experimental approach with a lot of geometric exploration and inductive reasoning. Moreover, the solution itself is not linear. It's hard to see the utility of the proposed construction in the beginning without the analysis of the dynamics of $l$. Essentially, to start generating the solution requires that we already know the full approach. The underlying generative process of the solution is not auto-regressive from left-to-right.
We can formalize this argument through the interpretation of reasoning as a latent variable process ([16]). In particular, classical CoT can be viewed as
$ p_{\text{data}}(\mathbf{a}|\mathbf{q}) \propto \int \underbrace{p_{\text{data}}(\mathbf{a}|\mathbf{s}1, \ldots, \mathbf{s}n, \mathbf{q})}{\text{Answer Generation}} \underbrace{\prod{t=1}^n p_{\text{data}}(\mathbf{s}t | \mathbf{s}{< t}, \mathbf{q})}_{\text{CoT}} d\mathbf{S}, $
i.e., the probability of the final answer being produced by a marginalization over latent reasoning chains. We claim that for complex problems, the true solution generating process should be viewed as
$ p_{\text{data}}(\mathbf{a}, \mathbf{s}_1, \ldots, \mathbf{s}n|\mathbf{q}) \propto \int \underbrace{p{\text{data}}(\mathbf{a}, \mathbf{s}1, \ldots, \mathbf{s}n|\mathbf{z}1, \ldots, \mathbf{z}k, \mathbf{q})}{\text{Joint Answer+CoT}} \underbrace{\prod{t=1}^K p{\text{data}}(\mathbf{z}t | \mathbf{z}{< t}, \mathbf{q})}{\text{Meta-CoT}} d\mathbf{Z}, $
i.e., the joint probability distribution of the solution $(\mathbf{a}, \mathbf{s}_1, \ldots, \mathbf{s}_n)$ is conditioned on the latent generative process. Notice that this argument is a meta-generalization of the prior CoT argument, hence why we will refer to the process $\mathbf{q}\to\mathbf{z}_1\to\ldots\to\mathbf{z}_K$ as Meta-CoT.
:::: {cols="1"}


Figure 1: Top: Performance of current frontier models by size on the HARP mathematics benchmark ([14]) by difficulty level and topic. The OpenAI O1 series significantly out-performs prior generation models across the board. Source: Figure 3 in ([14]). Bottom Average number of tokens generated by each model grouped by difficulty level, as well as average number of tokens in human-generated solutions (using GPT4 tokenizer). Source: Figure 4 in ([14]). ::::
Based on the previous discussion, a natural question follows: Why do LLMs fail at these advanced reasoning tasks? Above we proposed that the pre-training and instruction-tuning corpora consist of data of the type $(\mathbf{q}, \mathbf{s}1, \ldots, \mathbf{s_n, \mathbf{a}})$, which do not contain the true data generating process as shown in Equation 1. Indeed, the solution to the windmill problem above is widely available on the internet, but there is little to no discussion about the ways in which commonly used convex hull or planar graph arguments fail. This is true in general - textbooks contain advanced proofs but not the full thought process of deriving these proofs. We can then apply the same general meta-argument of why CoT is necessary to the Meta-CoT case: simply because the conditional solution-level distribution $p{\text{data}}(\mathbf{a}, \mathbf{s}_1, \ldots, \mathbf{s}n|\mathbf{q})$ (without the intermediate Meta-CoT) on hard reasoning questions can have arbitrarily high complexity in the same way that $p{\text{data}}(\mathbf{a}|\mathbf{q})$ can have arbitrarily high complexity in the standard CoT setting. We will examine some empirical evidence for our stance in the following sections.
We will argue in the following chapters that the OpenAI o1 model series performs full Meta-CoT reasoning in an auto-regressive fashion at inference time. A useful analysis is presented in a new mathematics benchmark with challenging high-school Olympiad-level problems ([14]). Figure 1 sourced from that work shows the relevant results. First, we see that the o1 family of models significantly outperforms "standard" reasoning models across the board. However, the gap between o1 and other models' performance increases on higher difficulty problems (with the interesting exception of the LLaMa 3.1 models), that is, problems which have higher solution complexity.
Furthermore, the bottom half of Figure 1 shows the average number of tokens generated grouped by problem difficulty level. First, we see that outside of the o1 series of models, LLMs generate solutions of comparable lengths to humans. While this may initially appear quite intriguing, suggesting that models are learning to approximate or replicate human reasoning, the simple explanation is that models are learning solutions to match the training data - i.e. $p_{\text{data}}(\mathbf{a}, \mathbf{s}_1, \ldots, \mathbf{s}_n|\mathbf{q})$. Much more intriguingly, the o1 series of models exhibits significantly different token behavior. We see that:
Of course, in practice the distinction between these two is not so clear cut, and in fact the constant-depth transformer can likely internalize part of the Meta-CoT generative process as evidenced by the gradation of (Meta-)CoT lengths from Levels 2-6 in Figure 1. In the next chapter we will discuss in greater detail what the Meta-CoT process actually represents.
Section Summary: The section explains why language models struggle with advanced reasoning tasks, arguing that their training data lacks representation of the true problem-solving process, which involves a significant gap between generating solutions and verifying them, often requiring extensive search efforts not captured in typical text corpora. Through experiments fine-tuning a Llama 3.1 model on math problems, it shows that allowing more computation during inference—such as generating multiple solutions and selecting the best via voting or an oracle—dramatically boosts performance, even with limited training, highlighting a persistent divide between generation and verification capabilities. This suggests that scaling up inference-time search could help models tackle complex problems more effectively, though challenges remain in verifying solutions without perfect feedback.
In the previous section we introduced the Meta-CoT process and argued that LLMs fail on advanced reasoning tasks because the training data does not adequately represent the true data generation process, i.e. text corpora do not include (or only include limited amounts of) Meta-CoT data. So the remaining question is: what does the true data generating process look like?
We will dive deeper into these two points in the remainder of this section.
The first point above (generation-verification gap) has recently become a popular research and discussion direction under the framework of "deploying inference-time compute" and we explore this in our first experiment. We start with a LLaMa 3.1 8B base model ([17]) and carry out extensive supervised fine-tuning on the Numina MATH dataset ([18]). Refer to Figure 5 for results and Section 8.1 for dataset details. For each intermediate checkpoint we evaluate performance on the Hendrycks MATH ([13]) 500 problems evaluation dataset ([19]). Based on the results, we make a few observations here:

These results demonstrate that even as we directly optimize for answer generation ability by finetuning on increasing amounts of SFT data, there remains a consistent verifier-generator gap, as evidenced by the improved performance in botht eh pass@k and majority voting settings. Recent literature has observed similar results on post-training sampling ([19, 20, 10]). However, most of these studies do not systematically evaluate the effects of varying amounts of training data, compute, and model size which we believe is a fruitful direction for additional empirical work. These questions are important as the observed gains from additional inference might disappear at larger scales and training - i.e. the model may be able to fully internalize the reasoning process. This definitely seems to be the case for advanced models and simpler benchmarks like GSM8k ([21]). While we observe the opposite result in our experiments, we admit that our results are the outcomes of preliminary study and additional work is required, but we will argue from a theoretical point in Section 6 that a persistent search gap remains in domains with high enough epistemic uncertainty. Besides this point, the question remains whether the improvement from increased inference can be effectively achieved without oracle verifiers or environment feedback. In theory, it is possible to generate correct solutions under an increased inference budget, but we may not be able to verify them effectively, as verification complexity may be just as high as, or even higher than, generation complexity. We will address this issue next.
![**Figure 6:** **Scaling trends for verifier models** on algorithmic reasoning, grade-school math (GSM8k), and transfer from GSM8k to MATH. The performance of all verifiers improves in the best-of-N setting, as N increases. Figure sourced from ([22]).](https://ittowtnkqtyixxjxrhou.supabase.co/storage/v1/object/public/public-images/q643mhbq/verifierscaling.png)
Several works focus on training verifier models, which explicitly evaluate the correctness of reasoning steps and solutions. Verifiers can be trained either using explicit binary classification ([21, 19, 10, 23, 24]) or modeling evaluation directly in natural language, using the LLM-as-a-judge prior ([22, 25]). The unifying formulation of these approaches is the model $v_{\theta}$ which evaluates a reasoning process $v_{\theta}(\mathbf{q}, \mathbf{S})\to[0, 1]$. Under this framework, $K$ candidate solutions $(\mathbf{S}^1, \ldots, \mathbf{S}^K)$ can be generated from a fixed generator $\pi_{\theta}(\cdot|\mathbf{q})$ and ranked based on their evaluation score.
$ \mathbf{S}^*=\arg\max {v_{\theta}(\mathbf{q}, \mathbf{S}^1), \ldots, v_{\theta}(\mathbf{q}, \mathbf{S}^K)} $
For empirical results, we refer the reader to Figure 6 sourced from ([22]) which evaluates a number of verifier models $v_{\theta}$. Regardless of the efficiency of the verifier, there is a significant improvement in performance with additional online sampling. Moreover using explicitly trained verifier models outperforms naive inference-compute scaling strategies such as self-consistency or majority voting.
A question remains regarding the effect of using a fixed generation model (policy): Could this model be under-trained, and if it were further trained, could its zero-shot performance improve to the point where additional online search no longer provides meaningful improvement? We will address this in Section 3.4.
![**Figure 7:** Reasoning via Planning (RAP) demonstrates the search procedure described here. If we have access to a state evaluator, we can truncate branches with low values and backtrack to promising nodes, without resampling the same steps again. Source: Figure 2 in ([26]).](https://ittowtnkqtyixxjxrhou.supabase.co/storage/v1/object/public/public-images/q643mhbq/RAP.png)
So far, we empirically explored best-of-N approaches, generating multiple full solutions independently and selecting the most promising one based on scores. However, this approach is inefficient because it requires exploring full solution paths, even if a mistake occurs early on, and may repeatedly sample the same correct steps. Instead, we can model reasoning as a Markov Decision Process (MDP), defined by the tuple $ \mathcal{M} = (\mathcal{S}, \mathcal{A}, P, R, \gamma) $, where:
We refer to the LLM generating the reasoning steps as the policy $\mathbf{s}{t+1}\sim\pi{\theta}(\cdot|\mathbf{S}_t)$. In addition we refer to a solution starting from $\mathbf{s}_0=\mathbf{q}$ as an episode or a trajectory. We will also use the notation $\mathbf{z}_t$ to represent individual reasoning steps that are part of the Meta-CoT and correspondingly denote $\mathbf{Z}_t=(\mathbf{q}, \mathbf{z}_1, \ldots, \mathbf{z}_t)$.
In the prior section we considered generating and ranking full solutions, which may be inefficient. We can extend the concept of a solution verifier from the prior section, to estimating the probability that a particular intermediate state will lead to a solution: $v_{\theta}(\mathbf{q}, \mathbf{S}_t) \to [0, 1]$. These models have become more widely known as Process Reward Models (PRMs) ([19]). If we have access to such a model, we can improve the efficiency of the search process with the following steps:
Notice that with these two operations, and the general structure of language, we can implement any tree search procedure. This is the premise of several approaches ([28, 26, 29]) with the RAP method ([26]) illustrated in Figure 7.
![**Figure 8:** ToT efficiency on the game of 24 shown as accuracy (y-axis) vs. # nodes visited (x-axis). Source: Figure 3 in [28].](https://ittowtnkqtyixxjxrhou.supabase.co/storage/v1/object/public/public-images/q643mhbq/ToTScaling.png)
These approaches use differing search strategies (DFS/BFS vs. MCTS) and process guidance evaluation (generative self-evaluation vs. Monte-Carlo rollouts), but they all share the same core idea: formulate the reasoning problem as tree search guided by an intermediate heuristic function. As noted above, in theory, tree search does not induce a fundamental capability shift over parallel sampling, however, it may induce significant efficiency gains as demonstrated by [28]. In particular, Figure 8 (sourced from [28]) shows nearly 4 times increased efficiency, in terms of inference budget, on a toy reasoning problem (Game of 24) when using a tree-structured search approach compared to parallel sampling. While these earlier works focus on zero-shot (or close to zero-shot) performance on simple reasoning tasks, it is important to note that tree-search methods have been successfully scaled and deployed to a number of realistic agentic applications ([30, 31, 20, 32]).
:::: {cols="2"}


Figure 9: Scaling trends for MCTS at training and inference-time on board games. Left: Elo scores of models trained with different architectures (depth $\times$ width) where each point represents the Elo score of that model evaluated with the labeled tree size (between 1 to 512 nodes). The curves demonstrate that the performance of each model snapshot follows a sigmoid pattern with respect to the test-time compute budget. Source: Figure 8 in ([33]). Right: The trade-off between train-time and test-time compute, with progressively improving Elo (from bottom-left to top-right). Source: Figure 9 in ([33]). ::::
As pointed out earlier, the question remains whether inference-time search is a fundamental new capability or whether it is accessible with additional training. Results from classical RLHF tuning ([34]) suggest that this is a learnable capability, where zero-shot performance of post-trained models matches or outperforms the best-of-N paradigm.
We stipulate that performance on complex reasoning tasks is governed by a scaling law, which involves model size, training data (compute) and inference time compute.
This is indeed consistent with the theoretical results of [9] and the intuition presented in Section 2. Larger models are more capable of internalizing the Meta-CoT process in their activations, and are also capable of using longer inference-time Meta-CoT to approximate solutions with significantly higher computational complexity. Empirically, we have limited (but promising) evidence towards this hypothesis. A major prior work to study these questions is [33] which carries
::: {caption="Table 1: Iterative update results on GSM8k. $\theta_0, \phi_0$ are the old parameters while $\theta_1, \phi_1$ are the new ones. TS-LLM can boost performance by training LLM policy, value, or both. Source: Table 4 in ([35])."}

:::
out studies using the AlphaZero algorithm ([36]) on board games. This approach fits our desiderata very well as the underlying MCTS algorithm jointly scales the policy and value (verifier) models' training in conjunction with search. Moreover, this family of board games have a clear generator-verifier gap as generating optimal strategies at intermediate steps can be quite computationally complex, while verifying a winning condition is trivial. The major empirical results on scaling are shown in Figure 9. On the right side we see that performance increases both with increased training compute and model size, as outlined earlier. Interestingly, on the left we see the performance of using different quantities of compute (i.e., search with a value function) during inference. There is also a clear scaling trend, showing improved performance with additional online search at each intermediate checkpoint of training. In fact, the results in this domain indicate there is a clear log-log scaling trade-off between train-time and test-time compute deployment. Currently, we have limited evidence of similar scaling laws in LLMs because such a training pipeline requires significant resources. One major work towards that goal is [35] which carries out two iterations of MCTS fine-tuning using a LLaMa 7B on the GSM8k dataset ([21]). They show improved performance in zero-shot evaluations of the policy, as well as significant gains from using additional inference-time search, at both iterations 1 and 2 (full results are shown in Table 1). However, their work does not ablate the model size, data scaling, or inference-time search scaling, which remain under-explored in the literature for LLM reasoning.
Section Summary: This section explores how to build advanced reasoning, called Meta-CoT or System 2 thinking, directly into a single AI model by incorporating search mechanisms, driven by the need for efficiency in handling repeated or similar ideas and the potential to unlock super-intelligent problem-solving through novel strategies. It argues that internalizing this reasoning avoids redundant steps common in current models and could enable breakthroughs in tackling previously unsolvable problems. The discussion introduces bootstrapping techniques like the Self-Taught Reasoner (STaR), which generates and refines synthetic reasoning steps iteratively without needing perfect examples, and extends it to Meta-STaR for training models on search-based traces to simulate deliberate thinking in sequence.
In prior sections we: introduced the concept of Meta-CoT and argued that it is necessary for advanced reasoning, discussed the generator-verifier gap as a fundamental limitation, argued for search as a fundamental building block of the Meta-CoT, and discussed the utility of approaches integrating generator, verifier, and search components. However, the question remains on how to integrate these into a model to perform Meta-CoT or "System $2''$ reasoning. The first question we need to answer is: why do we actually need to internalize deliberate reasoning inside a single model? We propose two main reasons:
In the remainder of this section, we explore how to train a model to internalize such a reasoning system.
In this subsection, we overview the core idea behind the Self-Taught Reasoner (STaR) approach ([37, 38, 39]) to bootstrapping intermediate CoT steps and how to use a similar concept to generalize to meta-reasoning strategies.
The STaR method introduces an iterative bootstrapping approach designed to improve the reasoning capability of LLMs ([37]). STaR focuses on training models to generate and refine rationales, particularly for tasks requiring complex reasoning in a reinforcement learning-based manner. In this formulation we assume we have access to a dataset $\mathcal{D}={\mathbf{q}^{(i)}, \mathbf{a}^{(i)}}{i=1}^N$ of questions $\mathbf{q}$ that require reasoning along with corresponding answers $\mathbf{a}$. Notice that we do not require access to ground-truth rationales for these problems. We begin by prompting a model $\hat{\mathbf{a}}^{(i)}, \hat{\mathbf{S}}^{(i)}\sim\pi(\mathbf{a}, \mathbf{S}|\mathbf{q}^{(i)})$ to provide CoT rationale $\hat{\mathbf{S}}^{(i)}=\mathbf{s}1^{(i)}, \ldots, \mathbf{s}{N_i}^{(i)}$ and final answer $\hat{\mathbf{a}}^{(i)}$. We then filter the generated data, keeping only rationales that lead to a correct final answer (i.e., $\hat{\mathbf{a}}^{(i)}=\mathbf{a}^{(i)}$) to create a dataset of questions, (bootstrapped) rationales and answers $\mathcal{D}{\text{STaR}}={\mathbf{q}^{(i)}, \hat{\mathbf{S}}^{(i)}, \mathbf{a}^{(i)}}{i=1}^N$. $\mathcal{D}{\text{STaR}}$ is then used to train a model with the standard supervised fine-tuning objective:
$ \mathcal{L}{\mathrm{STaR}}(\pi{\phi}) = -\mathbb{E}{(\mathbf{q}, \hat{\mathbf{S}}, \mathbf{a}) \sim \mathcal{D}{\text{STaR}}} \left[-\log \pi_{\phi}(\mathbf{a}, \hat{\mathbf{S}}|\mathbf{q}) \right].\tag{2} $
The above procedure is repeated over several iterations. The core idea behind STaR is to generate a training dataset of synthetic rationales through sampling and verification. We will extend that idea to the the concept of Meta-CoT below.
We can generalize the above idea to Meta-CoT in a straightforward way. Consider a base policy $\pi_{\theta}$ combined with some general search procedure over intermediate steps. Given a question $\mathbf{q}$ we perform the search procedure repeatedly to generate search traces $\hat{\mathbf{z}}_1, \ldots, \hat{\mathbf{z}}_K$ until we find a final solution $(\mathbf{s}1, \ldots, \mathbf{s}n)$. If we can verify the final produced solution $v(\mathbf{S})\to{0, 1}$, for example by using a formalization and verification approach (as in AlphaProof^3) or some other outcome verification, we can then apply a similar approach to STaR. For example, we can construct a dataset $\mathcal{D}{\text{STaR}}={\mathbf{q}^{(i)}, \hat{\mathbf{Z}}^{(i)}, \hat{\mathbf{S}}^{(i)}}{i=1}^N$ and use a similar training objective as before:
$ \mathcal{L}{\mathrm{Meta-STaR}}(\pi{\phi}) = -\mathbb{E}{(\mathbf{q}, \hat{\mathbf{Z}}, \hat{\mathbf{S}}) \sim \mathcal{D}{\text{STaR}}} \left[-\log \pi_{\phi}(\hat{\mathbf{S}}, \hat{\mathbf{Z}}|\mathbf{q}) \right].\tag{3} $
Essentially, we can use a base policy and search procedure to generate synthetic search data and then train the model to implement these in-context through the Meta-CoT concept. We are effectively proposing to linearize the search approaches described in Section 3 and teach an auto-regressive model to run them sequentially. So far we have deliberately been vague about how these search procedures and datasets look. We will now provide examples and proof of concept from the literature on practical approaches to this problem as well as synthetic examples of realistic training data.
When we formulate search in a sequential fashion we can explicitly parameterize each component in language, or choose leave it implicit ([40]). Note that models trained with standard next token prediction still need to implicitly internalize all of these components anyway in order to accurately model the search sequence, even if they are not explicitly verbalized. However, allowing the model to vocalize it's certainty or estimated progress could allow for additional modeling capacity or be useful for interpretability purposes. We will present some examples of auto-regressive search procedures from the literature in the following section.
![**Figure 13:** **A$^*$ planning algorithm outline** for a simple maze navigation task, along with a state and action tokenization scheme. The search representation explicitly models nodes and queue state, the search procedure and the cost and heuristic evaluation. Source: Figure 1 in ([41]).](https://ittowtnkqtyixxjxrhou.supabase.co/storage/v1/object/public/public-images/q643mhbq/searcformer.png)
![**Figure 14:** **Model performance vs. training compute** when using the A$^*$ planning algorithm (Search Augmented) vs. no search (Solution Only). We see that the search augmented models perform much better across all training scales (charts a and b). In particular performance is consistent with the search formulation of Section 3.4. Figure c) shows performance in terms of task complexity as maze size increases. Results are consistent with the Meta-CoT complexity argument presented in Section 2 and results on the HARP benchmark in Figure 1. Source: Figure 2 in ([41]).](https://ittowtnkqtyixxjxrhou.supabase.co/storage/v1/object/public/public-images/q643mhbq/searchformer_results.png)
Two particular prior works that explore the idea of in-context search are [42] and [41] which focus on mazes and other classical RL environments. The formulation from [41] is shown in Figure 13, which illustrates linearizing A* search. In our framework the "Trace" corresponds to the Meta-CoT $\mathbf{Z}$, and the "Plan" is the CoT output $\mathbf{S}$. In this setting the search procedure is stated explicitly as it shows node states, actions, costs and heuristic values. In this "stream" format we can then use standard auto-regressive language models with a next token-prediction objective to train a model to internalize the search process. Evaluation results are shown in Figure 14 sourced from the same paper. We observe empirical effects consistent with the scaling law hypothesis presented in Section 3.4; there is consistent improvement with additional training data and model size (train-time compute) across the board. A particularly interesting observation is the complexity scaling relationship in part (c) of the figure. At smaller mazes (lower complexity) the model directly producing the Plan (CoT) and performs comparably to smaller search (Meta-CoT) augmented models, however as maze size (complexity) increases we see a widening gap in performance between the search-augmented and zero-shot models. This is essentially identical to the results shown in Figure 1 on the challenging HARP benchmark ([14]) between the prior frontier models and the o1 series. These empirical observations are well aligned with the intuition we presented in Section 2. For small mazes (low complexity problems) models are capable of internalizing the reasoning process, but as problem complexity (maze size) increases this becomes more challenging and model performance falls off compared to models which explicitly carries out a search procedure. Unfortunately, [41] did not publish inference compute scaling laws, but given the algorithmic structure of the training data we can presume that inference-time tokens scale with the same complexity as the A* search algorithm, which can be exponential in the branching factor, while the plan length is linear in $n$. These results would also be consistent with the inference costs on advanced math reasoning tasks reported in Figure 1.
![**Figure 15:** Inference compute scaling relationships for the o1 model (Left, sourced from ([11]) on AIME, Stream-of-Search on the Game of 24 (Middle) and MAV-MCTS on Chess (Right, sourced from ([43])). These figures show performance of a single model under different token sampling budgets.](https://ittowtnkqtyixxjxrhou.supabase.co/storage/v1/object/public/public-images/q643mhbq/complex_fig_e5d9cd41c8ad.png)
[40] extend the linearized search idea to a more realistic reasoning task - the Countdown game - which requires the model to predict a sequence of mathematical operations on a given set of numbers to match a target value. While [40] use a fixed 250M parameter transformer model and do not explore or discuss the role of model size, training data, and complexity in terms of scaling performance, we obtain additional results in terms of inference-time scaling, shown in Figure 15. Our findings demonstrate a consistent log-linear relationship between tokens spent and success rate. Similar results were also observed in recent work by [43], who train language models on linearized search traces obtained from MCTS on board game environments. Similar to the work of [40], they find consistent improvements in performance as the model is given additional search budget at test-time (Figure 15 right). Note that these models demonstrate an inference-time scaling law with the same functional form as the o1 model on difficult mathematics problems ([11]).
While the prior section showed promise in teaching auto-regressive language models to internalize complex search strategies involving exploration and backtracking, it remains unclear whether these results can generalize to realistic language domains. In this section we will overview several recent works, which show promise in internalizing episode-level search. Both [44] and [10] evaluate results using open-source LLMs in the 7B and larger range on problems from the MATH dataset ([13]). They pose the problem as sequential sampling - i.e. given a problem $\mathbf{q}$, generating full solutions from the same model auto-regressively as
$ \mathbf{S}^j\sim \pi_{\theta}(\cdot|\mathbf{S}^{j-1}, \ldots, \mathbf{S}^1, \mathbf{q})\tag{4} $
where $\mathbf{S}^i$ are full solutions to the problem $\mathbf{q}$. Both works formulate the problem as self-correction, or revisions, during training. The approach generates training data by concatenating a number of incorrect solutions with the correct revision and training on a linearized sequence (although the exact training objective use a particular weighting grounded in RL ([45])). The general objective follows the form
$ \min_{\theta}\ \mathbb{E}{\mathbf{S}^{i}\sim\pi{\text{ref}}(\cdot|\mathbf{q}), \mathbf{q}\sim\mathcal{D}{\text{train}}}\left[-\log \pi{\theta}(\mathbf{S}^*|\mathbf{S}^{j-1}, \ldots, \mathbf{S}^1, \mathbf{q})\right]\tag{5} $
where $j$ is a fixed number of in-context exploration episodes sampled from a fixed distribution $\pi_{\text{ref}}$ (i.e. $\pi_0$) and $\mathbf{S}^*$ is some optimal solution. Essentially, this can be considered a linearization of the Best-Of-N search strategy presented in Section 3.1 with rejection sampling. In this setting, the Meta-CoT represents search in full episodes $\mathbf{Z}=\mathbf{S}^1, \ldots, \mathbf{S}^{j-1}$ and $\mathbf{S}=\mathbf{S}^j$. At test time we can further control the quantity of compute by iteratively sampling from
$ \mathbf{S}^i\sim \pi_{\theta}(\cdot|\mathbf{S}^{i-1}, \ldots, \mathbf{S}^{i-j}, \mathbf{q}). $
Representative results for this approach are are shown in Figure 16, sourced from ([10]). We see clear improvement in the pass@1 metric with additional amounts of in-context exploration episodes with nearly 6-7% gain from zero-shot to the level of saturation. At the same time, auto-regressive generation shows clearly better scaling properties than independent parallel sampling (Figure 16 right). These results indicate that the model learns some degree of in-context exploration and self-correction.
![**Figure 16:** **Left**: Pass@1 accuracy of a revision model after the specified number of generations (revisions). **Right**: Scaling performance of the best-of-N strategy under parallel and auto-regressive (in-context) sampling. The performance gap indicates that the model learns some degree of in-context exploration and self-correction. Source: Figure 6 from ([10]).](https://ittowtnkqtyixxjxrhou.supabase.co/storage/v1/object/public/public-images/q643mhbq/pass1_and_comparing_seq_parallel_old_corrected.png)

While the above approaches demonstrate promise for the model's capability to carry-out in-context search, they are trained with a fixed number of revisions and use a pre-determined number of revisions at test time. This is not ideal, as ideally the model would be able to use arbitrary amounts of compute until it arrives at a solution with high enough confidence. We repeat the above experiment using a uniform number of in-context solutions during training (ranging between 0-7), allowing the model to generate up to 8 solutions at inference time by optimizing
$ \min_{\theta}\ \mathbb{E}{\mathbf{S}^{i}\sim\pi{\text{ref}}(\cdot|\mathbf{q}), \mathbf{q}\sim\mathcal{D}{\text{train}}}\left[-\log \pi{\theta}(\mathbf{S}^*, \textbf{EOS}|\mathbf{S}^{j-1}, \ldots, \mathbf{S}^1, \mathbf{q})\right], j\sim\text{Unif}(1, 8) $
This formulation encourages the model to continue revising it's solution until it reaches a solution with high confidence of correctness. Interestingly, our model generates an increasing number of solutions based on question difficulty. Summary statistics by problem difficulty are shown in Figure 17 (right), where the model generates an average of 2.45 solutions for Level 1 problems and an average of 5.84 for Level 5 problems, consistent with the behavior shown in Figure 1 and Figure 14 (c). Specifically, this demonstrates that the model has internalized the need for extended exploration on complex reasoning tasks.
Our best performing run achieved an improvement of 2% over the LLaMa 3.1 8B Instruct model that we initialize our models from. We attribute this to a mismatch between the instruct model's RL post-training, the off-policy SFT fine-tuning we utilize, and the limited amount of training data in the MATH train dataset. Indeed, any regular SFT training we performed on the RL post-trained model actually worsened performance.
We are currently exploring post-training on pre-RL base models with extended datasets.
In the prior sections, we reviewed evidence that auto-regressive models can internalize complex search strategies in simple domains. We also showed that LLMs can learn in-context exploration at the episode-level. However, whether models can implement complex search strategies (e.g. those outlined in Section 3) auto-regressively remains an open question in public research. Specifically, we refer to the ability to terminate a reasoning chain prior to completion, and the ability to reset (semantically) to an arbitrary previously visited state in-context. These two steps can be unified under the concept of backtracking. Here we will review some recent works demonstrating that LLMs can learn to backtrack.
Recent works have demonstrated that training on data with backtracking can improve language models on simple reasoning tasks ([46, 23]) find that language models can sometimes "recognize" their errors internally, but do not have the required mechanisms to self-correct. Similar to our motivation with Meta-CoT, their aim is for a single model to both recognize errors and self-correct in-context. In their approach they create training data with incorrect steps directly followed by the correction. The backtracking is signified by a special token, [BACK], at the end of an incorrect step to allow the model to explicitly state it's belief that an error has occurred. That is: given a dataset $\mathcal{D}_{\text{train}}$ of questions $\mathbf{q}$ and correct reasoning CoT solutions $\mathbf{S}=\mathbf{s}_1, \ldots, \mathbf{s}_n$ the training objective becomes
$ \mathcal{L}{\text{backtrack}}(\theta) = -\mathbb{E}{\mathbf{s}1, \ldots, \mathbf{s}n\sim \mathcal{D}{\text{train}}, t\sim\text{Unif}(1, n)}\left[\log \pi{\theta}(\mathbf{s}_1, \ldots, \mathbf{s}_t^-, \text{[BACK]}, \mathbf{s}_t, \ldots, \mathbf{s}_n|\mathbf{q})\right]\tag{6} $
where $t$ is a randomly sampled time step in the solution and $\mathbf{s}_t^-$ is a single incorrect reasoning step. This is in contrast to the standard approach, which only trains on the correct solution chains:
$ \mathcal{L}{\text{standard}}(\theta) = -\mathbb{E}{\mathbf{S}\sim \mathcal{D}{\text{train}}}\left[\log \pi{\theta}(\mathbf{S}|\mathbf{q})\right].\tag{7} $
[46] explore inserting incorrect steps at varying rates (between 1% and 50%) and find that high rates of incorrect steps actually leads to improved downstream performance. In particular, they find that a 50% rate of incorrect steps (objective in Equation 6) leads to an increase from 78% to 94% accuracy on hard math problems as compared to training on only correct solutions Equation (7, CoT). While promising, these results are only verified on small models (124M parameters).
In contrast, [47] teach LLMs to backtrack based on safety considerations using the larger Gemma 2B and LLaMa 3 8B models. In particular, following the above notation, given a prompt $\mathbf{q}$ and two possible answers - a safe option $\mathbf{S}^+ = \mathbf{s}_1^+, \ldots, \mathbf{s}_n^+$ and an unsafe option $\mathbf{S}^-=\mathbf{s}1^-, \ldots, \mathbf{s}{n'}^-$, where $\mathbf{s}$ here represent individual tokens (unlike before where they stood for logical steps), they optimize the objective:
$ \begin{align} \begin{split} \mathcal{L}(\theta) = -\mathbb{E}{(\mathbf{q}, \mathbf{S}^+, \mathbf{S}^-)\sim \mathcal{D}{\text{train}}, t\sim\text{Unif}(1, n')}[& \log \pi_{\theta}(\text{[BACK]}, \mathbf{S}^+|\mathbf{S}t^-, \mathbf{q}) \quad + \ & \log \pi{\theta}(\mathbf{S}^+|\mathbf{q})]. \end{split} \end{align}\tag{8} $
That is a combination of the Meta-CoT and regular CoT objectives as outlined above. Additionally, notice that this objective masks out the unsafe completion, while the prior work trains on all tokens including the incorrect logical steps. While the approach of [46] backtracks for a single logical step (correction) this work always resets the agent to the initial state. SFT training is successful in teaching the model to backtrack and improves the safety characteristics over supervised fine-tuning on just the safe answer (only the second term of Equation 8). However, these effects appear weak in regular SFT models, but are significantly improved through further downstream RL training, which we will discuss later on.
In the prior sections we argued for an approach to reasoning that teaches an LLM to internalize an auto-regressive search procedure in-context. We also reviewed several recent works showing that small auto-regressive models can carry out in-context exploration at the episode level, and larger models can learn individual step backtracking. In this section, we explore how to construct synthetic data for realistic Meta-CoT that involves full-scale in-context tree search.
Setup.
For demonstrative purposes, we use the math problem presented by [11] as our benchmark task, where Gemini 1.5 Pro ([48]) achieves a Pass@128 score of 6.25% (8/128 correct) – notably being the only frontier model (without advanced reasoning) to demonstrate non-zero performance at the time of our experiments. We use the same RL formulations for state and actions as presented in Section 3.3. We explore two principal search algorithms for generating synthetic training data: Monte Carlo Tree Search (MCTS) and A* variants. Both approaches necessitate a heuristic state estimation function, for which we employ pure Monte-Carlo rollouts following the methodology of [36]. Specifically, we estimate the value of a partial solution trajectory as
$ v(\mathbf{S}t, \mathbf{q}) = \mathbf{E}{\mathbf{S}{\geq t+1}^j\sim \pi{\theta}(\mathbf{S}{\geq t+1}|\mathbf{S}t, \mathbf{q})}\frac{1}{K}\sum{j=1}^K r^*([\mathbf{S}^j{\geq t+1}, \mathbf{S}_t], \mathbf{q})\tag{9} $
where $r^*$ is the verifiable ground-truth outcome reward. In our experiments, we sample 128 completions from the partial solution and evaluate the mean success rate under ground-truth outcome supervision. In Appendix E, the numerical values of the states are listed after each step.
![**Figure 18:** MCTS tree for the math problem presented by [11]. The red node indicates the solution.](https://ittowtnkqtyixxjxrhou.supabase.co/storage/v1/object/public/public-images/q643mhbq/MCTSTree.png)
We conduct an example based on Monte-Carlo Tree Search (MCTS), which seeks to balance exploration and exploitation. The MCTS implementation of [36] has been widely applied to the reasoning domain ([49, 35]), and we mostly follow their implementation with some modifications to account for the structure of our search problem (see Appendix D).
We present the search trace for our example problem - all the actions taken during the search (i.e., the Meta-CoT in a linear format) - in Appendix E.2. The numbers following each reasoning step represent the value estimates. In our initial MCTS attempt we obtained a trace with an excessive number of backtracks and repetitions, including from high-value states (as high as 1.0) with the resulting exploration tree is shown in Figure 18. We believe these effects are due to the exploration bonus in MCTS search. We did not carry out extensive ablations on the search parameters due to speed and costs. Since we use pure MC rollouts ("simulations") for state value estimation, a single tree uses up to 20 million tokens inference (a cost of $\sim$ $100 per tree). Moreover the process can take up to half an hour due to API limits. Because of these issues we also evaluate a more efficient best-first exploration strategy, which we present below.
We begin with an exploration of a type of best-first search based on the work by [30], which itself loosely follows an A* approach. The search procedure maintains a frontier $\mathcal{F}$ of states, which is implemented as a max priority queue. Similarly to the MCTS approach, each state $\mathbf{S}_t$ consists of the question $\mathbf{q}$ and a partial solution consisting of generated reasoning steps $(\mathbf{s}_1, \ldots, \mathbf{s}_t)$. At each iteration, the state $\mathbf{S}_p \leftarrow \text{pop}(\mathcal{F})$ with the highest value $v_p = v(\mathbf{S}_p, \mathbf{q})$ is selected, where $v_p\in [0, 1]$ is the value of the partial solution $\mathbf{S}p$ including current and previous reasoning steps. At each node the policy $\pi{\phi}$ proposes $b$ candidate next steps, each of which is evaluated by $v$ and added to $\mathcal{F}$ if the depth of the tree $|(\mathbf{s}_0, \ldots, \mathbf{s}_p)|$ has not reached the maximum depth search limit $d$. For the purpose of generating synthetic data, we run the search until we find a solution that is correct using the ground-truth verifier. The resulting tree is shown in Figure 19. It shows more consistent flow of the
![**Figure 19:** Resulting A* search tree on the math problem from [11]. This trace presents more of a best-first approach with fewer backtracks, concentrated around key steps, as compared to the one produced by MCTS in Figure 18.](https://ittowtnkqtyixxjxrhou.supabase.co/storage/v1/object/public/public-images/q643mhbq/ASSearch.png)
reasoning steps, with less backtracking concentrated around a few key steps.
In this section we will investigate whether advanced reasoning systems, such as OpenAI's O1 ([11]), DeepSeek R1 ([12]) and Gemini 2.0 Flash Thinking Mode ^4 and the Qwen QwQ [50] implement in-context search. We provide successful reasoning traces for the same math problem in Appendix E.2.
Starting with OpenAI's o1 model, by carefully examining the provided mathematical reasoning trace, we observe:
The qualitative behaviors observed in o1 (Figure 20 left) are similar to those in the example synthetic trace (Figure 21) generated by Gemini 1.5 with and MCTS-like search processes. In particular, there are abrupt changes in logical flow of the (Meta) CoT, which is natural as the model backtracks between branches of the tree. Moreover, the model may explore multiple child nodes of the same parent which are different strings, but can also be very semantically similar leading to repetitive logic. This is clear in the provided trace, as the model repeats logical statement and goes over the same derivations multiple times. Note also that we do not claim the model is implementing tree search at test time, but rather that as much as the model's output are expected to resemble it's training data, we hypothesize that examples of search were used during training (likely model initialization). We will specifically address the need and effects of RL training in Section 6.
![**Figure 20:** Examples of intermediate traces from o1 ([11]), DeepSeek-R1 ([12]), and Gemini 2.0 Flash Thinking Mode. We highlight two types of steps: Backtracking, where the model visits a bad state and returns to a previously visited step, and Verification, where the model assesses the correctness of the previous output. Inconsistent logical flow and repetition are present in all three traces. DeepSeek-R1 and Gemini 2.0 Flash Thinking Mode both exhibit generative verification before reaching an answer, while Gemini makes an incorrect verification and returns to the initial state. Full search traces can be found in Appendix E.](https://ittowtnkqtyixxjxrhou.supabase.co/storage/v1/object/public/public-images/q643mhbq/complex_fig_d4ff2b62fb63.png)

The DeepSeek R1 model [12] also exhibits similar behaviors, as shown in Figure 20, however, it also carries out a significant amount of self-evaluation steps. This could be achieved by integrating a form of self-criticism ([51, 52]) or a generative verifier ([22]) in the search trace. The LATS framework ([29]) uses a similar approach, combining MCTS search with self-criticism and shows empirical improvements from self-reflection. Another alternative for synthetic data generation is the "Iteration-Of-Thought" approach [53] which also interleaves generation with inner dialogue. This would explain the rather smooth logical flow of the R1 model, which does not exhibit as much abrupt back-tracking, as compared to O1. As mentioned earlier, in order to adequately model the search process the model must internalize an evaluation mechanism. However, providing an explicit CoT verification may be able to expand the model computational capacity and improve self-verification. This is an empirical question, which is currently unclear in open research.
Gemini 2.0 Flash Thinking Mode appears to implement a somewhat different structure. Specifically, the flow of reasoning qualitatively appears smoother with fewer logically inconsistent steps. Moreover, it backtracks less frequently and often returns to the initial state. In fact in the provided example the model solves the problem correctly and then fully re-generates a new solution from scratch (backtracks from the final state to the initial one). It's behavior seems to be to attempt a full solution, which may be terminated early based on some search heuristic. In cases where the solution attempt is unsuccessful, the model attempts a different solution approach, rather than branch at the step-level in a tree search structure. This seems more consistent with a revision-based strategy as reflected in past works ([44, 23, 54]). The Qwen QwQ model [50] shows similar behavior, generating multiple solutions in-context, as also pointed out by [55].
Section Summary: Process supervision enhances AI reasoning searches by using Process Reward Models (PRMs) to score intermediate steps in a solution chain, allowing the system to backtrack from poor paths and explore better ones more effectively. These PRMs are trained on pre-trained language models with datasets of partial solutions labeled either by human experts or through efficient Monte Carlo simulations that estimate values based on final outcomes, avoiding the high costs of direct human annotation for complex problems. Experiments show that PRM accuracy improves with more training data, reducing prediction errors and boosting search performance, though they still lag behind perfect verifiers.
A key component of the search approaches presented in prior sections is the evaluation function $v(\mathbf{q}, \mathbf{S}_t)$, which scores intermediate states in a reasoning chain. These evaluation functions have become widely known as Process Reward Models (PRM). By incorporating process supervision, the search mechanism gains the flexibility to backtrack to earlier promising states when suboptimal paths are encountered, thereby enabling more effective exploration. However, the question of how to efficiently access such capabilities remains an open question. In Section 4.3 we showed examples of using outcome-based verification with MCTS in combination with Monte-Carlo rollouts. However, this approach can only be used during training due to the necessity for ground-truth answers, and moreover it is extremely computationally inefficient. As mentioned earlier, a single training example requires up to 20 million inference tokens, costing up to hundreds of dollars. It is significantly more efficient to amortize the evaluation procedure into a single parameterized model, and we will outline strategies for building such process guidance models below.
Parameterized PRMs are built on top of pre-trained models, either using a linear head or the logits of specific tokens. The model takes the question $\mathbf{q}$ and a partial solution $\mathbf{S}t$ as input and outputs a single scalar value $v{\theta}(\mathbf{q}, \mathbf{S}t)\to[0, 1]$. Given a dataset $\mathcal{D}{\text{train}}$ of partial solutions $\mathbf{S}t$ and corresponding value targets $y{\mathbf{S}t}$ the model is generally optimized with a standard cross-entropy classification loss. A central question for training PRMs is: where do the supervision labels $y{\mathbf{S}t}$ come from? One approach is to have human annotators provide step-by-step level evaluation of reasoning problems, as done by [19]. While their work showed promise in terms of empirical results, this method is challenging to scale due to the high annotation time and cost, especially as evaluating hard reasoning problems requires high-caliber experts. An alternative approach presented by [56] only relies on access to outcome verification - i.e. problems with a ground truth answer. The proposed approach is to amortize the Monte Carlo state-value estimation into a parameterized function. Essentially, this method fits an empirical value function of the reference rollout policy where the targets $y{\mathbf{S}_t}$ are represented by Equation 9. This idea has been widely adopted in follow-up works ([10, 23]) and further extended ([27]).
The performance and efficiency of search at test-time depends on the quality of the PRM ([24, 23]). [24] demonstrate effective scaling (in both training data size and label quality) of a specific variant of PRMs that estimate values based on the improvement in likelihood of the correct answer after a step. The accuracy of test-time search improves log-linearly with training data size, and the quality of learned value labels improve with more Monte Carlo estimates. [23] show that oracle verifier-enabled search is orders of magnitude more efficient than a learned PRM with noisy value estimates.
In this section we conduct an experiment demonstrating the scaling characteristics of a PRM. To train our PRM, we first need to generate diverse solution trajectories where each solution step is annotated with a ground truth value. To do so, we use the method from [56] to obtain ground truth values, performing 16 Monte Carlo (MC) rollouts for each step of a seed solution. We generate the seed solutions and step-level MC rollouts from a supervised finetuned (SFT) Llama3.1-8B using the PRM800K ([19]) dataset. The PRM training data uses 7, 086 unique questions - each with seed solutions - and after removing duplicate seed solutions results in 97, 000 trajectories in the training data. To evaluate the scaling performance with increasing data, we split the small set of data into three subsets: one with 500 unique questions, one with 3, 000 unique questions, and one with all 7, 086 unique questions. We create an evaluation set using the MATH-500 dataset ([13, 19]) by generating step-by-step solutions from the SFTed model and step-level ground truth values from 128 MC rollouts.

With this trained PRM, we find a reduction in the absolute error of predicted values when comparing PRMs that are trained across datasets of different sizes, as well as a selection of intermediate checkpoints in Figure 22. We observe that: 1) the prediction error decreases as the size of the training data increases, and 2) when the size of the dataset is small, improvement converges early during training (around 30% of an epoch for Qs=500 and Qs=3000). Although these findings are based on small-scale experiments, we anticipate continued improvement in prediction errors with larger datasets and more extensive training, suggesting significant potential in further refining and scaling PRMs. Additionally, we evaluate the performance of the three fully-trained PRMs as outcome verifiers when performing a Best-of-N search during inference time. Figure 23 left shows that the PRM's ability to verify full solutions improves as they are trained with more data, yet there exists a remarkable gap between the trained PRMs and an oracle PRM. Additionally, we observe that the PRM's ability to guide the search process towards the correct answer with a more efficient path also improves as the increased accuracy and reduced number of tokens used in the search process are both observed in Figure 23 right. One interesting remaining question is: what is the scaling law for these process supervision models?
:::: {cols="2"}


Figure 23: Left: Scaling curves for Best-of-N (BoN) using PRMs trained with different number of questions with oracle and majority vote. Right: Beam search (N=5, beam width=4) accuracy and number of tokens used during search with the same PRMs. With more training data, the PRM's ability to verify at outcome-level and process-level improves. ::::
Training a value function with MC rollouts is scalable with infrastructure and inference, but is fundamentally limited to problems with verifiable solutions. This excludes proof problems and scientific derivations which are often more important than the numerical answer itself. While automated proof assistance is an established area of research in mathematics ([57]), this is rather limiting. First of all, these methods are largely limited to math and do not transfer to other domains such as science or more general problem-solving scenarios. In those domains, training a PRM based on human evaluations of valid reasoning steps could yield a general verifier, which can be used for assuring the validity of the proof/solution chain. This would explain the need for human annotators and verification.
Section Summary: This section explores how meta-reinforcement learning can help AI systems learn not just specific reasoning tasks, but the general process of thinking and adapting to new problems. It argues that standard reinforcement learning struggles with unknown rewards in unfamiliar scenarios, creating uncertainty that turns simple decision-making environments into more complex, partially observable ones where regular training can fail badly on novel tasks. To address this, the approach uses meta-learning techniques, like the RL² method, to train AI that quickly explores and improves through in-context experiences, mirroring how language models build understanding from prompts without major shifts between training and testing.
![**Figure 27:** **Right**: The paradigm of the RL$^2$ formulation of meta-reinforcement learning. For each new task (prompt), the agent explores its environment over multiple episodes, keeping all the experience in context and maximizes rewards over the entire interaction. Source: Figure 1 in ([58]).](https://ittowtnkqtyixxjxrhou.supabase.co/storage/v1/object/public/public-images/q643mhbq/rl2.png)
In this section we will build out an interpretation of the reasoning problem and Meta-CoT from the perspectives of meta-learning and meta-RL. In Section 4.2.1 we motivated the need for in-context search through the paradigm of computational complexity and the generator-verifier gap. In this section, we build an alternative formulation which will help us formalize empirical results of RL training. In particular, we consider the search problem in the deterministic MDP formulation from Section 3.3, however, in this section we assume the reward function $r(\mathbf{S}, \mathbf{q})\to {0, 1}$ is a deterministic (but a-priori unknown) function of the prompt $\mathbf{q}$, which accepts only a particular set of solutions. At test time under a new prompt, this creates epistemic uncertainty of the reward function i.e. a-priori we do not know the full set of accepted or rejected solutions for this task (prompt question). This process turns the MDP formulation we previously outlined in Section 3.3 into a Partially Observable MDP (POMDP), a view formalized in classical RL by [59]. Their work proves the following general remark:
**Remark 5.2 from [59]:** The expected test-time return of policies that are learned by maximizing reward in any MDP from the posterior, as standard RL methods do, may be arbitrarily low compared to that of the Bayes-optimal behavior.
In other words, regular RL-trained policies can, in theory, have arbitrarily bad performance on new reasoning domains [60]. This statement is expanded on and made mathematically precise by [59] and follow-up works, however that formalization is beyond the scope of the current report. In this work, we stipulate that the reasoning problem, as a POMDP, is better suited to a meta-RL framework ([61, 62]) rather than the regular RL setting, as described above. In the meta-learning setting we are given a distribution of tasks, which in our case would be individual reasoning problems $\mathbf{q}\sim\mathcal{D}{\text{train}}$. The meta-learning objective seeks a policy $\pi\theta$ and an adaptation procedure $U$ such that, for a sampled task $\mathbf{q}$, the adapted policy $\pi_{U(\theta)}$ performs well with minimal additional samples. The overall optimization objective is
$ \min_{\theta} \mathbb{E}{\mathbf{q}\sim\mathcal{D}{\text{train}}} \mathbb{E}{\pi{U(\theta)}} \left[L_{\mathbf{q}}(\theta)\right], $
where $L_{\textbf{q}}$ represents the loss associated with task $\textbf{q}$. For example, in the revision formulation of Section 4.2.2 the objective is
$ \min_{\theta} \mathbb{E}{\mathbf{q}\sim\mathcal{D}{\text{train}}} \mathbb{E}{\mathbf{S}^i\sim \pi{\text{ref}}(\cdot|\mathbf{q})} \left[-\log\pi_{\theta}(\mathbf{S}^*|\mathbf{S}^j, \ldots, \mathbf{S}^1, \mathbf{q})\right],\tag{10} $
where $\mathbf{S}^*$ is the optimal solution to the problem $\mathbf{q}$ and $\mathbf{S}^i, i=1, \ldots, j$ are solutions provided by some reference policy (usually $\pi_{\theta_0}$). Here the adaptation procedure is represented by the operator $\pi_{U(\theta)}(\cdot|\mathbf{q})\to\pi_{\theta}(\cdot|\mathbf{S}^j, \ldots, \mathbf{S}^1, \mathbf{q})$, which is reminiscent of meta-learning with memory networks [63]. The issue with this approach is that at inference time, given a new test problem $\mathbf{q}$, we sample solutions auto-regressively from the current iteration of the model $\pi_{\theta}(\cdot|\mathbf{q})$ rather than $\pi_{\theta_0}$ which generated our training data, which generates a train-test distribution shift. Indeed, [54] noted a continuous shift during training even with $j=1$ where the model successfully corrects wrong solutions from the reference training data, but it's capability to self-correct (correct wrong solutions sampled from the current policy) diminishes - refer to Figure 28 (sourced from [54]) for
![**Figure 28:** **Self-correction performance** from self-generated vs. fixed first steps. As training progresses (from left to right) the model becomes more capable of correcting errors in solutions from the reference distribution, but less capable of correcting its own induced errors. Source: Figure 5 from ([54]).](https://ittowtnkqtyixxjxrhou.supabase.co/storage/v1/object/public/public-images/q643mhbq/dist_shift.png)
empirical results. If the reference model $\pi_{\text{ref}}$ does not generate data with sufficiently high coverage, then this distribution shift fundamentally necessitates the use of on-policy reinforcement learning approaches. Unlike conventional reinforcement learning, where the objective is to optimize for immediate rewards, meta-RL emphasizes training agents to quickly explore a new environment and adapt to the task at hand. This requires optimizing the sampling process during meta-training to ensure the adaptation process $U$ maximizes the agent's final performance.
If we modify the meta-learning objective in Equation 10 with on-policy sampling, we can essentially recover a formulation of the RL$^2$ ([58]) approach, which has strong synergies with LLMs due to their in-context learning capabilities. In this setting the agent, represented as a recurrent policy, encounters a series of tasks $\textbf{q}$ and interacts with them for several episodes with persistent intra-episode memory for the particular task. Here, the goal of the agent is to maximize the accumulated reward over $K$ episodes:
$ \max_{\pi_{\theta}}\mathbb{E}{\mathbf{q}\sim\mathcal{D}{\text{train}}}\mathbb{E}{\mathbf{S}^{j}\sim\pi{\theta}(\cdot|\mathbf{S}^{j-1}, \ldots, \mathbf{S}^{1}, \mathbf{q})}\left[\sum_{j=1}^Kr(\mathbf{S}^j, \mathbf{q})\right]\tag{11} $
across the distribution of tasks, also notice that here the expectation is taken over the current policy iterate $\pi_{\theta}$, removing the issue of distribution shift. We will draw some additional connections between Equation 10 and 11 in the next section. This objective be optimized through standard reinforcement learning algorithms such as REINFORCE ([64]) and PPO ([65]). While successful in classical meta-RL tasks, this approach can lead to policy collapse on locally greedy behavior - i.e. it may not be able to fully explore new environments but instead collapse to common behaviors. Addressing this issue, [66] propose a simple modification, E-RL$^2$, which considers the objective
$ \max_{\pi_{\theta}}\mathbb{E}{\mathbf{q}\sim\mathcal{D}{\text{train}}}\mathbb{E}{\mathbf{S}^{j}\sim\pi{\theta}(\cdot|\mathbf{S}^{j-1}, \ldots, \mathbf{S}^{1}, \mathbf{q})}\left[r(\mathbf{S}^K, \mathbf{q})\right]\tag{12} $
aiming to maximize the return over the final episode only. This allows the policy to explore without reward supervision for $K-1$ episodes, providing wider coverage of the environment which allows the policy to maximize rewards in the final episode. This slight modification mostly prevents the collapse to greedy behaviors seen in the standard RL$^2$ algorithm. Since these early works there has been significant follow-up literature and we refer the reader to the survey of [67] for an overview.
The above discussion uses the standard RL$^2$ episodic formulation as it was studied in classical MDPs, however, this is not strictly necessary in the language setting outlined in Section 4. If we equip the agent with the capability to
then the meta-RL formulation remains valid for any in-context exploration strategy, including general tree search approaches. In purely language domains, such as mathematical reasoning, this is feasible and we can directly apply the E-RL$^2$ algorithm outlined above to models such as those by [42], [41], or [40].
However, in domains where the policy does not have full control of the environment, such as code or agentic formulations, different search structures may be required.
![**Figure 29:** **The benefits of reinforcement learning for langauge model reasoning.** When comparing Expert Iteration (SoS+STaR) vs. the RL-based SoS+APA, we see that the use of RL leads to improved policy performance (left), with fewer arithmetic errors (center), and improved efficiency (right). Source: (left to right) Figures 4a, 6a, and 6b from ([40]).](https://ittowtnkqtyixxjxrhou.supabase.co/storage/v1/object/public/public-images/q643mhbq/complex_fig_774da5183ce6.png)
In the prior section we argued for on-policy RL in reasoning systems to handle train-test distribution shifts, but whether pure instruction-tuning (without RL) is enough to induce capabilities in the model is still debated. In general, the use of RL in post-training improves model performance. Indeed, in Section 4 we outlined the capability to discover improved exploration (adaptation $U$) algorithms through RL as a major advantage, but the degree to which this occurs remains unclear. Specifically, we want to answer the question: can an in-context search algorithm, post-trained with reinforcement learning, outperform a modular search system? One such example exists where, as shown in Figure 29, RL post-training improves overall performance in terms of accuracy, reduces the number of logical mistakes, and makes the search more efficient. However, the overall performance is still only comparable to the modular (symbolic) search paradigm - i.e. while RL significantly improves performance over the pure SFT (instruction-tuned) model, RL is not currently able to discover new search algorithms. Whether this is a fundamental limitation of the environment, pre-training data, or scaling is currently an open question in the literature.
![**Figure 30:** Overview of Reinforcement Learning with Execution Feedback. This training routine directly maps to the E-RL$^2$ framework ([66]). Source: Figure 2 in ([68]).](https://ittowtnkqtyixxjxrhou.supabase.co/storage/v1/object/public/public-images/q643mhbq/RLEF.png)
::: {caption="Table 2: Comparison of different training methods for 8B and 70B Instruct models on validation and test datasets. "–" directly evaluates the instruct model. Source: Table 3 in ([68])."}

:::
Two works that have scaled the multi-turn formulation of meta-RL for reasoning tasks are [54] and [68]. While Reinforcement Learning with Execution Feedback (RLEF) ([68]) does not use the meta-RL or search formulations, they do frame their approach as "learning from feedback", and it fits the Meta-CoT framework. Specifically, RLEF implements the E-RL$^2$ objective from equation 12 with an additional distributional constraint following standard RLHF practices ([69, 70]). First, the model runs several iterations of exploration (episodes, which represent a full code solution), receiving compiler feedback from public test cases until it passes or reaches an exploration limit. Next, the model proposes a final solution (evaluation episode) and receives a reward based on hidden private test cases, which is used for RL training. See Figure 30 for an overview of the process, along with an example of model outputs. ([68]) shows a number of interesting empirical findings. The first finding is the relative effect of SFT versus RL training (results shown in Table 2). The clear trend is that SFT training does not induce any in-context exploration capability and the does not lead to improved performance. This finding is consistent with the results from [54], which carry out a similar analysis over multi-turn revisions of math problem solutions.
![**Figure 31:** Scaling results for Reinforcement Learning with Execution Feedback. **Left**: Pass@1 and pass@10 for 8 and 70B models when given either ground truth feedback or random execution feedback. **Right**: Model solve rates at various turn limits (1, 3, 5, and 10) and sample budgets. Source: Figure 4 in ([68]).](https://ittowtnkqtyixxjxrhou.supabase.co/storage/v1/object/public/public-images/q643mhbq/rlef.png)
Next, as shown in Figure 31, it is clear from the pass@1 results that the model is able to explore and internalize environment feedback to refine the code over multiple turns. However, more interestingly, it is able to do so without reliable feedback. In particular the "random feedback" results replaces the compiler output with output from an unrelated problem. This likely creates significant issues for the model, since the feedback could throw off the LLM's grounding ([71]). However, we see that with RL tuning performance continues to improve with additional test-time revisions, although a gap with ground-truth feedback still exists. This is consistent with the findings from [54], which demonstrate the capability to self-correct without external feedback in the mathematical reasoning domain. Furthermore, these results are also consistent with our formulation of exploration in the epistemic POMDP from Section 6.
As outlined in the beginning of Section 4 two main reasons to internalize a search procedure within a single auto-regressive model are: (1) improved efficiency of the search procedure, and (2) the emergence of "super"-intelligence.
Results in Figure 29 show significant improvement from RL post-training in the limited domain of the Countdown game, specifically, success rates improve while also using smaller search budgets. However, even after RL post-training the SoS model does not out-perform the success rate of the symbolic approach which generated the instruction-tuning data. Similar findings have also been reported by [41], where the model achieves significant improvement in token efficiency, but not in success rates based on some simple post-training procedure. Currently, it is unclear whether continued RL training can lead to a stronger model that substantially out-performs the modular search approach. An interesting analysis by [40] (Figure 32) shows the performance of various methods on difficult problems (i.e., problems that no modular symbolic search approach solves). The base SFT-tuned SoS model solves about 1% of these problems, with RL-tuned models reaching up to 4% (STaR in particular).
In Section 6 we outlined the Meta-RL formulation, which stipulates that through RL post-training, we're essentially searching over algorithms, i.e. in-context adaptation procedures $U(\theta)$, rather than pure policies. In-theory, this process could discover novel reasoning strategies that unlock capabilities beyond the training data or manually designed reasoning approaches. Within the simple domain of Countdown, this does allow us to solve some complex problems that standard search methods do not, but this effect appears weak, even in this limited setting. As outlined earlier, it is unclear whether further RL training will allow us to discover novel reasoning algorithms that allow us to solve new classes of problems. At larger scales, similar results seem to hold in the math ([10]) and code-generation domains (with ground-truth environment feedback) ([68]). As shown in Figure 16 and Figure 31 the E-RL$^2$ training clearly improves the search performance in terms of pass rate versus search budgets. However, it is unclear whether the RL post-trained model actually solves classes of problems that are unsolved by the base model under increased search budget. Indeed, for code generation, at the 70B scale, with $k=100$ the performance of the RL-tuned model is only about 5% above the base model. At the same time, performance of the RL model appears to be saturating, while the base model demonstrates continued scaling. One potential counterpoint is the scaling law presented by [12], as shown in Figure 32 (left). In particular, we see that at low token limits the model demonstrates significantly better scaling with additional in-context search rather than parallel majority voting. On the other hand, at the higher end of token limits, majority voting can out-perform the model with in-context search, but at a higher inference cost. We should note that this approach uses solution-level majority voting, rather than a separate verifier, which has proven to be a much stronger search strategy ([21, 19]).
:::: {cols="1"}


Figure 32: Left: Scaling laws of the R1 model. Red: different training checkpoints. Blue: inference time scaling curves from each checkpoint. We see that the model uses inference budget more efficiently than parallel sampling with majority vote, but does not outperform large-scale parallel sampling at higher token budgets. Source: ([12]). Right: The percentage of problems which the SoS model solves on Countdown, but symbolic strategies do not. The biggest gain comes from RL tuning via STaR. Source: Figure 5c in ([40]). ::::
In conclusion, based on public evidence, the proposed framework of in-context search can significantly improve the efficiency of the search procedure over base models and "symbolic" approaches or search strategies. However, there is only weak evidence that these models can discover novel reasoning methods that can solve classes of problems that were not solvable previously under some search budget.
That is, under current empirical evidence the benefits outlined in point (1) above appear clear. However, evidence of emergent "super"-reasoning under point (2) appears weak.
There is an opinion in the open-research community that the current generation of advanced reasoning models are artifacts of continual reinforcement learning ^5. For both theoretical and practical reasons, we believe this is unlikely with the current generation of language models. First, outside of the OpenAI o1, DeepSeek R1, and Qwen QwQ models, which have undisclosed training routines, "standard" models do not exhibit such strong reasoning behaviors, despite the fact that they have already been extensively post-trained with instruction-tuning and reinforcement learning on reasoning tasks. From a more theoretical point-of-view, meta-RL does not arise from standard RL. Indeed, this is the main point of [59] and the remark in Section 6 - models trained with RL on standard CoT formulation can exhibit arbitrarily bad performance on new problems.
We see this empirically in Figure 31 (right). Note that setting the turn limit to 1 (solid blue line) corresponds to standard RL training (no in-context exploration episodes). In this setting the RL post-trained model performs worse than the base model (dotted blue line) at higher levels of inference compute (Sample Budget) on a held-out test set. Furthermore, models trained with even a turn limit of 3 show significantly better inference scaling over the base model, continuing well beyond their training budget. Similar results were obtained by [54], showing that a naive application of the RL$^2$ objective in Equation 11 leads the model to collapse onto a greedy policy which does not perform in-context exploration (consistent with the findings of the original work ([66])). On the first step, the two-episode formulation of SCoRe (method proposed by [54]) is identical to standard RL, which prevents the model from meaningful in-context exploration. To alleviate this issue they include an additional training stage using the E-RL$^2$ objective, similar to [68], before annealing into an RL$^2$ approach. These empirical observations are in line with prior results from meta-RL theory. However, in the pure language setting, such as mathematical reasoning, the model uses an auto-regressive architecture with memory. Moreover, it essentially has full control of the environment and, in theory, can induce meta-behaviors such as backtracking and branching. In practical terms, there is no theoretical reason that the LLM cannot produce a complex sequence of tokens, such as the Meta-CoTs described earlier. We will investigate the presence of such artifacts next.


Prior works have shown that complex exploration and reasoning behaviors can be induced in LLMs through in-context demonstrations ([72, 73, 74]). However, the degree to which such prompting can induce genuine meta-reasoning capabilities, particularly for complex reasoning, remains an open question. In this section, we investigate meta-reasoning induction through carefully constructed prompting strategies. We evaluate model performance on the MATH test set ([13]). Our analysis examines three key dimensions: token generation patterns, expressions of meta-cognitive behaviors (such as explicit error recognition), and mathematical problem-solving accuracy. We evaluate five prompting strategies with progressively increasing complexity:
We analyze expressions of regret and self-correction across models. We define regret as explicit acknowledgments of errors or uncertainty through phrases like "I made a mistake", "oops", "let me reconsider", or similar language. A detailed breakdown of regret statistics across different models and prompting strategies is provided in Table 5 in Appendix B.
The regret analysis reveals a clear distinction between basic prompting approaches and those explicitly designed to encourage meta-cognitive behaviors. Under baseline and standard CoT prompting, which provide no explicit instruction for self-verification, models rarely express regret or acknowledge errors (<0.5% of solutions across all models), showing that behaviors like self-verification and backtracking rarely emerge natively with standard prompting. In contrast, the Think strategy, which explicitly instructs models that they can "think, reflect, revise, backtrack, and verify during responding when it considers doing so would lead to a better solution, " produces substantially higher rates of error recognition and correction, particularly in larger models like Llama 3.1 70B (12.65%). This effect is further amplified when combining such instruction with structured examples (Think 3-shot) and explicit verification requirements (Think & Verify), leading to significantly increased rates of regret expression across most models, peaking at 25.67% for Llama 3.1 70B under the Think & Verify strategy.
Interestingly, model scale correlates with willingness to express regret, but not monotonically. While larger Llama models show high rates of regret expression (15-25% under Think & Verify), more advanced models like GPT-4o and Claude 3.5 Sonnet exhibit notably lower rates (1-4%).
Our main set of results is shown in Figure 37. First, to further understand how model behavior varies across difficulty levels and prompting strategies, we analyze the relationship between token usage and accuracy. The box plots show token distributions while overlaid dashed lines track accuracy across difficulty levels. Notably, more complex prompting strategies incur higher token overhead but do not consistently translate this additional computation into proportional accuracy gains, particularly in higher difficulty regimes. For smaller models like Llama 3.1 8B, we observe significantly increased token usage in higher difficulty levels that corresponds with a marked decline in accuracy. In contrast, larger models maintain more consistent token usage patterns across difficulty levels. The Think & Verify approach consistently produces longer solutions across all models, reflecting the inherent overhead of verification steps. However, this increased verbosity does not translate to improved accuracy—particularly for smaller models where longer solutions may indicate joint struggles with problem-solving and verification. Moreover, we see significant increases in verbosity on all problem difficulties. Of particular interest, we find that the Think & Verify strategy leads to equivalent accuracies on the lowest difficulty problems (for all models), while often requiring more than double the token budget. This observation indicates that models seek to match the reasoning "style" rather than substance and may be even faking mistakes to match the desired in-context behaviors ([75]).
In conclusion, while sophisticated prompts successfully elicit reasoning-like behaviors absent from baseline approaches, these behaviors - including recognizing mistakes and backtracking - do not consistently yield performance benefits. In fact, when models engage in self-correction and backtracking, the final answers are more likely to be incorrect. This pattern, combined with the observation that token generation increases with MATH difficulty level across all strategies while accuracy trajectories remain similar, suggests fundamental limitations in using explicit meta-cognitive instruction to induce robust reasoning capabilities.
Section Summary: This section outlines a practical pipeline for training AI models to perform advanced, deliberate reasoning, starting with instruction tuning on synthetic data that mimics search processes like backtracking and branching, which current models struggle to learn from simple prompts. It then proposes reinforcement learning post-training, using verifiable rewards from correct solutions while incorporating stability constraints to refine the model's step-by-step thinking and ensure reliable outputs. The approach draws on empirical evidence showing that while initial tuning helps build reasoning basics, reinforcement learning is the crucial step for high performance, with options like tree-search methods or preference optimization to overcome training challenges.
So far, we have presented a theory of advanced reasoning capabilities based around search, as well as some early empirical findings. In this section we suggest an overall approach to training advanced reasoning models. Our proposal follows the overall structure of modern post-training, consisting of instruction-tuning and RL training ([69, 70]).
In Section 6.4.1, we presented evidence that the current generation of models cannot induce effective meta-reasoning through in-context prompting, and may even exhibit misleading behaviors. Instead, we propose to begin the process through instruction-tuning with synthetic in-context search data, in the manner outlined in Section 4.3. We showed in Section 6.4.1 that even advanced models rarely demonstrate meta-reasoning capabilities, such as expressing regret or backtracking. Hence, we believe an instruction-tuning stage is critical to endow the model with such backtracking and branching capabilities, which are not frequently present in the pre-training corpus or general purpose instruction-tuning data. Following the synthetic data approach in Section 4.3, we construct a training dataset $\mathcal{D}{\text{train}} = {\mathbf{q}^{(i)}, \mathbf{Z}^{(i)}, \mathbf{S}^{(i)}}{i=1}^N$ which represents the Meta-CoT $\mathbf{Z}=\mathbf{z}_1, \ldots, \mathbf{z}_K$, followed by verifiable solution $\mathbf{S}=\mathbf{s}, \ldots, \mathbf{s}_n$. For this stage of training, multiple training objectives can be considered, which we outline in Appendix C. To what degree each of these different objectives (and combinations thereof) yield qualitatively different behaviors is an open empirical question. However, based on previous results at the scale of modern LLMs, we hypothesize that the exact format of the pre-training stage is not crucial, rather the key performance contributor is RL post-training ([46, 54, 68]).
Prior works have shown strong empirical results with multi-turn RL training ([54, 68]). We propose using a similar objective based on the E-RL$^2$ approach outlined in Equation 12 with the standard additional distributional constraints:
$ \max_{\theta}\mathbb{E}{\mathbf{S}, \mathbf{Z}\sim \pi{\theta}(\cdot|\mathbf{q}), \mathbf{q}\sim \mathcal{D}{\text{train}}}\left[r^*(\mathbf{S, \mathbf{q}}) - \beta\sum{t}\mathbb{D}{KL}[\pi{\theta}(\mathbf{z}{t+1}|\mathbf{Z}{t}, \mathbf{q})||\pi_{\text{ref}}(\mathbf{z}{t+1}|\mathbf{Z}{t}, \mathbf{q})]\right]\tag{13} $
where $r^*$ is the verifiable reward from the solution and $\pi_{\text{ref}}$ is a reference policy (usually the instruction-tuned model). Similar objectives have been considered in agentic applications where the "Meta-CoT" represents an actual search over a web interface ([76, 31]). Note that the reference constraint here is not strictly necessary, but likely required to keep the chain stable and interpretable. Keeping the RL process stable over long horizons and learning robust credit assignment is likely a significant challenge. There are a number of possible options for dealing with these challenges:
The exact correlations between instruction-tuning, pre-training, and RL are unknown in the public literature. Smaller scale studies have found SFT tuning to be effective in endowing transformers with meta-reasoning behaviors ([42, 41, 40, 46]), while larger scale studies indicate that purely training with next-token prediction on synthetic traces might not be enough due to train-test distribution shifts and find that on-policy RL is the key component for improving performance ([47, 54, 68]).
:::: {cols="2"}


Figure 38: Left: The training loss of fitting only the oracle answer or a sequence of answers with the revision objective in Equation 5. The model that uses in-context exploration is better able to model the correct solution than directly outputting it after the question, consistent with our complexity considerations in Section 2. Source: Figure 5 in [44]. Right: An example in which the DeepSeek R1 model [12] reaches the correct final solution (448) in its Meta-CoT $\mathbf{Z}\sim\pi_{\theta}(\cdot|\mathbf{q})$, but the summary model $\mathbf{S}\sim\pi_{\theta}(\cdot|\mathbf{Z}, \mathbf{q})$ fails and produces the wrong final solution (1792). ::::
In the prior section, we introduced the RL training objective in Equation 13 using a verifier reward $r^*(\mathbf{S}, \mathbf{q})$. Here we will derive another RL formulation with a self-training type of RL objective without the need for an external verifier.
Under the (Meta-)CoT formulation of Section 2, we can consider the Meta-CoT process $\mathbf{Z}$ as a general latent variable model for the whole problem solution $\mathbf{S}$. We can then apply a widely known formulation of the STaR algorithm as latent inference [38]:
$ \begin{align} \log\pi_{\text{data}}(\mathbf{S}|\mathbf{q}) = \log\int\pi(\mathbf{S}|\mathbf{Z}, \mathbf{q})\pi(\mathbf{Z}|\mathbf{q})d\mathbf{Z} \geq \ \max_{q(\mathbf{Z}|\mathbf{q})}\mathbb{E}{q(\mathbf{Z}|\mathbf{q})}[\log\pi(\mathbf{S}|\mathbf{Z}, \mathbf{q})] + \mathbb{D}{KL}[q(\mathbf{Z}|\mathbf{q})||\pi(\mathbf{Z}|\mathbf{q})] \end{align} $
where $q(\mathbf{Z}|\mathbf{q})$ is a variational inference function [86], or in our case a latent reasoner. Since all components here are auto-regressive transformers (LLMs), we can amortize them inside a single model. Now, if we set $\pi(\mathbf{Z}|\mathbf{q})$ to be the prior model $\pi_{\text{ref}}$, which is initialized as the instruction-tuned base model ($\pi_{\theta_0}$) from Section 7.1 and amortize the reasoning inference model $q(\mathbf{Z}|\mathbf{q})$ and the decoder model $\pi(\mathbf{S}|\mathbf{Z}, \mathbf{q})$ into a single LLM $\pi_{\theta}$ we get the objective:
$ \max_{\theta}\mathbb{E}{\mathbf{Z}\sim \pi{\theta}(\cdot|\mathbf{q}), \mathbf{S}, \mathbf{q}\sim \mathcal{D}{\text{train}}}\left[\log\pi{\theta}(\mathbf{S}|\mathbf{Z}, \mathbf{q}) - \beta\mathbb{D}{KL}[\pi{\theta}(\mathbf{Z}, |\mathbf{q})||\pi_{\text{ref}}(\mathbf{Z}| \mathbf{q})]\right] $
where we used the $\beta-$ VAE formulation [87]. Unlike standard VAEs though, the parametric models here are auto-regressive transformers, which sample discrete tokens, hence we cannot use the reparameterization trick to compute gradients of the above distribution and must result to RL optimization. This objective indeed looks similar to the main RL objective from the previous section, as formulated in Equation 13, but with a few key differences. First, the reward function is represented as
$ r(\mathbf{S}, \mathbf{q})=\log\pi_{\theta}(\mathbf{S}|\mathbf{Z}, \mathbf{q})\tag{14} $
where the solution $\mathbf{S}$ is no longer sampled on-policy from the model, but from a pre-existing question-solution training dataset. Hence the sampling expectation from the policy is only over the latent Meta-CoT. Notice also that the reward itself is a function of the model parameters $\theta$, which then requires a modification to the standard policy gradient approach. With some simple differentiation-by-parts calculus, the above objective can be represented as:
$ \begin{align} & \max_{\theta}\mathbb{E}{\mathbf{Z}\sim \pi{\theta}(\cdot|\mathbf{q}), \mathbf{S}, \mathbf{q}\sim \mathcal{D}{\text{train}}}\left[\textbf{sg}(\log\pi{\theta}(\mathbf{S}|\mathbf{Z}, \mathbf{q})) - \beta\mathbb{D}{KL}[\pi{\theta}(\mathbf{Z}, |\mathbf{q})||\pi_{\text{ref}}(\mathbf{Z}| \mathbf{q})]\right] + \ & \max_{\theta}\mathbb{E}{\mathbf{Z}\sim \textbf{sg}(\pi{\theta}(\cdot|\mathbf{q})), \mathbf{S}, \mathbf{q}\sim \mathcal{D}{\text{train}}}[\log\pi{\theta}(\mathbf{S}|\mathbf{Z}, \mathbf{q})]\nonumber \end{align}\tag{15} $
Here the first equation is now a standard RL problem with reward as defined in Equation 14 which can be optimized with the standard methods, outlined in Section 7.2. The second part is a maximum likelihood training of the Meta-CoT "summarization" model on the ground-truth solution. Essentially the goal of this training objective is to make the conditional model $\pi_{\theta}(\mathbf{S}|\mathbf{Z}, \mathbf{q})$ more expressive than the standard training objective $\pi_{\theta}(\mathbf{S}|\mathbf{q})$. Some empirical evidence from [44] supports this hypothesis as shown in Figure 38 (left) which shows training curves for the revision objective in Equation 5. Indeed, even with standard SFT using in-context exploration the model achieves significantly lower loss than directly predicting the correct answer. This is similar in spirit to the goal of Quiet-STaR [88], with the difference being that we optimize and marginalize over the entire latent meta-reasoning process and final solution with arbitrary complexity. In comparison Quiet-STaR applies the above objective at a token-level with fixed token budget for the latent process, thus essentially making the transformer computation graph deeper, similarly to Universal Transformer [89], rather than optimizing meaningful semantic reasoning. This line of reasoning is also consistent with the complexity arguments outlined in Section 2.
Finally, we should note that while this approach does not utilize verifiers for RL training, it still needs to bootstrap the latent reasoning processes $\mathbf{Z}$, which still requires verifiable outcomes to generate high-quality synthetic training data.
The objective in Equation 15 has one major advantage that we no longer require verification of the final solution, since the training objective only requires a dataset of question-solution pairs. This allows us to train on open-ended and hard to verify problems, such as proofs and general reasoning. The downside is now that the model $\pi_{\theta}(\mathbf{S}|\mathbf{Z}, \mathbf{q})$ is only essentially trained with supervised fine-tuning and does not get on-policy reward feedback, which may be sub-optimal. If the Meta-CoT process can find a solution with high certainty, then perhaps an SFT training objective for the summarization model is sufficient, which is an empirical question. Anecdotally, we have observed instances of the DeepSeek R1 model [12] finds the correct answer in its Meta-CoT but actually outputs the wrong final solution as shown in Figure 38 (right).
:::: {cols="1"}


Figure 42: Left: Figure 23 with discounted objective. The undiscounted version of Best-Of-N sees continued improvement with additional sampling, while the discounted objective exhibits a hump-shaped frontier. Right: Token lengths for answers of "what is 2+3=?" by different models. Source: Figure 1 in [55]. ::::
While standard RLHF pipelines have not used discount rates in the past, they may be required in reasoning applications. Recent works have discovered that small biases in preferences for longer answers are routinely exploited by reward models in RL pipelines, which has yielded significantly more verbose models ([90, 91]). These issues are present even in strong systems, such as GPT-4 ([92]) and require explicit regularization. As demonstrated in prior chapters, when increased sampling correlates with higher accuracy then, without explicit regularization, the model can choose to continue generating/searching for solutions or collapse on some majority voting approach with potentially unlimited inference targets. Indeed, recent work [55] found that advanced reasoning models can generate significantly longer sequences even for simple problems ("What is 2+3=") as shown in Figure 42. The Qwen QwQ model ([50]) generates up to 13 solutions in context before providing a final answer. To mitigate this issue, we might require a modification of the RL objective from Equation 13, to use a discounted objective
$ \max_{\theta}\mathbb{E}{\mathbf{S}, \mathbf{Z}\sim \pi{\theta}(\cdot|\mathbf{q}), \mathbf{q}\sim \mathcal{D}{\text{train}}}\left[\gamma^{|\mathbf{Z}|}r^*(\mathbf{S}, \mathbf{q}) - \beta\sum{t}\mathbb{D}{KL}[\pi{\theta}(\mathbf{z}{t+1}|\mathbf{Z}{t}, \mathbf{q})||\pi_{\text{ref}}(\mathbf{z}{t+1}|\mathbf{Z}{t}, \mathbf{q})]\right]\tag{16} $
fiwhere $\gamma<1$. This objective would (in theory) force the model to trade-off compute versus certainty in its response. This effect is demonstrated in Figure 42 (left), which shows a discounted version of the best-of-N objective. Without a particular penalty on the generation budget, performance increases steadily with additional compute, which may push the model to continuously increase the inference budget (as compared to base models) as shown on the right. If we consider the discounted reward (accuracy) instead, we see a hump-shaped objective as there is a stronger trade-off between verifier confidence and the generation budget.
This also raises an interesting trade-off on controlling model behaviors in terms of inference/accuracy. We might be interested in forcing a particular trade-off depending on problem difficulty. Consider then a distribution over discount rates $\gamma_1< \ldots < \gamma_m$. We can also associated an individual language prompts $\mathbf{p}_{\gamma}$ with each discount rate such as "Work as quickly as possible" for high discount, to "Take as much time as needed" for a low discount rate. Then, at train time we can optimize the objective
$ \max_{\theta}\mathbb{E}{\mathbf{S}, \mathbf{Z}\sim \pi{\theta}(\cdot|\mathbf{q}, \mathbf{p}{\gamma_i}), \mathbf{q}\sim \mathcal{D}{\text{train}}, i\sim 1:m}\left[\gamma_i^{|\mathbf{Z}|}r^*(\mathbf{S}, \mathbf{q}) - \beta\sum_{t}\mathbb{D}{KL}[\pi{\theta}(\mathbf{z}{t+1}|\mathbf{Z}{t}, \mathbf{q}, \mathbf{p}{\gamma_i})||\pi{\text{ref}}(\mathbf{z}{t+1}|\mathbf{Z}{t}, \mathbf{q})]\right]\tag{17} $
Then, at inference time we can control the qualitative model behavior through conditioning on the prompt to trade-off inference compute versus accuracy. [43] showed that a if we train a model on MCTS search traces with different parameters, at inference time we can condition the model on a particular parameter configuration and recreate the qualitative behaviors(as shown in Figure 15). As discussed earlier, simple supervised fine-tuning may not be sufficient to induce advanced reasoning capabilities (and likely even more difficult to do so in a controllable way), however, these results demonstrate promise in inducing controllable behaviors into the model through the conditional prompting objective above.
Section Summary: Progress in developing open-source AI models for reasoning is hindered by limited access to data and computing power, inadequate tools for large-scale training, and insufficient exploration of new algorithms. To address this, the authors are leading the "Big MATH" project, which aims to compile over a million high-quality math problems with verifiable answers by combining and cleaning existing datasets like NuminaMath and HARP, while tackling issues such as duplicates, errors, and a lack of truly challenging content. They emphasize the need for problems that require genuine reasoning, with single correct answers that can be automatically checked, to better train models beyond simple pattern matching.
Public open-research/source progress on reasoning models is currently bottle-necked by three main issues:
We expand on these issues in this section.
While compute bottlenecks are a persistent issue in open research, we found the lack of open datasets with verifiable reasoning problems to be an even bigger challenge. Prior works have used the GSM8k ([21]) and MATH ([13]) datasets, but the first has largely been saturated by the current generation of models and the second is quite limited, with only 12, 000 problems. To overcome these challenges, we have put significant work into the "Big MATH" project - an effort to aggregate over 1, 000, 000 high-quality, high-confidence, and diverse verifiable math problems. We combine existing datasets with significant post-processing, as well as efforts to acquire additional data from novel sources. We outline this below.
Our proposed training pipeline requires a large-scale corpus of challenging prompts with verifiable answers, but developing such datasets presents fundamental constraints in automated verification and assessment of reasoning capabilities. In many domains, solutions are too unstructured or nuanced for automated verification: a single objective answer may not exist, correct solutions can appear in equally valid but textually distinct forms, and certain tasks (e.g. complex proofs) resist reduction to deterministically verifiable outputs with a single canonical representation. These issues make automated grading infeasible. Even in contexts where problem-answer pairs can be constructed and easily verified, these formats may reduce to factual retrieval rather than exercises that require reasoning capabilities.
As evidenced by the wide array of literature discussed in previous sections, mathematics offers a stable ground truth for correctness, naturally programmatic answer grading, and existing public datasets in problem-solution-answer format. While we recognize significant potential in many domains (e.g., programming, diagnostics, finance, analysis) where structured reasoning paths can be validated, the substantial resources required to construct and verify such datasets, particularly without access to proprietary data, makes them impractical for our immediate objectives. While the availability of existing datasets ultimately drove our domain selection, even these openly available resources are constrained in both scale and distribution. We face the critical challenge of distinguishing between computational and pattern proficiency and conceptual understanding when assessing model capabilities - a distinction that fundamentally shapes our dataset requirements and evaluation metrics.
To guide our data construction, we define three core criteria:
These criteria reveal significant limitations in existing datasets. Those that meet our structural requirements remain severely limited in scale, containing orders of magnitude fewer examples than we estimate necessary for model training. Within the structured collections, we observe a concerning scarcity of non-trivial problems that effectively challenge reasoning capabilities, with many examples simply testing computational abilities or following predictable patterns. Perhaps most problematic is the non-negligible proportion of incorrect problem-solution labels, even in widely-used datasets, introducing substantial complexity to data cleaning.
Preliminary analysis of one of the largest available datasets, NuminaMath ([18]), exemplifies these issues. Basic verification shows that out of roughly 860, 000 entries, more than 42, 500 are duplicates ($\sim$ 5% of the dataset). Further, while 89.7% of entries contain exactly one clearly boxed solution suitable for automated verification, 2.6% contain no boxed solution, and 7.7% include multiple boxed solutions. Problems like this underscore the state of open and publicly available data and suggest deeper quality concerns.
We consider multiple established mathematical problem datasets that are commonly used in the literature (Table 3). First, we include the Human Annotated Reasoning Problems (HARP) dataset ([14]), containing nearly 4, 800 competition-level short answer problems with programmatically-checkable answers. Next, we use the NuminaMath ([18]) dataset, which is composed of roughly 860, 000 problems from a variety of benchmarks and sources: Chinese high school math exercises, math olympiad-style competition problems, the art of problem solving forum, MATH ([13]), and GSM8k ([21]). NuminaMath further incorporates synthetic data from the synthetically generated dataset Orca-Math ([93]) as well as further generating a significant amount of synthetic data based on the MATH dataset and a subset of the math competition problems. Additionally, while NuminaMath uses the original split of the MATH dataset (7, 000 training problems, 5, 500 test problems), we choose to use version with 12, 000 training problems and 500 test problems, as originally proposed by ([19]). We incorporate the Omni-MATH dataset ([15]), contributing almost 4, 500 olympiad-level problems curated from 39 different competition websites. Notably, this dataset employs professional annotators and verifiers to maintain solution-answer quality. Finally, we include OpenMathInstruct-2 ([94]), composed of about 607, 000 synthetically generated problems. [94] use Llama3.1-405B ([17]) in a multi-step data augmentation pipeline which they seed using the GSM8k ([21]) and MATH ([13]) datasets.
Beyond drawing from these established datasets, we maintain an active data collection initiative that extends our corpus through manual curation of competition-level problems. This effort has already contributed thousands of additional olympiad-style problems and continues to grow. Our manual collection process focuses on acquiring mathematically rigorous content from competition archives, olympiad materials, and historical sources not present in existing datasets.
To create datasets with which we can train a model in our training pipeline, we next clean and filter the data from each source using a combination of bespoke and common strategies ([95]). Specifically for our two-stage pipeline, we create two versions of the dataset. First, we have the base filter, where the data will be used during SFT for the model to learn (1) an approximation of the distribution of math problems and (2) to follow the desired chain-of-thought format. Next, the strict filter is intended to be used for the Meta-RL training stage. Thus, the strictly filtered data should contain only problems that closely follow our three desired properties: open-ended, verifiable, closed-form problem-solution pairs.
:Table 3: Comparison of Problems by Data Source and Filter Type
| Data Source | Original | Base Filter | Strict Filter |
|---|---|---|---|
| HARP ([14]) | 4, 780 | 3, 691 | 2, 996 |
| NuminaMath ([18]) | 859, 608 | 452, 820 | 231, 887 |
| Omni-MATH ([15]) | 4, 428 | 3, 660 | 2, 478 |
| OpenMathInstruct-2 ([94]) | 607, 324 | 600, 191 | 496, 331 |
| Total | 1, 476, 140 | 1, 060, 362 | 733, 692 |
The Base Filter performs some operations that are unique to each subset, and some operations that are shared across the full collection of data. First, in the HARP dataset ([14]), we find many problems that contain figures in the Asymptote^6 vector graphics language, which we filter out of the dataset. Next, we filter the NuminaMath dataset ([18]). This dataset contains a significant amount of synthetic data, which is often difficult to verify for accuracy and correctness. However, the Orca-Math ([93]) subset has empirically been proven to improve performance on supervised fine-tuning, and for this reason, we elect to maintain only the Orca-Math data, while discarding the other synthetic subsets. Next, NuminaMath does not explicitly contain answers to each problem, so we extract answers to problems by searching for boxed solutions ("\boxed" in LaTeX). Any problems whose solution does not contain exactly 1 boxed answer is filtered out. When exploring Omni-MATH ([15]), we found many problems containing author attributions (e.g. a person's name in parenthesis) and removed the attributions from the problem. OpenMathInstruct-2 originally contains multiple solutions and final answers to each problem ([94]). The first step we take is to group all matching problems together, removing those which have mismatched expected answers. Next, we found that the data still contains evidence of the synthetic data generation process, such as asking "do you want to solve it?" or "here's the new problem" and remove any problems with similar phrases.
Finally, after running each of the described filters over the individual subsets, we perform four filtering operations across the full collection. First, we use exact matching to find and remove duplicate problems. Then, we use a FastText language identifier ([96, 97, 98]) and remove any problems where English is not the primary language. Next, we remove problems containing a hyperlink, as this suggests that a model may not have the full resources required to solve the problem. Lastly, we decontaminate the dataset by removing any examples of the MATH500 test set ([19]).
The Strict Filter further reduces the base filtered data to problem-answer pairs which are more likely to be open-ended, verifiable, and closed-form. The strict filters are applied equally to all subsets of the dataset through a mix of rule-based and model-based filtering. First, we remove questions containing multiple parts as these can be challenging to evaluate. For a similar reason, we also remove questions that ask for a proof as these problems are difficult to evaluate. Next, we choose to remove multiple choice problems as models have a high probability of selecting the correct answer without producing an accurate reasoning chain. For the same reason, we also remove Yes/No and True/False problems, as these may give a poor learning signal during Meta-RL training. Finally, we use the SemDeDup algorithm ([99]) with the model at sentence-transformers/all-MiniLM-L6-v2 and remove problems with a cosine similarity over 0.5.
For the proposed family of algorithms we need RL training infrastructure that can:
Here we outline our recent progress on these issues in the open-source GPT-NeoX framework ([100]). We leverage CUDA IPC handles to enable true asynchronous RLHF training by sharing GPU memory directly between training and inference processes. By allocating model weights

in the training framework and sharing CUDA memory pointers with the inference framework, both processes maintain access to the same physical memory throughout training. When the training process updates weights, these updates are immediately visible to the inference process through its mapped pointers without requiring any explicit synchronization. This shared memory architecture enables fully parallel execution - the inference process can continuously generate tokens while the training process updates weights, with neither process blocking the other. Although early portions of generated rollouts may be off-policy, the final steps will generally be only one training step off-policy at most, as the inference process immediately sees weight updates through the shared memory. Unlike previous asynchronous approaches ([81]) that require distinct generation and training phases, our system maintains constant GPU utilization across both processes. Direct memory sharing provides significantly higher throughput by eliminating synchronization overhead between training and inference. Our initial experiments show 40% improved throughput compared to 3-step asynchronous training that requires explicit weight synchronization, as shown in Figure 46. However, this approach comes with important trade-offs in memory utilization and parallelism. Sharing GPUs between processes restricts us to suboptimal tensor parallelism (TP) configurations compared to dedicated training and inference setups, resulting in lower theoretical peak throughput for both processes. The impact is particularly pronounced for inference, where reduced memory for KV cache and suboptimal TP configurations significantly constrain the generation speed. In scenarios where inference compute significantly exceeds training compute (e.g. MCTS, where most of the search tree is discarded after each rollout), using separate dedicated GPU clusters with optimized TP configurations for each process can achieve higher overall throughput despite the synchronization overhead.
A number of open research questions remain which are currently not answered in the literature.
In this report we outline a pipeline for training advanced reasoning models on verifiable questions. These types of questions largely consist of things like math, scientific questions with symbolic or numerical answers, or code problems with unit tests. However, we believe it is still an open question on how to ensure that the resulting CoTs are faithful and in fact provide valid reasoning. In many applications, such as science for example, the reasoning chain can be even more important than the final answer. Qualitatively, current models with "advanced" reasoning still struggle and produce many CoTs which are inconsistent or unfaithful, even when they obtain the correct final answer. Interestingly, even the single math example provided along with the announcement of the O1 model has an incomplete solution as it makes an unsubstantiated assumption on the form of the polynomial $h(x) = x^2-c$ without proving that the coefficient of $x$ is in fact zero ([11]). Under a competitive setting this would likely receive 5/7 points, even though the final answer is correct. It is worth noting that the model actually verifies and proves this assumption in it's Meta-CoT but the final output provided does not include those steps. We believe this might be one type of artifact that arises from training with final answer verification only. How to provide rewards on full CoTs and open-ended problems such as proofs remains an open question. Under the assumption of a wide enough generation-verification gap, we believe an RLAIF approach could be promising. In particular, foregoing concepts such as formal verification, one avenue to explore is a "generative verifier" similar to [22] or [25]. In this setting the evaluation model can be provided with one or several reference solutions/proofs, or other relevant material such as textbook chapters, tools like Wolfram or Mathematica, and specifically fine-tuned to provide evaluations to proposed solutions, rather than final answers alone. As outlined in Section 3.2, we found advanced models to already posses some capabilities in that vein. Unfortunately, a major bottleneck in that line of research is the need for a dataset of open-ended reasoning problems (such as proofs), which would likely require significant human annotations.
:::: {cols="1"}


Figure 47: Under a fixed generator model and a variable verifier performance seems to also obey a form of a scaling law. Right: Accuracy seems to improve in a log-linear fashion with amount of training data under a standard discriminative PRM. Source: Figure 6 in ([27]). Left: Performance of a Generative Reward Model (with CoT) on reasoning tasks with a a reference using variable amount of CoTs and majority voting. Increasing the amount of inference-time sampling improves accuracy. Source: Figure 5 in ([25]). ::::
The current work brings to light some remaining questions on the approaches to process guidance and PRMS. In Section 5 we outlined results showing that pre-trained PRMs still significantly lack behind pure Monte Carlo approaches in terms of search efficiency. Moreover, with few exceptions ([27]), we believe algorithmic approaches for training these models remain understudied. In particular, if we view a PRM as a value function, then many approaches from offline RL ([101]) become applicable with some already showing promise in agentic domains ([102]). In the same vein, [103] introduced a separate value function over the standard MCTS approach using roll-outs for efficiency purposes. However, we believe there may be a fundamental verifier gap beyond just the efficiency question. As shown in Figure 6 there remains a significant gap between the "best-of-N" verifier driven approach and the oracle pass@N performance. A similar gap seems to exist in the multi-turn code generation domain, as shown in Figure 31 ([68]). Moreover, under a fixed generator, results from [27] and our own empirical findings in Section 5 indicate that verifier performance may also be driven by a scaling law as well. In Figure 47 (left) we see clear log-linear scaling in performance in terms of training data. One hypothesis is that verification is also a matter of computational complexity, which is why allowing verifiers to use CoT improves performance as shown in Figure 6 ([22, 25]). In addition, [25] show further inference-time scaling for verifiers, as using additional CoTs with majority vote improves reward accuracy on reasoning problems well beyond the performance of the standard discriminative verifier. This raises questions for the fundamental learnability of in-context search traces. In essence, if a search trace was generated using ground-truth verification or Monte-Carlo roll-outs, the resulting sequence may have significant implicit complexity, which would be challenging for the model to learn. This would also motivate incorporating further self-evaluation or reflection into reasoning chains. The associated verification scaling laws and design choices remain largely unexplored in the literature and present an important research direction.
While recent model releases have demonstrated strong inference scaling performance, we still lack a thorough scientific exploration of scaling laws in public research, which is a key piece of the recently emerging model paradigm.
In this report we argued that advanced reasoning should incorporate in-context search, which can yield higher efficiency and potentially more advanced capabilities in reasoning tasks. However, such an approach also has potential downsides. In particular, we are limited by the model's context length,
![**Figure 51:** Scaling performance of search with "meta"-value function and regular (single turn) value function. Conditioning the model on prior explored paths improves search efficiency. Source: Figure 5 in [23].](https://ittowtnkqtyixxjxrhou.supabase.co/storage/v1/object/public/public-images/q643mhbq/prm_efficiency.png)
which induces fundamental limits on the search complexity. Moreover, the sequential nature of in-context search can make the process slow, limiting the power of these models. At the same time neither of these are issues with classical search approaches such as MCTS, which can be parallelized [104]. A natural question is: can we can build an additional search procedure on top of an advanced reasoning model (a process which we call Meta-Search or Search$^2$ following the naming convention of [58])? In recent literature, [23] trained a value function (PRM) with a "multi-turn" approach, conditioning the value function on all prior explored solutions. Rather than the traditional value function, they instead train a function $v_{\theta}(\mathbf{Z_t}, \mathbf{S}_t, \mathbf{q}$), where the Meta-CoT $\mathbf{Z}_t$ consists of prior solution attempts. The empirical performance of their method compared with regular PRM training is shown in Figure 51, demonstrating improved scaling over traditional value function training. This result suggests that we may be able to increase the search efficiency using a meta-critic, however this remains an open empirical question. If this is indeed the case, it would allow us to also massively scale online search with reasoning models.

Building on our discussion of scaling laws and search approaches, we investigate a critical direction: augmenting model reasoning with external computational tools. Just as humans leverage calculators, spreadsheets, and specialized software to solve problems more efficiently, LLMs can potentially achieve better scaling properties by offloading the compute burden to external tools - requiring less training data during SFT and fewer samples during test-time search to reach the high level of performance. For instance, while pure CoT reasoning requires models to perform all calculations internally to solve math problems, these computations can be offloaded to a Python interpreter. Prior works demonstrate that such tool-integrated reasoning (TIR) improves performance on mathematical questions ([18, 105, 106]). However, the scaling properties of TIR remain unexplored.
Figure 52, using models trained by [18], provides initial evidence for the efficiency of TIR models. Despite being fine-tuned on 25% as much data, the TIR model demonstrates superior scaling properties compared to the CoT model. This occurs across all sample sizes, with both majority vote and Best-of-N strategies consistently outperforming their CoT counterparts. The efficiency gain is particularly evident in the low-sample regime ($2^0$ to $2^3$ samples), where TIR achieves nearly double the accuracy of CoT methods. This suggests that offloading computations to external tools significantly improves the model's ability to solve problems even with limited attempts, and TIR is more efficient at both training and inference time.
Based on these promising initial results, we identify several critical directions for future investigation:
[^1]: An example Best-First search trace with TIR is available in Appendix E.1.
Section Summary: This position paper introduces Meta Chain-of-Thought, a new framework to better understand and improve how large language models reason, arguing that the standard approach falls short by ignoring key steps like searching for solutions, checking them, and refining iteratively. The authors see this method as a strong step toward more reliable AI thinking, backed by observations of top models and tests showing the importance of internal searches for tough problems, and they outline a practical training plan that future studies should test. They also highlight ongoing challenges, such as finding the best ways to scale reasoning abilities and combine different training techniques, while releasing a large dataset called "Big MATH" to aid research and suggesting exciting possibilities like AI discovering new problem-solving strategies on its own.
In this position paper, we have introduced Meta Chain-of-Thought (Meta-CoT) as a framework for understanding and enhancing the reasoning capabilities of Large Language Models (LLMs). We have argued that traditional Chain-of-Thought does not fully represent the underlying data generative process on reasoning problems. By incorporating the concepts of search, verification, and iterative refinement, Meta-CoT provides a more complete model of the cognitive processes required for advanced problem-solving.
We believe that Meta-CoT represents a promising path towards more robust and generalizable reasoning in LLMs. The observed behaviors of state-of-the-art models, along with our experiments on in-context exploration and backtracking, lend support to the hypothesis that internal search processes are crucial for performance on complex tasks. Furthermore, the proposed training pipeline presents a concrete approach for developing LLMs with enhanced Meta-CoT capabilities. Future work should validate the efficacy of our proposed pipeline.
Beyond our proposed method, numerous open questions and challenges remain. Further research is needed to determine the optimal scaling laws for reasoning and search, to develop more effective process supervision and verification techniques, and to clarify the interplay between instruction tuning and reinforcement learning for meta chain of thought reasoning. The "Big MATH" dataset we have introduced aims to support this research by providing a large-scale resource for training reasoning models. Furthermore, the possibility of meta-RL paired with Meta-CoT automatically discovering novel search algorithms is a particularly intriguing open research question for future work to explore.
We would like to thank Aviral Kumar, Benjamin Eysenbach, Nathan Lambert, Rishabh Agarwal, Sasha Rush and Noah Goodman for the fruitful discussions and feedback on this report.
Section Summary: The appendix explores techniques to enhance AI reasoning, beginning with prompting strategies that test how detailed instructions can mimic advanced problem-solving in models, including token usage comparisons across methods like Chain-of-Thought and verification prompts. It analyzes regret in AI outputs to gauge self-correction across models and strategies, then outlines various fine-tuning objectives for training AI on reasoning tasks, such as cloning procedures, focusing on key thinking steps, masking errors, and generating synthetic data to align training with real use. Finally, it details the Monte Carlo Tree Search process used in the study, covering steps like selecting paths with exploration formulas, expanding nodes by sampling actions, and building partial solutions for math problems.
We investigate whether carefully constructed prompting protocols can induce reasoning capabilities similar to those demonstrated by RL-based models like O1. Through an evaluation of five increasingly sophisticated instruction sets, we analyze token generation patterns, presence of reasoning-like behaviors, and their correlation with math problem-solving performance.
:Table 4: Input token count across prompting strategies using OpenAI's GPT-4o tokenizer (excluding problem tokens). Complex instructions like Think (3-shot) use substantially more tokens, primarily due to in-context demonstrations and explicit capabilities descriptions (e.g. thinking, reflection, and verification requirements).
| Strategy | Tokens |
|---|---|
| Baseline | 23 |
| Chain-of-Thought (CoT) | 35 |
| Think | 1, 895 |
| Think with demonstrations (3-shot) | 4, 659 |
| Think & Verify | 2, 111 |
Table 5 presents detailed statistics on regret expression across different models and prompting strategies. The data shows varying levels of self-correction and error acknowledgment behaviors across model scales and prompting approaches.
::: {caption="Table 5: Regret Statistics by Model and Prompting Strategy"}

:::
Below we outline a number of potential finetuning objectives for the instruction tuning stage of our reasoning pipeline described in Section 7.1.
$ \mathcal{L}({\theta}) =\min_{\theta} - \mathbb{E}{(\mathbf{q}, \mathbf{Z}, \mathbf{S})\sim\mathcal{D}{\text{train}}}\left[\sum_{i=1}^{|\mathbf{Z}|}\log \pi_{\theta}(\mathbf{z}{i+1}|\mathbf{Z}{i}, \mathbf{q}) + \sum_{i=1}^{|\mathbf{S}|}\log \pi_{\theta}(\mathbf{s}{i+1}|\mathbf{S}{i}, \mathbf{Z}, \mathbf{q})\right]. $
$ \mathcal{L}({\theta}) =\min_{\theta} - \mathbb{E}{(\mathbf{q}, \mathbf{Z}, \mathbf{S})\sim\mathcal{D}{\text{train}}}\left[\sum_{i=1}^{|\mathbf{Z}|}\log \pi_{\theta}(\mathbf{z}{i+1}|\mathbf{Z}{i}, \mathbf{q})\right]. $
In this formulation, the model will not learn to generate a solution, requiring the use of a separate step to summarize the search process into a final solution. One hypothesis is that training on joint sequences with the solution can serve as additional supervision to help the model with maintaining internal state. 3. One consideration is whether updating model parameters for sub-optimal, or even incorrect, branches can induce the model to generate more errors. To handle this, we can mask incorrect steps/branches in the above loss
$ \mathcal{L}({\theta}) =\min_{\theta} - \mathbb{E}{(\mathbf{q}, \mathbf{Z}, \mathbf{S})\sim\mathcal{D}{\text{train}}}\left[\sum_{i=1}^{|\mathbf{Z}|}I{\mathbf{z}{i+1}\in \mathbf{S}}\log \pi{\theta}(\mathbf{z}{i+1}|\mathbf{Z}{i}, \mathbf{q})\right]. $
That is we only train on the branches that are on the correct path from the root node (problem) to the final answer. Prior works ([40, 46]) did not mask the incorrect steps, and reported no degradation in performance, as long as the data distribution remains reasonable. On the other hand [47] specifically mask the tokens of the unsafe generation. 4. Under the above objective, there could be significant task mismatch between training and generation, especially in the case of long search chains. One method to mitigate this issue is to generate more synthetic training data by pruning intermediate branches not on the optimal solution path to generate additional sequences. For example this was the SFT objective used by [47], which simultaneously trains on backtracking trajectories (with masking) and the final optimal solution (Equation 1 in that paper).
Here we outline the details of our MCTS procedure from Section 4.3.1. Our procedure involves three main steps: selection, backup, and expansion. We describe each step in detail below.
Selection. Starting at the root node $\mathbf{s}_0$ (initialized as the question $\mathbf{q}$), a child node $\mathbf{s}$ (i.e. the next step in the solution) is selected until a leaf node $\mathbf{s}_t$ is reached. A partial solution is then represented as $\mathbf{S}_t = (\mathbf{s}1, \ldots, \mathbf{s}t)$. The child node is selected according to the policy $\mathbf{s}{t+1} = \arg\max\mathbf{s} U(\mathbf{S}_t, \mathbf{s})$ where $U(\mathbf{S}_t, \mathbf{s})$ is calculated using UCT ([107]), defined as
$ U(\mathbf{S}_t, \mathbf{s}) = Q(\mathbf{S}t, \mathbf{s}) + c{\text{exp}}\sqrt{\frac{\log N(\mathbf{S}_t, \mathbf{s})}{N(\mathbf{S}_t)}}. $
In this equation $Q(\mathbf{S}_t, \mathbf{s})$ is a value function, $N(\mathbf{S}_t, \mathbf{s})$ is the visit count of selecting step $\mathbf{s}$ from the partial solution $\mathbf{S}_t$, $N(\mathbf{S}t) = \sum{s} N(\mathbf{S}_t, \mathbf{s})$ is the total visit count of the partial solution $\mathbf{S}t$, and $c{\text{exp}} \in\mathbb{R}$ is the exploration constant. We opt for the UCT formulation, instead of the more recent PUCT variant ([108]), as in our case actions are represented by logical steps and thus likelihoods could be quite skewed.
Expansion. After the selection operation, we have chosen a leaf node $\mathbf{s}t$, and the path from the root node $\mathbf{s}0$ to the leaf node forms a partial solution by concatenating the individual steps into the partial solution, i.e. $\mathbf{S}t = (\mathbf{s}1, \ldots, \mathbf{s}t)$. If $\mathbf{s}{t}$ is terminal, we do not expand it, otherwise the node is expanded by sampling $b$ actions ${\mathbf{s}{t+1}^i}{i=1}^b \sim\pi\theta(\cdot|\mathbf{S}t)$ from the policy $\pi\theta$, and then adding the nodes ${\mathbf{a}{t+1}^i}_{i=1}^b$ as children of node $\mathbf{S}_t$. The value of each child node is initialized with a value function $v$ as $Q(\mathbf{S}_t, \mathbf{s}_t^i) = v((\mathbf{S}t, \mathbf{s}{t+1}^i), \mathbf{q})$. This evaluation essentially replaces the "simulation" step usually carried out in game settings.
Backup. Finally, the statistics of the expanded node $\mathbf{S}_t$ are backed up through the path to the root node $\mathbf{s}_0$. For every ancestor node $\mathbf{S}_i$ on the path, the visit count is incremented
$ N(\mathbf{S}_i) = N(\mathbf{S}_i) + 1 $
and the value of each ancestor is updated as
$ Q(\mathbf{S}i, \mathbf{s}{i + 1}) = \quad Q(\mathbf{S}i, \mathbf{s}{i + 1}) + \frac{v(\mathbf{S}_t, \mathbf{q}) - Q(\mathbf{S}i, \mathbf{s}{i + 1})}{N(\mathbf{S}i, \mathbf{s}{i + 1})}. $
This section contains synthetic CoT traces comparing how different models reason through the same planning problems. Specifically, we show complete reasoning traces from Gemini-1.5 solving problems using A* and MCTS algorithms, alongside parallel traces from DeepSeek-R1, DeepSeek-O1, and Gemini-2 working through identical tasks. We also include an example trace demonstrating how a smaller SFT-tuned Llama3.1-8B model performs tool-augmented reasoning on a challenging problem using dynamic programming. Each trace details the step-by-step "internal" traces and the final solution.
There were 12 seats prepared for the jury at a round table, each with a name indicated on it. Nikolai Nikolaevich, who arrived first, absent-mindedly sat not in his designated seat but in the next one clockwise. Each jury member arriving at the table afterward would either sit in their designated seat, or, if it was already occupied, they would walk around the table clockwise and sit in the next available seat. The resulting seating arrangement of the jury members depends on the order in which they approached the table. How many different ways can the jury be seated?
0.0 Let's break this down step-by-step:
0.03125
0.0 Alternatively...
0.0 Alternatively...
0.0 Alternatively...
0.0 Alternatively...
0.046875
Let's analyze the pattern:
0.0390625
0.03125
So, the total number of ways the jury can be seated is the product of the options for each person:
0.03125
$ 1 \times 2 \times 2 \times 2 \times 2 \times 2 \times 2 \times 2 \times 2 \times 2 \times 2 \times 2 = 2^{11} = 2048 $
0.0078125
Wait, however, this process can be simplified by realizing that each person has a unique "decision point" - the first time they have a choice between sitting in their designated seat and moving to the next seat. After that, their seat is determined by the previous choices.
0.0078125
Alternatively, however, this is a circular arrangement, and we need to account for the fact that the last person can also move. This introduces a complication, as the last person will always have only 1 option if everyone else is seated.
0.0546875
Let's simplify the problem by considering the first 12 people. For each of these 12 people, there are 2 options. However, we need to subtract the cases where the last person doesn't move, as these cases are already counted in the 2 options for each person.
0.0078125
Wait, to simplify, let's consider the arrangement of people relative to Nikolai Nikolaevich's fixed position. There are 11! ways to arrange the remaining jury members around the table, as each person has a fixed position relative to Nikolai.
0.0234375
However, this calculation doesn't take into account the fact that some people can move. To correct for this, we need to consider the number of "cycle" arrangements, where each cycle represents a group of people who moved together.
0.0078125
Wait, let's re-examine the situation:
0.046875
0.046875
The pattern continues until the last person, who always has only 1 option.
0.03125
So, the total number of arrangements is the product of the options at each step:
0.0390625
$ 2 \times 2 \times 2 \times 2 \times 2 \times 2 \times 2 \times 2 \times 2 \times 2 \times 1 = 2^{11} = 2048 $
0.0 Wait, let's consider the total number of ways without the circular constraint. For the first person, there's 1 option. For the rest, there are 2 options each, except for the last person who has only 1 option. So, the total number of arrangements without the circular constraint is:
$ 1 \times 2^{11} $
0.171875
However, we need to subtract the cases where everyone is seated in their designated seats, which is 1 arrangement. But this is already counted in the 2 options for each person.
0.03125
Alternatively, however, this counts each arrangement twice, since the table is round, and we can rotate the arrangement without changing it. To account for this, we divide by the number of seats, which is 12.
0.0703125
Alternatively, however, this counts each arrangement twice (once in each direction around the table), so we need to divide by 2:
$ \frac{1 \times 2^{11}}{2} = 2^{10} $
0.328125
But this is not the correct answer. The correct answer is the number of derangements of 12 objects, which is given by the formula:
$ !12 = 12! \left( 1 - \frac{1}{1!} + \frac{1}{2!} - \frac{1}{3!} + \cdots + \frac{(-1)^{12}}{12!} \right) $
0.0078125
Alternatively, but this is still not correct because it doesn't account for the fact that the last person always has only 1 option. Let's reconsider the problem.
0.0625
Alternatively, but this is not the correct answer because the problem statement asks for the number of different ways the jury can be seated, considering the circular arrangement. In a circular arrangement, the last person's position is fixed once the first person's position is chosen. Therefore, the correct calculation should consider the number of ways to arrange the remaining 11 people around the table, not the total possible arrangements.
0.1484375
Alternatively, but we're not done yet! We need to consider the case where the second person moves, which would cause the last person to have only 1 option. This introduces an overcount. To correct for this, we need to subtract the number of arrangements where the second person moves, which is equivalent to the number of ways the jury can be seated with one person missing (i.e., 11 people). This is:
$ 2^{10} - 1 $
0.1796875
But we still need to account for the fact that the last person has only 1 option. This means that we've overcounted by a factor of 2 for the last person. To correct this, we divide by 2 again:
$ \frac{2^{10}}{2} = 2^9 $
0.0390625
Wait, but we also need to consider the case where the first person moves, which would be counted 12 times (once for each possible position). So, we need to subtract these 11 arrangements:
$ 2^{10} - 11 $
0.1484375
Alternatively, this is still not correct, as we haven't accounted for the fact that the last person can only move one seat. We need to consider the cases where the last person moves and subtract those from the total.
0.1796875
But we need to correct this approach because we've double-counted due to the nature of the circular arrangement.
0.015625
Alternatively, we also need to consider the case where someone arrives after the first person and the table is empty. In this case, the first person still has 1 option, and the remaining 11 people have 2 options each, but again, we need to divide by 2 to account for the circular arrangement:
$ \frac{1 \times 2^{11}}{2} = 2^{10} $
0.2421875
However, this is not the correct answer. The correct answer is:
$ \boxed{2^{11}} $
0.0 Alternatively, but this doesn't account for the fact that the last person has only 1 option. To adjust for this, we need to consider the cases where the last person moves. This introduces a more complex conditional arrangement, but the key insight is that the number of choices for the last person is actually the same as the number of choices for any other person, because the arrangement is circular.
0.1015625
Alternatively, but we still need to account for the fact that the last person can only move in one direction. This doesn't affect the number of arrangements, as the circular constraint is already accounted for by the division by 2.
0.953125
So, the total number of different ways the jury can be seated is:
$ \boxed{1024} $
1.0 Solution:
Let's break this down step-by-step:
However, this is a circular arrangement, and we need to account for the fact that the last person can also move. This introduces a complication, as the last person will always have only 1 option if everyone else is seated.
Let's consider the total number of ways without the circular constraint. For the first person, there's 1 option. For the rest, there are 2 options each, except for the last person who has only 1 option. So, the total number of arrangements without the circular constraint is:
$ 1 \times 2^{11} $
However, this counts each arrangement twice (once in each direction around the table), so we need to divide by 2:
$ \frac{1 \times 2^{11}}{2} = 2^{10} $
But we still need to account for the fact that the last person can only move in one direction. This doesn't affect the number of arrangements, as the circular constraint is already accounted for by the division by 2.
So, the total number of different ways the jury can be seated is:
$ \boxed{1024} $
A Generated Solution Trace*
Question: There were 12 seats prepared for the jury at a round table, each with a name indicated on it. Nikolai Nikolaevich, who arrived first, absent-mindedly sat not in his designated seat but in the next one clockwise. Each jury member arriving at the table afterward would either sit in their designated seat, or, if it was already occupied, they would walk around the table clockwise and sit in the next available seat. The resulting seating arrangement of the jury members depends on the order in which they approached the table. How many different ways can the jury be seated?
To solve this problem, we need to determine the total number of different seating arrangements of 12 jury members when each member either sits in their designated seat or walks around the table clockwise to sit in the next available seat.
0.01171875
To solve this problem, we need to analyze the seating possibilities given the rules described:
0.0078125
0.015625
To determine the number of ways the jury can be seated, we need to consider the following steps:
0.01171875
0.046875
Let's represent this using Python code to calculate the number of different ways the jury can be seated.
0.05078125
We can model this problem using dynamic programming, where each state represents the number of available seats and the current seat Nikolai is sitting on. We'll use a recursive approach to count the number of valid seating arrangements.
0.0390625
Here's the Python code to solve this problem:
0.03515625
Let's implement this in Python.
0.03515625
def count_seating_arrangements(total_seats):
dp = [0] * (total_seats + 1)
dp[1] = 1 # Initial case: Nikolai is in the next seat clockwise
# Iterate over all possible remaining seats where Nikolai could be
for seat in range(total_seats):
for available_seats in range(seat + 1, total_seats):
dp[available_seats] += dp[available_seats - seat - 1]
return dp[total_seats]
## There are 12 seats prepared for the jury
> **Section Summary**: There are 12 seats arranged for the jury, and the seating process begins with Nikolai Nikolaeich taking the next available seat clockwise from a starting point. Each subsequent jury member has a choice: they can sit in their designated seat if it's free or move to the next available seat instead. This setup results in exactly 1024 different ways the jury can end up seated.
total_seats = 12
seating_ways = count_seating_arrangements(total_seats)
print(seating_ways)
0
0.03125
It seems our initial approach overlooked a crucial detail. We need to consider the actual sequence of each member. Each member can either:
0.04296875
It seems there was an issue with the initial state of the dynamic programming approach. Let's refine our approach:
python 0.02734375
We should count directly from the number of valid seating arrangements starting from Nikolai's initial seat.
For each subsequent member, they have two choices: their designated seat or the next available seat.
0.046875
Let's re-implement the logic more carefully:
0.046875
We need to correctly initialize the base case.
We need to ensure we correctly handle the initial arrangement where Nikolai is in the next seat clockwise.
0.04296875
Let's reconsider the logic and the initialization of the DP table:
0.0546875
Here's an updated approach:
0.04296875
We start by initializing the base case correctly.
We use an iterative approach instead of dynamic programming to simplify the calculation.
0.09375
Let's implement the solution again:
0.12109375
Let's implement this revised approach in Python:
0.09765625
Let's implement the updated version in Python:
0.07421875
def count_seating_arrangements(total_seats):
## Initialize the dp array
dp = [0] * (total_seats + 1)
## Base case: Nikolai is in the next seat clockwise
dp[1] = 1
## Iterate over the remaining seats
for current_seat in range(2, total_seats + 1):
# Iterate over possible current seats
for seat in range(current_seat):
dp[current_seat] += dp[seat]
return dp[total_seats]
## There are 12 seats prepared for the jury
> **Section Summary**: There are 12 seats arranged for the jury, and the seating process begins with Nikolai Nikolaeich taking the next available seat clockwise from a starting point. Each subsequent jury member has a choice: they can sit in their designated seat if it's free or move to the next available seat instead. This setup results in exactly 1024 different ways the jury can end up seated.
total_seats = 12
seating_ways = count_seating_arrangements(total_seats)
print(seating_ways)
1024
0.94921875
The number of different ways the jury can be seated, given that Nikolai Nikolaeich started in the next seat clockwise and each subsequent member either sits in their designated seat or the next available seat, is $1024$.
1
## Solution
> **Section Summary**: The solution addresses a jury seating puzzle by starting with Nikolai Nikolaevich in the seat immediately clockwise from his assigned one, after which each subsequent member can choose either their designated seat or the next available seat. It uses dynamic programming to count all valid arrangements, modeling the state based on remaining seats and Nikolai's position to systematically calculate possibilities. A Python function implements this by building up results through iterations over seat counts.
To solve this problem, we need to analyze the seating possibilities given the rules described:
1. Nikolai Nikolaevich starts in the next seat clockwise.
2. Each subsequent member either sits in their designated seat or the next available seat.
To determine the number of ways the jury can be seated, we need to consider the following steps:
1. Assign Nikolai Nikolaevich to the next seat clockwise.
2. Each subsequent jury member has 2 choices: their designated seat or the next available seat.
3. Since Nikolai Nikolaeich has already changed seats, we need to account for the extra step he took.
We can model this problem using dynamic programming, where each state represents the number of available seats and the current seat Nikolai is sitting on. We'll use a recursive approach to count the number of valid seating arrangements.
Let's implement this in Python.
```python
def count_seating_arrangements(total_seats):
dp = [0] * (total_seats + 1)
dp[1] = 1 # Initial case: Nikolai is in the next seat clockwise
# Iterate over all possible remaining seats where Nikolai could be
for seat in range(total_seats):
for available_seats in range(seat + 1, total_seats):
dp[available_seats] += dp[available_seats - seat - 1]
return dp[total_seats]
## There are 12 seats prepared for the jury
> **Section Summary**: There are 12 seats arranged for the jury, and the seating process begins with Nikolai Nikolaeich taking the next available seat clockwise from a starting point. Each subsequent jury member has a choice: they can sit in their designated seat if it's free or move to the next available seat instead. This setup results in exactly 1024 different ways the jury can end up seated.
total_seats = 12
seating_ways = count_seating_arrangements(total_seats)
print(seating_ways)
0
It seems there was an issue with the initial state of the dynamic programming approach. Let's refine our approach:
Here's an updated approach:
Let's implement the updated version in Python:
python def count_seating_arrangements(total_seats):
dp = [0] * (total_seats + 1)
dp[1] = 1
for current_seat in range(2, total_seats + 1):
for seat in range(current_seat): dp[current_seat] += dp[seat]
return dp[total_seats]
Section Summary: There are 12 seats arranged for the jury, and the seating process begins with Nikolai Nikolaeich taking the next available seat clockwise from a starting point. Each subsequent jury member has a choice: they can sit in their designated seat if it's free or move to the next available seat instead. This setup results in exactly 1024 different ways the jury can end up seated.
total_seats = 12 seating_ways = count_seating_arrangements(total_seats) print(seating_ways)
```output
1024
The number of different ways the jury can be seated, given that Nikolai Nikolaeich started in the next seat clockwise and each subsequent member either sits in their designated seat or the next available seat, is $1024$.
A Generated Solution Trace (Gemini 1.5)*
Problem Let $n$ be an even positive integer. Let $p$ be a monic, real polynomial of degree $2n$; that is to say, $p(x) = x^{2n} + a_{2n-1}x^{2n-1} + \cdots + a_1x + a_0$ for some real coefficients $a_0, \ldots, a_{2n-1}$. Suppose that $p\left(\frac{1}{k}\right) = k^2$ for all integers $k$ such that $1 \leq |k| \leq n$. Find all other real numbers $x$ for which $p\left(\frac{1}{x}\right) = x^2$.
Solution
0.0234375
Let $q(x) = x^{2n}p\left(\frac{1}{x}\right) = a_0 x^{2n} + a_1 x^{2n-1} + \cdots + a_{2n-1} x + 1$.
0.015625
The given condition $p\left(\frac{1}{k}\right) = k^2$ implies $q(k) = k^{2n} k^2 = k^{2n+2}$ for $1 \leq |k| \leq n$.
0.0 Let $p(x) = x^{2n} + a_{2n-1}x^{2n-1} + \cdots + a_1x + a_0$ be a monic polynomial of degree $2n$, where $n$ is an even positive integer.
0.0 We are given that $p\left(\frac{1}{k}\right) = k^2$ for all integers $k$ such that $1 \leq |k| \leq n$.
0.0078125
We are given that $p\left(\frac{1}{k}\right) = k^2$ for integers $k$ such that $1 \leq |k| \leq n$.
0.0 The condition $p\left(\frac{1}{k}\right) = k^2$ for $1 \leq |k| \leq n$ is equivalent to $q(k) = k^{2n} k^2 = k^{2n+2}$ for $1 \leq |k| \leq n$.
0.03125
Consider the polynomial $r(x) = x^{2n+2} - q(x)$. We are given that $r(k) = 0$ for $1 \leq |k| \leq n$.
0.0625
Since $n$ is even, let $n = 2m$. Then we have $2n = 4m$. Thus, $r(x)$ has the roots $\pm 1, \pm 2, \ldots, \pm 2m$.
0.0703125
$r(x) = (x-1)(x+1)(x-2)(x+2) \cdots (x-2m)(x+2m) = \prod_{k=1}^{2m} (x-k)(x+k) = \prod_{k=1}^{2m} (x^2-k^2)$.
0.015625
Since $q(x)$ is a polynomial of degree $2n$, $r(x)$ is a monic polynomial of degree $2n+2 = 4m+2$.
0.0078125
Therefore, we can write
0.0703125
$ r(x) = (x^2-1)(x^2-2^2)\cdots(x^2 - (2m)^2) = (x^2-1)(x^2-4)\cdots(x^2 - 4m^2) $
0.0 Therefore, we can write $r(x) = x^{2n+2} - q(x) = (x^2-1)(x^2-4)\cdots(x^2-n^2)R(x)$, where $R(x)$ is a polynomial of degree $2n+2 - 2n = 2$.
0.1015625
Since $q(x)$ is monic with degree $2n$, $x^{2n+2} - q(x)$ has leading coefficient 1. Also, the leading coefficient of $(x^2-1)(x^2-4)\cdots(x^2-n^2)$ is 1. Thus, $R(x)$ must be monic.
0.03125
Let $R(x) = x^2 + bx + c$. Then we have $r(x) = x^{2n+2} - q(x) = (x^2-1)(x^2-4)\cdots(x^2-n^2)(x^2 + bx + c)$.
0.1953125
We are looking for values of $x$ such that $p\left(\frac{1}{x}\right) = x^2$, which is equivalent to $q(x) = x^{2n+2}$. This means we want to find the roots of $r(x) = 0$. We know that $r(x) = 0$ for $x = \pm k$ for $1 \leq k \leq n$. We are looking for the roots of $x^2 + bx + c = 0$.
0.1796875
Since $r(0) = (-1)^n(-1)(-4)\cdots(-n^2)c = (-1)^n (-1)^n (1)(4)\cdots(n^2)c = n!^2 c$, we have $r(0) = -q(0) = -1$. Thus $n!^2 c = -1$, so $c = -\frac{1}{n!^2}$.
0.40625
$r(x) = (x^2-1)(x^2-4)\cdots(x^2-n^2)(x^2+bx-\frac{1}{n!^2})$.
0.3984375
Since the coefficients of $p(x)$ are real, the coefficients of $q(x)$ are real, and so the coefficients of $r(x)$ are real. Therefore, the coefficients of $R(x)$ are real. In particular, $b$ is real. The roots of $x^2+bx-\frac{1}{n!^2}=0$ are $x=\frac{-b \pm \sqrt{b^2+\frac{4}{n!^2}}}{2}$. Thus the roots are real if $b^2+\frac{4}{n!^2} \geq 0$, which is always true since $b$ is real.
0.265625
Consider $r(x) = x^{2n+2} - q(x)$.
0.359375
The equation $p(\frac{1}{x}) = x^2$ implies $x^{2n} p(\frac{1}{x}) = x^{2n+2}$, so $q(x) = x^{2n+2}$, thus $x^{2n+2} - q(x) = 0$. We already know that $x=\pm k$, $1 \le k \le n$, are roots.
0.390625
We have $r(x) = (x^2-1)\cdots(x^2-n^2)(x^2+bx-\frac{1}{n!^2})$.
0.359375
Since $r(x)$ is an even function, $b=0$.
0.6875
The other solutions are the roots of $x^2 - \frac{1}{n!^2} = 0$, so $x = \pm \frac{1}{n!}$.
0.796875
Final Answer: The final answer is $\boxed{\pm \frac{1}{n!}}$
1.0 Solution
Let $q(x) = x^{2n}p\left(\frac{1}{x}\right) = a_0 x^{2n} + a_1 x^{2n-1} + \cdots + a_{2n-1} x + 1$.
The given condition $p\left(\frac{1}{k}\right) = k^2$ implies $q(k) = k^{2n} k^2 = k^{2n+2}$ for $1 \leq |k| \leq n$.
Consider the polynomial $r(x) = x^{2n+2} - q(x)$. We are given that $r(k) = 0$ for $1 \leq |k| \leq n$.
Since $n$ is even, let $n = 2m$. Then we have $2n = 4m$. Thus, $r(x)$ has the roots $\pm 1, \pm 2, \ldots, \pm 2m$.
$r(x) = (x-1)(x+1)(x-2)(x+2) \cdots (x-2m)(x+2m) = \prod_{k=1}^{2m} (x-k)(x+k) = \prod_{k=1}^{2m} (x^2-k^2)$.
Since $q(x)$ is a polynomial of degree $2n$, $r(x)$ is a monic polynomial of degree $2n+2 = 4m+2$.
Therefore, we can write $r(x) = x^{2n+2} - q(x) = (x^2-1)(x^2-4)\cdots(x^2-n^2)R(x)$, where $R(x)$ is a polynomial of degree $2n+2 - 2n = 2$.
Since $q(x)$ is monic with degree $2n$, $x^{2n+2} - q(x)$ has leading coefficient 1. Also, the leading coefficient of $(x^2-1)(x^2-4)\cdots(x^2-n^2)$ is 1. Thus, $R(x)$ must be monic.
Let $R(x) = x^2 + bx + c$. Then we have $r(x) = x^{2n+2} - q(x) = (x^2-1)(x^2-4)\cdots(x^2-n^2)(x^2 + bx + c)$.
We are looking for values of $x$ such that $p\left(\frac{1}{x}\right) = x^2$, which is equivalent to $q(x) = x^{2n+2}$. This means we want to find the roots of $r(x) = 0$. We know that $r(x) = 0$ for $x = \pm k$ for $1 \leq k \leq n$. We are looking for the roots of $x^2 + bx + c = 0$.
Since $r(0) = (-1)^n(-1)(-4)\cdots(-n^2)c = (-1)^n (-1)^n (1)(4)\cdots(n^2)c = n!^2 c$, we have $r(0) = -q(0) = -1$. Thus $n!^2 c = -1$, so $c = -\frac{1}{n!^2}$.
Since the coefficients of $p(x)$ are real, the coefficients of $q(x)$ are real, and so the coefficients of $r(x)$ are real. Therefore, the coefficients of $R(x)$ are real. In particular, $b$ is real. The roots of $x^2+bx-\frac{1}{n!^2}=0$ are $x=\frac{-b \pm \sqrt{b^2+\frac{4}{n!^2}}}{2}$. Thus the roots are real if $b^2+\frac{4}{n!^2} \geq 0$, which is always true since $b$ is real.
The equation $p(\frac{1}{x}) = x^2$ implies $x^{2n} p(\frac{1}{x}) = x^{2n+2}$, so $q(x) = x^{2n+2}$, thus $x^{2n+2} - q(x) = 0$. We already know that $x=\pm k$, $1 \le k \le n$, are roots.
We have $r(x) = (x^2-1)\cdots(x^2-n^2)(x^2+bx-\frac{1}{n!^2})$.
Since $r(x)$ is an even function, $b=0$.
The other solutions are the roots of $x^2 - \frac{1}{n!^2} = 0$, so $x = \pm \frac{1}{n!}$.
Final Answer: The final answer is $\boxed{\pm \frac{1}{n!}}$
MCTS Generated Solution Trace
Problem
Let $n$ be an even positive integer. Let $p$ be a monic, real polynomial of degree $2n$; that is to say, $p(x) = x^{2n} + a_{2n-1}x^{2n-1} + \dots + a_1x + a_0$ for some real coefficients $a_0, \dots, a_{2n-1}$. Suppose that $p\left(\frac{1}{k}\right) = k^2$ for all integers $k$ such that $1 \leq |k| \leq n$. Find all other real numbers $x$ for which $p\left(\frac{1}{x}\right) = x^2$.
Solution
0.03125
Let $q(x) = p\left(\frac{1}{x}\right) - x^2$.
0.09375
Let $q(x) = p\left(\frac{1}{x}\right) - x^2$. Then $q(x)$ is a rational function of the form
0.28125
$ q(x) = \frac{1 + a_{2n-1}x + \dots + a_1 x^{2n-1} + a_0 x^{2n} - x^{2n+2}}{x^{2n}}. $
0.3125
We are given that $p(x)$ is a monic real polynomial of degree $2n$.
0.0625
$ q(x) = \frac{1 + a_{2n-1}x + \dots + a_1x^{2n-1} + a_0x^{2n} - x^{2n+2}}{x^{2n}}. $
0.25
$ q(x) = \frac{1 + a_{2n-1}x + \dots + a_1x^{2n-1} + a_0x^{2n} - x^{2n+2}}{x^{2n}} = \frac{r(x)}{x^{2n}}. $
0.15625
We are given that $p(x)$ is a monic real polynomial of degree $2n$.
0.0625
We are given that $p\left(\frac{1}{k}\right) = k^2$ for $1 \leq |k| \leq n$. This means $q(k) = 0$ for $1 \leq |k| \leq n$. Thus, $q(x)$ has roots $k$ where $1 \leq |k| \leq n$. This accounts for $2n$ roots.
0.25
Since $p(1/k) = k^2$ for $1 \le |k| \le n$, we have $q(k) = 0$ for $1 \le |k| \le n$.
0.21875
We are given that $p\left(\frac{1}{k}\right) = k^2$ for $1 \leq |k| \leq n$, which means $q(k) = p\left(\frac{1}{k}\right) - k^2 = 0$ for $1 \leq |k| \leq n$. Thus, $r(x)$ has roots at $x = k$ for $1 \leq |k| \leq n$. Since $r(x)$ is a polynomial of degree $2n+2$, we can write
0.25
We are given that $p\left(\frac{1}{k}\right) = k^2$ for $1 \leq |k| \leq n$, which means $q(k) = p\left(\frac{1}{k}\right) - k^2 = 0$ for $1 \leq |k| \leq n$. Thus, the integers $k = \pm 1, \pm 2, \ldots, \pm n$ are roots of the polynomial $r(x) = 1 + a_{2n-1}x + \cdots + a_1x^{2n-1} + a_0x^{2n} - x^{2n+2}$.
0.3125
Since $r(x)$ is a polynomial of degree $2n+2$, and we know $2n$ distinct roots, we can write
0.1875
Since $r(x)$ has degree $2n+2$ and has roots $\pm 1, \pm 2, \ldots, \pm n$, there are $2n$ such roots. Thus, we can write
0.375
Since $p\left(\frac{1}{k}\right) = k^2$ for $1 \leq |k| \leq n$, we have $q(k) = 0$ for $1 \leq |k| \leq n$. Thus, the numerator of $q(x)$, which we denote by $r(x)$, has roots $k$ where $1 \leq |k| \leq n$. Since $n$ is even, we have $2n$ such values of $k$. Also, since $p$ has real coefficients, if $k$ is a root, so is $-k$. Since $r(x)$ has degree $2n+2$, we can write
0.15625
Let $q(x) = x^{2n}p\left(\frac{1}{x}\right)$. Then $q(x) = 1 + a_{2n-1}x + a_{2n-2}x^2 + \dots + a_1x^{2n-1} + a_0x^{2n}$.
0.03125
Thus, $r(x)$ is a polynomial of degree $2n+2$ with roots $k$ for $1 \leq |k| \leq n$. Since there are $2n$ such values of $k$, we can write
0.3125
We are given that $p(x)$ is a monic real polynomial of degree $2n$.
0.0625
Since $p\left(\frac{1}{k}\right) = k^2$ for all integers $k$ such that $1 \leq |k| \leq n$, we have $q(k) = p\left(\frac{1}{k}\right) - k^2 = 0$ for $1 \leq |k| \leq n$.
0.34375
Thus, $q(x)$ has $2n$ distinct roots $k$ where $1 \le |k| \le n$.
0.15625
Thus, $q(x)$ has roots $k$ for $1 \leq |k| \leq n$. These are $2n$ distinct integer roots. Since the numerator of $q(x)$ has degree $2n+2$, we can write
0.34375
Thus, $q(x)$ has roots at $k = \pm 1, \pm 2, \ldots, \pm n$. These are $2n$ distinct roots.
0.375
Since $p(1/k) = k^2$ for $1 \leq |k| \leq n$, we have $q(k) = 0$ for $1 \leq |k| \leq n$.
0.28125
Thus, $q(x)$ has roots $k$ for $1 \leq |k| \leq n$. Since $n$ is an even integer, there are $2n$ such values of $k$. We can write
0.125
Continuing the solution:
0.40625
Since $p$ has degree $2n$, $p(1/x)$ has degree $2n$ in $\frac{1}{x}$, so when we consider $p(1/x) = x^2$, the numerator of $q(x)$ has degree $2n+2$. Thus, $q(x)$ has $2n$ zeros at $\pm 1, \pm 2, \dots, \pm n$.
0.40625
Let $r(x) = 1 + a_{2n-1}x + \dots + a_1 x^{2n-1} + a_0 x^{2n} - x^{2n+2}$.
0.34375
Let $r(x) = 1 + a_{2n-1}x + \dots + a_1 x^{2n-1} + a_0 x^{2n} - x^{2n+2}$.
0.375
$ q(x) = \frac{(x-1)(x+1) \dots (x-n)(x+n)(x-\alpha)(x-\beta)}{x^{2n}} $
0.1875
$ q(x) = \frac{1 + a_{2n-1}x + \dots + a_1 x^{2n-1} + a_0 x^{2n} - x^{2n+2}}{x^{2n}} = \frac{-x^{2n+2} + a_0 x^{2n} + \dots + a_{2n-1}x + 1}{x^{2n}}. $
0.375
Let $r(x) = 1 + a_{2n-1}x + \dots + a_1 x^{2n-1} + a_0 x^{2n} - x^{2n+2}$. Then the roots of $r(x)$ are precisely the roots of $q(x)$. Since $r(x)$ is a polynomial of degree $2n+2$, and we have found $2n$ distinct roots, we can write
0.40625
Since $q(x) = \frac{r(x)}{x^{2n}}$, the roots of $q(x)$ are the roots of $r(x)$. Thus, $r(x)$ has roots $k$ where $1 \le |k| \le n$.
0.28125
Let $r(x) = 1 + a_{2n-1}x + \dots + a_1 x^{2n-1} + a_0 x^{2n} - x^{2n+2}$. Then the roots of $q(x)$ are the roots of $r(x)$. Since $r(x)$ is a polynomial of degree $2n+2$, and we know $2n$ roots, we can write
0.5 Since $q(x)$ has the form $\frac{\text{polynomial of degree } 2n+2}{x^{2n}}$, the numerator of $q(x)$ must have degree $2n+2$.
0.375
$ r(x) = (x-1)(x+1)(x-2)(x+2)\cdots(x-n)(x+n)(Ax^2 + Bx + C) $
0.6875
$ r(x) = (x-1)(x+1)(x-2)(x+2)\cdots(x-n)(x+n)(cx^2+bx+a) = (x^2-1)(x^2-2^2)\cdots(x^2-n^2)(cx^2+bx+a). $
0.5
$ r(x) = (x-1)(x+1)(x-2)(x+2)\cdots(x-n)(x+n)(cx^2 + bx + a) = \prod_{k=1}^n (x^2-k^2) (cx^2+bx+a) $
0.5625
Since $r(0) = 1$, we must have $(-1)^n (n!)^2 C = 1$, so $C = \frac{1}{(n!)^2}$.
0.9375
Since $r(x) = 1 + a_{2n-1}x + \dots + a_0 x^{2n} - x^{2n+2}$, the coefficient of $x^{2n+2}$ is $-1$. Also, since $r(x) = \prod_{k=1}^n (x-k)(x+k) (Ax^2+Bx+C)$, the coefficient of $x^{2n+2}$ is $A$. Thus, $A = -1$.
0.6875
The coefficient of $x^{2n+2}$ in $r(x)$ is $-1$. Also, the coefficient of $x^{2n+2}$ in the expansion of $(x-1)(x+1)\cdots(x-n)(x+n)(Ax^2+Bx+C)$ is $A$. Thus, $A = -1$.
0.875
Since $r(x) = 1 + a_{2n-1}x + \dots + a_0 x^{2n} - x^{2n+2}$, the coefficient of $x^{2n+2}$ is $-1$.
0.53125
Continuing the solution:
0.6875
The constant term of $r(x)$ is $1$. The constant term of $\prod_{k=1}^n (x-k)(x+k)(-x^2+Bx+C)$ is $(-1)^n (n!)^2 C$. Therefore, $(-1)^n (n!)^2 C = 1$, so $C = \frac{1}{(-1)^n (n!)^2} = \frac{(-1)^n}{(n!)^2}$.
0.65625
The constant term of $r(x)$ is $1$. The constant term in $\prod_{k=1}^n (x-k)(x+k)(-x^2+Bx+C)$ is $(-1)^n (n!)^2 C$. So, $1 = (-1)^n (n!)^2 C$, which implies $C = \frac{(-1)^n}{(n!)^2}$.
0.5625
The constant term of $r(x)$ is $1$.
0.5 The coefficient of $x^{2n}$ in $r(x)$ is $a_0$. The coefficient of $x^{2n}$ in the factored form is $A - \sum_{k=1}^n k^2$. The coefficient of $x^{2n+1}$ in $r(x)$ is $a_1$, while in the factored form, the coefficient is $B$. The coefficient of $x^{2n+2}$ in $r(x)$ is $-1$, and in the factored form, it is $A$. Therefore, $A = -1$.
0.71875
Now, we examine the coefficient of $x^{2n+1}$. In $r(x) = 1 + a_{2n-1}x + \dots - x^{2n+2}$, the coefficient of $x^{2n+1}$ is zero.
1.0 We have $r(x) = \prod_{k=1}^n (x^2-k^2) (-x^2+Bx+C)$. Since $r(0) = 1$, we have $1 = \prod_{k=1}^n (-k^2) \cdot C$. Also, $C = \frac{(-1)^n}{(n!)^2}$.
0.5 We have $r(x) = \prod_{k=1}^n (x^2-k^2)(-x^2+Bx+C)$.
0.5 In the expansion of $\prod_{k=1}^n (x^2-k^2) (-x^2+Bx+C)$, the coefficient of $x^{2n+1}$ is $B \prod_{k=1}^n (-k^2) = B(-1)^n (n!)^2$. Since this must equal 0, we have $B=0$.
1.0 In the expansion of $\prod_{k=1}^n (x^2 - k^2)(-x^2 + Bx + C)$, the coefficient of $x^{2n+1}$ is $B \prod_{k=1}^n (-k^2) = B(-1)^n (n!)^2 = (-1)^n (n!)^2 B$. Since this must be zero, we must have $B = 0$.
1.0 So, we have $r(x) = \prod_{k=1}^n (x^2-k^2) (-x^2 + \frac{(-1)^n}{(n!)^2})$.
1.0 In the expression $r(x) = \prod_{k=1}^n (x^2 - k^2) (-x^2 + Bx + C)$, the coefficient of $x^{2n+1}$ is $B$. Thus, $B=0$.
0.96875
Since $n$ is even, let $n=2m$. The coefficient of $x^{2n+1}$ in $r(x)$ is $0$. Also, the coefficient of $x^{2n+1}$ in $\prod_{k=1}^{2m} (x-k)(x+k)(-x^2+Bx+C)$ is $B \prod_{k=1}^{2m} k^2 = B (n!)^2 = B((2m)!)^2$.
1.0 Since $n$ is even, let $n=2m$. Then the roots are $\pm 1, \pm 2, \ldots, \pm 2m$.
0.75
So, $1 = (-1)^n (n!)^2 C$. Since $C = \frac{(-1)^n}{(n!)^2}$, the equation holds. The coefficient of $x$ in $r(x)$ is $a_{2n-1}$. Since $r(x) = \prod_{k=1}^n (x^2 - k^2) (-x^2+Bx+C)$, the coefficient of $x$ is $C$ times the coefficient of $x$ in $\prod_{k=1}^n (x^2 - k^2)$, which is 0. Thus, the coefficient of $x$ in $r(x)$ is 0, so $a_{2n-1} = 0$.
0.71875
So, $B((2m)!)^2 = 0$, which implies $B=0$.
1.0 We also know that the coefficient of $x^{2n+1}$ in $r(x)$ is $0$. The coefficient of $x^{2n+1}$ in $\prod_{k=1}^n (x^2-k^2) (-x^2+Bx+C)$ is $B$. Thus $B=0$.
1.0 So, $B((2m)!)^2 = 0$, which implies $B=0$.
1.0 We have $r(x) = \prod_{k=1}^{n}(x^2-k^2)(-x^2+Bx+C)$.
0.84375
So we have $r(x) = \prod_{k=1}^n (x^2-k^2) (-x^2 + \frac{(-1)^n}{(n!)^2})$.
1.0 Thus, $B((2m)!)^2 = 0$, which means $B = 0$. Therefore,
1.0 Since $n$ is even, $C = \frac{1}{(n!)^2}$. Also, $A = -1$. So,
0.71875
The constant term of $r(x)$ is $1$. Also, the constant term is given by $\prod_{k=1}^n (-k)(k) \cdot C = (-1)^n (n!)^2 C$. Thus, $(-1)^n (n!)^2 C = 1$, which implies $C = \frac{1}{(-1)^n (n!)^2} = \frac{(-1)^n}{(n!)^2}$. Since $n$ is even, $C = \frac{1}{(n!)^2}$.
0.71875
So, we have $r(x) = \prod_{k=1}^n (x^2-k^2) (-x^2 + \frac{(-1)^n}{(n!)^2})$.
1.0 So we have $r(x) = \prod_{k=1}^{n} (x^2 - k^2)(-x^2 + \frac{(-1)^n}{(n!)^2})$.
1.0 So we have $r(x) = \prod_{k=1}^{n}(x^2-k^2)(-x^2 + \frac{(-1)^n}{(n!)^2})$.
0.96875
So, we have $r(x) = \prod_{k=1}^n (x^2 - k^2)(-x^2 + \frac{(-1)^n}{(n!)^2})$. Thus
1.0 We have $r(x) = \prod_{k=1}^n (x^2-k^2)(-x^2+Bx+C)$.
0.8125
So we have $r(x) = \prod_{k=1}^n (x^2-k^2) (-x^2 + \frac{(-1)^n}{(n!)^2})$.
1.0 Thus, we have $r(x) = \prod_{k=1}^n (x^2-k^2)(-x^2 + \frac{(-1)^n}{(n!)^2})$. Since $n$ is even, let $n=2m$.
1.0 We have $r(x) = \prod_{k=1}^n (x^2-k^2) (-x^2 + \frac{(-1)^n}{(n!)^2})$. The roots of $r(x)$ other than $\pm 1, \pm 2, ..., \pm n$ satisfy $-x^2 + \frac{(-1)^n}{(n!)^2} = 0$, so $x^2 = \frac{(-1)^n}{(n!)^2}$.
1.0
$ r(x) = \prod_{k=1}^n (x^2 - k^2) (-x^2 + \frac{1}{(n!)^2}) = -x^2 \prod_{k=1}^n (x^2 - k^2) + \frac{1}{(n!)^2} \prod_{k=1}^n (x^2 - k^2). $
1.0 So, $r(x) = \prod_{k=1}^n (x^2-k^2) (-x^2 + \frac{(-1)^n}{(n!)^2})$. We are looking for the roots of $r(x) = 0$, other than $\pm 1, \pm 2, \ldots, \pm n$. These must be the roots of $-x^2 + \frac{(-1)^n}{(n!)^2} = 0$, which gives us $x^2 = \frac{(-1)^n}{(n!)^2}$. Since $n$ is an even integer, we have $x^2 = \frac{1}{(n!)^2}$, so $\boxed{x = \pm \frac{1}{n!}}$.
1.0 Solution:
Let $q(x) = p\left(\frac{1}{x}\right) - x^2$. Then $q(x)$ is a rational function of the form
$ q(x) = \frac{1 + a_{2n-1}x + \dots + a_1 x^{2n-1} + a_0 x^{2n} - x^{2n+2}}{x^{2n}}. $
Since $p\left(\frac{1}{k}\right) = k^2$ for all integers $k$ such that $1 \leq |k| \leq n$, we have $q(k) = p\left(\frac{1}{k}\right) - k^2 = 0$ for $1 \leq |k| \leq n$.
Thus, $q(x)$ has roots at $k = \pm 1, \pm 2, \ldots, \pm n$. These are $2n$ distinct roots.
Let $r(x) = 1 + a_{2n-1}x + \dots + a_1 x^{2n-1} + a_0 x^{2n} - x^{2n+2}$. Then the roots of $r(x)$ are precisely the roots of $q(x)$. Since $r(x)$ is a polynomial of degree $2n+2$, and we have found $2n$ distinct roots, we can write
$ r(x) = (x-1)(x+1)(x-2)(x+2)\cdots(x-n)(x+n)(Ax^2 + Bx + C) $
Since $r(x) = 1 + a_{2n-1}x + \dots + a_0 x^{2n} - x^{2n+2}$, the coefficient of $x^{2n+2}$ is $-1$. Also, since $r(x) = \prod_{k=1}^n (x-k)(x+k) (Ax^2+Bx+C)$, the coefficient of $x^{2n+2}$ is $A$. Thus, $A = -1$.
The coefficient of $x^{2n+2}$ in $r(x)$ is $-1$. Also, the coefficient of $x^{2n+2}$ in the expansion of $(x-1)(x+1)\cdots(x-n)(x+n)(Ax^2+Bx+C)$ is $A$. Thus, $A = -1$.
The constant term of $r(x)$ is $1$. The constant term of $\prod_{k=1}^n (x-k)(x+k)(-x^2+Bx+C)$ is $(-1)^n (n!)^2 C$. Therefore, $(-1)^n (n!)^2 C = 1$, so $C = \frac{1}{(-1)^n (n!)^2} = \frac{(-1)^n}{(n!)^2}$.
We also know that the coefficient of $x^{2n+1}$ in $r(x)$ is $0$. The coefficient of $x^{2n+1}$ in $\prod_{k=1}^n (x^2-k^2) (-x^2+Bx+C)$ is $B$. Thus $B=0$.
So, $r(x) = \prod_{k=1}^n (x^2-k^2) (-x^2 + \frac{(-1)^n}{(n!)^2})$. We are looking for the roots of $r(x) = 0$, other than $\pm 1, \pm 2, \ldots, \pm n$. These must be the roots of $-x^2 + \frac{(-1)^n}{(n!)^2} = 0$, which gives us $x^2 = \frac{(-1)^n}{(n!)^2}$. Since $n$ is an even integer, we have $x^2 = \frac{1}{(n!)^2}$, so $x = \pm \frac{1}{n!}$.
DeepSeek R1 Solution Trace
Problem
Let $n$ be an even positive integer. Let $p$ be a monic, real polynomial of degree $2n$; that is to say, $p(x) = x^{2n} + a_{2n-1}x^{2n-1} + \cdots + a_1x + a_0$ for some real coefficients $a_0, \ldots, a_{2n-1}$. Suppose that $p\left(\frac{1}{k}\right) = k^2$ for all integers $k$ such that $1 \leq |k| \leq n$. Find all other real numbers $x$ for which $p\left(\frac{1}{x}\right) = x^2$.
Solution
So i have this problem here. let's see what it's about. we have an even positive integer $n$, and a monic real polynomial $p(x)$ of degree 2n, which means it looks like this:
$ p(x)=x^{2n}+a_{2n-1}x^{2n-1}+\cdot\cdot\cdot+a_{1}x+a_{0} $
for some real coefficients $a_{0}, a_{1}, ..., a_{2n-1}$
the condition given is that $p(\frac{1}{k})=k^{2}$ for all integers k such that $1\le|k|\le n.$ so, k takes integer values from -n to -1 and from 1 to n, excluding zero because $\frac{1}{k}$ would be undefined.
i need to find all other real numbers for which $p(\frac{1}{x})=x^{2}$
okay, so first, i need to understand what is being asked. we have a polynomial of degree 2n, and it satisfies the equation $p(\frac{1}{k})=k^{2}$ for these specific values of k. i need to find all real x (other than the ones already specified, i assume) that satisfy $p(\frac{1}{x})=x^{2}.$ one thing that comes to mind is that since $p(x)$ is a polynomial of degree 2n, and we have 2n conditions (because k ranges from -n to $n$, excluding zero, which gives 2n points), this should determine the polynomial uniquely. that is, there should be only one such polynomial $p(x)$ that satisfies these conditions.
but the question is not asking for $p(x);$ it's asking for all real numbers such that $p(\frac{1}{x})=x^{2}$ given that $p(\frac{1}{k})=k^2$ for those specific k.
so, perhaps i should consider the equation $p\left(\frac{1}{x}\right)-x^2=0$ and see for which real $x$ this holds, beyond the already given $x=k$ for $1\le|k|\le n.$
but wait, actually, in the given condition, it's $p\left(\frac{1}{k}\right)=k^2, $ which can be rewritten as $p\left(\frac{1}{k}\right)-\left(\frac{1}{k}\right)^{-2}=0, $ since $x^2=\left(\frac{1}{k}\right)^{-2}$ when $x=\frac{1}{k}.$ hmm, not sure if that helps directly.
$ p\left(\frac{1}{k}\right)-\left(\frac{1}{k}\right)^{-2}=0, $
let me try to think differently. since $p(x)$ is a polynomial of degree $2n, $ and i have $2n$ points where $p\left(\frac{1}{k}\right)=k^2, $ perhaps i can construct another polynomial that captures the difference between $p\left(\frac{1}{x}\right)$ and $x^2, $ and see its roots.
let's define a new function:
$ q(x)=p\left(\frac{1}{x}\right)-x^2 $
i need to find the real roots of $q(x), $ i.e., the real $x$ such that $q(x)=0.$
given that $p\left(\frac{1}{k}\right)=k^2$ for $1\le|k|\le n, $ that means that for each such $k, q(k)=p\left(\frac{1}{k}\right)-k^2=0.$ so, $k$ are roots of $q(x).$
but $q(x)$ is $p\left(\frac{1}{x}\right)-x^2, $ and $p(x)$ is a degree $2n$ polynomial, so $p\left(\frac{1}{x}\right)$ is a rational function, not a polynomial, unless we multiply by $x^{2n}$ to clear denominators.
wait, maybe i should consider multiplying $q(x)$ by $x^{2n}$ to make it a polynomial.
so, perhaps i should consider the equation $p\left(\frac{1}{x}\right)-x^2=0$ and see for which real $x$ this holds, beyond the already given $x=k$ for $1\le|k|\le n.$
but wait, actually, in the given condition, it's $p\left(\frac{1}{k}\right)=k^2, $ which can be rewritten as $p\left(\frac{1}{k}\right)-\left(\frac{1}{k}\right)^{-2}=0, $ since $x^2=\left(\frac{1}{k}\right)^{-2}$ when $x=\frac{1}{k}.$ hmm, not sure if that helps directly.
$ p\left(\frac{1}{k}\right)-\left(\frac{1}{k}\right)^{-2}=0, $
let me try to think differently. since $p(x)$ is a polynomial of degree $2n, $ and i have $2n$ points where $p\left(\frac{1}{k}\right)=k^2, $ perhaps i can construct another polynomial that captures the difference between $p\left(\frac{1}{x}\right)$ and $x^2, $ and see its roots.
let's define a new function:
$ q(x)=p\left(\frac{1}{x}\right)-x^2 $
i need to find the real roots of $q(x), $ i.e., the real $x$ such that $q(x)=0.$
given that $p\left(\frac{1}{k}\right)=k^2$ for $1\le|k|\le n, $ that means that for each such $k, q(k)=p\left(\frac{1}{k}\right)-k^2=0.$ so, $k$ are roots of $q(x).$
but $q(x)$ is $p\left(\frac{1}{x}\right)-x^2, $ and $p(x)$ is a degree $2n$ polynomial, so $p\left(\frac{1}{x}\right)$ is a rational function, not a polynomial, unless we multiply by $x^{2n}$ to clear denominators.
so, $x^{2n}q(x)=x^{2n}p\left(\frac{1}{x}\right)-x^{2n+2}=\left(1+a_{2n-1}x+\cdots+a_0x^{2n}\right)-x^{2n+2}$, which is a degree $2n+2$ polynomial if $x^{2n+2}$ is the highest degree term.
wait, but $x^{2n+2}$ is degree $2n+2$ and the other terms are up to degree $2n$, so yes, the highest degree is $2n+2$ .
now, the roots of $q(x)$ are the roots of $p\left(\frac{1}{x}\right)-x^2=0$, which are the $x$ for which $p\left(\frac{1}{x}\right)=x^2$ . we know that for $x=k$ where $1\le|k|\le n$, this holds, so these $x$ are roots of $q(x)$ .
but $q(x)$ is a rational function, while $x^{2n}q(x)$ is a polynomial of degree $2n+2$, which has roots at $x=k$ for $1\le$ $|k|\le n$, assuming that $x^{2n}q(x)$ has these roots.
wait, actually, since $q(k)=0$, then $x^{2n}q(x)$ would have roots at $x=k$, but $x^{2n}q(x)$ is a polynomial of degree $2n+2$, so it should have $2n+2$ roots (counting multiplicities) in the complex plane, but we are interested in real roots.
but perhaps there is a better approach.
let me consider defining a new polynomial that incorporates the given conditions.
given that $p\left(\frac{1}{k}\right)=k^2$ for $1\le|k|\le n$, and $p(x)$ is a monic polynomial of degree $2n$, perhaps i can express $p(x)-\frac{1}{x^2}$ in terms of its roots.
wait, but $p(x)$ is defined for all real $x$, and $\frac{1}{x^2}$ is also defined for $x\ne 0$ .
alternatively, maybe i can consider the function $p(x)-\frac{1}{x^2}$, but i'm not sure if that helps directly.
let me try to rearrange the given condition.
given $p\left(\frac{1}{k}\right)=k^2, $ i can write:
$ p\left(\frac{1}{k}\right)-k^2=0 $
for $k=\pm 1, \pm 2, \ldots, \pm n.$ so, there are $2n$ such equations.
since $p(x)$ is a monic polynomial of degree $2n$, these $2n$ equations should determine $p(x)$ uniquely.
but i need to find $x$ such that $p\left(\frac{1}{x}\right)=x^2, $ which is similar to the condition given, but for arbitrary real $x$, not just integer $k$ .
so, perhaps i can consider the equation $p\left(\frac{1}{x}\right)-x^2=0, $ and find its real roots, given that it already has roots at $x=k$ for $1\le|k|\le n$ .
but to find the other roots, i need to know more about this equation.
alternatively, maybe i can consider the polynomial $q(x)=p(x)-\frac{1}{x^2}$, but again, that seems messy because of the $\frac{1}{x^2}$ term.
wait, perhaps i should consider multiplying both sides of the equation by $x^2$ to eliminate the denominator.
so, starting from $p\left(\frac{1}{x}\right)=x^2, $ multiply both sides by $x^2:$
$ x^2p\left(\frac{1}{x}\right)=x^4 $
now, $x^2p\left(\frac{1}{x}\right)$ can be expressed in terms of $p(x), $ but i'm not sure.
alternatively, since $p(x)$ is a polynomial, $p\left(\frac{1}{x}\right)$ is a rational function, and multiplying by $x^{2n}$ gives a polynomial.
let me consider that again.
define $q(x)=x^{2n}p\left(\frac{1}{x}\right)-x^{2n+2}, $ which is a polynomial of degree $2n+2, $ as previously established.
we know that $q(k)=0$ for $k=\pm 1, \pm 2, \ldots, \pm n, $ because $p\left(\frac{1}{k}\right)=k^2, $ so $q(k)=k^{2n}p\left(\frac{1}{k}\right)-k^{2n+2}=k^{2n}\cdot k^2-k^{2n+2}=k^{2n+2}-k^{2n+2}=0.$
therefore, $q(x)$ has $2n$ roots at $x=\pm 1, \pm 2, \ldots, \pm n.$
since $q(x)$ is a degree $2n+2$ polynomial, there are two more roots beyond these $2n$ roots.
so, $q(x)$ can be factored as:
$ q(x)=(x^2-1)(x^2-4)\cdots(x^2-n^2)\cdot(x^2-a) $
for some constant $a, $ because the roots come in pairs $x=k$ and $x=-k, $ and possibly another pair $x=\sqrt{a}$ and $x=-\sqrt{a}.$
wait, but $q(x)$ is degree $2n+2, $ and $(x^2-k^2)$ for $k=1$ to $n$ gives $n$ quadratic factors, which is degree $2n$ . so, there are two more roots to account for.
alternatively, perhaps $q(x)=(x^2-1)(x^2-4)\cdots(x^2-n^2)\cdot(x^2-a)(x^2-b), $ where $a$ and $b$ are the remaining roots.
but, to determine $a$ and $b$, i need more information about $q(x)$ .
alternatively, perhaps i can look at the leading coefficient.
since $q(x)=x^{2n}p\left(\frac{1}{x}\right)-x^{2n+2}, $ and $p\left(\frac{1}{x}\right)=x^{-2n}+a_{2n-1}x^{-2n+1}+\cdots+a_0, $ then $x^{2n}p\left(\frac{1}{x}\right)=1+a_{2n-1}x+\cdots+a_0x^{2n}, $ so $q(x)=1+a_{2n-1}x+\cdots+a_0x^{2n}-x^{2n+2}$ .
the leading term is $-x^{2n+2}+a_0x^{2n}$ but since $p(x)$ is monic, $a_0$ is just a constant.
wait, perhaps there's a better approach. maybe i can consider the reciprocal polynomial or something like that.
alternatively, since $p(x)$ is a polynomial of degree $2n, $ and i have $p\left(\frac{1}{k}\right)=k^2$ for $k=\pm 1, \pm 2, \ldots, \pm n, $ perhaps i can consider defining a new polynomial that has roots at $x=\frac{1}{k}, $ but that seems off-track.
let me try to think about the problem differently.
suppose i define a new variable $y=\frac{1}{x}, $ then, the equation $p\left(\frac{1}{x}\right)=x^2$ becomes $p(y)=\left(\frac{1}{y}\right)^2=\frac{1}{y^2}, $ assuming $y\ne 0.$
so, $p(y)=\frac{1}{y^2}, $ or $p(y)y^2=1.$
so, $p(y)y^2-1=0.$
now, $p(y)y^2-1$ is a polynomial of degree $2n+2,$ since $p(y)$ is degree $2n$ and multiplied by $y^2.$
given that $p\left(\frac{1}{k}\right)=k^2,$ for $k=\pm 1, \pm 2, \ldots, \pm n,$ that means $p(y)=\frac{1}{y^2}$ at $y=\frac{1}{k},$ so $p(y)y^2-1=0$ at $y=\frac{1}{k}.$
therefore, $y=\frac{1}{k}$ for $k=\pm 1, \pm 2, \ldots, \pm n$ are roots of $p(y)y^2-1=0.$
but $p(y)y^2-1$ is a degree $2n+2$ polynomial, so there are $2n+2$ roots in total (counting multiplicities).
we already have $2n$ roots at $y=\frac{1}{k}$ for $k=\pm 1, \pm 2, \ldots, \pm n,$ so there are two more roots that i need to find.
let me denote these additional roots as $y=\alpha$ and $y=\beta,$ so:
$ p(y)y^2-1=\left(y-\frac{1}{1}\right)\left(y+\frac{1}{1}\right)\cdots\left(y-\frac{1}{n}\right)\left(y+\frac{1}{n}\right)(y-\alpha)(y-\beta) $
but since $p(y)y^2-1$ is a polynomial of degree $2n+2,$ and we have $2n$ roots from $y=\pm\frac{1}{k},$ there must be two more roots, say $y=\alpha$ and $y=\beta.$
now, to find $\alpha$ and $\beta,$ perhaps i can look at the behavior of $p(y)y^2-1$ as $y$ approaches infinity.
the leading term of $p(y)y^2$ is $y^{2n}\cdot y^2=y^{2n+2},$ and the constant term is $-1$, so as $y\to\infty,$ $p(y)y^2-1\approx y^{2n+2}$, which goes to infinity.
similarly, as $y\to 0,$ $p(y)y^2-1\approx a_0y^2-1,$ which approaches $-1.$
but i'm not sure if that helps directly.
alternatively, perhaps i can consider that $p(y)y^2-1$ has a double root at $y=0,$ but that seems unlikely.
wait, let's consider the multiplicity of roots.
given that $p(y)y^2-1=0$ has roots at $y=\pm\frac{1}{k}$ for $k=1$ to $n$, and two additional roots $y=\alpha$ and $y=\beta,$ i need to determine what $\alpha$ and $\beta$ are.
alternatively, perhaps i can consider expressing $p(y)y^2-1$ in terms of its roots.
but that seems complicated.
maybe there's a better way to approach this problem.
let me try to consider the function $p\left(\frac{1}{x}\right)-x^2$ and see if i can find a relationship between $x$ and $\frac{1}{x}.$
alternatively, perhaps i can consider substituting $x=\frac{1}{k}$ into the equation $p\left(\frac{1}{x}\right)=x^2,$ but that seems to just give back the original condition.
wait, perhaps i can consider the fact that $p(x)$ is a polynomial, and consider its reciprocal polynomial.
the reciprocal polynomial of $p(x)$ is $x^{2n}p\left(\frac{1}{x}\right),$ which is indeed a polynomial, as we've seen earlier.
let me denote this reciprocal polynomial as $r(x)=x^{2n}p\left(\frac{1}{x}\right),$ which is a degree $2n$ polynomial.
but earlier, i had $q(x)=p\left(\frac{1}{x}\right)-x^2,$ and $x^{2n}q(x)=r(x)-x^{2n+2},$ which is a degree $2n+2$ polynomial.
but perhaps focusing on $r(x)$ directly might help.
given that $p\left(\frac{1}{k}\right)=k^2,$ then $r(k)=k^{2n}p\left(\frac{1}{k}\right)=k^{2n}\cdot k^2=k^{2n+2}.$
wait, but earlier i had $q(k)=0,$ which led to $r(k)-k^{2n+2}=0,$ so $r(k)=k^{2n+2}.$
therefore, $r(k)-k^{2n+2}=0,$ meaning that $r(x)-x^{2n+2}$ has roots at $x=k$ for $k=\pm 1, \pm 2, \ldots, \pm n.$
but $r(x)$ is a degree $2n$ polynomial, and $x^{2n+2}$ is a monomial of degree $2n+2,$ so $r(x)-x^{2n+2}$ is a degree $2n+2$ polynomial with $2n$ roots at $x=\pm 1, \pm 2, \ldots, \pm n,$ and two additional roots.
wait, but $r(x)$ is degree $2n,$ and $x^{2n+2}$ is degree $2n+2,$ so their difference is degree $2n+2,$ as previously established.
but if $r(x)-x^{2n+2}$ has $2n$ roots at $x=\pm 1, \pm 2, \ldots, \pm n,$ and it's a degree $2n+2$ polynomial, then there are two more roots.
now, perhaps i can factor $r(x)-x^{2n+2}$ as:
$ r(x)-x^{2n+2}=(x^2-1)(x^2-4)\cdots(x^2-n^2)\cdot(x^2-a) $
for some constant $a,$ since the roots come in pairs $x=\pm k$ for $k=1$ to $n,$ and possibly another pair $x=\pm\sqrt{a}.$
but i need to find $a$.
alternatively, perhaps i can look at the behavior of $r(x)-x^{2n+2}$ at specific points to determine $a$.
but this seems complicated. maybe there's a different approach.
let me consider that $p(x)$ is a monic polynomial of degree $2n,$ and $p\left(\frac{1}{k}\right)=k^2$ for $k=\pm 1, \pm 2, \ldots, \pm n.$
perhaps i can consider the polynomial $p(x)-\frac{1}{x^2},$ but as before, that introduces a rational function.
alternatively, maybe i can consider building $p(x)$ explicitly.
since $p(x)$ is monic of degree $2n,$ and it satisfies $p\left(\frac{1}{k}\right)=k^2$ for $k=\pm 1, \pm 2, \ldots, \pm n,$ perhaps i can write $p(x)$ in terms of these roots.
wait, but $p\left(\frac{1}{k}\right)=k^2,$ which is like saying $p\left(\frac{1}{k}\right)-k^2=0,$ meaning that $\frac{1}{k}$ are roots of the equation $p(x)-\frac{1}{x^2}=0,$ but again, that's a rational function.
alternatively, perhaps i can consider that $p(x)-\frac{1}{x^2}$ has roots at $x=\frac{1}{k}$ for $k=\pm 1, \pm 2, \ldots, \pm n,$ and try to factor it accordingly.
but this seems tricky because of the $\frac{1}{x^2}$ term.
maybe a better approach is to consider the polynomial $x^2p(x)-1,$ which is a degree $2n+2$ polynomial.
given that $p\left(\frac{1}{k}\right)=k^2,$ then $x^2p(x)-1$ evaluated at $x=\frac{1}{k}$ gives $\left(\frac{1}{k}\right)^2p\left(\frac{1}{k}\right)-1=\frac{1}{k^2}\cdot k^2-1=1-1=0,$ so $x=\frac{1}{k}$ are roots of $x^2p(x)-1=0.$
therefore, $x^2p(x)-1$ is a degree $2n+2$ polynomial with roots at $x=\pm\frac{1}{1}, \pm\frac{1}{2}, \ldots, \pm\frac{1}{n},$ and possibly two more roots.
wait, but $x^2p(x)-1$ is a polynomial, and its roots are the solutions to $x^2p(x)=1,$ which is similar to the original equation $p\left(\frac{1}{x}\right)=x^2.$
so, perhaps i can consider the roots of $x^2p(x)-1=0,$ which are the same as the solutions to $p\left(\frac{1}{x}\right)=x^2$ due to the substitution $y=\frac{1}{x}.$
therefore, finding the roots of $x^2p(x)-1=0$ is equivalent to finding $x$ such that $p\left(\frac{1}{x}\right)=x^2.$
given that, and knowing that $p(x)$ is a monic polynomial of degree $2n,$ and that $p\left(\frac{1}{k}\right)=k^2$ for $k=\pm 1, \pm 2, \ldots, \pm n,$ perhaps i can find a relationship between $p(x)$ and these roots.
alternatively, perhaps i can consider the lagrange interpolation formula for $p(x),$ given its values at specific points.
since $p(x)$ is a monic polynomial of degree $2n,$ and i have its values at $2n$ points, i can indeed find $p(x)$ explicitly using interpolation, but that seems complicated for this problem.
moreover, the problem is not asking for $p(x),$ but for the real numbers $x$ that satisfy $p\left(\frac{1}{x}\right)=x^2,$ beyond the given $x=k$ for $k=\pm 1, \pm 2, \ldots, \pm n.$
so, perhaps there is a symmetry or a particular property of $p(x)$ that i can exploit.
wait, perhaps i can consider that $p(x)$ and $p\left(\frac{1}{x}\right)$ are related in a specific way.
given that $p(x)$ is a polynomial, $p\left(\frac{1}{x}\right)$ is a rational function, and multiplying by $x^{2n}$ gives a polynomial.
alternatively, perhaps there is a functional equation that $p(x)$ satisfies.
let me consider writing $p(x)$ in terms of its roots.
but $p(x)$ is a monic polynomial of degree $2n$, so it can be written as:
$ p(x)=(x-r_1)(x-r_2)\cdots(x-r_{2n}) $
for some roots $r_1, r_2, \ldots, r_{2n}.$
but i don't know these roots, so that might not help directly.
alternatively, perhaps i can consider the fact that $p(x)$ has certain symmetries given the condition $p\left(\frac{1}{k}\right)=k^2.$
wait, maybe i can consider the function $p(x)-\frac{1}{x^2},$ but again, that introduces a rational function.
alternatively, perhaps i can consider the derivative of $p(x),$ but i don't see an immediate connection.
let me try to think differently.
suppose i define a new function $f(x)=p\left(\frac{1}{x}\right)-x^2,$ as i did earlier.
then, $f(x)=0$ for $x=\pm 1, \pm 2, \ldots, \pm n,$ as given.
i need to find all real $x$ such that $f(x)=0,$ beyond these known roots.
now, $f(x)$ is a rational function, but $x^{2n}f(x)$ is a polynomial of degree $2n+2,$ as established earlier.
therefore, $x^{2n}f(x)=0$ has roots at $x=\pm 1, \pm 2, \ldots, \pm n,$ and possibly two more roots.
so, if i can find this polynomial $x^{2n}f(x),$ i can factor it and find the additional roots.
but to find $x^{2n}f(x),$ i need to know more about $p(x),$ which i don't.
alternatively, perhaps i can consider the behavior of $f(x)$ as $x$ approaches infinity or zero.
as $x\to\infty,$ $p\left(\frac{1}{x}\right)$ behaves like $\left(\frac{1}{x}\right)^{2n},$ which approaches 0, while $x^2$ approaches infinity, so $f(x)\to-\infty.$
as $x\to 0,$ $p\left(\frac{1}{x}\right)$ behaves like $\left(\frac{1}{x}\right)^{2n},$ which goes to infinity, while $x^2$ approaches 0, so $f(x)\to\infty.$
this suggests that there are additional roots beyond the given $x=\pm 1, \pm 2, \ldots, \pm n,$ possibly at infinity or near zero, but i need to find them explicitly.
wait, perhaps there's a smarter way to approach this.
given that $p(x)$ is a monic polynomial of degree $2n,$ and it satisfies $p\left(\frac{1}{k}\right)=k^2$ for $k=\pm 1, \pm 2, \ldots, \pm n,$ perhaps i can consider the minimal polynomial that satisfies these conditions.
alternatively, maybe i can consider that $p(x)$ can be expressed in terms of a product involving these roots.
wait, perhaps i can consider that $p(x)-\frac{1}{x^2}$ has roots at $x=\pm\frac{1}{1}, \pm\frac{1}{2}, \ldots, \pm\frac{1}{n},$ but again, that introduces a rational function.
alternatively, perhaps i can consider that $x^2p(x)-1$ has roots at $x=\pm\frac{1}{1}, \pm\frac{1}{2}, \ldots, \pm\frac{1}{n},$ as previously established, and try to find a general form for this polynomial.
let me consider that $x^2p(x)-1$ is a degree $2n+2$ polynomial with roots at $x=\pm\frac{1}{1}, \pm\frac{1}{2}, \ldots, \pm\frac{1}{n},$ and two additional roots.
given that, perhaps i can express $x^2p(x)-1$ as:
$ x^2p(x)-1=\prod_{k=1}^n\left(x^2-\frac{1}{k^2}\right)\cdot(x^2-a) $
for some constant $a, $ since the roots come in pairs $x=\pm\frac{1}{k}$ and possibly $x=\pm\sqrt{a}.$
but i need to determine $a.$
alternatively, perhaps i can consider that the product $\prod_{k=1}^n\left(x^2-\frac{1}{k^2}\right)$ is a degree $2n$ polynomial, and $x^2p(x)-1$ is degree $2n+2, $ so there are two more roots.
but without knowing more about $p(x), $ it's hard to pin down $a.$
wait, perhaps i can consider the behavior at $x=0.$
at $x=0, $ $x^2p(x)-1=-1, $ so $x=0$ is not a root.
similarly, as $x\to\infty, $ $x^2p(x)-1$ behaves like $x^{2n+2}, $ which goes to infinity.
but i still don't see how to find $a.$
alternatively, perhaps i can consider the value of $x^2p(x)-1$ at a specific point, say $x=1, $ but that's already a root.
wait, perhaps i can consider $x=\infty, $ but that's not helpful.
alternatively, perhaps i can consider that $p(x)$ is determined by its values at $2n$ points, so i can use interpolation to find $p(x), $ but that seems too involved for this problem.
alternatively, perhaps there's a symmetry in the equation that i can exploit.
given that $p(x)$ is a polynomial of even degree $2n, $ and the conditions are given for $k=\pm 1, \pm 2, \ldots, \pm n, $ perhaps $p(x)$ has some symmetry properties.
for example, maybe $p(x)$ is an even function, but i don't know that for sure.
wait, let's check: if $p(x)$ were even, then $p(-x)=p(x), $ but the conditions are given for both positive and negative $k, $ so perhaps that's a clue.
given that $p\left(\frac{1}{k}\right)=k^2$ for both $k$ and $-k, $ and $k^2$ is the same for both, it suggests that $p(x)$ might be even, but i need to confirm.
however, $p(x)$ is a general monic polynomial of degree $2n, $ and its coefficients could make it even or not.
but in this case, since $p\left(\frac{1}{k}\right)=p\left(\frac{1}{-k}\right)=k^2, $ which is the same, it suggests that $p\left(\frac{1}{x}\right)$ is even in $x, $ but $p(x)$ itself doesn't have to be even.
alternatively, perhaps i can consider that $p(x)$ has a reciprocal property, given the conditions involving $\frac{1}{k}.$
wait, perhaps i should consider the reciprocal polynomial of $p(x), $ which is $x^{2n}p\left(\frac{1}{x}\right)$ as before.
let me denote this as $r(x)=x^{2n}p\left(\frac{1}{x}\right), $ which is a degree $2n$ polynomial.
given that, and knowing that $p\left(\frac{1}{k}\right)=k^2, $ then $r(k)=k^{2n}p\left(\frac{1}{k}\right)=k^{2n}\cdot k^2=k^{2n+2}.$
therefore, $r(k)=k^{2n+2}$ for $k=\pm 1, \pm 2, \ldots, \pm n.$
now, since $r(x)$ is a degree $2n$ polynomial, and it equals $x^{2n+2}$ at $2n$ points, which is more points than the degree, unless there's some dependency.
wait, but $r(x)$ is degree $2n, $ and $x^{2n+2}$ is degree $2n+2, $ so they can't be equal at more points than their degree difference unless they are the same polynomial, which they aren't.
this suggests that my earlier assumption is incorrect, or perhaps i need to consider that $r(x)-x^{2n+2}$ is a polynomial of degree $2n+2, $ but that seems inconsistent because $r(x)$ is degree 2n and $x^{2n+2}$ is degree $2n+2, $ so their difference should be degree $2n+2.$
wait, perhaps i should correct that.
given $r(x)=x^{2n}p\left(\frac{1}{x}\right), $ which is degree $2n, $ and $x^{2n+2}$ is degree $2n+2, $ their difference $r(x)-x^{2n+2}$ is degree $2n+2, $ as the highest degree term comes from $-x^{2n+2}.$
given that $r(k)=k^{2n+2}$ for $k=\pm 1, \pm 2, \ldots, \pm n, $ then $r(x)-x^{2n+2}=0$ at these points.
therefore, $r(x)-x^{2n+2}$ has $2n$ roots at $x=\pm 1, \pm 2, \ldots, \pm n, $ and since it's degree $2n+2, $ there are two more roots.
now, perhaps i can factor $r(x)-x^{2n+2}$ as:
$ r(x)-x^{2n+2}=(x^2-1)(x^2-4)\cdots(x^2-n^2)\cdot(x^2-a) $
for some constant $a, $ since the roots come in pairs $x=\pm k, $ and possibly another pair $x=\pm\sqrt{a}.$
now, to find $a, $ perhaps i can consider the behavior at infinity or use the fact that the leading coefficients must match.
given that $r(x)=x^{2n}p\left(\frac{1}{x}\right)$ and $p(x)$ is monic of degree $2n, $ the leading term of $p(x)$ is $x^{2n}, $ so $p\left(\frac{1}{x}\right)=$ $x^{-2n}+\cdots, $ and thus $r(x)=x^{2n}\cdot x^{-2n}+\cdots=1+\cdots, $ so the leading term of $r(x)$ is 1.
on the other hand, $x^{2n+2}$ has leading term $x^{2n+2}, $ so $r(x)-x^{2n+2}$ has leading term $-x^{2n+2}.$
now, the right-hand side, $(x^2-1)(x^2-4)\cdots(x^2-n^2)(x^2-a), $ expands to $x^{2n+2}-(1+4+\cdots+n^2+$ $a)x^{2n}+\cdots.$
wait, actually, the product $(x^2-1)(x^2-4)\cdots(x^2-n^2)(x^2-a)$ would have leading term $x^{2n+2}, $ and the coefficient of $x^{2n}$ would be $-(1+4+\cdots+n^2+a).$
but $r(x)-x^{2n+2}$ has leading term $-x^{2n+2}, $ and the coefficient of $x^{2n}$ would be something else, depending on
on the other hand, $x^{2n+2}$ has leading term $x^{2n+2}, $ so $r(x)-x^{2n+2}$ has leading term $-x^{2n+2}.$
now, the right-hand side, $(x^2-1)(x^2-4)\cdots(x^2-n^2)(x^2-a), $ expands to $x^{2n+2}-(1+4+\cdots+n^2+$ $a)x^{2n}+\cdots.$
wait, actually, the product $(x^2-1)(x^2-4)\cdots(x^2-n^2)(x^2-a)$ would have leading term $x^{2n+2}, $ and the coefficient of $x^{2n}$ would be $-(1+4+\cdots+n^2+a).$
but $r(x)-x^{2n+2}$ has leading term $-x^{2n+2}, $ and the coefficient of $x^{2n}$ would be something else, depending on the expansion of $r(x).$
therefore, to match the leading coefficients, i must have:
$ -x^{2n+2}=x^{2n+2}-(1+4+\cdots+n^2+a)x^{2n}+\cdots $
this implies that:
$ -x^{2n+2}=x^{2n+2}-(1+4+\cdots+n^2+a)x^{2n}+\cdots $
comparing coefficients, the coefficient of $x^{2n+2}$ on the left is $-1, $ and on the right is 1. this suggests that there's an inconsistency unless i made a mistake in my earlier steps.
wait, perhaps i need to reconsider the factorization.
given that $r(x)-x^{2n+2}=(x^2-1)(x^2-4)\cdots(x^2-n^2)(x^2-a), $ and the leading term on the left is $-x^{2n+2}, $ while on the right, it's $x^{2n+2}, $ this suggests that there is a sign discrepancy.
therefore, perhaps the correct factorization should include a negative sign:
$ r(x)-x^{2n+2}=-(x^2-1)(x^2-4)\cdots(x^2-n^2)(x^2-a) $
this way, the leading coefficient matches: $-x^{2n+2}=-x^{2n+2}.$
now, to find $a, $ perhaps i can consider the constant term.
the constant term of $r(x)-x^{2n+2}$ is $r(0)-0=r(0).$
but $r(x)=x^{2n}p\left(\frac{1}{x}\right),$ so $r(0)=\lim_{x\to 0}x^{2n}p\left(\frac{1}{x}\right).$
but $p\left(\frac{1}{x}\right)$ behaves like $\left(\frac{1}{x}\right)^{2n}$ as $x\to 0,$ so $x^{2n}\cdot\left(\frac{1}{x}\right)^{2n}=1,$ so $r(0)=1.$
on the other hand, the constant term of $-(x^2-1)(x^2-4)\cdots(x^2-n^2)(x^2-a)$ is $-(-1)^n\cdot 1\cdot 4\cdot 9\cdots n^2\cdot a.$
wait, actually, expanding the product:
$(x^2-1)(x^2-4)\cdots(x^2-n^2)(x^2-a)=x^{2n+2}-(1+4+\cdots+n^2+a)x^{2n}+\cdots+(-1)^{n+1}(1\cdot 4\cdot 9\cdots n^2\cdot a)$ therefore, the constant term is $(-1)^{n+1}(1\cdot 4\cdot 9\cdots n^2\cdot a).$
but since $r(x)-x^{2n+2}$ has constant term $r(0)=1,$ and the right-hand side has constant term $-(-1)^{n+1}(1\cdot 4\cdot 9\cdots n^2\cdot a)=(-1)^n(1\cdot 4\cdot 9\cdots n^2\cdot a),$ we have:
$ (-1)^n(1\cdot 4\cdot 9\cdots n^2\cdot a)=1 $
therefore:
$ a=\frac{1}{(-1)^n(1\cdot 4\cdot 9\cdots n^2)} $
but $1\cdot 4\cdot 9\cdots n^2=(n!)^2,$ since $1=1^2, 4=2^2, 9=3^2,$ etc., up to $n^2.$
therefore:
$ a=\frac{1}{(-1)^n(n!)^2} $
but since $a$ is a real number, and $n$ is even (as given in the problem), because $n$ is an even positive integer, $(-1)^n=1,$ so:
$ a=\frac{1}{(n!)^2} $
therefore, the factorization is:
$ r(x)-x^{2n+2}=-\left(x^2-1\right)\left(x^2-4\right)\cdots\left(x^2-n^2\right)\left(x^2-\frac{1}{(n!)^2}\right) $
now, since $r(x)=x^{2n}p\left(\frac{1}{x}\right),$ and $r(x)-x^{2n+2}=0$ when $p\left(\frac{1}{x}\right)=x^2,$ the roots of this equation are $x= \pm 1, \pm 2, \ldots, \pm n, \pm\frac{1}{n!}.$
wait, no. actually, from the factorization, the roots are $x=\pm 1, \pm 2, \ldots, \pm n, \pm\frac{1}{n!}$ because $x^2-\frac{1}{(n!)^2}=0$ gives
$ x=\pm\frac{1}{n!}. $
therefore, the solutions to $p\left(\frac{1}{x}\right)=x^2$ are $x=\pm 1, \pm 2, \ldots, \pm n, \pm\frac{1}{n!}.$
but the problem states that $p\left(\frac{1}{k}\right)=k^2$ for $1\le|k|\le n,$ so these $x=\pm 1, \pm 2, \ldots, \pm n$ are already known solutions.
therefore, the "other real numbers" $x$ that satisfy $p\left(\frac{1}{x}\right)=x^2$ are $x=\pm\frac{1}{n!}.$
wait, but in the factorization, i have
$ x^2-\frac{1}{(n!)^2}, $
which gives $x=\pm\frac{1}{n!},$ assuming that's correct.
but i need to verify this conclusion.
given that $a=\frac{1}{(n!)^2}$ and the factorization is
$ r(x)-x^{2n+2}=-\left(x^2-1\right)\left(x^2-4\right)\cdots\left(x^2-n^2\right)\left(x^2-\frac{1}{(n!)^2}\right), $
then indeed, the roots are $x=\pm 1, \pm 2, \ldots, \pm n, \pm\frac{1}{n!}.$
therefore, the additional solutions beyond $x=\pm 1, \pm 2, \ldots, \pm n$ are
$ x=\pm\frac{1}{n!}. $
but wait, is $n!$ correct here? let me double-check the calculation of $a.$
earlier, i had:
$ a=\frac{1}{(-1)^n(1\cdot 4\cdot 9\cdots n^2)}=\frac{1}{(n!)^2} $
since $n$ is even, $(-1)^n=1, $ so indeed, $a=\frac{1}{(n!)^2}.$
therefore, the additional roots are $x=\pm\frac{1}{n!}.$
hence, the other real numbers $x$ that satisfy $p\left(\frac{1}{x}\right)=x^2$ are $x=\pm\frac{1}{n!}.$
final answer
$ x=\pm\frac{1}{n!} $
[1] Jeffrey L Elman. Finding structure in time. Cognitive science, 14(2):179–211, 1990.
[2] Michael I Jordan. Serial order: A parallel distributed processing approach. In Advances in psychology, volume 121, pp.\ 471–495. Elsevier, 1997.
[3] Ray J Solomonoff. A formal theory of inductive inference. part i. Information and control, 7(1):1–22, 1964.
[4] William Merrill and Ashish Sabharwal. The expresssive power of transformers with chain of thought. arXiv preprint arXiv:2310.07923, 2023.
[5] Ben Prystawski, Michael Li, and Noah Goodman. Why think step by step? reasoning emerges from the locality of experience. Advances in Neural Information Processing Systems, 36, 2024.
[6] Tian Ye, Zicheng Xu, Yuanzhi Li, and Zeyuan Allen-Zhu. Physics of language models: Part 2.1, grade-school math and the hidden reasoning process, 2024a. URL https://arxiv.org/abs/2407.20311.
[7] Subhabrata Dutta, Joykirat Singh, Soumen Chakrabarti, and Tanmoy Chakraborty. How to think step-by-step: A mechanistic understanding of chain-of-thought reasoning. ArXiv, abs/2402.18312, 2024. URL https://api.semanticscholar.org/CorpusID:268041831.
[8] Franz Nowak, Anej Svete, Alexandra Butoi, and Ryan Cotterell. On the representational capacity of neural language models with chain-of-thought reasoning. arXiv preprint arXiv:2406.14197, 2024.
[9] Zhiyuan Li, Hong Liu, Denny Zhou, and Tengyu Ma. Chain of thought empowers transformers to solve inherently serial problems, 2024. URL https://arxiv.org/abs/2402.12875.
[10] Charlie Snell, Jaehoon Lee, Kelvin Xu, and Aviral Kumar. Scaling llm test-time compute optimally can be more effective than scaling model parameters, 2024. URL https://arxiv.org/abs/2408.03314.
[11] OpenAI. Learning to reason with llms. https://openai.com/index/learning-to-reason-with-llms/, 2024. Accessed: 2024-12-20.
[12] DeepSeek. Deepseek-r1-lite-preview is now live: unleashing supercharged reasoning power!, 11 2024. URL https://x.com/deepseek_ai/status/1859200141355536422. Posted on X (formerly Twitter).
[13] Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the math dataset, 2021. URL https://arxiv.org/abs/2103.03874.
[14] Albert S. Yue, Lovish Madaan, Ted Moskovitz, DJ Strouse, and Aaditya K. Singh. HARP: A challenging human-annotated math reasoning benchmark, 2024. URL https://github.com/aadityasingh/HARP.
[15] Bofei Gao, Feifan Song, Zhe Yang, Zefan Cai, Yibo Miao, Qingxiu Dong, Lei Li, Chenghao Ma, Liang Chen, Runxin Xu, Zhengyang Tang, Benyou Wang, Daoguang Zan, Shanghaoran Quan, Ge Zhang, Lei Sha, Yichang Zhang, Xuancheng Ren, Tianyu Liu, and Baobao Chang. Omni-math: A universal olympiad level mathematic benchmark for large language models, 2024. URL https://arxiv.org/abs/2410.07985.
[16] Du Phan, Matthew D. Hoffman, David Dohan, Sholto Douglas, Tuan Anh Le, Aaron Parisi, Pavel Sountsov, Charles Sutton, Sharad Vikram, and Rif A. Saurous. Training chain-of-thought via latent-variable inference, 2023. URL https://arxiv.org/abs/2312.02179.
[17] Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Amy Yang, Angela Fan, Anirudh Goyal, Anthony Hartshorn, Aobo Yang, Archi Mitra, Archie Sravankumar, Artem Korenev, Arthur Hinsvark, Arun Rao, Aston Zhang, Aurelien Rodriguez, Austen Gregerson, Ava Spataru, Baptiste Roziere, Bethany Biron, Binh Tang, Bobbie Chern, Charlotte Caucheteux, Chaya Nayak, Chloe Bi, Chris Marra, Chris McConnell, Christian Keller, Christophe Touret, Chunyang Wu, Corinne Wong, Cristian Canton Ferrer, Cyrus Nikolaidis, Damien Allonsius, Daniel Song, Danielle Pintz, Danny Livshits, David Esiobu, Dhruv Choudhary, Dhruv Mahajan, Diego Garcia-Olano, Diego Perino, Dieuwke Hupkes, Egor Lakomkin, Ehab AlBadawy, Elina Lobanova, Emily Dinan, Eric Michael Smith, Filip Radenovic, Frank Zhang, Gabriel Synnaeve, Gabrielle Lee, Georgia Lewis Anderson, Graeme Nail, Gregoire Mialon, Guan Pang, Guillem Cucurell, Hailey Nguyen, Hannah Korevaar, Hu Xu, Hugo Touvron, Iliyan Zarov, Imanol Arrieta Ibarra, Isabel Kloumann, Ishan Misra, Ivan Evtimov, Jade Copet, Jaewon Lee, Jan Geffert, Jana Vranes, Jason Park, Jay Mahadeokar, Jeet Shah, Jelmer van der Linde, Jennifer Billock, Jenny Hong, Jenya Lee, Jeremy Fu, Jianfeng Chi, Jianyu Huang, Jiawen Liu, Jie Wang, Jiecao Yu, Joanna Bitton, Joe Spisak, Jongsoo Park, Joseph Rocca, Joshua Johnstun, Joshua Saxe, Junteng Jia, Kalyan Vasuden Alwala, Kartikeya Upasani, Kate Plawiak, Ke Li, Kenneth Heafield, Kevin Stone, Khalid El-Arini, Krithika Iyer, Kshitiz Malik, Kuenley Chiu, Kunal Bhalla, Lauren Rantala-Yeary, Laurens van der Maaten, Lawrence Chen, Liang Tan, Liz Jenkins, Louis Martin, Lovish Madaan, Lubo Malo, Lukas Blecher, Lukas Landzaat, Luke de Oliveira, Madeline Muzzi, Mahesh Pasupuleti, Mannat Singh, Manohar Paluri, Marcin Kardas, Mathew Oldham, Mathieu Rita, Maya Pavlova, Melanie Kambadur, Mike Lewis, Min Si, Mitesh Kumar Singh, Mona Hassan, Naman Goyal, Narjes Torabi, Nikolay Bashlykov, Nikolay Bogoychev, Niladri Chatterji, Olivier Duchenne, Onur Çelebi, Patrick Alrassy, Pengchuan Zhang, Pengwei Li, Petar Vasic, Peter Weng, Prajjwal Bhargava, Pratik Dubal, Praveen Krishnan, Punit Singh Koura, Puxin Xu, Qing He, Qingxiao Dong, Ragavan Srinivasan, Raj Ganapathy, Ramon Calderer, Ricardo Silveira Cabral, Robert Stojnic, Roberta Raileanu, Rohit Girdhar, Rohit Patel, Romain Sauvestre, Ronnie Polidoro, Roshan Sumbaly, Ross Taylor, Ruan Silva, Rui Hou, Rui Wang, Saghar Hosseini, Sahana Chennabasappa, Sanjay Singh, Sean Bell, Seohyun Sonia Kim, Sergey Edunov, Shaoliang Nie, Sharan Narang, Sharath Raparthy, Sheng Shen, Shengye Wan, Shruti Bhosale, Shun Zhang, Simon Vandenhende, Soumya Batra, Spencer Whitman, Sten Sootla, Stephane Collot, Suchin Gururangan, Sydney Borodinsky, Tamar Herman, Tara Fowler, Tarek Sheasha, Thomas Georgiou, Thomas Scialom, Tobias Speckbacher, Todor Mihaylov, Tong Xiao, Ujjwal Karn, Vedanuj Goswami, Vibhor Gupta, Vignesh Ramanathan, Viktor Kerkez, Vincent Gonguet, Virginie Do, Vish Vogeti, Vladan Petrovic, Weiwei Chu, Wenhan Xiong, Wenyin Fu, Whitney Meers, Xavier Martinet, Xiaodong Wang, Xiaoqing Ellen Tan, Xinfeng Xie, Xuchao Jia, Xuewei Wang, Yaelle Goldschlag, Yashesh Gaur, Yasmine Babaei, Yi Wen, Yiwen Song, Yuchen Zhang, Yue Li, Yuning Mao, Zacharie Delpierre Coudert, Zheng Yan, Zhengxing Chen, Zoe Papakipos, Aaditya Singh, Aaron Grattafiori, Abha Jain, Adam Kelsey, Adam Shajnfeld, Adithya Gangidi, Adolfo Victoria, Ahuva Goldstand, Ajay Menon, Ajay Sharma, Alex Boesenberg, Alex Vaughan, Alexei Baevski, Allie Feinstein, Amanda Kallet, Amit Sangani, Anam Yunus, Andrei Lupu, Andres Alvarado, Andrew Caples, Andrew Gu, Andrew Ho, Andrew Poulton, Andrew Ryan, Ankit Ramchandani, Annie Franco, Aparajita Saraf, Arkabandhu Chowdhury, Ashley Gabriel, Ashwin Bharambe, Assaf Eisenman, Azadeh Yazdan, Beau James, Ben Maurer, Benjamin Leonhardi, Bernie Huang, Beth Loyd, Beto De Paola, Bhargavi Paranjape, Bing Liu, Bo Wu, Boyu Ni, Braden Hancock, Bram Wasti, Brandon Spence, Brani Stojkovic, Brian Gamido, Britt Montalvo, Carl Parker, Carly Burton, Catalina Mejia, Changhan Wang, Changkyu Kim, Chao Zhou, Chester Hu, Ching-Hsiang Chu, Chris Cai, Chris Tindal, Christoph Feichtenhofer, Damon Civin, Dana Beaty, Daniel Kreymer, Daniel Li, Danny Wyatt, David Adkins, David Xu, Davide Testuggine, Delia David, Devi Parikh, Diana Liskovich, Didem Foss, Dingkang Wang, Duc Le, Dustin Holland, Edward Dowling, Eissa Jamil, Elaine Montgomery, Eleonora Presani, Emily Hahn, Emily Wood, Erik Brinkman, Esteban Arcaute, Evan Dunbar, Evan Smothers, Fei Sun, Felix Kreuk, Feng Tian, Firat Ozgenel, Francesco Caggioni, Francisco Guzmán, Frank Kanayet, Frank Seide, Gabriela Medina Florez, Gabriella Schwarz, Gada Badeer, Georgia Swee, Gil Halpern, Govind Thattai, Grant Herman, Grigory Sizov, Guangyi, Zhang, Guna Lakshminarayanan, Hamid Shojanazeri, Han Zou, Hannah Wang, Hanwen Zha, Haroun Habeeb, Harrison Rudolph, Helen Suk, Henry Aspegren, Hunter Goldman, Ibrahim Damlaj, Igor Molybog, Igor Tufanov, Irina-Elena Veliche, Itai Gat, Jake Weissman, James Geboski, James Kohli, Japhet Asher, Jean-Baptiste Gaya, Jeff Marcus, Jeff Tang, Jennifer Chan, Jenny Zhen, Jeremy Reizenstein, Jeremy Teboul, Jessica Zhong, Jian Jin, Jingyi Yang, Joe Cummings, Jon Carvill, Jon Shepard, Jonathan McPhie, Jonathan Torres, Josh Ginsburg, Junjie Wang, Kai Wu, Kam Hou U, Karan Saxena, Karthik Prasad, Kartikay Khandelwal, Katayoun Zand, Kathy Matosich, Kaushik Veeraraghavan, Kelly Michelena, Keqian Li, Kun Huang, Kunal Chawla, Kushal Lakhotia, Kyle Huang, Lailin Chen, Lakshya Garg, Lavender A, Leandro Silva, Lee Bell, Lei Zhang, Liangpeng Guo, Licheng Yu, Liron Moshkovich, Luca Wehrstedt, Madian Khabsa, Manav Avalani, Manish Bhatt, Maria Tsimpoukelli, Martynas Mankus, Matan Hasson, Matthew Lennie, Matthias Reso, Maxim Groshev, Maxim Naumov, Maya Lathi, Meghan Keneally, Michael L. Seltzer, Michal Valko, Michelle Restrepo, Mihir Patel, Mik Vyatskov, Mikayel Samvelyan, Mike Clark, Mike Macey, Mike Wang, Miquel Jubert Hermoso, Mo Metanat, Mohammad Rastegari, Munish Bansal, Nandhini Santhanam, Natascha Parks, Natasha White, Navyata Bawa, Nayan Singhal, Nick Egebo, Nicolas Usunier, Nikolay Pavlovich Laptev, Ning Dong, Ning Zhang, Norman Cheng, Oleg Chernoguz, Olivia Hart, Omkar Salpekar, Ozlem Kalinli, Parkin Kent, Parth Parekh, Paul Saab, Pavan Balaji, Pedro Rittner, Philip Bontrager, Pierre Roux, Piotr Dollar, Polina Zvyagina, Prashant Ratanchandani, Pritish Yuvraj, Qian Liang, Rachad Alao, Rachel Rodriguez, Rafi Ayub, Raghotham Murthy, Raghu Nayani, Rahul Mitra, Raymond Li, Rebekkah Hogan, Robin Battey, Rocky Wang, Rohan Maheswari, Russ Howes, Ruty Rinott, Sai Jayesh Bondu, Samyak Datta, Sara Chugh, Sara Hunt, Sargun Dhillon, Sasha Sidorov, Satadru Pan, Saurabh Verma, Seiji Yamamoto, Sharadh Ramaswamy, Shaun Lindsay, Shaun Lindsay, Sheng Feng, Shenghao Lin, Shengxin Cindy Zha, Shiva Shankar, Shuqiang Zhang, Shuqiang Zhang, Sinong Wang, Sneha Agarwal, Soji Sajuyigbe, Soumith Chintala, Stephanie Max, Stephen Chen, Steve Kehoe, Steve Satterfield, Sudarshan Govindaprasad, Sumit Gupta, Sungmin Cho, Sunny Virk, Suraj Subramanian, Sy Choudhury, Sydney Goldman, Tal Remez, Tamar Glaser, Tamara Best, Thilo Kohler, Thomas Robinson, Tianhe Li, Tianjun Zhang, Tim Matthews, Timothy Chou, Tzook Shaked, Varun Vontimitta, Victoria Ajayi, Victoria Montanez, Vijai Mohan, Vinay Satish Kumar, Vishal Mangla, Vítor Albiero, Vlad Ionescu, Vlad Poenaru, Vlad Tiberiu Mihailescu, Vladimir Ivanov, Wei Li, Wenchen Wang, Wenwen Jiang, Wes Bouaziz, Will Constable, Xiaocheng Tang, Xiaofang Wang, Xiaojian Wu, Xiaolan Wang, Xide Xia, Xilun Wu, Xinbo Gao, Yanjun Chen, Ye Hu, Ye Jia, Ye Qi, Yenda Li, Yilin Zhang, Ying Zhang, Yossi Adi, Youngjin Nam, Yu, Wang, Yuchen Hao, Yundi Qian, Yuzi He, Zach Rait, Zachary DeVito, Zef Rosnbrick, Zhaoduo Wen, Zhenyu Yang, and Zhiwei Zhao. The llama 3 herd of models, 2024. URL https://arxiv.org/abs/2407.21783.
[18] Jia LI, Edward Beeching, Lewis Tunstall, Ben Lipkin, Roman Soletskyi, Shengyi Costa Huang, Kashif Rasul, Longhui Yu, Albert Jiang, Ziju Shen, Zihan Qin, Bin Dong, Li Zhou, Yann Fleureau, Guillaume Lample, and Stanislas Polu. Numinamath. https://huggingface.co/AI-MO/NuminaMath-CoT, 2024.
[19] Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let's verify step by step. arXiv preprint arXiv:2305.20050, 2023.
[20] Bradley Brown, Jordan Juravsky, Ryan Ehrlich, Ronald Clark, Quoc V Le, Christopher Ré, and Azalia Mirhoseini. Large language monkeys: Scaling inference compute with repeated sampling. arXiv preprint arXiv:2407.21787, 2024.
[21] Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. Training verifiers to solve math word problems, 2021. URL https://arxiv.org/abs/2110.14168.
[22] Lunjun Zhang, Arian Hosseini, Hritik Bansal, Mehran Kazemi, Aviral Kumar, and Rishabh Agarwal. Generative verifiers: Reward modeling as next-token prediction, 2024a. URL https://arxiv.org/abs/2408.15240.
[23] Anonymous. Improving the efficiency of test-time search in LLMs with backtracking. In Submitted to The Thirteenth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=hJ2BCYGvFg. under review.
[24] Amrith Setlur, Chirag Nagpal, Adam Fisch, Xinyang Geng, Jacob Eisenstein, Rishabh Agarwal, Alekh Agarwal, Jonathan Berant, and Aviral Kumar. Rewarding progress: Scaling automated process verifiers for llm reasoning. arXiv preprint arXiv:2410.08146, 2024b.
[25] Dakota Mahan, Duy Van Phung, Rafael Rafailov, Chase Blagden, Nathan Lile, Louis Castricato, Jan-Philipp Fränken, Chelsea Finn, and Alon Albalak. Generative reward models. arXiv preprint arXiv:2410.12832, 2024.
[26] Shibo Hao, Yi Gu, Haodi Ma, Joshua Jiahua Hong, Zhen Wang, Daisy Zhe Wang, and Zhiting Hu. Reasoning with language model is planning with world model, 2023. URL https://arxiv.org/abs/2305.14992.
[27] Amrith Setlur, Chirag Nagpal, Adam Fisch, Xinyang Geng, Jacob Eisenstein, Rishabh Agarwal, Alekh Agarwal, Jonathan Berant, and Aviral Kumar. Rewarding progress: Scaling automated process verifiers for llm reasoning, 2024c. URL https://arxiv.org/abs/2410.08146.
[28] Shunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran, Thomas L. Griffiths, Yuan Cao, and Karthik Narasimhan. Tree of thoughts: Deliberate problem solving with large language models, 2023. URL https://arxiv.org/abs/2305.10601.
[29] Andy Zhou, Kai Yan, Michal Shlapentokh-Rothman, Haohan Wang, and Yu-Xiong Wang. Language agent tree search unifies reasoning acting and planning in language models, 2024a. URL https://arxiv.org/abs/2310.04406.
[30] Jing Yu Koh, Stephen McAleer, Daniel Fried, and Ruslan Salakhutdinov. Tree search for language model agents. arXiv preprint arXiv:2407.01476, 2024.
[31] Pranav Putta, Edmund Mills, Naman Garg, Sumeet Motwani, Chelsea Finn, Divyansh Garg, and Rafael Rafailov. Agent q: Advanced reasoning and learning for autonomous ai agents. arXiv preprint arXiv:2408.07199, 2024.
[32] Xiao Yu, Baolin Peng, Vineeth Vajipey, Hao Cheng, Michel Galley, Jianfeng Gao, and Zhou Yu. Exact: Teaching ai agents to explore with reflective-mcts and exploratory learning, 2024. URL https://arxiv.org/abs/2410.02052.
[33] Andy L. Jones. Scaling scaling laws with board games, 2021. URL https://arxiv.org/abs/2104.03113.
[34] Yann Dubois, Xuechen Li, Rohan Taori, Tianyi Zhang, Ishaan Gulrajani, Jimmy Ba, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. Alpacafarm: A simulation framework for methods that learn from human feedback, 2024.
[35] Xidong Feng, Ziyu Wan, Muning Wen, Stephen Marcus McAleer, Ying Wen, Weinan Zhang, and Jun Wang. Alphazero-like tree-search can guide large language model decoding and training, 2024.
[36] David Silver, Thomas Hubert, Julian Schrittwieser, Ioannis Antonoglou, Matthew Lai, Arthur Guez, Marc Lanctot, Laurent Sifre, Dharshan Kumaran, Thore Graepel, Timothy P. Lillicrap, Karen Simonyan, and Demis Hassabis. A general reinforcement learning algorithm that masters chess, shogi, and go through self-play. Science, 362(6419):1140–1144, 2018. doi:10.1126/science.aar6404.
[37] Eric Zelikman, Yuhuai Wu, Jesse Mu, and Noah Goodman. Star: Bootstrapping reasoning with reasoning. Advances in Neural Information Processing Systems, 35:15476–15488, 2022.
[38] Avi Singh, John D. Co-Reyes, Rishabh Agarwal, Ankesh Anand, Piyush Patil, Xavier Garcia, Peter J. Liu, James Harrison, Jaehoon Lee, Kelvin Xu, Aaron Parisi, Abhishek Kumar, Alex Alemi, Alex Rizkowsky, Azade Nova, Ben Adlam, Bernd Bohnet, Gamaleldin Elsayed, Hanie Sedghi, Igor Mordatch, Isabelle Simpson, Izzeddin Gur, Jasper Snoek, Jeffrey Pennington, Jiri Hron, Kathleen Kenealy, Kevin Swersky, Kshiteej Mahajan, Laura Culp, Lechao Xiao, Maxwell L. Bileschi, Noah Constant, Roman Novak, Rosanne Liu, Tris Warkentin, Yundi Qian, Yamini Bansal, Ethan Dyer, Behnam Neyshabur, Jascha Sohl-Dickstein, and Noah Fiedel. Beyond human data: Scaling self-training for problem-solving with language models, 2024. URL https://arxiv.org/abs/2312.06585.
[39] Zheng Yuan, Hongyi Yuan, Chengpeng Li, Guanting Dong, Keming Lu, Chuanqi Tan, Chang Zhou, and Jingren Zhou. Scaling relationship on learning mathematical reasoning with large language models, 2023. URL https://arxiv.org/abs/2308.01825.
[40] Kanishk Gandhi, Denise Lee, Gabriel Grand, Muxin Liu, Winson Cheng, Archit Sharma, and Noah D Goodman. Stream of search (sos): Learning to search in language. arXiv preprint arXiv:2404.03683, 2024.
[41] Lucas Lehnert, Sainbayar Sukhbaatar, DiJia Su, Qinqing Zheng, Paul Mcvay, Michael Rabbat, and Yuandong Tian. Beyond a*: Better planning with transformers via search dynamics bootstrapping, 2024. URL https://arxiv.org/abs/2402.14083.
[42] Mengjiao Yang, Dale Schuurmans, Pieter Abbeel, and Ofir Nachum. Chain of thought imitation with procedure cloning, 2022. URL https://arxiv.org/abs/2205.10816.
[43] John Schultz, Jakub Adamek, Matej Jusup, Marc Lanctot, Michael Kaisers, Sarah Perrin, Daniel Hennes, Jeremy Shar, Cannada Lewis, Anian Ruoss, Tom Zahavy, Petar Veličković, Laurel Prince, Satinder Singh, Eric Malmi, and Nenad Tomašev. Mastering board games by external and internal planning with language models, 2024. URL https://arxiv.org/abs/2412.12119.
[44] Yuxiao Qu, Tianjun Zhang, Naman Garg, and Aviral Kumar. Recursive introspection: Teaching language model agents how to self-improve, 2024. URL https://arxiv.org/abs/2407.18219.
[45] Xue Bin Peng, Aviral Kumar, Grace Zhang, and Sergey Levine. Advantage-weighted regression: Simple and scalable off-policy reinforcement learning. arXiv preprint arXiv:1910.00177, 2019.
[46] Tian Ye, Zicheng Xu, Yuanzhi Li, and Zeyuan Allen-Zhu. Physics of language models: Part 2.2, how to learn from mistakes on grade-school math problems, 2024b. URL https://arxiv.org/abs/2408.16293.
[47] Yiming Zhang, Jianfeng Chi, Hailey Nguyen, Kartikeya Upasani, Daniel M. Bikel, Jason Weston, and Eric Michael Smith. Backtracking improves generation safety, 2024b. URL https://arxiv.org/abs/2409.14586.
[48] Machel Reid, Nikolay Savinov, Denis Teplyashin, Dmitry Lepikhin, Timothy Lillicrap, Jean-baptiste Alayrac, Radu Soricut, Angeliki Lazaridou, Orhan Firat, Julian Schrittwieser, et al. Gemini 1.5: Unlocking multimodal understanding across millions of tokens of context. arXiv preprint arXiv:2403.05530, 2024.
[49] Ye Tian, Baolin Peng, Linfeng Song, Lifeng Jin, Dian Yu, Haitao Mi, and Dong Yu. Toward self-improvement of llms via imagination, searching, and criticizing, 2024. URL https://arxiv.org/abs/2404.12253.
[50] Qwen Team. Qwq: Reflect deeply on the boundaries of the unknown, November 2024. URL https://qwenlm.github.io/blog/qwq-32b-preview/.
[51] Aman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan, Luyu Gao, Sarah Wiegreffe, Uri Alon, Nouha Dziri, Shrimai Prabhumoye, Yiming Yang, Shashank Gupta, Bodhisattwa Prasad Majumder, Katherine Hermann, Sean Welleck, Amir Yazdanbakhsh, and Peter Clark. Self-refine: Iterative refinement with self-feedback, 2023. URL https://arxiv.org/abs/2303.17651.
[52] Noah Shinn, Federico Cassano, Edward Berman, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. Reflexion: Language agents with verbal reinforcement learning, 2023. URL https://arxiv.org/abs/2303.11366.
[53] Santosh Kumar Radha, Yasamin Nouri Jelyani, Ara Ghukasyan, and Oktay Goktas. Iteration of thought: Leveraging inner dialogue for autonomous large language model reasoning, 2024. URL https://arxiv.org/abs/2409.12618.
[54] Aviral Kumar, Vincent Zhuang, Rishabh Agarwal, Yi Su, John D Co-Reyes, Avi Singh, Kate Baumli, Shariq Iqbal, Colton Bishop, Rebecca Roelofs, Lei M Zhang, Kay McKinney, Disha Shrivastava, Cosmin Paduraru, George Tucker, Doina Precup, Feryal Behbahani, and Aleksandra Faust. Training language models to self-correct via reinforcement learning, 2024. URL https://arxiv.org/abs/2409.12917.
[55] Xingyu Chen, Jiahao Xu, Tian Liang, Zhiwei He, Jianhui Pang, Dian Yu, Linfeng Song, Qiuzhi Liu, Mengfei Zhou, Zhuosheng Zhang, Rui Wang, Zhaopeng Tu, Haitao Mi, and Dong Yu. Do not think that much for 2+3=? on the overthinking of o1-like llms, 2024. URL https://arxiv.org/abs/2412.21187.
[56] Peiyi Wang, Lei Li, Zhihong Shao, Runxin Xu, Damai Dai, Yifei Li, Deli Chen, Yu Wu, and Zhifang Sui. Math-shepherd: Verify and reinforce llms step-by-step without human annotations. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp.\ 9426–9439, 2024.
[57] The mathlib Community. The lean mathematical library. In Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs, POPL ’20. ACM, January 2020. doi:10.1145/3372885.3373824. URL http://dx.doi.org/10.1145/3372885.3373824.
[58] Yan Duan, John Schulman, Xi Chen, Peter L. Bartlett, Ilya Sutskever, and Pieter Abbeel. Rl$^2$: Fast reinforcement learning via slow reinforcement learning, 2016. URL https://arxiv.org/abs/1611.02779.
[59] Dibya Ghosh, Jad Rahme, Aviral Kumar, Amy Zhang, Ryan P. Adams, and Sergey Levine. Why generalization in rl is difficult: Epistemic pomdps and implicit partial observability, 2021. URL https://arxiv.org/abs/2107.06277.
[60] Amrith Setlur, Yuxiao Qu, Lunjun Zhang, Matthew Yang, Virginia Smith, and Aviral Kumar. Optimizing llm test-time compute involves solving a meta-rl problem. https://blog.ml.cmu.edu/2025/01/08/optimizing-llm-test-time-compute-involves-solving-a-meta-rl-problem/, 2025. CMU MLD Blog.
[61] Jan Humplik, Alexandre Galashov, Leonard Hasenclever, Pedro A. Ortega, Yee Whye Teh, and Nicolas Heess. Meta reinforcement learning as task inference, 2019. URL https://arxiv.org/abs/1905.06424.
[62] Kate Rakelly, Aurick Zhou, Deirdre Quillen, Chelsea Finn, and Sergey Levine. Efficient off-policy meta-reinforcement learning via probabilistic context variables, 2019. URL https://arxiv.org/abs/1903.08254.
[63] Adam Santoro, Sergey Bartunov, Matthew Botvinick, Daan Wierstra, and Timothy Lillicrap. One-shot learning with memory-augmented neural networks, 2016. URL https://arxiv.org/abs/1605.06065.
[64] Ronald J. Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Mach. Learn., 8(3–4):229–256, may 1992. ISSN 0885-6125. doi:10.1007/BF00992696. URL https://doi.org/10.1007/BF00992696.
[65] John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms, 2017.
[66] Bradly C. Stadie, Ge Yang, Rein Houthooft, Xi Chen, Yan Duan, Yuhuai Wu, Pieter Abbeel, and Ilya Sutskever. Some considerations on learning to explore via meta-reinforcement learning, 2019. URL https://arxiv.org/abs/1803.01118.
[67] Jacob Beck, Risto Vuorio, Evan Zheran Liu, Zheng Xiong, Luisa Zintgraf, Chelsea Finn, and Shimon Whiteson. A survey of meta-reinforcement learning, 2024. URL https://arxiv.org/abs/2301.08028.
[68] Jonas Gehring, Kunhao Zheng, Jade Copet, Vegard Mella, Taco Cohen, and Gabriel Synnaeve. Rlef: Grounding code llms in execution feedback with reinforcement learning, 2024. URL https://arxiv.org/abs/2410.02089.
[69] Nisan Stiennon, Long Ouyang, Jeff Wu, Daniel M. Ziegler, Ryan Lowe, Chelsea Voss, Alec Radford, Dario Amodei, and Paul Christiano. Learning to summarize from human feedback, 2022.
[70] Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul F Christiano, Jan Leike, and Ryan Lowe. Training language models to follow instructions with human feedback. In S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh (eds.), Advances in Neural Information Processing Systems, volume 35, pp.\ 27730–27744. Curran Associates, Inc., 2022. URL https://proceedings.neurips.cc/paper_files/paper/2022/file/b1efde53be364a73914f58805a001731-Paper-Conference.pdf.
[71] Iman Mirzadeh, Keivan Alizadeh, Hooman Shahrokhi, Oncel Tuzel, Samy Bengio, and Mehrdad Farajtabar. Gsm-symbolic: Understanding the limitations of mathematical reasoning in large language models, 2024. URL https://arxiv.org/abs/2410.05229.
[72] Bilgehan Sel, Ahmad Al-Tawaha, Vanshaj Khattar, Ruoxi Jia, and Ming Jin. Algorithm of thoughts: Enhancing exploration of ideas in large language models, 2024. URL https://arxiv.org/abs/2308.10379.
[73] Kanishk Gandhi, Dorsa Sadigh, and Noah D. Goodman. Strategic reasoning with language models, 2023. URL https://arxiv.org/abs/2305.19165.
[74] Allen Nie, Yi Su, Bo Chang, Jonathan N. Lee, Ed H. Chi, Quoc V. Le, and Minmin Chen. Evolve: Evaluating and optimizing llms for exploration, 2024. URL https://arxiv.org/abs/2410.06238.
[75] Arnav Gudibande, Eric Wallace, Charlie Snell, Xinyang Geng, Hao Liu, Pieter Abbeel, Sergey Levine, and Dawn Song. The false promise of imitating proprietary llms, 2023. URL https://arxiv.org/abs/2305.15717.
[76] Reiichiro Nakano, Jacob Hilton, Suchir Balaji, Jeff Wu, Long Ouyang, Christina Kim, Christopher Hesse, Shantanu Jain, Vineet Kosaraju, William Saunders, Xu Jiang, Karl Cobbe, Tyna Eloundou, Gretchen Krueger, Kevin Button, Matthew Knight, Benjamin Chess, and John Schulman. Webgpt: Browser-assisted question-answering with human feedback, 2022.
[77] Fahim Tajwar, Anikait Singh, Archit Sharma, Rafael Rafailov, Jeff Schneider, Tengyang Xie, Stefano Ermon, Chelsea Finn, and Aviral Kumar. Preference fine-tuning of llms should leverage suboptimal, on-policy data. arXiv preprint arXiv:2404.14367, 2024.
[78] Yuxi Xie, Anirudh Goyal, Wenyue Zheng, Min-Yen Kan, Timothy P. Lillicrap, Kenji Kawaguchi, and Michael Shieh. Monte carlo tree search boosts reasoning via iterative preference learning, 2024. URL https://arxiv.org/abs/2405.00451.
[79] Amrith Setlur, Saurabh Garg, Xinyang Geng, Naman Garg, Virginia Smith, and Aviral Kumar. Rl on incorrect synthetic data scales the efficiency of llm math reasoning by eight-fold, 2024a. URL https://arxiv.org/abs/2406.14532.
[80] Xin Lai, Zhuotao Tian, Yukang Chen, Senqiao Yang, Xiangru Peng, and Jiaya Jia. Step-dpo: Step-wise preference optimization for long-chain reasoning of llms, 2024. URL https://arxiv.org/abs/2406.18629.
[81] Michael Noukhovitch, Shengyi Huang, Sophie Xhonneux, Arian Hosseini, Rishabh Agarwal, and Aaron Courville. Asynchronous rlhf: Faster and more efficient off-policy rl for language models, 2024. URL https://arxiv.org/abs/2410.18252.
[82] Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. Deepseekmath: Pushing the limits of mathematical reasoning in open language models, 2024. URL https://arxiv.org/abs/2402.03300.
[83] Arash Ahmadian, Chris Cremer, Matthias Gallé, Marzieh Fadaee, Julia Kreutzer, Ahmet Üstün, and Sara Hooker. Back to basics: Revisiting reinforce style optimization for learning from human feedback in llms. arXiv preprint arXiv:2402.14740, 2024.
[84] Alex Havrilla, Yuqing Du, Sharath Chandra Raparthy, Christoforos Nalmpantis, Jane Dwivedi-Yu, Maksym Zhuravinskyi, Eric Hambro, Sainbayar Sukhbaatar, and Roberta Raileanu. Teaching large language models to reason with reinforcement learning, 2024. URL https://arxiv.org/abs/2403.04642.
[85] Amirhossein Kazemnejad, Milad Aghajohari, Eva Portelance, Alessandro Sordoni, Siva Reddy, Aaron Courville, and Nicolas Le Roux. Vineppo: Unlocking rl potential for llm reasoning through refined credit assignment, 2024. URL https://arxiv.org/abs/2410.01679.
[86] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. URL https://arxiv.org/abs/1312.6114.
[87] Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. B-vae: Learning basic visual concepts with a constrained variational framework. In International Conference on Learning Representations (ICLR), 2017. URL https://openreview.net/forum?id=Sy2fzU9gl.
[88] Eric Zelikman, Georges Harik, Yijia Shao, Varuna Jayasiri, Nick Haber, and Noah D Goodman. Quiet-star: Language models can teach themselves to think before speaking. arXiv preprint arXiv:2403.09629, 2024.
[89] Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, and Łukasz Kaiser. Universal transformers, 2019. URL https://arxiv.org/abs/1807.03819.
[90] Prasann Singhal, Tanya Goyal, Jiacheng Xu, and Greg Durrett. A long way to go: Investigating length correlations in rlhf, 2023.
[91] Ryan Park, Rafael Rafailov, Stefano Ermon, and Chelsea Finn. Disentangling length from quality in direct preference optimization, 2024.
[92] OpenAI. Gpt-4 technical report. arXiv preprint, 2023. https://arxiv.org/abs/2303.08774.
[93] Arindam Mitra, Hamed Khanpour, Corby Rosset, and Ahmed Awadallah. Orca-math: Unlocking the potential of slms in grade school math, 2024. URL https://arxiv.org/abs/2402.14830.
[94] Shubham Toshniwal, Wei Du, Ivan Moshkov, Branislav Kisacanin, Alexan Ayrapetyan, and Igor Gitman. Openmathinstruct-2: Accelerating ai for math with massive open-source instruction data. arXiv preprint arXiv:2410.01560, 2024.
[95] Alon Albalak, Yanai Elazar, Sang Michael Xie, Shayne Longpre, Nathan Lambert, Xinyi Wang, Niklas Muennighoff, Bairu Hou, Liangming Pan, Haewon Jeong, Colin Raffel, Shiyu Chang, Tatsunori Hashimoto, and William Yang Wang. A survey on data selection for language models, 2024. URL https://arxiv.org/abs/2402.16827.
[96] Armand Joulin, Edouard Grave, Piotr Bojanowski, and Tomas Mikolov. Bag of tricks for efficient text classification. arXiv preprint arXiv:1607.01759, 2016b.
[97] Armand Joulin, Edouard Grave, Piotr Bojanowski, Matthijs Douze, H'erve J'egou, and Tomas Mikolov. Fasttext.zip: Compressing text classification models. arXiv preprint arXiv:1612.03651, 2016a.
[98] Edouard Grave, Piotr Bojanowski, Prakhar Gupta, Armand Joulin, and Tomas Mikolov. Learning word vectors for 157 languages. In Proceedings of the International Conference on Language Resources and Evaluation (LREC 2018), 2018.
[99] Amro Abbas, Kushal Tirumala, Dániel Simig, Surya Ganguli, and Ari S. Morcos. Semdedup: Data-efficient learning at web-scale through semantic deduplication, 2023. URL https://arxiv.org/abs/2303.09540.
[100] Alex Andonian, Quentin Anthony, Stella Biderman, Sid Black, Preetham Gali, Leo Gao, Eric Hallahan, Josh Levy-Kramer, Connor Leahy, Lucas Nestler, Kip Parker, Michael Pieler, Jason Phang, Shivanshu Purohit, Hailey Schoelkopf, Dashiell Stander, Tri Songz, Curt Tigges, Benjamin Thérien, Phil Wang, and Samuel Weinbach. GPT-NeoX: Large Scale Autoregressive Language Modeling in PyTorch, 2023. URL https://www.github.com/eleutherai/gpt-neox.
[101] Sergey Levine, Aviral Kumar, George Tucker, and Justin Fu. Offline reinforcement learning: Tutorial, review, and perspectives on open problems, 2020.
[102] Yifei Zhou, Andrea Zanette, Jiayi Pan, Sergey Levine, and Aviral Kumar. Archer: Training language model agents via hierarchical multi-turn rl, 2024b. URL https://arxiv.org/abs/2402.19446.
[103] D. Silver, A. Huang, C. Maddison, et al. Mastering the game of go with deep neural networks and tree search. Nature, 529:484–489, 2016. doi:10.1038/nature16961.
[104] Anji Liu, Yitao Liang, Ji Liu, Guy Van den Broeck, and Jianshu Chen. On effective parallelization of monte carlo tree search, 2020. URL https://arxiv.org/abs/2006.08785.
[105] Shuo Yin, Weihao You, Zhilong Ji, Guoqiang Zhong, and Jinfeng Bai. Mumath-code: Combining tool-use large language models with multi-perspective data augmentation for mathematical reasoning. arXiv preprint arXiv:2405.07551, 2024.
[106] Wenhu Chen, Xueguang Ma, Xinyi Wang, and William W Cohen. Program of thoughts prompting: Disentangling computation from reasoning for numerical reasoning tasks. arXiv preprint arXiv:2211.12588, 2022.
[107] Levente Kocsis and Csaba Szepesvári. Bandit based Monte-Carlo planning. In Johannes Fürnkranz, Tobias Scheffer, and Myra Spiliopoulou (eds.), Machine Learning: ECML 2006, volume 4212 of Lecture Notes in Computer Science, Berlin, Heidelberg, 2006. Springer. doi:10.1007/11871842_29.
[108] Christopher D. Rosin. Multi-armed bandits with episode context. Annals of Mathematics and Artificial Intelligence, 61(3):203–230, 2011. doi:10.1007/s10472-011-9258-6.