mlsanityData to 7 Oct 2026

A Comparative Analysis of Large Language Models for Code Documentation Generation

arXiv 2312.10349 ↗First posted 16 Dec 2023cs.SE cs.AIcited by 24

Not on the map. Why?

Abstract (arXiv)

This paper presents a comprehensive comparative analysis of Large Language Models (LLMs) for generation of code documentation. Code documentation is an essential part of the software writing process. The paper evaluates models such as GPT-3.5, GPT-4, Bard, Llama2, and Starchat on various parameters like Accuracy, Completeness, Relevance, Understandability, Readability and Time Taken for different levels of code documentation. Our evaluation employs a checklist-based system to minimize subjectivity, providing a more objective assessment. We find that, barring Starchat, all LLMs consistently outperform the original documentation. Notably, closed-source models GPT-3.5, GPT-4, and Bard exhibit superior performance across various parameters compared to open-source/source-available LLMs, namely LLama 2 and StarChat. Considering the time taken for generation, GPT-4 demonstrated the longest duration, followed by Llama2, Bard, with ChatGPT and Starchat having comparable generation times. Additionally, file level documentation had a considerably worse performance across all parameters (except for time taken) as compared to inline and function level documentation.

Key facts. Cited by 24 papers in the map (data through 7 Oct 2026). Builds on 6 of its 37 references that are in the map. First posted on arXiv 16 Dec 2023.

Builds on

6 of 37 references.

References · 6

  1. 2023The False Promise of Imitating Proprietary LLMscited by 254
  2. 2022Few-shot training LLMs for project-specific code-summarizationcited by 128
  3. 2023The Programmer's Assistant: Conversational Interaction with a Large Language Model for Software Developmentcited by 95
  4. 2023Large Language Models are Few-Shot Summarizers: Multi-Intent Comment Generation via In-Context Learningcited by 71
  5. 2023Comparing Code Explanations Created by Students and Large Language Modelscited by 63
  6. 2022Automatic Code Documentation Generation Using GPT-3cited by 37

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 4; 2025: 16; 2026: 4.

24 papers.

Sort:

By area:

  1. 2025AI Agentic Programming: A Survey of Techniques, Challenges, and Opportunitiescited by 26
  2. 2025DocAgent: A Multi-Agent System for Automated Code Documentation Generationcited by 16
  3. 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasetscited by 15
  4. 2025Migrating Code At Scale With LLMs At Googlecited by 14
  5. 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
  6. 2024Natural Language Outlines for Code: Literate Programming in the LLM Eracited by 9
  7. 2025Tuning LLM-based Code Optimization via Meta-Prompting: An Industrial Perspectivecited by 7
  8. 2025The Impact of LLM-Assistants on Software Developer Productivity: A Systematic Review and Mapping Studycited by 4
  9. 2025Cognitive Agents Powered by Large Language Models for Agile Software Project Managementcited by 4
  10. 2025MermaidSeqBench: An Evaluation Benchmark for NL-to-Mermaid Sequence Diagram Generationcited by 3
  11. 2025Evaluating the Use of LLMs for Documentation to Code Traceabilitycited by 2
  12. 2025MLLM-CTBench: A Benchmark for Continual Instruction Tuning with Reasoning Process Diagnosiscited by 2
12 more
  1. 2024Automatic Detection of LLM-Generated Code: A Comparative Case Study of Contemporary Models Across Function and Class Granularitiescited by 1
  2. 2024Selective Shot Learning for Code Explanationcited by 1
  3. 2025Impact of Comments on LLM Comprehension of Legacy Codecited by 1
  4. 2025DocReward: A Document Reward Model for Structuring and Stylizingcited by 1
  5. 2024A Systematic Literature Review on the Use of Machine Learning in Software Engineeringcited by 0
  6. 2025ML For Hardware Design Interpretability: Challenges and Opportunitiescited by 0
  7. 2025Impact of LLMs on Team Collaboration in Software Developmentcited by 0
  8. 2025Instruction Set Migration at Warehouse Scalecited by 0
  9. 2026TAM-Eval: Evaluating LLMs for Automated Unit Test Maintenancecited by 0
  10. 2026The Illusion of Agentic Complexity in README.md Generation: Evaluating Single-Agent vs. Multi-Agent RAG Systemscited by 0
  11. 2026Synthetic Semantic Supervision for Contrastive Code Representation Learning in Small Transformers: An Empirical Studycited by 0
  12. 2026Compact Documentation for Coding Agents: A Benchmark, an Optimizer, and Why It Does Not Transfercited by 0