Reproduce “Source Code Summarization in the Era of Large Language Models” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Weisong Sun, Yun Miao, Yuekang Li, Hongyu Zhang, Chunrong Fang, Yi Liu, Gelei Deng, Yang Liu and 1 more
A systematic study on large language model (LLM) based source code summarization demonstrates that GPT-4-based evaluation strongly correlates with human judgment, outperforming traditional metrics. The research also reveals that smaller, specialized LLMs like CodeLlama-Instruct can surprisingly exceed GPT-4's performance for generating "Why" and "Property" categories of code summaries.
Key insights
- Traditional automated evaluation metrics often misalign with human judgments of LLM-generated summary quality.
- LLM-based evaluation, particularly using GPT-4, provides a more reliable assessment by aligning closely with human perception.
- Optimal prompting strategies and model settings are highly contingent on the specific large language model and programming language.
- Smaller, specialized LLMs can outperform larger general-purpose models for particular summary categories, indicating the value of targeted model development.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.