paper-with-me

홈 › Papers

AI-Mediated Code Comment Improvement

2025-05-13 · Maria Dhakal, Chia-Yi Su, Robert Wallace, Chris Fakhimi, Aakash Bansal, Toby Li, Yu Huang, Collin McMillan

This paper describes an approach to improve code comments along different quality axes by rewriting those comments with customized Artificial Intelligence (AI)-based tools. We conduct an empirical study followed by grounded theory qualitative analysis to determine the quality axes to improve. Then we propose a procedure using a Large Language Model (LLM) to rewrite existing code comments along the quality axes. We implement our procedure using GPT-4o, then distil the results into a smaller model capable of being run in-house, so users can maintain data custody. We evaluate both our approach using GPT-4o and the distilled model versions. We show in an evaluation how our procedure improves code comments along the quality axes. We release all data and source code in an online repository for reproducibility.

📄 PDF Abstract BibTeX arXiv:2505.09021

Code (0)

등록된 구현이 없습니다.

Tasks

Language ModelingLanguage ModellingLarge Language Model

Similar Papers 제목 키워드 기반

STACC: Code Comment Classification using SentenceTransformers

2023-02-25 · Ali Al-Kaswan, Maliheh Izadi, Arie van Deursen

Code comments are a key resource for information about software artefacts. Depending on the use case, only some types of comments are useful. Thus, automatic approaches to classify these comments have been proposed. In t…

Classification

Code Needs Comments: Enhancing Code LLMs with Comment Augmentation

2024-02-20 · Demin Song, Honglin Guo, Yunhua Zhou, Shuhao Xing 외

The programming skill is one crucial ability for Large Language Models (LLMs), necessitating a deep understanding of programming languages (PLs) and their correlation with natural languages (NLs). We examine the impact o…

Data Augmentation

CIDRe: A Reference-Free Multi-Aspect Criterion for Code Comment Quality Measurement

2025-05-26 · Maria Dziuba, Valentin Malykh

Effective generation of structured code comments requires robust quality metrics for dataset curation, yet existing approaches (SIDE, MIDQ, STASIS) suffer from limited code-comment analysis. We propose CIDRe, a language-…

Informativeness

Enhancing Code Generation via Bidirectional Comment-Level Mutual Grounding

2025-05-12 · Yifeng Di, Tianyi Zhang

Large Language Models (LLMs) have demonstrated unprecedented capability in code generation. However, LLM-generated code is still plagued with a wide range of functional errors, especially for complex programming tasks th…

Code GenerationComment GenerationHumanEvalProgram Synthesis

Learning Generalizable Multimodal Representations for Software Vulnerability Detection

2026-04-28 · Zeming Dong, Yuejun Guo, Qiang Hu, Yao Zhang 외 arxiv

Source code and its accompanying comments are complementary yet naturally aligned modalities-code encodes structural logic while comments capture developer intent. However, existing vulnerability detection methods mostly…

Vulnerability Detection