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 条
  • [21] A Survey on Multi-modal Summarization
    Jangra, Anubhav
    Mukherjee, Sourajit
    Jatowt, Adam
    Saha, Sriparna
    Hasanuzzaman, Mohammad
    ACM COMPUTING SURVEYS, 2023, 55 (13S)
  • [22] A Multi-scale and Multi-modal Transportation GIS for the City of Guangzhou
    Chen, Shaopei
    Claramunt, Christophe
    Ray, Cyril
    Tan, Jianjun
    INFORMATION FUSION AND GEOGRAPHIC INFORMATION SYSTEMS, PROCEEDINGS, 2009, : 95 - 111
  • [23] A multi-modal and multi-scale emotion-enhanced inference model based on fuzzy recognition
    Yan Yu
    Dong Qiu
    Ruiteng Yan
    Complex & Intelligent Systems, 2022, 8 : 1071 - 1084
  • [24] A multi-modal and multi-scale emotion-enhanced inference model based on fuzzy recognition
    Yu, Yan
    Qiu, Dong
    Yan, Ruiteng
    COMPLEX & INTELLIGENT SYSTEMS, 2022, 8 (02) : 1071 - 1084
  • [25] BOOSTING MULTI-MODAL CAMERA SELECTION WITH SEMANTIC FEATURES
    Hoernler, Benedikt
    Arsic, Dejan
    Schuller, Bjoen
    Rigoll, Gerhard
    ICME: 2009 IEEE INTERNATIONAL CONFERENCE ON MULTIMEDIA AND EXPO, VOLS 1-3, 2009, : 1298 - 1301
  • [26] The power of correlative microscopy: multi-modal, multi-scale, multi-dimensional
    Caplan, Jeffrey
    Niethammer, Marc
    Taylor, Russell M., II
    Czymmek, Kirk J.
    CURRENT OPINION IN STRUCTURAL BIOLOGY, 2011, 21 (05) : 686 - 693
  • [27] Decoding human brain functions: Multi-modal, multi-scale insights
    Erichsen, Camilla T.
    Li, Deying
    Fan, Lingzhong
    INNOVATION, 2024, 5 (01):
  • [28] Multi-scale relation reasoning for multi-modal Visual Question Answering
    Wu, Yirui
    Ma, Yuntao
    Wan, Shaohua
    SIGNAL PROCESSING-IMAGE COMMUNICATION, 2021, 96
  • [29] Multi-scale and multi-modal GIS-T data model
    Chen, Shaopei
    Tan, Jianjun
    Claramunt, Christophe
    Ray, Cyril
    JOURNAL OF TRANSPORT GEOGRAPHY, 2011, 19 (01) : 147 - 161
  • [30] DEPTH ESTIMATION OF MULTI-MODAL SCENE BASED ON MULTI-SCALE MODULATION
    Wang, Anjie
    Fang, Zhijun
    Jiang, Xiaoyan
    Gao, Yongbin
    Cao, Gaofeng
    Ma, Siwei
    2023 IEEE INTERNATIONAL CONFERENCE ON IMAGE PROCESSING, ICIP, 2023, : 2795 - 2799