mlsanityData to 7 Oct 2026

Evaluating Instruction-Tuned Large Language Models on Code Comprehension and Generation

arXiv 2308.01240 ↗First posted 2 Aug 2023cs.CL cs.AIcited by 49

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  5. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  6. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  7. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  8. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  9. 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
  10. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  11. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  12. 2021Program Synthesis with Large Language Modelscited by 3,509
38 more
  1. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  2. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
  3. 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
  4. 2022Training Compute-Optimal Large Language Modelscited by 2,927
  5. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
  6. 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
  7. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
  8. 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,462
  9. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
  10. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
  11. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  12. 2023A Survey on Evaluation of Large Language Modelscited by 1,227
  13. 2023Large Language Models are not Fair Evaluatorscited by 1,050
  14. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  15. 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 886
  16. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
  17. 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 837
  18. 2023StarCoder: may the source be with you!cited by 790
  19. 2023AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedbackcited by 738
  20. 2022Galactica: A Large Language Model for Sciencecited by 736
  21. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  22. 2023Can Large Language Models Be an Alternative to Human Evaluations?cited by 729
  23. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
  24. 2023OpenAssistant Conversations -- Democratizing Large Language Model Alignmentcited by 712
  25. 2021P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-tuning Universally Across Scales and Taskscited by 686
  26. 2023Instruction Tuning with GPT-4cited by 676
  27. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
  28. 2021Unified Pre-training for Program Understanding and Generationcited by 361
  29. 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 266
  30. 2023The False Promise of Imitating Proprietary LLMscited by 254
  31. 2022Talking About Large Language Modelscited by 174
  32. 2022Large Language Models Meet NL2Code: A Surveycited by 135
  33. 2023Few-shot Fine-tuning vs. In-context Learning: A Fair Comparison and Evaluationcited by 134
  34. 2022Large Language Models are Few-shot Testers: Exploring LLM-based General Bug Reproductioncited by 110
  35. 2023Exploring the Impact of Instruction Data Scaling on Large Language Models: An Empirical Study on Real-World Use Casescited by 85
  36. 2023Aligning Large Language Models through Synthetic Feedbackcited by 75
  37. 2022Help me write a poem: Instruction Tuning as a Vehicle for Collaborative Poetry Writingcited by 71
  38. 2023CoEdIT: Text Editing by Task-Specific Instruction Tuningcited by 67

50 most cited of 62 All 62 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 9; 2024: 21; 2025: 13; 2026: 6.

49 papers.

Sort:

By area:

  1. 2024LLM Evaluators Recognize and Favor Their Own Generationscited by 651
  2. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
  3. 2024Judging the Judges: Evaluating Alignment and Vulnerabilities in LLMs-as-Judgescited by 197
  4. 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 173
  5. 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 123
  6. 2024DiscoveryBench: Towards Data-Driven Discovery with Large Language Modelscited by 97
  7. 2023Efficient Benchmarking of Language Modelscited by 71
  8. 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
  9. 2024FinTextQA: A Dataset for Long-form Financial Question Answeringcited by 54
  10. 2024Clustering and Ranking: Diversity-preserved Instruction Selection through Expert-aligned Quality Estimationcited by 53
  11. 2024Revisiting VerilogEval: A Year of Improvements in Large-Language Models for Hardware Code Generationcited by 45
  12. 2025Do LLM Evaluators Prefer Themselves for a Reason?cited by 38
37 more
  1. 2024SOEN-101: Code Generation by Emulating Software Process Models Using Large Language Model Agentscited by 34
  2. 2024Unveiling the Impact of Coding Data Instruction Fine-Tuning on Large Language Models Reasoningcited by 31
  3. 2023Exploring Parameter-Efficient Fine-Tuning Techniques for Code Generation with Large Language Modelscited by 28
  4. 2023BioCoder: A Benchmark for Bioinformatics Code Generation with Large Language Modelscited by 24
  5. 2024Investigating the Impact of Data Contamination of Large Language Models in Text-to-SQL Translationcited by 21
  6. 2024From Text to Transformation: A Comprehensive Review of Large Language Models' Versatilitycited by 19
  7. 2024Causal Evaluation of Language Modelscited by 18
  8. 2023Prompting and Fine-Tuning Open-Sourced Large Language Models for Stance Classificationcited by 16
  9. 2024MdEval: Massively Multilingual Code Debuggingcited by 16
  10. 2024Beyond Functional Correctness: Investigating Coding Style Inconsistencies in Large Language Modelscited by 15
  11. 2025An Empirical Study of Agent Developer Practices in AI Agent Frameworkscited by 14
  12. 2025Evolutionary Perspectives on the Evaluation of LLM-Based AI Agents: A Comprehensive Surveycited by 12
  13. 2023Turbulence: Systematically and Automatically Testing Instruction-Tuned Large Language Models for Codecited by 9
  14. 2024ArchCode: Incorporating Software Requirements in Code Generation with Large Language Modelscited by 8
  15. 2025Multi-Agent LLM Judge: automatic personalized LLM judge design for evaluating natural language generation applicationscited by 7
  16. 2025The Art of Repair: Optimizing Iterative Program Repair with Instruction-Tuned Modelscited by 7
  17. 2023Bridging Code Semantic and LLMs: Semantic Chain-of-Thought Prompting for Code Generationcited by 6
  18. 2025IFEvalCode: Controlled Code Generationcited by 5
  19. 2025EffiReasonTrans: RL-Optimized Reasoning for Code Translationcited by 5
  20. 2026CoMeT: Collaborative Memory Transformer for Efficient Long Context Modelingcited by 5
  21. 2024HumanRankEval: Automatic Evaluation of LMs as Conversational Assistantscited by 3
  22. 2024Parameter-Efficient Fine-Tuning of Large Language Models for Unit Test Generation: An Empirical Studycited by 3
  23. 2025Project-Level C-to-Rust Translation via Pointer Knowledge Graphscited by 3
  24. 2026ShortCoder: Knowledge-Augmented Syntax Optimization for Token-Efficient Code Generationcited by 3
  25. 2023Exploring Large Language Models in Resolving Environment-Related Crash Bugs: Localizing and Repairingcited by 1
  26. 2024Evaluation and Improvement of Fault Detection for Large Language Modelscited by 1
  27. 2024Beyond Keywords: A Context-based Hybrid Approach to Mining Ethical Concern-related App Reviewscited by 1
  28. 2025Transferable text data distillation by trajectory matchingcited by 1
  29. 2026Stability vs. Manipulability: Evaluating Robustness Under Post-Decision Interaction in LLM Judgescited by 1
  30. 2024MergeRepair: An Exploratory Study on Merging Task-Specific Adapters in Code LLMs for Automated Program Repaircited by 0
  31. 2025Prompt-Based Cost-Effective Evaluation and Operation of ChatGPT as a Computer Programming Teaching Assistantcited by 0
  32. 2025Impact of Code Context and Prompting Strategies on Automated Unit Test Generation with Modern General-Purpose Large Language Modelscited by 0
  33. 2025Text2VR: Automated instruction Generation in Virtual Reality using Large language Models for Assembly Taskcited by 0
  34. 2025Financial Instruction Following Evaluation (FIFE)cited by 0
  35. 2026Towards Comprehensive Benchmarking Infrastructure for LLMs In Software Engineeringcited by 0
  36. 2026Precision in Practice: Knowledge Guided Code Summarizing Grounded in Industrial Expectationscited by 0
  37. 2026ROSUM-MCTS: Monte Carlo Tree Search-Inspired HDL Code Summarization with Structural Rewardscited by 0