paper-with-me

홈 › Papers

CODESIM: Multi-Agent Code Generation and Problem Solving through Simulation-Driven Planning and Debugging

2025-02-08 · Md. Ashraful Islam, Mohammed Eunus Ali, Md Rizwan Parvez

Large Language Models (LLMs) have made significant strides in code generation and problem solving. Current approaches employ external tool-based iterative debuggers that use compiler or other tool-based runtime feedback to refine coarse programs generated by various methods. However, the effectiveness of these approaches heavily relies on the quality of the initial code generation, which remains an open challenge. In this paper, we introduce CodeSim, a novel multi-agent code generation framework that comprehensively addresses the stages of program synthesis-planning, coding, and debugging-through a human-like perception approach. As human verifies their understanding of any algorithms through visual simulation, CodeSim uniquely features a method of plan verification and internal debugging through the step-by-step simulation of input/output. Extensive experiments across seven challenging competitive problem-solving and program synthesis benchmarks demonstrate CodeSim's remarkable code generation capabilities. Our framework achieves new state-of-the-art (pass@1) results-(HumanEval 95.1%, MBPP 90.7%, APPS 22%, and CodeContests 29.1%). Furthermore, our method shows potential for even greater enhancement when cascaded with external debuggers. To facilitate further research and development in this area, we have open-sourced our framework in this link (https://kagnlp.github.io/codesim.github.io/).

📄 PDF Abstract BibTeX arXiv:2502.05664

Code (1)

kagnlp/CodeGenerator

Tasks

Code GenerationHumanEvalmbppProgram Synthesis

Similar Papers 제목 키워드 기반

CodeSimpleQA: Scaling Factuality in Code Large Language Models

2025-12-22 · Jian Yang, Wei Zhang, Yizhi Li, Shawn Guo 외 arxiv

Large language models (LLMs) have made significant strides in code generation, achieving impressive capabilities in synthesizing code snippets from natural language instructions. However, a critical challenge remains in …

Reinforcement LearningCode Generation

MARS: Multi-Specialist LLM Relay System for Competitive Programming

2026-08-24 · Andrei Mikhailov, Mikhail Burtsev, Alsu Sagirova hf

Large Language Models excel at code generation, yet competitive programming exposes a persistent failure mode: existing multi-agent pipelines distribute work over generic planner, coder, and debugger roles and delegate t…

Code Generation

You Don't Need Public Tests to Generate Correct Code

2026-04-23 · Kaushitha Silva, Srinath Perera arxiv

Multi-agent systems are frequently employed for autonomous code generation, demonstrating strong utility in complex algorithmic problem-solving. Recent studies tackle the difficulty of producing functionally correct prog…

Code Generation

Source Code Clone Detection Using Unsupervised Similarity Measures

2024-01-18 · Jorge Martinez-Gil

Assessing similarity in source code has gained significant attention in recent years due to its importance in software engineering tasks such as clone detection and code search and recommendation. This work presents a co…

Clone DetectionCode Search

Advanced Detection of Source Code Clones via an Ensemble of Unsupervised Similarity Measures

2024-05-03 · Jorge Martinez-Gil

The capability of accurately determining code similarity is crucial in many tasks related to software development. For example, it might be essential to identify code duplicates for performing software maintenance. This …

Clone DetectionCode SearchEnsemble Learning