mlsanityData to 7 Oct 2026

CodeChemist: Test-Time Scaling for Low-Resource Code Generation via Functional Knowledge Transfer

arXiv 2510.00501 ↗First posted 1 Oct 2025cs.SEcited by 1

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

Abstract (arXiv)

Code Large Language Models (CodeLLMs) have been widely adopted for Natural Language to Programming Language code generation, powering applications with large user bases. Their performance, however, varies sharply across programming languages (PLs) and is particularly suboptimal for low-resource PLs due to data scarcity, limiting their overall usability. In this work, we introduce CodeChemist, a simple yet effective, training-free test-time scaling framework that transfers the model's functional knowledge from high-resource to low-resource PLs via synthesized test cases, without relying on external models. Specifically, CodeChemist first applies multi-temperature hedged sampling to generate a pool of candidate solutions in the low-resource PL and synthesizes a set of test inputs. It then estimates uncertainty: when uncertainty is low, it selects the output via in-language majority voting; otherwise, it constructs cross-lingual I/O test oracles by executing high-resource reference programs and selects the candidate with the highest pass rate. Extensive experiments demonstrate that CodeChemist significantly outperforms existing test-time scaling methods, improving code generation for both low-resource PLs (e.g., Lua) and complex-syntax PLs (e.g., C++, Java) without retraining.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 27 of its 48 references that are in the map. First posted on arXiv 1 Oct 2025.

Builds on

27 of 48 references.

Closest ancestors · 7

Same direction, newest first

  1. 2025S*: Test Time Scaling for Code Generation20 Feb
  2. 2025MCTS-Judge: Test-Time Scaling in LLM-as-a-Judge for Code Correctness Evaluation18 Feb
  3. 2025ACECODER: Acing Coder RL via Automated Test-Case Synthesis3 Feb
  4. 2025CodeMonkeys: Scaling Test-Time Compute for Software Engineering24 Jan
  5. 2024Qwen2.5-Coder Technical Report18 Sep
  6. 2024Class-Level Code Generation from Natural Language Using Iterative, Tool-Enhanced Reasoning over Repository22 Apr
  7. 2023Teaching Large Language Models to Self-Debug11 Apr

Other references · 20

  1. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  3. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  4. 2024GPT-4o System Cardcited by 4,467
  5. 2021Program Synthesis with Large Language Modelscited by 3,509
  6. 2024Large Language Monkeys: Scaling Inference Compute with Repeated Samplingcited by 946
  7. 2023Math-Shepherd: Verify and Reinforce LLMs Step-by-step without Human Annotationscited by 895
  8. 2024DeepSeek-V3 Technical Reportcited by 724
  9. 2022MultiPL-E: A Scalable and Extensible Approach to Benchmarking Neural Code Generationcited by 132
  10. 2024The Larger the Better? Improved LLM Code-Generation via Budget Reallocationcited by 41
  11. 2025Exploring the Impact of Temperature on Large Language Models:Hot or Cold?cited by 40
  12. 2025EpiCoder: Encompassing Diversity and Complexity in Code Generationcited by 21
8 more
  1. 2023The potential of LLMs for coding with low-resource and domain-specific programming languagescited by 11
  2. 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agentscited by 11
  3. 2025Learning to Generate Unit Test via Adversarial Reinforcement Learningcited by 11
  4. 2025Enhancing Code Generation for Low-Resource Languages: No Silver Bulletcited by 9
  5. 2025When Life Gives You Samples: The Benefits of Scaling up Inference Compute for Multilingual LLMscited by 9
  6. 2025Agnostics: Learning to Code in Any Programming Language via Reinforcement with a Universal Learning Environmentcited by 5
  7. 2024GenX: Mastering Code and Test Generation with Execution Feedbackcited by 4
  8. 2024Bridge-Coder: Unlocking LLMs' Potential to Overcome Language Gaps in Low-Resource Codecited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2025OpenCodeReasoning-II: A Simple Test Time Scaling Approach via Self-Critique
  2. 2023Turbulence: Systematically and Automatically Testing Instruction-Tuned Large Language Models for Code
  3. 2026Code Generation by Differential Test Time Scaling
  4. 2024Large Language Models as Test Case Generators: Performance Evaluation and Enhancement
  5. 2025Dynamic Scaling of Unit Tests for Code Reward Modeling
  6. 2023CAT-LM: Training Language Models on Aligned Code And Tests
  7. 2025Z1: Efficient Test-time Scaling with Code
  8. 2025rStar-Coder: Scaling Competitive Code Reasoning with a Large-Scale Verified Dataset