mlsanityData to 14 Oct 2026

Reinforcement Learning-Guided Chain-of-Draft for Token-Efficient Code Generation

arXiv 2509.25243 ↗First posted 26 Sep 2025cs.SE cs.AIcited by 1

Not on the map. Why?

Abstract (arXiv)

LLMs demonstrate surface-level fluency in code generation but struggle with structured reasoning tasks requiring correctness and semantic alignment. While Chain-of-Thought (CoT) prompting enhances reasoning through intermediate steps, it suffers from verbosity and inefficiency. Chain-of-Draft (CoD) prompting offers more concise reasoning, but the stochastic nature of LLMs produces varying solution quality, making optimal selection challenging. We propose multicod, a reinforcement learning framework that learns to select the most promising candidate from CoD-generated solutions. Our approach uses strategy-guided prompting to encourage diverse reasoning styles and models solution selection as a contextual bandit problem. The framework optimizes interpretable features including code complexity, reasoning structure, and strategic metadata through a reward function balancing correctness, efficiency, and clarity. Experiments on MBPP, BigCodeBench, SWE-bench Verified, and Defects4J show multicod~outperforms and in some cases, on par with standard prompting, CoT, and CoD baselines while achieving cost and token efficiency from the user's perspective through a multi-candidate design that charges only for the selected output, reducing user billing by over 50% and improving LLM response quality, making multicod~more sustainable and scalable for real-world deployment. Our code is available: https://anonymous.4open.science/r/MultiCoD.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 39 of its 47 references that are in the map. First posted on arXiv 26 Sep 2025.

Builds on

39 of 47 references.

References · 39

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2023GPT-4 Technical Reportcited by 18,396
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  5. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
  6. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  7. 2021Program Synthesis with Large Language Modelscited by 3,637
  8. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
  9. 2022Fast Inference from Transformers via Speculative Decodingcited by 1,653
  10. 2024Qwen2.5-Coder Technical Reportcited by 1,203
  11. 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,076
  12. 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 1,006
27 more
  1. 2023Graph of Thoughts: Solving Elaborate Problems with Large Language Modelscited by 886
  2. 2022PAL: Program-aided Language Modelscited by 652
  3. 2024Better & Faster Large Language Models via Multi-token Predictioncited by 360
  4. 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 358
  5. 2025Chain of Draft: Thinking Faster by Writing Lesscited by 297
  6. 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 239
  7. 2023ART: Automatic multi-step reasoning and tool-use for large language modelscited by 197
  8. 2023CodePlan: Repository-level Coding using LLMs and Planningcited by 140
  9. 2023Structured Chain-of-Thought Prompting for Code Generationcited by 138
  10. 2023Self-planning Code Generation with Large Language Modelscited by 124
  11. 2023RLTF: Reinforcement Learning from Unit Test Feedbackcited by 114
  12. 2023Execution-based Code Generation using Deep Reinforcement Learningcited by 99
  13. 2022Coder Reviewer Reranking for Code Generationcited by 84
  14. 2024StepCoder: Improve Code Generation with Reinforcement Learning from Compiler Feedbackcited by 77
  15. 2023CodeChain: Towards Modular Code Generation Through Chain of Self-revisions with Representative Sub-modulescited by 58
  16. 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
  17. 2022Fault-Aware Neural Code Rankerscited by 33
  18. 2025Uncertainty-Guided Chain-of-Thought for Code Generation with LLMscited by 32
  19. 2023CodeCoT: Tackling Code Syntax Errors in CoT Reasoning for Code Generationcited by 29
  20. 2024Steering Large Language Models between Code Execution and Textual Reasoningcited by 24
  21. 2024ThinkRepair: Self-Directed Automated Program Repaircited by 23
  22. 2025Process-Supervised Reinforcement Learning for Code Generationcited by 22
  23. 2024FALCON: Feedback-driven Adaptive Long/short-term memory reinforced Coding Optimization systemcited by 8
  24. 2024Sifting through the Chaff: On Utilizing Execution Feedback for Ranking the Generated Code Candidatescited by 6
  25. 2024Token-Efficient Leverage Learning in Large Language Modelscited by 2
  26. 2025CRPE: Expanding The Reasoning Capability of Large Language Model for Code Generationcited by 2
  27. 2025Unlocking Full Efficiency of Token Filtering in Large Language Model Trainingcited by 1

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2025Chain of Draft for Software Engineering: Challenges in Applying Concise Reasoning to Code Tasks
  2. 2025Understanding Chain-of-Thought Effectiveness in Code Generation: An Empirical and Information-Theoretic Analysis
  3. 2025Scaling Code-Assisted Chain-of-Thoughts and Instructions for Model Reasoning
  4. 2025Intention Chain-of-Thought Prompting with Dynamic Routing for Code Generation
  5. 2024What Makes Large Language Models Reason in (Multi-Turn) Code Generation?
  6. 2026Domain-Adaptable Reinforcement Learning for Code Generation with Dense Rewards
  7. 2025Chain-of-Code Collapse: Reasoning Failures in LLMs via Adversarial Prompting in Code Generation
  8. 2026Prompting Policies for Multi-step Reasoning and Tool-Use in Black-box LLMs with Iterative Distillation of Experience