Evaluating Instruction-Tuned Large Language Models on Code Comprehension and Generation
Not on the map. Why?
Abstract (arXiv)
In this work, we evaluate 10 open-source instructed LLMs on four representative code comprehension and generation tasks. We have the following main findings. First, for the zero-shot setting, instructed LLMs are very competitive on code comprehension and generation tasks and sometimes even better than small SOTA models specifically fine-tuned on each downstream task. We also find that larger instructed LLMs are not always better on code-related tasks. Second, for the few-shot setting, we find that adding demonstration examples substantially helps instructed LLMs perform better on most code comprehension and generation tasks; however, the examples would sometimes induce unstable or even worse performance. Furthermore, we find widely-used BM25-based shot selection strategy significantly outperforms the basic random selection or fixed selection only on generation problems. Third, for the fine-tuning setting, we find that fine-tuning could further improve the model performance on downstream code comprehension and generation tasks compared to the zero-shot/one-shot performance. In addition, after being fine-tuned on the same downstream task dataset, instructed LLMs outperform both the small SOTA models and similar-scaled LLMs without instruction tuning. Based on our findings, we further present practical implications on model and usage recommendation, performance and cost trade-offs, and future direction.
Key facts. Cited by 49 papers in the map (data through 7 Oct 2026). Builds on 62 of its 85 references that are in the map. First posted on arXiv 2 Aug 2023.
Builds on
62 of 85 references.
References · 62
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
- 2021Program Synthesis with Large Language Modelscited by 3,509
38 more
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
- 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
- 2022Training Compute-Optimal Large Language Modelscited by 2,927
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
- 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,462
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2023A Survey on Evaluation of Large Language Modelscited by 1,227
- 2023Large Language Models are not Fair Evaluatorscited by 1,050
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 886
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 837
- 2023StarCoder: may the source be with you!cited by 790
- 2023AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedbackcited by 738
- 2022Galactica: A Large Language Model for Sciencecited by 736
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2023Can Large Language Models Be an Alternative to Human Evaluations?cited by 729
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
- 2023OpenAssistant Conversations -- Democratizing Large Language Model Alignmentcited by 712
- 2021P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-tuning Universally Across Scales and Taskscited by 686
- 2023Instruction Tuning with GPT-4cited by 676
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2021Unified Pre-training for Program Understanding and Generationcited by 361
- 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 266
- 2023The False Promise of Imitating Proprietary LLMscited by 254
- 2022Talking About Large Language Modelscited by 174
- 2022Large Language Models Meet NL2Code: A Surveycited by 135
- 2023Few-shot Fine-tuning vs. In-context Learning: A Fair Comparison and Evaluationcited by 134
- 2022Large Language Models are Few-shot Testers: Exploring LLM-based General Bug Reproductioncited by 110
- 2023Exploring the Impact of Instruction Data Scaling on Large Language Models: An Empirical Study on Real-World Use Casescited by 85
- 2023Aligning Large Language Models through Synthetic Feedbackcited by 75
- 2022Help me write a poem: Instruction Tuning as a Vehicle for Collaborative Poetry Writingcited by 71
- 2023CoEdIT: Text Editing by Task-Specific Instruction Tuningcited by 67
50 most cited of 62 All 62 (JSON)
Built on by
Citing papers per year: 2023: 9; 2024: 21; 2025: 13; 2026: 6.
49 papers.
Sort:
By area:
- 2024LLM Evaluators Recognize and Favor Their Own Generationscited by 651
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2024Judging the Judges: Evaluating Alignment and Vulnerabilities in LLMs-as-Judgescited by 197
- 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 173
- 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 123
- 2024DiscoveryBench: Towards Data-Driven Discovery with Large Language Modelscited by 97
- 2023Efficient Benchmarking of Language Modelscited by 71
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2024FinTextQA: A Dataset for Long-form Financial Question Answeringcited by 54
- 2024Clustering and Ranking: Diversity-preserved Instruction Selection through Expert-aligned Quality Estimationcited by 53
- 2024Revisiting VerilogEval: A Year of Improvements in Large-Language Models for Hardware Code Generationcited by 45
- 2025Do LLM Evaluators Prefer Themselves for a Reason?cited by 38
37 more
- 2024SOEN-101: Code Generation by Emulating Software Process Models Using Large Language Model Agentscited by 34
- 2024Unveiling the Impact of Coding Data Instruction Fine-Tuning on Large Language Models Reasoningcited by 31
- 2023Exploring Parameter-Efficient Fine-Tuning Techniques for Code Generation with Large Language Modelscited by 28
- 2023BioCoder: A Benchmark for Bioinformatics Code Generation with Large Language Modelscited by 24
- 2024Investigating the Impact of Data Contamination of Large Language Models in Text-to-SQL Translationcited by 21
- 2024From Text to Transformation: A Comprehensive Review of Large Language Models' Versatilitycited by 19
- 2024Causal Evaluation of Language Modelscited by 18
- 2023Prompting and Fine-Tuning Open-Sourced Large Language Models for Stance Classificationcited by 16
- 2024MdEval: Massively Multilingual Code Debuggingcited by 16
- 2024Beyond Functional Correctness: Investigating Coding Style Inconsistencies in Large Language Modelscited by 15
- 2025An Empirical Study of Agent Developer Practices in AI Agent Frameworkscited by 14
- 2025Evolutionary Perspectives on the Evaluation of LLM-Based AI Agents: A Comprehensive Surveycited by 12
- 2023Turbulence: Systematically and Automatically Testing Instruction-Tuned Large Language Models for Codecited by 9
- 2024ArchCode: Incorporating Software Requirements in Code Generation with Large Language Modelscited by 8
- 2025Multi-Agent LLM Judge: automatic personalized LLM judge design for evaluating natural language generation applicationscited by 7
- 2025The Art of Repair: Optimizing Iterative Program Repair with Instruction-Tuned Modelscited by 7
- 2023Bridging Code Semantic and LLMs: Semantic Chain-of-Thought Prompting for Code Generationcited by 6
- 2025IFEvalCode: Controlled Code Generationcited by 5
- 2025EffiReasonTrans: RL-Optimized Reasoning for Code Translationcited by 5
- 2026CoMeT: Collaborative Memory Transformer for Efficient Long Context Modelingcited by 5
- 2024HumanRankEval: Automatic Evaluation of LMs as Conversational Assistantscited by 3
- 2024Parameter-Efficient Fine-Tuning of Large Language Models for Unit Test Generation: An Empirical Studycited by 3
- 2025Project-Level C-to-Rust Translation via Pointer Knowledge Graphscited by 3
- 2026ShortCoder: Knowledge-Augmented Syntax Optimization for Token-Efficient Code Generationcited by 3
- 2023Exploring Large Language Models in Resolving Environment-Related Crash Bugs: Localizing and Repairingcited by 1
- 2024Evaluation and Improvement of Fault Detection for Large Language Modelscited by 1
- 2024Beyond Keywords: A Context-based Hybrid Approach to Mining Ethical Concern-related App Reviewscited by 1
- 2025Transferable text data distillation by trajectory matchingcited by 1
- 2026Stability vs. Manipulability: Evaluating Robustness Under Post-Decision Interaction in LLM Judgescited by 1
- 2024MergeRepair: An Exploratory Study on Merging Task-Specific Adapters in Code LLMs for Automated Program Repaircited by 0
- 2025Prompt-Based Cost-Effective Evaluation and Operation of ChatGPT as a Computer Programming Teaching Assistantcited by 0
- 2025Impact of Code Context and Prompting Strategies on Automated Unit Test Generation with Modern General-Purpose Large Language Modelscited by 0
- 2025Text2VR: Automated instruction Generation in Virtual Reality using Large language Models for Assembly Taskcited by 0
- 2025Financial Instruction Following Evaluation (FIFE)cited by 0
- 2026Towards Comprehensive Benchmarking Infrastructure for LLMs In Software Engineeringcited by 0
- 2026Precision in Practice: Knowledge Guided Code Summarizing Grounded in Industrial Expectationscited by 0
- 2026ROSUM-MCTS: Monte Carlo Tree Search-Inspired HDL Code Summarization with Structural Rewardscited by 0
- 2026ROSUM-MCTS: Monte Carlo Tree Search-Inspired HDL Code Summarization with Structural Rewards6 Jun 2026
- 2026Stability vs. Manipulability: Evaluating Robustness Under Post-Decision Interaction in LLM Judges3 Jun 2026
- 2026Precision in Practice: Knowledge Guided Code Summarizing Grounded in Industrial Expectations3 Feb 2026
- 2026CoMeT: Collaborative Memory Transformer for Efficient Long Context Modeling2 Feb 2026
- 2026Towards Comprehensive Benchmarking Infrastructure for LLMs In Software Engineering28 Jan 2026
- 2026ShortCoder: Knowledge-Augmented Syntax Optimization for Token-Efficient Code Generation14 Jan 2026
- 2025Financial Instruction Following Evaluation (FIFE)1 Dec 2025
- 2025An Empirical Study of Agent Developer Practices in AI Agent Frameworks1 Dec 2025
- 2025EffiReasonTrans: RL-Optimized Reasoning for Code Translation21 Oct 2025
- 2025Project-Level C-to-Rust Translation via Pointer Knowledge Graphs13 Oct 2025
- 2025IFEvalCode: Controlled Code Generation30 Jul 2025
- 2025Text2VR: Automated instruction Generation in Virtual Reality using Large language Models for Assembly Task19 Jul 2025
37 more
- 2025Impact of Code Context and Prompting Strategies on Automated Unit Test Generation with Modern General-Purpose Large Language Models18 Jul 2025
- 2025Evolutionary Perspectives on the Evaluation of LLM-Based AI Agents: A Comprehensive Survey6 Jun 2025
- 2025The Art of Repair: Optimizing Iterative Program Repair with Instruction-Tuned Models5 May 2025
- 2025Transferable text data distillation by trajectory matching14 Apr 2025
- 2025Do LLM Evaluators Prefer Themselves for a Reason?4 Apr 2025
- 2025Multi-Agent LLM Judge: automatic personalized LLM judge design for evaluating natural language generation applications1 Apr 2025
- 2025Prompt-Based Cost-Effective Evaluation and Operation of ChatGPT as a Computer Programming Teaching Assistant24 Jan 2025
- 2024Beyond Keywords: A Context-based Hybrid Approach to Mining Ethical Concern-related App Reviews11 Nov 2024
- 2024Parameter-Efficient Fine-Tuning of Large Language Models for Unit Test Generation: An Empirical Study4 Nov 2024
- 2024MdEval: Massively Multilingual Code Debugging4 Nov 2024
- 2024Large Language Model-Based Agents for Software Engineering: A Survey4 Sep 2024
- 2024Revisiting VerilogEval: A Year of Improvements in Large-Language Models for Hardware Code Generation20 Aug 2024
- 2024MergeRepair: An Exploratory Study on Merging Task-Specific Adapters in Code LLMs for Automated Program Repair18 Aug 2024
- 2024ArchCode: Incorporating Software Requirements in Code Generation with Large Language Models2 Aug 2024
- 2024DiscoveryBench: Towards Data-Driven Discovery with Large Language Models1 Jul 2024
- 2024Beyond Functional Correctness: Investigating Coding Style Inconsistencies in Large Language Models29 Jun 2024
- 2024Judging the Judges: Evaluating Alignment and Vulnerabilities in LLMs-as-Judges18 Jun 2024
- 2024Unveiling the Impact of Coding Data Instruction Fine-Tuning on Large Language Models Reasoning30 May 2024
- 2024FinTextQA: A Dataset for Long-form Financial Question Answering16 May 2024
- 2024HumanRankEval: Automatic Evaluation of LMs as Conversational Assistants15 May 2024
- 2024Causal Evaluation of Language Models1 May 2024
- 2024LLM Evaluators Recognize and Favor Their Own Generations15 Apr 2024
- 2024Evaluation and Improvement of Fault Detection for Large Language Models14 Apr 2024
- 2024SOEN-101: Code Generation by Emulating Software Process Models Using Large Language Model Agents23 Mar 2024
- 2024Clustering and Ranking: Diversity-preserved Instruction Selection through Expert-aligned Quality Estimation28 Feb 2024
- 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-step25 Feb 2024
- 2024From Text to Transformation: A Comprehensive Review of Large Language Models' Versatility25 Feb 2024
- 2024Investigating the Impact of Data Contamination of Large Language Models in Text-to-SQL Translation12 Feb 2024
- 2023Turbulence: Systematically and Automatically Testing Instruction-Tuned Large Language Models for Code22 Dec 2023
- 2023Exploring Large Language Models in Resolving Environment-Related Crash Bugs: Localizing and Repairing16 Dec 2023
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Code14 Nov 2023
- 2023Bridging Code Semantic and LLMs: Semantic Chain-of-Thought Prompting for Code Generation16 Oct 2023
- 2023Prompting and Fine-Tuning Open-Sourced Large Language Models for Stance Classification24 Sep 2023
- 2023BioCoder: A Benchmark for Bioinformatics Code Generation with Large Language Models31 Aug 2023
- 2023Efficient Benchmarking of Language Models22 Aug 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Review21 Aug 2023
- 2023Exploring Parameter-Efficient Fine-Tuning Techniques for Code Generation with Large Language Models21 Aug 2023
- 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 173
- 2024DiscoveryBench: Towards Data-Driven Discovery with Large Language Modelscited by 97
- 2024SOEN-101: Code Generation by Emulating Software Process Models Using Large Language Model Agentscited by 34
- 2025An Empirical Study of Agent Developer Practices in AI Agent Frameworkscited by 14
- 2025Evolutionary Perspectives on the Evaluation of LLM-Based AI Agents: A Comprehensive Surveycited by 12
- 2025Multi-Agent LLM Judge: automatic personalized LLM judge design for evaluating natural language generation applicationscited by 7
- 2025An Empirical Study of Agent Developer Practices in AI Agent Frameworks1 Dec 2025
- 2025Evolutionary Perspectives on the Evaluation of LLM-Based AI Agents: A Comprehensive Survey6 Jun 2025
- 2025Multi-Agent LLM Judge: automatic personalized LLM judge design for evaluating natural language generation applications1 Apr 2025
- 2024Large Language Model-Based Agents for Software Engineering: A Survey4 Sep 2024
- 2024DiscoveryBench: Towards Data-Driven Discovery with Large Language Models1 Jul 2024
- 2024SOEN-101: Code Generation by Emulating Software Process Models Using Large Language Model Agents23 Mar 2024
- 2025Do LLM Evaluators Prefer Themselves for a Reason?cited by 38
- 2024Unveiling the Impact of Coding Data Instruction Fine-Tuning on Large Language Models Reasoningcited by 31
- 2024Causal Evaluation of Language Modelscited by 18
- 2023Bridging Code Semantic and LLMs: Semantic Chain-of-Thought Prompting for Code Generationcited by 6
- 2025EffiReasonTrans: RL-Optimized Reasoning for Code Translationcited by 5
- 2025EffiReasonTrans: RL-Optimized Reasoning for Code Translation21 Oct 2025
- 2025Do LLM Evaluators Prefer Themselves for a Reason?4 Apr 2025
- 2024Unveiling the Impact of Coding Data Instruction Fine-Tuning on Large Language Models Reasoning30 May 2024
- 2024Causal Evaluation of Language Models1 May 2024
- 2023Bridging Code Semantic and LLMs: Semantic Chain-of-Thought Prompting for Code Generation16 Oct 2023
- 2024LLM Evaluators Recognize and Favor Their Own Generationscited by 651
- 2024LLM Evaluators Recognize and Favor Their Own Generations15 Apr 2024
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2024Judging the Judges: Evaluating Alignment and Vulnerabilities in LLMs-as-Judgescited by 197
- 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 123
- 2023Efficient Benchmarking of Language Modelscited by 71
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2024FinTextQA: A Dataset for Long-form Financial Question Answeringcited by 54
- 2024Clustering and Ranking: Diversity-preserved Instruction Selection through Expert-aligned Quality Estimationcited by 53
- 2024Revisiting VerilogEval: A Year of Improvements in Large-Language Models for Hardware Code Generationcited by 45
- 2023Exploring Parameter-Efficient Fine-Tuning Techniques for Code Generation with Large Language Modelscited by 28
- 2023BioCoder: A Benchmark for Bioinformatics Code Generation with Large Language Modelscited by 24
- 2024Investigating the Impact of Data Contamination of Large Language Models in Text-to-SQL Translationcited by 21
- 2024From Text to Transformation: A Comprehensive Review of Large Language Models' Versatilitycited by 19
12 most cited of 36 All 36 (JSON)
- 2026ROSUM-MCTS: Monte Carlo Tree Search-Inspired HDL Code Summarization with Structural Rewards6 Jun 2026
- 2026Stability vs. Manipulability: Evaluating Robustness Under Post-Decision Interaction in LLM Judges3 Jun 2026
- 2026Precision in Practice: Knowledge Guided Code Summarizing Grounded in Industrial Expectations3 Feb 2026
- 2026CoMeT: Collaborative Memory Transformer for Efficient Long Context Modeling2 Feb 2026
- 2026Towards Comprehensive Benchmarking Infrastructure for LLMs In Software Engineering28 Jan 2026
- 2025Financial Instruction Following Evaluation (FIFE)1 Dec 2025
- 2025Project-Level C-to-Rust Translation via Pointer Knowledge Graphs13 Oct 2025
- 2025IFEvalCode: Controlled Code Generation30 Jul 2025
- 2025Text2VR: Automated instruction Generation in Virtual Reality using Large language Models for Assembly Task19 Jul 2025
- 2025Impact of Code Context and Prompting Strategies on Automated Unit Test Generation with Modern General-Purpose Large Language Models18 Jul 2025
- 2025The Art of Repair: Optimizing Iterative Program Repair with Instruction-Tuned Models5 May 2025
- 2025Transferable text data distillation by trajectory matching14 Apr 2025
12 newest of 36 All 36 (JSON)