paper-with-me

홈 › Papers

ESALE: Enhancing Code-Summary Alignment Learning for Source Code Summarization

2024-07-01 · Chunrong Fang, Weisong Sun, Yuchen Chen, Xiao Chen, Zhao Wei, Quanjun Zhang, Yudu You, Bin Luo, Yang Liu, Zhenyu Chen

(Source) code summarization aims to automatically generate succinct natural language summaries for given code snippets. Such summaries play a significant role in promoting developers to understand and maintain code. Inspired by neural machine translation, deep learning-based code summarization techniques widely adopt an encoder-decoder framework, where the encoder transforms given code snippets into context vectors, and the decoder decodes context vectors into summaries. Recently, large-scale pre-trained models for source code are equipped with encoders capable of producing general context vectors and have achieved substantial improvements on code summarization. However, although they are usually trained mainly on code-focused tasks and can capture general code features, they still fall short in capturing specific features that need to be summarized. This paper proposes a novel approach to improve code summarization based on summary-focused tasks. Specifically, we exploit a multi-task learning paradigm to train the encoder on three summary-focused tasks to enhance its ability to learn code-summary alignment, including unidirectional language modeling (ULM), masked language modeling (MLM), and action word prediction (AWP). Unlike pre-trained models that mainly predict masked tokens in code snippets, we design ULM and MLM to predict masked words in summaries. Intuitively, predicting words based on given code snippets would help learn the code-summary alignment. Additionally, we introduce the domain-specific task AWP to enhance the ability of the encoder to learn the alignment between action words and code snippets. The extensive experiments on four datasets demonstrate that our approach, called ESALE significantly outperforms baselines in all three widely used metrics, including BLEU, METEOR, and ROUGE-L.

📄 PDF Abstract BibTeX arXiv:2407.01646

Code (0)

등록된 구현이 없습니다.

Tasks

Code SummarizationDecoderLanguage ModelingLanguage ModellingMachine TranslationMasked Language ModelingMulti-Task LearningSource Code Summarization

Similar Papers 제목 키워드 기반

Evaluating the Impact of Multiple DER Aggregators on Wholesale Energy Markets: A Hybrid Mean Field Approach

2024-08-27 · Jun He, Andrew L. Liu

The integration of distributed energy resources (DERs) into wholesale energy markets can greatly enhance grid flexibility, improve market efficiency, and contribute to a more sustainable energy future. As DERs -- such as…

Reinforcement Learning (RL)

Competitive DER Aggregation for Participation in Wholesale Markets

2022-07-01 · Cong Chen, Ahmed S. Alahmed, Timothy D. Mount, Lang Tong

The problem of the large-scale aggregation of the behind-the-meter demand and generation resources by a distributed-energy-resource aggregator (DERA) is considered. As a profit-seeking wholesale market participant, a DER…

The Power of Summary-Source Alignments

2024-06-02 · Ori Ernst, Ori Shapira, Aviv Slobodkin, Sharon Adar 외

Multi-document summarization (MDS) is a challenging task, often decomposed to subtasks of salience and redundancy detection, followed by text generation. In this context, alignment of corresponding sentences between a re…

Document SummarizationMulti-Document SummarizationSentenceText Generation

Summary-Source Proposition-level Alignment: Task, Datasets and Supervised Baseline

2020-09-01 · CoNLL (EMNLP) 2021 11 · Ori Ernst, Ori Shapira, Ramakanth Pasunuru, Michael Lepioshkin 외

Aligning sentences in a reference summary with their counterparts in source documents was shown as a useful auxiliary summarization task, notably for generating training data for salience detection. Despite its assessed …

ClusteringDocument SummarizationMulti-Document Summarization

Wholesale Market Participation of DERA: Competitive DER Aggregation

2023-07-05 · Cong Chen, Ahmed S. Alahmed, Timothy D. Mount, Lang Tong

We consider the aggregation of distributed energy resources (DERs) by a profit-seeking DER aggregator (DERA), participating directly in the wholesale electricity market and constrained by the distribution network access.…