Frontier: what reasoning models learn and how to think better
Investigate open questions about reasoning models: behaviors in long chains, whether reinforcement creates new capabilities or concentrates existing ones, overthinking, continuous latent reasoning and chain monitorability. Reproduce two small-scale analyses and practice critical reading.
After this lesson you can
- Classify and count long-chain behaviors such as planning, verification and backtracking and relate them to accuracy.
- Reproduce large-k pass@k analysis comparing a base model with its reinforcement-trained version and interpret a crossover.
- Measure overthinking on easy problems and evaluate length-control techniques.
- Explain reasoning in continuous latent space and its implications for verifiability.
- Design a faithfulness experiment for a reasoning model with injected hints.
Before you start
- 23Reasoning modelReasoning RL training dynamicsChain-of-thought faithfulnessCoverage under repeated samplingBudget forcing
- 18Chain-of-thought expressivityCircuit complexity limits of transformers
- 30Interpretability taxonomyChain-of-thought faithfulness and monitorability
- 20pass@k and its unbiased estimatorReasoning trace distillation
Questions that remain open
A model can write “I will check” and then give a wrong answer. It can also use information it does not mention. Reasoning research must distinguish three observables: emitted text, final answer and intervention effect. None alone reveals all internal computation.
Long-chain behaviors include planning, calculation, verification and backtracking. Yeo and colleagues investigate conditions in which long chains emerge; Gandhi and colleagues study habits such as verification and backtracking. A rule looking for words such as check or wait detects textual signals; it does not guarantee the model actually verified something. It can err in either direction, and association with the final answer does not prove the behavior caused success.
For reproducible analysis, fix the segmenter before counting, retain original texts and distinguish rules from a classifier fitted on them. If the classifier learns labels produced by those rules, measuring agreement with them measures only imitation of weak labels, not accuracy against independent human annotation. Compare frequencies by problem and position, and separate unextracted answers from recognized errors.
There are several noninterchangeable counting methods. A per-line rate answers what fraction of fragments contains a signal; a per-trace rate indicates the fraction of solutions where it appears at least once. Long answers generate more lines and have more opportunities to trigger a rule. To relate labels to correctness, also compare rates per problem and retain an abstention group: failing to extract the final answer does not mean an intermediate operation is wrong. An independent manual sample of fragments, with criteria written before classification, would permit estimation of rule errors. Without one, call the results lexical indicators.
The detector trained a classifier on the first 100 questions and evaluated it on the other 100. For the verification label it recovered 21.2% of the 85 rule-positive lines; precision against the same rule was 100%. This describes how closely it imitates an automatic label on this split, not its precision against human annotation.
New capability or probability shift?
The capability boundary after reinforcement asks whether the trained policy reaches solutions the base could not generate, or assigns more probability to already possible solutions. A pass@1 improvement is compatible with both explanations. Yue and colleagues compare coverage of base and tuned policies as increases; their evidence depends on models, tasks and sampling protocol.
With samples and successes for a problem, the without-replacement coverage estimator is
The numerator is taken as zero if . This is the fraction of subsets of size containing at least one success. Estimating coverage of future samples from the same policy requires recorded samples to be exchangeable under the protocol; temperature, truncation and extractor must remain fixed. With and , pass@1 is and pass@64 is approximately .
The formula can be viewed through the complement. There are possible subsets of attempts; for none to succeed, all must be chosen from the failures, giving subsets. Subtracting that fraction from one yields the estimator. If samples are independently and identically generated for a problem, its expectation estimates the probability of at least one success in new attempts under the same procedure. Independence of problems is a different question: the bootstrap interval resamples them as units and does not remove shared dependence among them.
If the trained curve wins at small and the base wins at large , the first concentrates more success probability in that test and the second covers more problems with that budget. This does not prove the base policy has superior general capability or that RL never creates new capabilities. No crossover is also a valid result. Resample entire problems for paired intervals and report how many cases have no extractable answer.
The estimator changes smoothly with , but at the extreme it only indicates whether there was any success among saved samples. Do not extrapolate to : an unobserved answer could have positive probability. If splitting by difficulty using the base policy’s own success, reserve some samples to form the group and use others to draw curves; this reduces selection by luck on the same attempts. The group remains defined by that policy and dataset, not universal difficulty. Each curve’s bands do not replace the interval for their paired difference.
Absence of successes also has uncertainty. If each sample were independent and had fixed probability of solving a problem, observing zero successes in 256 attempts would have probability . Setting that probability to 0.05 gives : above that value, observing zero would be less than 5% likely under this model. This does not prove , nor provide a simultaneous bound for all problems and policies. Dependence between samples, temperature changes or procedural variation invalidate that simple interpretation.
Equal equalizes attempt counts, not necessarily their cost. A policy writing twice as many tokens may have consumed more time and energy for the same point on the curve. Also report input and output tokens, truncated lengths and verification cost. A fixed-budget comparison needs an allocation rule defined before observing successes. A different temperature changes the sampling policy evaluated; it is not an innocuous presentation detail.
No crossover was observed in this test: estimated pass@1 was approximately 0.0039% for the base and 0.0352% for GRPO; at 256 attempts it was 1% and 4.5%. The paired bootstrap interval for the GRPO−base difference at was [0.5, 7] percentage points. These are low rates for this particular task and extractor. The base produced the required format in 1.93% of samples and truncated 55.84%; GRPO achieved 99.91% format and truncated 0.084%. These differences prevent attributing improvement solely to arithmetic reasoning. Mean output was 209.6 tokens for the base and 38.7 for GRPO; input cost was equal, averaging 88.6 tokens per attempt.
Thinking too much and too little
Overthinking occurs when more computation or steps worsen the solution or consume resources without a compensating gain. Chen and colleagues study this phenomenon in reasoning models. Association between length and error does not prove length causes error: difficult problems can produce longer answers precisely because they are difficult.
Intervening on the budget requires rerunning the condition: truncating an already generated trace afterward and assuming the model would have answered correctly there does not estimate a stopping policy. Forced closure changes the continuation. Compare answers generated with and without intervention on the same problems; report truncated answers, extraction failures and extra selection-call cost. A limit that saves tokens but removes the final answer does not have the same performance.
One way to explore the tradeoff is to separate easy problems using a prior measurement, apply several budgets to each held-out problem and plot correctness against tokens spent. If two conditions use the same question, the difference interval must preserve that pairing. Repeating seeds studies sampling variation; with only one generation per condition, problem-level uncertainty does not cover all that variation. A threshold chosen after looking at the test set also needs independent validation before presentation as a general policy.
Not all tokens play the same role in cost: the prompt is processed as input, reasoning and answer are generated sequentially, and a second closure call reprocesses context. A sum of input and output tokens is a useful indicator, but not a timer or direct energy measure. If the procedure reuses cache or uses a different backend, report it and measure time separately. Thought length does not automatically include final-answer tokens or a system-inserted intervention message.
In this particular run, limits of 256, 512 and 1024 thinking tokens obtained 52, 77 and 88 correct answers out of 200, respectively. There were 137, 118 and 100 unextracted answers, so those rates mix extraction and problem-solving effects. A truncated answer can also be partially extracted and counted as a mismatch even if preceding text contains the expected answer. Sixteen statements included Asymptote diagram code supplied as text without a rendered image. One generation per condition and problem does not characterize variation across seeds; these figures do not establish that thinking more always helps.
Taking published level 1 as an exploratory proxy for easy problems gives 21 cases: limits 256, 512 and 1024 solve 15, 18 and 19, with 5, 3 and 2 unextracted answers. The shortest cutoff averages 479 distinct tokens versus 934 with the long limit, but loses four successes overall. This is not evidence of harmful overthinking in this subset; it does not identify the best threshold for other problems either.
Sui and colleagues organize efficiency techniques into interventions on the model, output and prompt. These are different intervention points: training concise answers modifies the policy; stopping or extending generation modifies its path; adapting the instruction to difficulty modifies its context. Each can alter both length and the extractable-answer rate. A useful comparison expresses the accuracy-cost frontier, including selector and any probing cost.
To avoid circular comparison, decide beforehand whether the objective is reducing tokens with a maximum tolerated accuracy loss or maximizing accuracy under a fixed budget. Choose the threshold or selector on validation and evaluate it once on held-out problems. A probe-based selector may need several preliminary generations: their cost must be added to the final answer even when it chooses a short limit. If the longer condition solves a problem and the shorter fails, count a loss; if the reverse occurs, count a gain. The net difference hides both kinds of change, so publish the full paired table.
Computation outside text
Latent reasoning uses continuous representations or intermediate positions instead of expressing every step as words. Coconut studies a variant feeding hidden states as later inputs. Pfau and colleagues show that filler tokens can enable extra computation on specific algorithmic tasks under appropriate training. It does not follow that any string of dots replaces an explanation or that latent representation is necessarily more accurate.
The potential advantage is devoting computation to states that need not be fluent language. The cost is that a textual readout does not directly show those states. A probe, intervention or external verifier can provide partial evidence, but “there is a visible trace” and “the trace is faithful” are different claims.
Consider three objects: the evolving internal state, the explanation the model may emit and the result checked by a third party. Readable text aids inspection and debugging but may omit decisive factors; a latent state can solve the task without producing a verifiable justification. Thus assess accuracy and cost alongside the ability to detect errors or relevant information under interventions. These measurements are properties of the system and inspection procedure, not a simple “interpretable” label.
Hints and monitoring
Chain monitoring inspects text for relevant decisions or signals. Chen and colleagues evaluated different kinds of hints and observed that, in many settings, hint use was verbalized infrequently. Baker and colleagues investigate monitoring and the risk that optimizing directly against the monitor produces obfuscation. Those observations do not establish that all chains are useless or allow inference of internal intentions from an isolated example.
A controlled experiment can pair each question with two conditions: no hint and an explicit incorrect numerical suggestion. Record the extracted answer in both and mark whether it changes toward the suggestion; also search reasoning for mentions of the hint. Change is a proxy for influence, not a direct readout of the internal mechanism, and a lexical rule can confuse mention with use. If an answer is not extracted, report abstention and the denominator used. Changing the prompt can alter the sampling distribution even with the same seed, so the pair is not a perfect individual test.
For example, if an answer changes from 7 to 8 when 8 is suggested, the change is compatible with hint influence; it does not reveal why that run changed. If the control already answered 8, the change criterion does not count it as use, though the hint might reinforce that answer. Numbers can also appear in text for reasons unrelated to the hint. For a mention rate conditioned on change, the denominator must be pairs changing toward the hint, not all problems. The rate over all problems answers another question.
The local DeepSeek-R1-Distill-Qwen-1.5B laboratory ran 50 integer-answer problem pairs with an incorrect suggestion equal to the reference plus one. The extractor obtained both answers in 18 pairs; none of those 18 changed from another answer toward the suggestion. The lexical rule detected a hint mention in 42 of 50 hinted traces, including traces whose answer was not extracted. Since no change toward the hint was observed, the proportion of mentions among changes has no denominator and cannot be calculated. These indicators do not identify whether the model used the suggestion, and 32 incomplete pairs limit interpretation of the negative result. Three of the 50 statements included diagram code supplied as text without a rendered image.
Training at test time
Test-time training temporarily modifies weights using task data available at test time; it differs from generating more tokens with fixed weights. Akyürek and colleagues study this alternative in few-shot learning. Its budget includes updates, memory and risk of adaptation to evaluation. Do not use the test label to adjust weights or compare only subsequent generation time.
When reading a frontier result, ask how training and evaluation were separated, what is known about contamination, how many seeds and problems were used, what computation includes and whether intervals reflect the independent unit. In a set of 30 problems, one case changes accuracy by percentage points. A single seed and point score do not characterize uncertainty or prove generalization.
Local laboratories: coverage, traces and hints
To compare the base and GRPO adapter from the previous lesson, use evaluate_countdown.py with 200 problems and 256 samples per problem for each policy. It needs countdown.py, star_countdown.py, star_local.py, and the lesson 5 extractor and its dependency in the import directory. The curve comparator requires both campaigns complete with the same generation protocol, checks that problems match and calculates every from 1 to 256 using paired resampling. It classifies difficulty with the first 16 base samples and reserves the remaining 240 for subgroup curves; those curves go up to , not 256.
python evaluate_countdown.py --model-path "$SNAPSHOT_05" --output base_256 --count 200 --samples 256
python evaluate_countdown.py --model-path "$SNAPSHOT_05" --adapter "$GRPO_ADAPTER" --output grpo_256 --count 200 --samples 256
python compare_passk.py --base base_256 --trained grpo_256 --output passk.json
The behavior detector receives traces from the lesson 8 budget campaign. Lexical rules label fragments and a small classifier learns on the first half of problems; its precision and recall on the second half are calculated against those same rules, not people. The hint experiment compares 50 integer-answer problems with and without an incorrect suggestion. It records each condition and separately counts pairs with both answers extracted, changes toward the hint and lexical mentions. None of those labels directly observes the model’s internal processes.
The summary of the 50 executed pairs retains counts and per-problem classification. The run used the vLLM variant described below and the model and data revisions pinned by the script.
For a compatible GPU, the batched vLLM generator provides an alternative path: it atomically saves each group of eight samples and can resume pending groups. In vLLM 0.26 the eight child requests receive the group seed plus their index; therefore the offset between groups is eight, not one. Individual seeds and generated IDs are also saved to check the protocol. Use the same backend and parameters for both policies; the same seed in vLLM and Transformers does not imply identical answers. Before comparing models, check the backend and adapter using greedy decoding on fixed questions. Compare input IDs and parameters, and investigate divergences alongside margins between alternatives: different kernels can resolve very close probabilities differently. A discrepancy does not itself prove the weights wrong. The comparator rejects mixed protocols or a purported trained policy without an adapter hash. vLLM output count excludes terminal EOS; that convention is recorded so token counts are not mistaken for those of another runner.
The l10 adapter must be the final folder of a completed campaign: its parent directory contains protocol.json and completed.json, with 900 steps and the weights-file hash. The next example assumes downloaded scripts are in l11/ and folder l09/ contains countdown.py; the interpreter must have PyTorch, Transformers and vLLM with CUDA installed. The validator repeats both questions also with --adapter "$GRPO_ADAPTER" before the trained campaign.
PYTHONPATH=l09 python l11/validate_backend.py --model-path "$SNAPSHOT_05" --output validacion-base.json
PYTHONPATH=l09 python l11/validate_backend.py --model-path "$SNAPSHOT_05" --adapter "$GRPO_ADAPTER" --output validacion-grpo.json
PYTHONPATH=l09 python l11/evaluate_countdown_vllm.py --model-path "$SNAPSHOT_05" --output base_vllm
PYTHONPATH=l09 python l11/evaluate_countdown_vllm.py --model-path "$SNAPSHOT_05" --adapter "$GRPO_ADAPTER" --output grpo_vllm
python l11/compare_passk.py --base base_vllm --trained grpo_vllm --output passk.json
The batched hint variant uses file test.jsonl from the pinned MATH-500 revision, checks its hash and saves each condition separately. Thought closure and the answer are separate calls; their seeds are recorded. Its extraction criterion recognizes integer answers in \boxed{...}, so it does not claim to evaluate all valid forms of a mathematical answer.
python l11/hint_vllm.py --model-path "$DEEPSEEK_SNAPSHOT" --dataset "$MATH500_JSONL" --output pistas_vllm
Exercises
def paired_pass_curves(base, trained, n, ks, replicas, seed):
pass