RefineCoder: Iterative Improving of Large Language Models via Adaptive Critique Refinement for Code Generation
Open accessAbstract
Code generation has attracted increasing attention with the rise of Large Language Models (LLMs). Many studies have developed powerful code LLMs by synthesizing code-related instruction data and applying supervised fine-tuning. However, these methods are limited by teacher model distillation and ignore the potential of iterative refinement by self-generated code. In this paper, we propose Adaptive Critique Refinement (ACR), which enables the model to refine itself by self-generated code and external critique, rather than directly imitating the code responses of the teacher model. Concretely, ACR includes a composite scoring system with LLM-as-a-Judge to evaluate the quality of code responses and a selective critique strategy with LLM-as-a-Critic to critique self-generated low-quality code responses. We develop the RefineCoder series by iteratively applying ACR, achieving continuous performance improvement on multiple code generation benchmarks. Compared to the baselines of the same size, our proposed RefineCoder series can achieve comparable or even superior performance using less data.
AI snapshot
Written from the paper’s full text.
TL;DR
The paper proposes Adaptive Critique Refinement (ACR), an iterative fine-tuning paradigm that refines code LLMs using self-generated code plus teacher-generated critique rather than directly imitating teacher code. The resulting RefineCoder models improve average Pass@1 over three iterations on multiple code benchmarks while using only 80K training examples.
Key findings
- On LiveCodeBench and BigCodeBench-hard, RefineCoder-DS-6.7B and RefineCoder-QW-7B improve average Pass@1 by 2.7 and 3.1 points after three ACR iterations; iter0-to-iter1 gains are 2.0 and 2.3 points. The paper reports that RefineCoder-DS-6.7B and RefineCoder-QW-7B (Iter3) outperform same-size baselines by 3.6 and 2.3 points using only 80K data.
- On HumanEval(+), MBPP(+), and BigCodeBench, three iterations yield average improvements of 2.7 and 4.5 points for the two RefineCoder models. RefineCoder-QW-7B Iter3 reaches an average of 70.4, while RefineCoder-DS-6.7B Iter3 reaches 64.0.
- The composite scoring system is validated by sampling 10 code responses per benchmark question: highest-scoring code far exceeds lowest-scoring code, with low error rates. For example, RefineCoder-QW-7B Iter3 scores 83.6 best vs. 75.0 worst on HumanEval+ (error rate 3.1) and 73.4 best vs. 71.1 worst on MBPP+ (error rate 5.3).
- Data leakage analysis reports TLI values for HumanEval+/MBPP+ of 43.20/19.40 for Magic-Evol-Instruct, 47.04/19.46 for Evol-CodeAlpaca-v1, and 30.50/17.67 for Code-FeedBack, versus 4.97/7.00 for the paper’s dataset. The paper states Magic-OSS-Instruct and its own dataset are entirely free from data leakage, while the other three datasets show severe leakage.
Methods
- ACR iteratively samples 7 code responses per instruction at temperature 0.7, ranks them with a composite scoring system combining multi-faceted LLM-as-a-Judge criteria (Q&A consistency, code existence, correctness, clarity, comments) and an executor score, then uses pairwise judgment against the teacher-generated response to select a winner and loser.
- A selective critiquing strategy uses LLM-as-a-Critic when the teacher response wins, producing two-turn data `(x, y_l1, c, y_w)`; otherwise it constructs single-turn data `(x, y_w)`. The model is fine-tuned from scratch each iteration to prevent overfitting.
- Initial SFT dataset D0 contains 80K high-quality Python instructions built by combining Evol-Instruct and SelfCodeAlign with GPT-4o. Base models are DS-Coder-6.7B-Base and Qwen2.5-Coder-7B-Base; Qwen2.5-32B-Instruct serves as Judge and Critic. Training uses 2 epochs, global batch size 64, learning rate 5e-6, AdamW with cosine decay, and 16 A100-80G GPUs via LLaMA-Factory. Evaluation uses Pass@1 on HumanEval(+), MBPP(+), LiveCodeBench, BigCodeBench (hard), and MultiPL-E.
Limitations
- The paper states ACR primarily refines code responses based on programming instructions, so it still requires an initial set of high-quality, diverse instructions and a specialized code instruction generator to become more automated. It also states ACR may apply to other reasoning-intensive tasks such as mathematics, but this paper does not fully explore those domains.
- The paper reports diminishing returns after the third iteration, suggesting the model may enter a mild overfitting stage where further refinement fails to improve performance and may worsen it.
- The paper notes that severe data leakage in several baseline datasets makes it challenging for RefineCoder to surpass them on HumanEval(+) and MBPP+, and RefineCoder still lags behind the state-of-the-art baseline on those two benchmarks.
Model-written summary. Check it against the paper before relying on it.
Integrity signals
Registry
Cites
Statistics
Claims the paper makes
2 of 6 cited sources checked · 0 supported · 0 flagged · accuracy not yet measured
- Findingown data
Following three iterations, the two RefineCoder models improve average pass@1 substantially across HumanEval(+), MBPP(+), LiveCodeBench, and BigCodeBench (hard).
“After three iterations, RefineCoder-DS-6.7B and RefineCoder-QW-7B demonstrate significant improvements in average pass@1 performance on the HumanEval(+), MBPP(+), LiveCodeBench, and BigCodeBench (hard)”
Quote in the paperSubstantial claim - Findingown data
Three datasets-Magic-Evol-Instruct, Evol-CodeAlpaca-v1, and Code-FeedBack-exhibit serious leakage with respect to HumanEval(+) and MBPP(+).
“In contrast, Magic-Evol-Instruct, Evol-CodeAlpaca-v1, and Code-FeedBack demonstrate severe data leakage concerning HumanEval (+) and MBPP (+).”
Quote in the paperSubstantial claim - Findingown data
The proposed models attain the highest average Pass@1 among all compared baselines.
“Compared with all baselines, our models achieve the best average Pass@1 performance.”
Quote in the paperSubstantial claim - Findingown data
Repeated application of ACR to the RefineCoder models produces ongoing gains on several code generation benchmarks.
“We develop the RefineCoder series by iteratively applying ACR, achieving continuous performance improvement on multiple code generation benchmarks.”
- Also stated in: § 1 Introduction · plain
“By iteratively applying the ACR process, the model achieves continuous improvement in its code generation capabilities.”
- Also stated in: § 1 Introduction · plain
“Experimental results from the RefineCoder series show that iterative ACR continuously improves code generation performance.”
Quote in the paperSubstantial claim - Also stated in: § 1 Introduction · plain
- Findingown data
The third-iteration RefineCoder-QW-7B obtains top results for half of the programming languages.
“In particular, RefineCoder-QW-7B (Iter3) achieves the best results among half of the programming languages.”
Quote in the paperSubstantial claim
- Findingown data
Following three iterations, the models improve average performance by 2.7 and 4.5 points on HumanEval(+), MBPP(+), and BigCodeBench.
“After three iterations, our model achieves average performance improvements of 2.7 and 4.5 points, respectively, on HumanEval(+), MBPP(+) and BigCodeBench.”
Quote in the paperSubstantial claim - Findingown data
Removing either component causes performance to fall in both RefineCoder-QW-7B and RefineCoder-DS-6.7B.
“During the iteration process, ablating either module leads to a performance drop in both RefineCoder-QW-7B and RefineCoder-DS-6.7B”
Quote in the paperSubstantial claim - Findingreasoning
Dropping the second-turn critique data affects performance more strongly.
“Furthermore, removing the second-turn critique data has a greater impact on performance.”
Quote in the paperSubstantial claim - Findingown data
After the third iteration, the model shows obvious diminishing returns.
“As observed, the model exhibits clear diminishing returns after the third iteration.”
Quote in the paperSubstantial claim - Findingown data
After three refinement rounds, the two models gain 2.7 and 3.1 points in average Pass@1, respectively.
“the two models achieve an average Pass@1 improvement of 2.7 and 3.1, respectively, after three refinement iterations.”
Quote in the paperSubstantial claim - Findingnone given
On HumanEval(+), the RefineCoder models perform worse than the best baseline.
“Nevertheless, we find that the performance of Re-fineCoders on the Humaneval(+) are inferior to the state-of-the-art baseline.”
Quote in the paperSubstantial claim - Findingown data
The RefineCoder models show large performance improvements on two difficult code benchmarks.
“As shown in Table 1, the RefineCoder series achieves impressive performance gains on two challenging code benchmarks.”
Quote in the paperSubstantial claim - Findingown data
The approach also enhances fundamental coding skills.
“Similarity, our method also improves the basic coding ability, as shown in Table 2.”
Quote in the paperNot a substantial claim - Interpretationown data
Because three baselines rely on those leaked datasets, it is difficult for RefineCoder to beat them.
“These three datasets are used by three baselines, making it challenging for RefineCoder to surpass them.”
Quote in the paperSubstantial claim - Interpretationown data
The selective critiquing strategy is effective.
“indicating the effectiveness of our strategy.”
Quote in the paperSubstantial claim - Interpretationown data
Using self-generated code together with external critique produces better outcomes than simply distilling teacher code responses.
“highlighting that incorporating self-generated code and external critique yields better results than directly distilling code responses from the teacher model.”
Quote in the paperSubstantial claim - Interpretationown data
The scoring system works effectively.
“This clearly validates its effectiveness.”
Quote in the paperSubstantial claim - Interpretationreasoning
The ACR method allows a model to improve its own outputs through self-produced code and critiques from a teacher, instead of copying teacher-produced code.
“which enables the model to refine itself by self-generated code response and teacher-generated critique, rather than directly imitating the teacher-generated code responses.”
Quote in the paperSubstantial claim- Rests on an assumption: The teacher-generated code responses (y0) are of sufficiently high quality to serve as a reference for critique and as a potential winner.
- Interpretationown data
ACR's benefits carry over to out-of-distribution code generation.
“This demonstrates that the effectiveness of our ACR method generalizes well to the OOD code generation domain.”
Quote in the paperSubstantial claim - Study design and conductcitation
Each iteration retrains the base pre-trained model from scratch as a safeguard against overfitting.
“We fine-tune the original pre-trained model from scratch in each iteration to prevent overfitting, consistent with previous iterative training works (Wang et al., 2024a;Dong et al., 2025).”
Quote in the paperSubstantial claim0 of 2 sources checked- cites Wang et al., 2024a
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
- cites Dong et al., 2025
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
- Study design and conductcitation
The initial supervised fine-tuning dataset is built by merging Evol-Instruct and SelfCodeAlign to ensure quality.
“To ensure the accuracy and reliability of the experimental results, we construct a highquality SFT dataset by combining Evol-Instruct and SelfCodeAlign (Wei et al., 2024a).”
Quote in the paperSubstantial claim0 of 1 sources checked- cites Wei et al., 2024a
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
- Rests on an assumption: GPT-4o produces high-quality and diverse code-related concepts, programming instructions, and code responses for the initial SFT dataset.
- Interpretationreasoning
The lower TLI values for the authors' dataset indicate that it has less data leakage than the compared datasets.
“The larger the TLI value, the more severe the data leakage.”
- Also stated in: § Prompt for Instruction Evolution: Diversion · plain
“| Ours | | | 80K | 4.97 | 7.00 | 1.54 | 5.00 |”
Quote in the paperNot a substantial claim - Also stated in: § Prompt for Instruction Evolution: Diversion · plain
- May combine two claims. 21
- The quote only partly states this claim. 1
- Classified as probably not a substantial claim. 6
May combine two claims.
PremisecitationEarlier methods evaluate code quality by generating test cases, but this suffers from inaccurate test generation, inability to handle special judges, and failure to assess non-code parts of responses.
“Previous works (Chen et al., 2023;Zhang et al., 2024a) rely on generating test cases to evaluate code quality.However, this method has issues with inaccurate test case generation (Jain et al., 2024), inability to handle special judge (Quan et al., 2025), and failure to evaluate non-code content in response such as code comments and explanations.”
Quote in the paperSubstantial claim2 of 3 sources checked- cites Chen et al., 2023 source
The citation to Chen et al. is attached to the claim that earlier work generates test cases to evaluate code quality. The paper’s “Execution-based code selection” section describes using unit tests supplied in the problem description to check code correctness, not generating those tests. The later limitations are attached to other citations, so they are not assessed as claims attributed to Chen et al. (LLM, conf=0.86)
Experimental — accuracy not yet measured - cites Zhang et al., 2024a
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
- cites Jain et al., 2024 source
The Jain et al. citation is attached to the concern about inaccurate test-case generation, not to the separate claims about special judges or non-code content. Section 3 describes insufficient tests in existing benchmarks, and Appendix A.2 says randomly sampled inputs may miss corner cases. These passages support a concern about test coverage, but do not establish that generated test cases are inaccurate. (LLM, conf=0.75)
Experimental — accuracy not yet measured
May combine two claims.
FindingreasoningThe data construction pipeline yields an 80,000-example Python instruction dataset that is high-quality and diverse.
“Through this pipeline, we obtain an 80K highquality and diverse python instruction dataset.”
Quote in the paperSubstantial claim- Rests on an assumption: GPT-4o produces high-quality and diverse code-related concepts, programming instructions, and code responses for the initial SFT dataset.
May combine two claims.
Findingown dataAt one and three iterations, the two RefineCoder models reach the best average MultiPL-E scores, exceeding their initial versions by 1.0 and 2.1 points, respectively.
“After one and three iterations, RefineCoder-DS-6.7B and RefineCoder-QW-7B achieve optimal average performance, surpassing the initial model by 1.0 and 2.1 points, respectively.”
Quote in the paperSubstantial claimThe quote only partly states this claim.
Findingown dataWith human-like improvement suggestions, RefineCoder-QW-7B at iterations 1 and 3 surpasses GPT-4o on three benchmarks.
“RefineCoder-QW-7B (Iter1 and Iter3) outperforms GPT-4o on three benchmarks”
Quote in the paperSubstantial claimMay combine two claims.
Findingown dataThe RefineCoder models outperform same-sized baselines while using a smaller amount of data.
“Compared to the baselines of the same size, our proposed RefineCoder series can achieve superior performance using less data.”
- Also stated in: § 1 Introduction · plain
“After three iterations, the RefineCoder models outperform baselines of the same size while requiring less data.”
- Also stated in: § 4.5 Experimental Results · plain
“Compared to baselines of the same size, the RefineCoder-DS-6.7B and RefineCoder-QW-7B (Iter3) outperform them by 3.6 and 2.3 points, respectively, using only 80K data.”
Quote in the paperSubstantial claim- Also stated in: § 1 Introduction · plain
May combine two claims.
Findingown dataAgainst same-sized baselines, the third-iteration RefineCoder-DS-6.7B and RefineCoder-QW-7B exceed them by 3.6 and 2.3 points, respectively, with only 80K training examples.
“Compared to baselines of the same size, the RefineCoder-DS-6.7B and RefineCoder-QW-7B (Iter3) outperform them by 3.6 and 2.3 points, respectively, using only 80K data.”
Quote in the paperSubstantial claimMay combine two claims.
Findingown dataCode selected as best performs much better than code selected as worst, and the scoring method has a low error rate.
“As shown in Table 4, the performance of the highest-scoring code far exceeds that of the lowest-scoring code, while the scoring system maintains a low error rate.”
Quote in the paperSubstantial claimMay combine two claims.
Findingown dataFrom iteration 0 to iteration 1, performance rises by 2.0 and 2.3 points.
“Notably, the performance improved by 2.0 and 2.3 points from iter0 to iter1”
Quote in the paperSubstantial claimMay combine two claims.
Findingown dataRefineCoder-DS-6.7B at iteration 3 achieves an average score of 64.0 across HumanEval, MBPP, and BigCodeBench, which is 2.7 points higher than its iteration 0.
“| RefineCoder-DS-6.7B Iter3 | 80K | | 75.0 70.7 80.2 67.2 41.1 | 49.6 | 64.0 ↑2.7 | | |”
Quote in the paperSubstantial claimProbably not a substantial claim: may not pass S1 (asserted), S3 (load-bearing).
Findingnone givenThe authors' dataset has lower TLI values on HumanEval+ and MBPP+ than the Magic-Evol-Instruct, Evol-CodeAlpaca-v1, and Code-FeedBack datasets.
“| Ours | | | 80K | 4.97 | 7.00 | 1.54 | 5.00 |”
- Also stated in: § Prompt for Instruction Evolution: Diversion · plain
“| Magic-Evol-Instruct (Wei et al., 2024b) | 110K | 43.20 | 19.40 | 2.91 | 4.10 |”
- Also stated in: § Prompt for Instruction Evolution: Diversion · plain
“| Evol-CodeAlpaca-v1 (Luo et al., 2024) | 110K | 47.04 | 19.46 | 2.91 | 4.69 |”
Quote in the paperNot a substantial claim- Also stated in: § Prompt for Instruction Evolution: Diversion · plain
May combine two claims.
Findingown dataRefineCoder-QW-7B at iteration 2 achieves an average score of 69.6, an improvement of 3.7 points over iteration 0.
“| RefineCoder-QW-7B Iter2 | 80K | | 86.6 82.5 83.4 71.7 42.3 | 50.9 | 69.6 ↑3.7 | | |”
Quote in the paperSubstantial claimMay combine two claims.
Findingown dataThe authors' dataset of 80K samples has a Test Leakage Indicator (TLI) of 4.97 on HumanEval+, 7.00 on MBPP+, 1.54 on LiveCodeBench, and 5.00 on BigCodeBench.
“| Ours | | | 80K | 4.97 | 7.00 | 1.54 | 5.00 |”
Quote in the paperSubstantial claimMay combine two claims.
Findingown dataRefineCoder-DS-6.7B at iteration 2 achieves an average score of 63.3, an improvement of 2.0 points over iteration 0.
“| RefineCoder-DS-6.7B Iter2 | 80K | | 74.4 70.3 79.6 66.9 40.6 | 47.9 | 63.3 ↑2.0 | | |”
Quote in the paperNot a substantial claimMay combine two claims.
Findingown dataRefineCoder-QW-7B at iteration 1 achieves an average score of 68.5, an improvement of 2.6 points over iteration 0.
“| RefineCoder-QW-7B Iter1 | 80K | | 86.0 79.3 84.1 70.8 41.6 | 49.0 | 68.5 ↑2.6 | | |”
Quote in the paperNot a substantial claimMay combine two claims.
Findingown dataRefineCoder-DS-6.7B at iteration 1 achieves an average score of 62.6, an improvement of 1.3 points over iteration 0.
“| RefineCoder-DS-6.7B Iter1 | 80K | | 74.4 68.9 77.0 66.4 40.6 | 48.0 | 62.6 ↑1.3 | | |”
Quote in the paperNot a substantial claimMay combine two claims.
Findingown dataRefineCoder-QW-7B at iteration 3 achieves an average score of 70.4, an improvement of 4.5 points over iteration 0.
“| RefineCoder-QW-7B Iter3 | 80K | | 87.2 83.3 85.6 72.9 42.0 | 51.1 | 70.4 ↑4.5 | | |”
Quote in the paperSubstantial claimMay combine two claims.
Interpretationown dataThe model might have begun mild overfitting, so additional refinement could stop helping and even worsen results.
“This suggests that the model may have entered a mild overfitting stage, where further refinement not only fails to improve performance but may also exacerbate the issue.”
Quote in the paperSubstantial claimProbably not a substantial claim: may not pass S3 (load-bearing).
InterpretationreasoningTo make ACR more automatic, a dedicated code instruction generator remains necessary.
“Therefore, a specialized code instruction generator is still required to make ACR more automated.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.
Interpretationnone givenACR mainly refines code answers from programming instructions, so it requires an initial collection of high-quality, varied instructions.
“First, ACR is primarily designed to refine code responses based on programming instructions, necessitating an initial set of high-quality and diverse instructions.”
Quote in the paperNot a substantial claimMay combine two claims.
InterpretationreasoningACR departs from standard teacher distillation and enhances inherent single-pass code generation capability.
“which breaks away from the traditional teacher distillation paradigm and improves the intrinsic one-off code generation ability.”
Quote in the paperSubstantial claimMay combine two claims.
Interpretationnone givenThe combined scoring approach using an LLM judge and the selective critique approach using an LLM critic allow precise evaluation and feedback on code responses.
“To ensure the effectiveness of ACR, we design a composite scoring system with LLM-as-a-Judge and a selective critiquing strategy with LLM-as-a-Critic, enabling both accurate scoring and critique of code responses.”
Quote in the paperSubstantial claim- Rests on an assumption: The teacher-generated code responses (y0) are of sufficiently high quality to serve as a reference for critique and as a potential winner.
Probably not a substantial claim: may not pass S4 (based).
Premisenone givenCalling LLMs repeatedly raises inference latency.
“Besides, multiple calls to LLMs increase inference latency.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S4 (based). May combine two claims.
Premisenone givenParameter-frozen approaches with external feedback amount to prompt engineering and do not enhance an LLM's inherent single-pass code generation skill.
“However, these methods that freeze parameters are essentially a form of prompt engineering with external feedback.They cannot improve the intrinsic one-off code generation ability of LLMs.”
Quote in the paperNot a substantial claimMay combine two claims.
Interpretationown dataThe model can recognize and fix weaknesses by learning from its own code and outside feedback.
“This demonstrates that the model is capable of identifying and addressing deficiencies by learning from both its self-generated code and external feedback.”
Quote in the paperSubstantial claimProbably not a substantial claim: may not pass S4 (based). May combine two claims.
Premisenone givenIn distillation-based fine-tuning, the student's performance is heavily tied to the teacher, and the possibility of refining with self-generated code is overlooked.
“However, this paradigm of teacher model distillation inevitably suffers from a critical limitation: the performance of the student model largely relies on the teacher model, ignoring the potential of iterative refinement by self-generated code.”
Quote in the paperNot a substantial claim
The paper relies on this without support.
GPT-4o produces high-quality and diverse code-related concepts, programming instructions, and code responses for the initial SFT dataset.
“we first prompt GPT-4o to generate code-related concepts and corresponding programming instructions from Python code snippets.”
“Finally, we prompt GPT-4o to generate code responses for the instructions.”
The paper relies on this without support.
The teacher-generated code responses (y0) are of sufficiently high quality to serve as a reference for critique and as a potential winner.
“we determine the winner between the best self-generated code y self and the teacher-generated code y 0 based on the pairwise judgment and execution scores”
“LLM-as-a-Critic is used to critique y l 1 , using y 0 as a reference”
Cites
LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language ModelsPreprint
Zheng, Y., Zhang, R., Zhang, J., et al. (2024) · Annual Meeting of the Association for Computational Linguistics · doi:10.48550/arxiv.2403.13372 · Cited by 2,087 · cited 1× · see citing works
“All our training is performed using 16 A100-80G GPUs, utilizing the LLaMA-Factory (Zheng et al., 2024b).”
Evaluating Large Language Models Trained on Code
Chen, M., Tworek, J., Jun, H., Yuan, Q., Pinto, H. P. D. O., Kaplan, J., Edwards, H., Burda, Y., Joseph, N., Brockman, G., et al. (2021) · arXiv · doi:10.48550/arxiv.2107.03374 · Cited by 1,436 · cited 3× · see citing works
“7B and RefineCoder-QW-7B achieve average pass@1 improvements of 2.4 and 3.0, respectively, on the HumanEval (+), MBPP (+), LiveCodeBench, and the BigCodeBench-hard benchmark (Chen et al., 2021; Austin et al., 2021; Liu et al., 2023; Jain et al., 2024; Zhuo et al., 2024).”
InfluentialWizardLM: Empowering Large Pre-Trained Language Models to Follow Complex InstructionsPreprint
Xu, C., Sun, Q., Zheng, K., Geng, X.-B., Zhao, P., Feng, J., Tao, C., Lin, Q.-W., & Jiang, D. (2023) · International Conference on Learning Representations · doi:10.48550/arxiv.2304.12244 · Cited by 1,362 · see citing works
Self-Instruct: Aligning Language Models with Self-Generated Instructions
Wang, Y., Kordi, Y., Mishra, S., Liu, A., Smith, N. A., Khashabi, D., & Hajishirzi, H. (2023) · Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2023.acl-long.754 · Cited by 1,243 · see citing works
Self-Refine: Iterative Refinement with Self-Feedback
Madaan, A., Tandon, N., Gupta, P., Hallinan, S., Gao, L., Wiegreffe, S., Alon, U., Dziri, N., Prabhumoye, S., Yang, Y., et al. (2023) · Advances in Neural Information Processing Systems 36 · doi:10.52202/075280-2019 · Cited by 755 · see citing works
Gulwani, S., Polozov, O., & Singh, R. (2017) · Software Systems Safety · doi:10.3233/978-1-61499-385-8-43 · Cited by 748 · cited 1×
“Code generation, also called program synthesis, is a key application area of Large Language Models (LLMs) and has attracted significant attention from the research community (Gulwani et al., 2017; Chen et al., 2021).”
ORPO: Monolithic Preference Optimization without Reference Model
Hong, J., Lee, N., & Thorne, J. (2024) · Conference on Empirical Methods in Natural Language Processing · doi:10.48550/arxiv.2403.07691 · Cited by 744 · cited 2×
“In contrast, ORPO builds upon the SFT loss to maximize the likelihood of correct code, resulting in improved performance.”
Direct Preference Optimization: Your Language Model is Secretly a Reward Model
Rafailov, R., Sharma, A., Mitchell, E., Manning, C. D., Ermon, S., & Finn, C. (2023) · Advances in Neural Information Processing Systems 36 · doi:10.52202/075280-2338 · Cited by 686 · cited 3× · see citing works
“DPO leads to a significant performance decline due to the intrinsic risk of reducing the likelihood of correct code during training (Feng et al., 2024; Tao et al., 2024; Pal et al., 2024).”
LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Models
Zheng, Y., Zhang, R., Zhang, J., YeYanhan, Y., & Luo, Z. (2024) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2024.acl-demos.38 · Cited by 582 · see citing works
DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning
DeepSeek-AI, Guo, D., Yang, D., Zhang, H., Song, J., Wang, P., Zhu, Q., Xu, R., Zhang, R., Ma, S., et al. (2025) · arXiv · doi:10.48550/arxiv.2501.12948 · Cited by 538 · see citing works
Self-citationCode Llama: Open Foundation Models for Code
Rozière, B., Gehring, J., Gloeckle, F., Sootla, S., Gat, I., Tan, X. E., Adi, Y., Liu, J., Sauvestre, R., Remez, T., et al. (2023) · arXiv · doi:10.48550/arxiv.2308.12950 · Cited by 531 · see citing works
Grattafiori, A., Dubey, A., Jauhri, A., Pandey, A., Kadian, A., Al-Dahle, A., Letman, A., Mathur, A., Schelten, A., Vaughan, A., et al. (2024) · arXiv · doi:10.48550/arxiv.2407.21783 · Cited by 505 · cited 1× · see citing works
“3-70B-Instruct (Grattafiori et al., 2024).”
Self-citationProgram Synthesis with Large Language Models
Austin, J., Odena, A., Nye, M., Bosma, M., Michalewski, H., Dohan, D., Jiang, E., Cai, C., Terry, M., Le, Q., et al. (2021) · arXiv · doi:10.48550/arxiv.2108.07732 · Cited by 388 · cited 4× · see citing works
“Concretely, data refinement improves the fundamental programming abilities of the RefineCoder series, as demonstrated by continuous performance gains over iterations on HumanEval, HumanEval+, and MBPP+. Notably, RefineCoder-QW-7B shows a remarkable 7.9 point increase ( Iter0 -> Iter3 ) in Pass@1 on MBPP+, highlighting…”
InfluentialLiu, J., Xia, C. S., Wang, Y., & Zhang, L. (2023) · Advances in Neural Information Processing Systems 36 · doi:10.52202/075280-0943 · Cited by 384 · cited 2× · see citing works
“7B and RefineCoder-QW-7B achieve average pass@1 improvements of 2.4 and 3.0, respectively, on the HumanEval (+), MBPP (+), LiveCodeBench, and the BigCodeBench-hard benchmark (Chen et al., 2021; Austin et al., 2021; Liu et al., 2023; Jain et al., 2024; Zhuo et al., 2024).”
InfluentialGulwani, S., Polozov, O., & Singh, R. (2017) · Foundations and Trends® in Programming Languages · doi:10.1561/2500000010 · Cited by 357 · see citing works
OpenCodeInterpreter: Integrating Code Generation with Execution and RefinementPreprint
Zheng, T., Zhang, G., Shen, T., et al. (2024) · Annual Meeting of the Association for Computational Linguistics · doi:10.48550/arxiv.2402.14658 · Cited by 322 · cited 7× · see citing works
“Following Zheng et al. (2024a), we design two types of external feedback to evaluate this ability of RefineCoder: 1) Execution Feed-back : Model refines its self-generated erroneous code based on execution results from the executor.”
InfluentialFrom Generation to Judgment: Opportunities and Challenges of LLM-as-a-judge
Li, D., Jiang, B., Huang, L., Beigi, A., Zhao, C., Tan, Z., Bhattacharjee, A., Jiang, Y., Chen, C., Wu, T., et al. (2024) · arXiv · doi:10.48550/arxiv.2411.16594 · Cited by 271 · see citing works
Large Language Models Can Self-Improve
Huang, J., Gu, S., Hou, L., Wu, Y., Wang, X., Yu, H., & Han, J. (2023) · Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/2023.emnlp-main.67 · Cited by 230 · see citing works
Large Language Models Can Self-Improve
Huang, J., Gu, S. S., Hou, L., Wu, Y., Wang, X., Yu, H., & Han, J. (2022) · arXiv · doi:10.48550/arxiv.2210.11610 · Cited by 230 · cited 1× · see citing works
“One line of research (Huang et al., 2023b; Madaan et al., 2023; Hu et al., 2024) focuses on enabling self-correction during the inference stage by iteratively calling LLMs and incorporating external signals.”
Self-Refine: Iterative Refinement with Self-Feedback
Madaan, A., Tandon, N., Gupta, P., Hallinan, S., Gao, L., Wiegreffe, S., Alon, U., Dziri, N., Prabhumoye, S., Yang, Y., et al. (2023) · arXiv · doi:10.48550/arxiv.2303.17651 · Cited by 219 · cited 1× · see citing works
“One line of research (Huang et al., 2023b; Madaan et al., 2023; Hu et al., 2024) focuses on enabling self-correction during the inference stage by iteratively calling LLMs and incorporating external signals.”
DeepSeek-Coder: When the Large Language Model Meets Programming - The Rise of Code Intelligence
Guo, D., Zhu, Q., Yang, D., Xie, Z., Dong, K., Zhang, W., Chen, G., Bi, X., Wu, Y., Li, Y. K., et al. (2024) · arXiv · doi:10.48550/arxiv.2401.14196 · Cited by 180 · cited 4× · see citing works
“Numerous studies focus on developing code-specific pre-trained models, such as CodeLlama (Roziere et al., 2023), DeepSeek-Coder (Guo et al., 2024), and Qwen-Coder (Hui et al., 2024).”
InfluentialWizardCoder: Empowering Code Large Language Models with Evol-Instruct
Luo, Z., Xu, C., Zhao, P., Sun, Q., Geng, X., Hu, W., Tao, C., Ma, J., Lin, Q., & Jiang, D. (2023) · arXiv · doi:10.48550/arxiv.2306.08568 · Cited by 120 · cited 2× · see citing works
“Following this, WizardCoder (Luo et al., 2024) evolves more complex code instruction data using Evol-Instruct (Xu et al., 2024).”
Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for CodePreprint
Zhang, Z., Chen, C.-Y., Liu, B., et al. (2023) · arXiv (Cornell University) · doi:10.48550/arxiv.2311.07989 · Cited by 119 · cited 1× · see citing works
“Many works (Zhang et al., 2024b) based on this paradigm have been proposed recently.”
Self-Instruct: Aligning Language Models with Self-Generated Instructions
Wang, Y., Kordi, Y., Mishra, S., Liu, A., Smith, N. A., Khashabi, D., & Hajishirzi, H. (2022) · arXiv · doi:10.48550/arxiv.2212.10560 · Cited by 118 · cited 2× · see citing works
“Code Alpaca (Chaudhary, 2023) introduces Self-Instruct (Wang et al., 2023) to distill GPT-3.”
Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step by Step
Li, Z., Wang, Z., & Shang, J. (2024) · Findings of the Association for Computational Linguistics: ACL (Findings of ACL) · doi:10.18653/v1/2024.findings-acl.49 · Cited by 97 · cited 1× · see citing works
“In the code domain, CodeT (Chen et al., 2023), Self-Debugging (Chen et al., 2024), and LDB (Zhong et al., 2024) follow this approach.”
CodeT: Code Generation with Generated Tests
Chen, B., Zhang, F., Nguyen, A., Zan, D., Lin, Z., Lou, J.-G., & Chen, W. (2022) · arXiv · doi:10.48550/arxiv.2207.10397 · Cited by 92 · cited 3× · see citing works
“In the code domain, CodeT (Chen et al., 2023), Self-Debugging (Chen et al., 2024), and LDB (Zhong et al., 2024) follow this approach.”
SelfCodeAlign: Self-Alignment for Code Generation
Wei, Y., Cassano, F., Liu, J., et al. (2024) · Neural Information Processing Systems · doi:10.48550/arxiv.2410.24198 · Cited by 79 · cited 1×
“To ensure the accuracy and reliability of the experimental results, we constructed a high-quality SFT dataset by combining the Evol-Instruct and SelfCodeAlign (Wei et al., 2024a).”
Teaching Large Language Models to Self-Debug
Chen, X., Lin, M., Schärli, N., & Zhou, D. (2023) · arXiv · doi:10.48550/arxiv.2304.05128 · Cited by 77 · cited 3× · see citing works
“In the code domain, CodeT (Chen et al., 2023), Self-Debugging (Chen et al., 2024), and LDB (Zhong et al., 2024) follow this approach.”
Self-citationTowards Analyzing and Understanding the Limitations of DPO: A Theoretical Perspective
Feng, D.-Y., Qin, B.-W., Huang, C., et al. (2024) · arXiv.org · doi:10.48550/arxiv.2404.04626 · Cited by 77 · cited 1×
“DPO leads to a significant performance decline due to the intrinsic risk of reducing the likelihood of correct code during training (Feng et al., 2024; Tao et al., 2024; Pal et al., 2024).”
Qwen2.5-Coder Technical Report
Hui, B., Yang, J., Cui, Z., Yang, J., Liu, D., Zhang, L., Liu, T., Zhang, J., Yu, B., Lu, K., et al. (2024) · arXiv · doi:10.48550/arxiv.2409.12186 · Cited by 65 · cited 7× · see citing works
“5-Coder-32B-Instruct (Hui et al., 2024), DeepSeek-V3 (DeepSeek-AI, 2024), and Llama3.”
InfluentialCodeDPO: Aligning Code Models with Self Generated and Verified Source CodePreprint
Zhang, K., Li, G., Dong, Y., et al. (2024) · Annual Meeting of the Association for Computational Linguistics · doi:10.48550/arxiv.2410.05605 · Cited by 62 · cited 1× · see citing works
“Previous works (Chen et al., 2023; Zhang et al., 2024a) rely on generating test cases to evaluate code quality.”
LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code
Jain, N., Han, K., Gu, A., Li, W.-D., Yan, F., Zhang, T., Wang, S., Solar-Lezama, A., Sen, K., & Stoica, I. (2024) · arXiv · doi:10.48550/arxiv.2403.07974 · Cited by 42 · cited 7× · see citing works
“We restrict data usage to the range from 240701 to 250201 of the LiveCodeBench to maintain its contamination-free nature.”
InfluentialThe Stack: 3 TB of permissively licensed source code
Kocetkov, D., Li, R., Allal, L. B., Li, J., Mou, C., Ferrandis, C. M., Jernite, Y., Mitchell, M., Hughes, S., Wolf, T., et al. (2022) · arXiv · doi:10.48550/arxiv.2211.15533 · Cited by 42 · cited 1× · see citing works
“Subsequently, Code-related Evol-Instruct (Luo et al., 2024) prompts LLMs to evolve more intricate code instructions, while OSS-Instruct (Wei et al., 2024b) generates more realistic code instructions based on open-source code snippets from The Stack (Kocetkov et al., 2022).”
OpenCodeInterpreter: Integrating Code Generation with Execution and Refinement
Zheng, T., Zhang, G., Shen, T., et al. (2024) · doi:10.18653/v1/2024.findings-acl.762 · Cited by 38 · see citing works
AgentCoder: Multi-Agent-based Code Generation with Iterative Testing and Optimisation
Huang, D., Zhang, J. M., Luck, M., Bu, Q., Qing, Y., & Cui, H. (2023) · arXiv · doi:10.48550/arxiv.2312.13010 · Cited by 34 · see citing works
Revisit Self-Debugging with Self-Generated Tests for Code GenerationPreprint
Chen, X., Tao, Z.-W., Zhang, K., et al. (2025) · arXiv.org · doi:10.48550/arxiv.2501.12793 · Cited by 33 · see citing works
Self-citationSpread Preference Annotation: Direct Preference Judgment for Efficient LLM Alignment
Kim, D., Lee, K., Shin, J., et al. (2024) · International Conference on Learning Representations · doi:10.48550/arxiv.2406.04412 · Cited by 33 · cited 1×
“Another line of research focuses on iteratively training the model using self-generated outputs to enhance its intrinsic capabilities (Dong et al., 2025; Yuan et al., 2024; Kim et al., 2025).”
WaveCoder: Widespread And Versatile Enhancement For Code Large Language Models By Instruction Tuning
Yu, Z., Zhang, X., Shang, N., Huang, Y., Xu, C., Zhao, Y., Hu, W., & Yin, Q. (2024) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2024.acl-long.280 · Cited by 31 · cited 3× · see citing works
“The existing datasets vary in quality and carry the risk of data leakage (Wang et al., 2024b; Yu et al., 2024).”
Self-citationBigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructions
Zhuo, T. Y., Vu, M. C., Chim, J., Hu, H., Yu, W., Widyasari, R., Yusuf, I. N. B., Zhan, H., He, J., Paul, I., et al. (2024) · arXiv · doi:10.48550/arxiv.2406.15877 · Cited by 29 · cited 5× · see citing works
“7B and RefineCoder-QW-7B models and demonstrate the effectiveness of iterative ACR on HumanEval (+), MBPP (+), LiveCodeBench, and BigCodeBench-hard.”
InfluentialMagicoder: Empowering Code Generation with OSS-Instruct
Wei, Y., Wang, Z., Liu, J., Ding, Y., & Zhang, L. (2023) · arXiv · doi:10.48550/arxiv.2312.02120 · Cited by 27
Yan, Y., Jiang, J., Liu, Y., et al. (2024) · AAAI Conference on Artificial Intelligence · doi:10.48550/arxiv.2409.01524 · Cited by 24 · cited 1× · see citing works
“Another line of research focuses on iteratively training the model using self-generated outputs to enhance its intrinsic capabilities (Dong et al., 2025; Yuan et al., 2024; Kim et al., 2025).”
Self-citationSelf-Rewarding Language Models
Yuan, W., Pang, R. Y., Cho, K., Li, X., Sukhbaatar, S., Xu, J., & Weston, J. (2024) · arXiv · doi:10.48550/arxiv.2401.10020 · Cited by 18 · see citing works
MultiPL-E: A Scalable and Extensible Approach to Benchmarking Neural Code Generation
Cassano, F., Gouwar, J., Nguyen, D., Nguyen, S., Phipps-Costin, L., Pinckney, D., Yee, M.-H., Zi, Y., Anderson, C. J., Feldman, M. Q., et al. (2022) · arXiv · doi:10.48550/arxiv.2208.08227 · Cited by 17 · cited 1× · see citing works
“As shown in Table 4, we also evaluate the out-of-distribution (OOD) code generation performance on multilingual benchmark MultiPL-E (Cassano et al., 2022), despite fine-tuning on a Python-only dataset.”
Teaching Language Models to Self-Improve by Learning from Language Feedback
Hu, C., Hu, Y.-M., Cao, H., Xiao, T., & Zhu, J.-B. (2024) · Annual Meeting of the Association for Computational Linguistics · doi:10.48550/arxiv.2406.07168 · Cited by 15 · cited 1×
“One line of research (Huang et al., 2023b; Madaan et al., 2023; Hu et al., 2024) focuses on enabling self-correction during the inference stage by iteratively calling LLMs and incorporating external signals.”
How Do Your Code LLMs perform? Empowering Code Instruction Tuning with Really Good Data
Wang, Y.-J., He, K., Fu, D., et al. (2024) · Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/2024.emnlp-main.777 · Cited by 11 · cited 1× · see citing works
“The existing datasets vary in quality and carry the risk of data leakage (Wang et al., 2024b; Yu et al., 2024).”
Self-citationInverseCoder: Self-improving Instruction-Tuned Code LLMs with Inverse-InstructPreprint
Wu, Y., Huang, D., Shi, W., et al. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2407.05700 · Cited by 10 · cited 1× · see citing works
“In contrast to OSS-Instruct, InverseCoder (Wu et al., 2024) reverses the order of instruction and code response generation.”
Self-citationSmaug: Fixing Failure Modes of Preference Optimisation with DPO-Positive
Pal, A., Karkhanis, D., Dooley, S., Roberts, M., Naidu, S., & White, C. (2024) · arXiv · doi:10.48550/arxiv.2402.13228 · Cited by 6 · cited 1×
“DPO leads to a significant performance decline due to the intrinsic risk of reducing the likelihood of correct code during training (Feng et al., 2024; Tao et al., 2024; Pal et al., 2024).”
CodeElo: Benchmarking Competition-level Code Generation of LLMs with Human-comparable Elo Ratings
Quan, S., Yang, J., Yu, B., Zheng, B., Liu, D., Yang, A., Ren, X., Gao, B., Miao, Y., Feng, Y., et al. (2025) · arXiv · doi:10.48550/arxiv.2501.01257 · Cited by 5 · cited 1× · see citing works
“However, this method has issues with inaccurate test case generation (Jain et al., 2024), inability to handle special judge (Quan et al., 2025), and failure to evaluate non-code content in response such as code comments and explanations.”
LogicPro: Improving Complex Logical Reasoning via Program-Guided Learning
Jiang, J. Y., Yan, Y., Liu, Y., Wang, J., Peng, S., Cai, X., Cao, Y., Zhang, M., & Gao, L. (2025) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2025.acl-long.1270 · Cited by 3 · cited 1× · see citing works
“Apart from the research on code instruction fine-tuning, some studies (Chen et al., 2023; Huang et al., 2023a; Chen et al., 2024, 2025) have explored the ability of LLMs to refine self-generated code during inference.”
Self-citationSelf-Taught EvaluatorsPreprint
Wang, T., Kulikov, I., Golovneva, O., et al. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2408.02666 · Cited by 3 · see citing works
Yan, Y., Jiang, J., Liu, Y., et al. (2025) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v39i24.34749 · Cited by 2 · see citing works
Teaching Language Models to Self-Improve by Learning from Language Feedback
Hu, C., Hu, Y., Cao, H., Xiao, T. Y., & Zhu, J. (2024) · Findings of the Association for Computational Linguistics: ACL (Findings of ACL) · doi:10.18653/v1/2024.findings-acl.364 · Cited by 1 · see citing works
Self-Boosting Large Language Models with Synthetic Preference Data
Dong, Q., Dong, L., Zhang, X., Sui, Z., & Wei, F. (2024) · arXiv · doi:10.48550/arxiv.2410.06961 · Cited by 1 · cited 2×
“We fine-tune the original base model from scratch in each iteration to prevent overfitting, consistent with previous iterative training works (Ze-likman et al., 2022; Wang et al., 2024a; Dong et al., 2025).”
Self-citationCritique Fine-Tuning: Learning to Critique is More Effective than Learning to Imitate
Wang, Y., Yue, X., & Chen, W. (2025) · arXiv · doi:10.48550/arxiv.2501.17703 · cited 1×
“This strategy resembles the process of a student first solving problems and then critiquing their answers based on provided solutions, rather than directly imitating the solutions (Wang et al., 2025).”
CodeLutra: Boosting LLM Code Generation via Preference-Guided RefinementPreprint
Tao, L., Chen, X., Yu, T., Mai, T., Rossi, R. A., Li, Y., & Mitra, S. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2411.05199 · cited 4×
“CodeLutra (Tao et al., 2024) has successfully applied this approach to the code domain, but it heavily depends on golden labels, which limits its applicability.”
InfluentialSelf-citationLogicPro: Improving Complex Logical Reasoning via Program-Guided Learning
Jiang, J., Yan, Y., Liu, Y., et al. (2024) · arXiv · doi:10.48550/arxiv.2409.12929
SelfCodeAlign: Self-Alignment for Code Generation
Wei, Y., Cassano, F., Liu, J., et al. (2024) · Advances in Neural Information Processing Systems 37 · doi:10.52202/079017-2008
Flagged first, then by citations
Research works printed but not linked: 1
- Dongyoung Kim, Jaehyung Kim, Kimin Lee, and Jin- woo Shin. 2025. Spread preference annotation: Di- rect preference judgment for efficient LLM align- ment. In The Thirteenth International Conference on Learning Representations.
Cited by
Sorted by citations
Aligning User Requirement with Large Language Model in Code Generation
Li, J., Bai, R., Luo, Y., Zhang, Y., Yang, W., Sun, Z., Zhao, T., Jin, D., Li, L., & Jin, Z. G. (2026) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1145/3832783.3837487
“Another branch further considers the mismatch between the generated result and the requirement, and attempts to refine either the code or the requirement accordingly [6, 45].”
- Authors
- Zhou, C., Zhang, X., Song, D., Chen, X., Gu, W., Ma, H., Tian, Y., Zhang, M., & Hu, L.
- Affiliations
- Beijing Institute of Technology (CN)
- Peking University (CN)
- Meituan (China) (CN)
- Venue
- arXiv
- Publisher
- arXiv
- Published
- 2025
- ISSN
- 2331-8422 (ISSN-L)
- arXiv
- 2502.09183
- OpenAlex
- W4407571908
- Cited by
- 0
- References
- 56
- Type
- posted content
- Language
- en
- Open access
- green
- arxiv.org
- Locations
- arXiv (Cornell University) (submittedVersion)
- arXiv (Cornell University)
- Topics
- Physical Sciences › Computer Science › Information Systems › Software Engineering Research
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Physical Sciences › Computer Science › Computer Science Applications › Teaching and Learning Programming
- Keywords
- code generation, large language models, iterative refinement, LLM-as-a-judge
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Claims read by deepseek-v4.1-flash under definition version 3 (extract-v3) on 2026-10-07.
Classified by jev-1.13-20260917 (gold-guideline-v0.2) on 2026-10-07.
Cited sources are checked by gpt-6-sol.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review