mlsanityData to 14 Oct 2026

Code Generation by Differential Test Time Scaling

arXiv 2605.20473 ↗First posted 19 May 2026cs.SE cs.AI cs.LGcited by 2

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

Abstract (arXiv)

Test-time scaling has emerged as a promising approach for improving code generation by exploring large solution spaces at inference time. However, existing methods often rely on public test cases that are unavailable in practice, or require extensive LLM inference for candidate selection, leading to significant token consumption and time overhead. We present DiffCodeGen, a novel test-time scaling method for code generation based on coverage-guided differential analysis. DiffCodeGen generates diverse code candidates using various sampling and prompting strategies, then applies coverage-guided fuzzing to synthesize inputs without requiring any existing tests or large language models. By executing all candidates on these inputs, DiffCodeGen captures their dynamic behavior and clusters candidates based on behavioral similarity. DiffCodeGen selects the medoid of the largest cluster as the final output. Unlike prior test-time scaling methods that invoke additional LLM inference for candidate selection, DiffCodeGen performs selection without any extra model calls, incurring little to no additional token consumption. DiffCodeGen is fully asynchronous, naturally suited to the current trend of agentic coding, and is thus efficient and highly scalable. We evaluate DiffCodeGen across 4 large language models, demonstrating consistent improvements over baselines. Compared to state-of-the-art test-time scaling methods, DiffCodeGen achieves competitive or superior performance while using only a fraction of time and tokens. DiffCodeGen is model-agnostic and can be combined with reasoning models to further boost performance.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 10 of its 96 references that are in the map. First posted on arXiv 19 May 2026.

Builds on

10 of 96 references.

Closest ancestors · 1

Same direction, newest first

  1. 2024Qwen2.5-Coder Technical Report18 Sep

Other references · 9

  1. 2015Distilling the Knowledge in a Neural Networkcited by 10,324
  2. 2025Qwen3 Technical Reportcited by 8,820
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  4. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
  5. 2025Skywork-Reward-V2: Scaling Preference Data Curation via Human-AI Synergycited by 214
  6. 2024Code Generation with AlphaCodium: From Prompt Engineering to Flow Engineeringcited by 103
  7. 2024LLAMAFUZZ: Large Language Model Enhanced Greybox Fuzzingcited by 14
  8. 2024RepoGenReflex: Enhancing Repository-Level Code Completion with Verbal Reinforcement and Retrieval-Augmented Generationcited by 6
  9. 2025Attention-Aligned Reasoning for Large Language Modelscited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025S*: Test Time Scaling for Code Generation
  2. 2025CodeChemist: Test-Time Scaling for Low-Resource Code Generation via Functional Knowledge Transfer
  3. 2025SELF-REDRAFT: Eliciting Intrinsic Exploration-Exploitation Balance in Test-Time Scaling for Code Generation
  4. 2026TDD-Agent: Test-Driven Reasoning for Code Generation
  5. 2025Z1: Efficient Test-time Scaling with Code
  6. 2026GraphAHA: Graph-Based Adaptive Search with Heterogeneous Actions for Test-Time Code Generation
  7. 2025Satori-SWE: Evolutionary Test-Time Scaling for Sample-Efficient Software Engineering
  8. 2026PaT: Planning-after-Trial for Efficient Test-Time Code Generation