mlsanityData to 14 Oct 2026

Primal Generation, Dual Judgment: Self-Training from Test-Time Scaling

arXiv 2605.11299 ↗First posted 11 May 2026cs.LG cs.CL cs.SEcited by 0

On the map: LLM reasoning → Reasoning for agents, planning and code

Abstract (arXiv)

Code generation is typically trained in the primal space of programs: a model produces a candidate solution and receives sparse execution feedback, often a single pass/fail bit. Test-time scaling enriches the inference procedure by sampling multiple candidates and judging among them, but the comparative information this process reveals is discarded after inference. We argue that this information defines a dual judgment space that provides a far richer training signal: the model learns not from an isolated success or failure, but from the relative correctness structure across its own plausible attempts, identifying which succeed, which fail, and what distinguishes them. We introduce DuST (Dual Self-Training), a framework for self-training from the dual judgment space. DuST samples candidate programs from the model's own distribution, labels them through sandbox execution, retains groups containing both successes and failures, and trains the model to rank candidates by execution correctness using GRPO. The objective is purely discriminative: the model is never directly rewarded for generating correct programs. Dual self-training improves both judgment and generation. Across five models spanning two families and three scales (4B to 30B), DuST consistently improves Best-of-4 test-time scaling on LiveCodeBench. For Qwen3-30B-Thinking on LiveCodeBench v6, judgment quality improves by +6.2 NDCG, single-sample pass@1 improves by +3.1, and Best-of-4 accuracy improves by +4.1. The trained model's single rollout matches the base model's Best-of-4 performance. SFT on the same ranking data improves judgment without improving generation, confirming that on-policy RL is the mechanism that transfers dual-space learning back into primal generation.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 38 of its 45 references that are in the map. First posted on arXiv 11 May 2026.

Builds on

38 of 45 references.

Closest ancestors · 10

Same direction, newest first

  1. 2025OpenCodeReasoning-II: A Simple Test Time Scaling Approach via Self-Critique11 Jul
  2. 2025rStar-Coder: Scaling Competitive Code Reasoning with a Large-Scale Verified Dataset27 May
  3. 2025OpenCodeReasoning: Advancing Data Distillation for Competitive Coding2 Apr
  4. 2025Thinking Longer, Not Larger: Enhancing Software Engineering Agents via Scaling Test-Time Compute31 Mar
  5. 2025S*: Test Time Scaling for Code Generation20 Feb
  6. 2025Teaching Language Models to Critique via Reinforcement Learning5 Feb
  7. 2025ACECODER: Acing Coder RL via Automated Test-Case Synthesis3 Feb
  8. 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learning2 Oct
  9. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code12 Mar
  10. 2022Competition-Level Code Generation with AlphaCode8 Feb

Other references · 28

  1. 2022Training language models to follow instructions with human feedbackcited by 15,971
  2. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  3. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  4. 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
  5. 2025s1: Simple test-time scalingcited by 1,341
  6. 2024SimPO: Simple Preference Optimization with a Reference-Free Rewardcited by 963
  7. 2024Self-Rewarding Language Modelscited by 681
  8. 2024Generative Verifiers: Reward Modeling as Next-Token Predictioncited by 480
  9. 2023RRHF: Rank Responses to Align Language Models with Human Feedback without tearscited by 463
  10. 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 358
  11. 2024Inference Scaling Laws: An Empirical Analysis of Compute-Optimal Inference for Problem-Solving with Language Modelscited by 290
  12. 2024Self-Play Preference Optimization for Language Model Alignmentcited by 232
16 more
  1. 2025Skywork Open Reasoner 1 Technical Reportcited by 165
  2. 2023Execution-based Code Generation using Deep Reinforcement Learningcited by 99
  3. 2024Planning In Natural Language Improves LLM Search For Code Generationcited by 83
  4. 2025Learning to Plan & Reason for Evaluation with Thinking-LLM-as-a-Judgecited by 78
  5. 2024Self-Generated Critiques Boost Reward Modeling for Language Modelscited by 71
  6. 2025Evaluating Judges as Evaluators: The JETTS Benchmark of LLM-as-Judges as Test-Time Scaling Evaluatorscited by 44
  7. 2025Klear-Reasoner: Advancing Reasoning Capability via Gradient-Preserving Clipping Policy Optimizationcited by 39
  8. 2025ReVISE: Learning to Refine at Test-Time via Intrinsic Self-Verificationcited by 35
  9. 2025Process-Supervised Reinforcement Learning for Code Generationcited by 22
  10. 2025Thought calibration: Efficient and confident test-time scalingcited by 21
  11. 2025DARS: Dynamic Action Re-Sampling to Enhance Coding Agent Performance by Adaptive Tree Traversalcited by 20
  12. 2025Incentivizing LLMs to Self-Verify Their Answerscited by 17
  13. 2025Reasoning-as-Logic-Units: Scaling Test-Time Reasoning in Large Language Models Through Logic Unit Alignmentcited by 12
  14. 2025Efficient Switchable Safety Control in LLMs via Magic-Token-Guided Co-Trainingcited by 7
  15. 2026Scaling Agentic Verifier for Competitive Codingcited by 7
  16. 2026Learning Generative Selection for Best-of-Ncited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025SELF-REDRAFT: Eliciting Intrinsic Exploration-Exploitation Balance in Test-Time Scaling for Code Generation
  2. 2026Self-Execution Simulation Improves Coding Models
  3. 2026TIPCODER: Reinforcement Learning Boosted Test-time Instruction Proposer for Code Generation
  4. 2022Aligning Offline Metrics and Human Judgments of Value for Code Generation Models
  5. 2026Correct Tests Are Not Enough: Measuring and Training Oracle Conversion in Specification-Based Test Generation ↗
  6. 2026Verification Trap: Understanding Test-Time Selection Failures under False Premises in Code Generation
  7. 2026How Much Can Language Models Gain from Test-Time Computation?
  8. 2026Test-Time Scaling in the Wild: Why Exploitation, Not Exploration, Is the Bottleneck