scimeatlas

Research map / Large language models / Agents, code and math

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

William Macke, Michael Doyle

NAACL 2024Large language models › Agents, code and mathapproach: Code generation benchmarksopen problems in this approach13 citations (OpenAlex)

The MITRE Corporation

Read the paperPlace an idea next to itCheck your own paper ↗

10measured effects
1improved
2no clear effect
5hurt
2mixed

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace docstring with a random comment from another function (ablation)GPT-3.5 and GPT-4 · HumanEval unit-test generationunit test success rate: GPT-3.5 22.1% successes; GPT-4 68.1% successes (lowest of all variants)Hurt
replace variable names with random strings (ablation)GPT-3.5 and GPT-4 · HumanEval unit-test generationunit test success rateNo clear effect
replace variable names with animal names (ablation)GPT-3.5 and GPT-4 · HumanEval unit-test generationunit test success rate: GPT-3.5 44.7% -> 40.6%; GPT-4 78.5% -> 76.6%Hurt
add correct comments and docstring (ablation)GPT-3.5 and GPT-4 · HumanEval unit-test generationunit test success rateNo clear effect
add correct comments and docstring (ablation)GPT-3.5 and GPT-4 · HumanEval unit-test line coverageline coverage (%)Improved
replace docstring with a random comment (ablation)GPT-3.5 and GPT-4 · HumanEval unit-test line coverageline coverage (%)Hurt
keep only 10%, 25% or 50% of docstring lines instead of all (ablation)GPT-4 · HumanEval unit-test generationerrors and failed testsMixed
keep only part of the docstring lines (ablation)GPT-3.5 · HumanEval unit-test generationruntime errorsMixed
animal variable names (ablation)GPT-3.5 · HumanEval unit-test line coverageline coverage (%)Hurt
keep only 10% of docstring lines (ablation)GPT-3.5 · HumanEval unit-test line coverageline coverage (%)Hurt

Open problems in code generation benchmarks

Do code benchmarks and methods hold beyond Python, small test sets and leaked data?

All 5 open problems and what was already tried →

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy