paper-with-me

홈 › Papers

Code Summarization Beyond Function Level

2025-02-23 · Vladimir Makharev, Vladimir Ivanov

Code summarization is a critical task in natural language processing and software engineering, which aims to generate concise descriptions of source code. Recent advancements have improved the quality of these summaries, enhancing code readability and maintainability. However, the content of a repository or a class has not been considered in function code summarization. This study investigated the effectiveness of code summarization models beyond the function level, exploring the impact of class and repository contexts on the summary quality. The study involved revising benchmarks for evaluating models at class and repository levels, assessing baseline models, and evaluating LLMs with in-context learning to determine the enhancement of summary quality with additional context. The findings revealed that the fine-tuned state-of-the-art CodeT5+ base model excelled in code summarization, while incorporating few-shot learning and retrieved code chunks from RAG significantly enhanced the performance of LLMs in this task. Notably, the Deepseek Coder 1.3B and Starcoder2 15B models demonstrated substantial improvements in metrics such as BLEURT, METEOR, and BLEU-4 at both class and repository levels. Repository-level summarization exhibited promising potential but necessitates significant computational resources and gains from the inclusion of structured context. Lastly, we employed the recent SIDE code summarization metric in our evaluation. This study contributes to refining strategies for prompt engineering, few-shot learning, and RAG, addressing gaps in benchmarks for code summarization at various levels. Finally, we publish all study details, code, datasets, and results of evaluation in the GitHub repository available at https://github.com/kilimanj4r0/code-summarization-beyond-function-level.

📄 PDF Abstract BibTeX arXiv:2502.16704

Code (1)

kilimanj4r0/code-summarization-beyond-function-level 공식 구현 pytorch

Tasks

Code SummarizationFew-Shot LearningIn-Context LearningPrompt EngineeringRAG

Methods 이 논문이 사용한 방법론

Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Attention 설명 없음
Weight Decay 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
WordPiece 설명 없음
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…

Similar Papers 제목 키워드 기반

Hierarchical Repository-Level Code Summarization for Business Applications Using Local LLMs

2025-01-14 · Nilesh Dhulshette, Sapan Shah, Vinay Kulkarni

In large-scale software development, understanding the functionality and intent behind complex codebases is critical for effective development and maintenance. While code summarization has been widely studied, existing m…

Code Summarization

Towards Modeling Human Attention from Eye Movements for Neural Source Code Summarization

2023-05-16 · Aakash Bansal, Bonita Sharif, Collin McMillan

Neural source code summarization is the task of generating natural language descriptions of source code behavior using neural networks. A fundamental component of most neural models is an attention mechanism. The attenti…

Code SummarizationSource Code Summarization

A Convolutional Neural Network for Language-Agnostic Source Code Summarization

2019-03-29 · Jessica Moore, Ben Gelman, David Slater

Descriptive comments play a crucial role in the software engineering process. They decrease development time, enable better bug detection, and facilitate the reuse of previously written code. However, comments are common…

Code SummarizationDecoderDescriptiveSource Code Summarization

Meta-RAG on Large Codebases Using Code Summarization

2025-08-04 · Vali Tawosi, Salwa Alamir, Xiaomo Liu, Manuela Veloso arxiv

Large Language Model (LLM) systems have been at the forefront of applied Artificial Intelligence (AI) research in a multitude of domains. One such domain is software development, where researchers have pushed the automat…

Information Retrieval

CP-BCS: Binary Code Summarization Guided by Control Flow Graph and Pseudo Code

2023-10-24 · Tong Ye, Lingfei Wu, Tengfei Ma, Xuhong Zhang 외

Automatically generating function summaries for binaries is an extremely valuable but challenging task, since it involves translating the execution behavior and semantics of the low-level language (assembly code) into hu…

Code Summarization