EnCoSum: enhanced semantic features for multi-scale multi-modal source code summarization

被引:0
|
作者
Yuexiu Gao
Hongyu Zhang
Chen Lyu
机构
[1] Shandong Normal University,School of Information Science and Engineering
[2] Chongqing University,undefined
来源
关键词
Code summarization; Abstract syntax trees; Method name sequences; Cross-modal fusion; Deep learning;
D O I
暂无
中图分类号
学科分类号
摘要
Code summarization aims to generate concise natural language descriptions for a piece of code, which can help developers comprehend the source code. Analysis of current work shows that the extraction of syntactic and semantic features of source code is crucial for generating high-quality summaries. To provide a more comprehensive feature representation of source code from different perspectives, we propose an approach named EnCoSum, which enhances semantic features for the multi-scale multi-modal code summarization method. This method complements our previously proposed M2TS approach (multi-scale multi-modal approach based on Transformer for source code summarization), which uses the multi-scale method to capture Abstract Syntax Trees (ASTs) structural information more completely and accurately at multiple local and global levels. In addition, we devise a new cross-modal fusion method to fuse source code and AST features, which can highlight key features in each modality that help generate summaries. To obtain richer semantic information, we improve M2TS. First, we add data flow and control flow to ASTs, and added-edge ASTs, called Enhanced-ASTs (E-ASTs). In addition, we introduce method name sequences extracted in the source code, which exist more knowledge about critical tokens in the corresponding summaries and can help the model generate higher-quality summaries. We conduct extensive experiments on processed Java and Python datasets and evaluate our approach via the four most commonly used machine translation metrics. The experimental results demonstrate that EnCoSum is effective and outperforms current state-of-the-art methods. Further, we perform ablation experiments on each of the model’s key components, and the results show that they all contribute to the performance of EnCoSum.
引用
收藏
相关论文
共 50 条
  • [41] Multi-Modal and Multi-Scale Oral Diadochokinesis Analysis using Deep Learning
    Wang, Yang Yang
    Gaol, Ke
    Hamad, Ali
    McCarthy, Brianna
    Kloepper, Ashley M.
    Lever, Teresa E.
    Bunyak, Filiz
    2021 IEEE APPLIED IMAGERY PATTERN RECOGNITION WORKSHOP (AIPR), 2021,
  • [42] Multization: Multi-Modal Summarization Enhanced by Multi-Contextually Relevant and Irrelevant Attention Alignment
    Rong, Huan
    Chen, Zhongfeng
    Lu, Zhenyu
    Xu, Fan
    Sheng, Victor S.
    ACM TRANSACTIONS ON ASIAN AND LOW-RESOURCE LANGUAGE INFORMATION PROCESSING, 2024, 23 (05)
  • [43] A Modality-Enhanced Multi-Channel Attention Network for Multi-Modal Dialogue Summarization
    Lu, Ming
    Liu, Yang
    Zhang, Xiaoming
    APPLIED SCIENCES-BASEL, 2024, 14 (20):
  • [44] Fostering multi-modal summarization for trend information
    Kato, Tsuneaki
    Matsushita, Mitsunori
    Kando, Noriko
    KNOWLEDGE-BASED INTELLIGENT INFORMATION AND ENGINEERING SYSTEMS: KES 2007 - WIRN 2007, PT II, PROCEEDINGS, 2007, 4693 : 377 - 386
  • [45] Multi-modal trajectory forecasting with Multi-scale Interactions and Multi-pseudo-target Supervision
    Zhao, Cong
    Song, Andi
    Zeng, Zimu
    Ji, Yuxiong
    Du, Yuchuan
    KNOWLEDGE-BASED SYSTEMS, 2024, 296
  • [46] Multi-modal Semantic Place Classification
    Pronobis, A.
    Mozos, O. Martinez
    Caputo, B.
    Jensfelt, P.
    INTERNATIONAL JOURNAL OF ROBOTICS RESEARCH, 2010, 29 (2-3): : 298 - 320
  • [47] MM-AVS: A Full-Scale Dataset for Multi-modal Summarization
    Fu, Xiyan
    Wang, Jun
    Yang, Zhenglu
    2021 CONFERENCE OF THE NORTH AMERICAN CHAPTER OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS: HUMAN LANGUAGE TECHNOLOGIES (NAACL-HLT 2021), 2021, : 5922 - 5926
  • [48] Multi-modal semantic image segmentation
    Pemasiri, Akila
    Kien Nguyen
    Sridharan, Sridha
    Fookes, Clinton
    COMPUTER VISION AND IMAGE UNDERSTANDING, 2021, 202
  • [49] Multi-Scale, Multi-Modal Fusion of Histological and MRI Volumes for Characterization of Lung Inflammation
    Rusu, Mirabela
    Wang, Haibo
    Golden, Thea
    Gow, Andrew
    Madabhushi, Anant
    MEDICAL IMAGING 2013: BIOMEDICAL APPLICATIONS IN MOLECULAR, STRUCTURAL, AND FUNCTIONAL IMAGING, 2013, 8672
  • [50] Multi-modal Remote Sensing Image Registration Based on Multi-scale Phase Congruency
    Cui, Song
    Zhong, Yanfei
    2018 10TH IAPR WORKSHOP ON PATTERN RECOGNITION IN REMOTE SENSING (PRRS), 2018,