NAACL 2024findings2 citations

Testing the Effect of Code Documentation on Large Language Model Code Understanding

William Macke, Michael Doyle

Abstract

Large Language Models (LLMs) have demonstrated impressive abilities in recent years with regards to code generation and understanding. However, little work has investigated how documentation and other code properties affect an LLM’s ability to understand and generate code or documentation. We present an empirical analysis of how underlying properties of code or documentation can affect an LLM’s capabilities. We show that providing an LLM with “incorrect” documentation can greatly hinder code understanding, while incomplete or missing documentation does not seem to significantly affect an LLM’s ability to understand code.

BibTeX
@inproceedings{macke-doyle-2024-testing,
    title = "Testing the Effect of Code Documentation on Large Language Model Code Understanding",
    author = "Macke, William  and
      Doyle, Michael",
    editor = "Duh, Kevin  and
      Gomez, Helena  and
      Bethard, Steven",
    booktitle = "Findings of the Association for Computational Linguistics: NAACL 2024",
    month = jun,
    year = "2024",
    address = "Mexico City, Mexico",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2024.findings-naacl.66/",
    doi = "10.18653/v1/2024.findings-naacl.66",
    pages = "1044--1050"
}
Testing the Effect of Code Documentation on Large Language Model Code Understanding · NAACL 2024