ALSI-Transformer: Transformer-Based Code Comment Generation With Aligned Lexical and Syntactic Information

被引:1
|
作者
Park, Youngmi [1 ]
Park, Ahjeong [1 ]
Kim, Chulyun [1 ]
机构
[1] Sookmyung Womens Univ, Dept Informat Technol Engn, Seoul 04310, South Korea
关键词
Codes; Source coding; Syntactics; Data mining; Transformers; Machine translation; Logic gates; Program comprehension; comment generation; natural language processing; deep learning;
D O I
10.1109/ACCESS.2023.3268638
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Code comments explain the operational process of a computer program and increase the long-term productivity of programming tasks such as debugging and maintenance. Therefore, developing methods that automatically generate natural language comments from programming code is required. With the development of deep learning, various excellent models in the natural language processing domain have been applied for comment generation tasks, and recent studies have improved performance by simultaneously using the lexical information of the code token and the syntactical information obtained from the syntax tree. In this paper, to improve the accuracy of automatic comment generation, we introduce a novel syntactic sequence, Code-Aligned Type sequence (CAT), to align the order and length of lexical and syntactic information, and we propose a new neural network model, Aligned Lexical and Syntactic information-Transformer (ALSI-Transformer), based on a transformer that encodes the aligned multi-modal information with convolution and embedding aggregation layers. Through in-depth experiments, we compared ALSI-Transformer with current baseline methods using standard machine translation metrics and demonstrate that the proposed method achieves state-of-the-art performance in code comment generation.
引用
收藏
页码:39037 / 39047
页数:11
相关论文
共 50 条
  • [41] Synthetic seismocardiogram generation using a transformer-based neural network
    Nikbakht, Mohammad
    Gazi, Asim H.
    Zia, Jonathan
    An, Sungtae
    Lin, David J.
    Inan, Omer T.
    Kamaleswaran, Rishikesan
    JOURNAL OF THE AMERICAN MEDICAL INFORMATICS ASSOCIATION, 2023, 30 (07) : 1266 - 1273
  • [42] Transformer-based protein generation with regularized latent space optimization
    Castro, Egbert
    Godavarthi, Abhinav
    Rubinfien, Julian
    Givechian, Kevin
    Bhaskar, Dhananjay
    Krishnaswamy, Smita
    NATURE MACHINE INTELLIGENCE, 2022, 4 (10) : 840 - 851
  • [43] A Transformer-Based Model for Multi-Track Music Generation
    Jin, Cong
    Wang, Tao
    Liu, Shouxun
    Tie, Yun
    Li, Jianguang
    Li, Xiaobing
    Lui, Simon
    INTERNATIONAL JOURNAL OF MULTIMEDIA DATA ENGINEERING & MANAGEMENT, 2020, 11 (03): : 36 - 54
  • [44] Transformer-based Multimodal Information Fusion for Facial Expression Analysis
    Zhang, Wei
    Qiu, Feng
    Wang, Suzhen
    Zeng, Hao
    Zhang, Zhimeng
    An, Rudong
    Ma, Bowen
    Ding, Yu
    IEEE Computer Society Conference on Computer Vision and Pattern Recognition Workshops, 2022, 2022-June : 2427 - 2436
  • [45] TranSQ: Transformer-Based Semantic Query for Medical Report Generation
    Kong, Ming
    Huang, Zhengxing
    Kuang, Kun
    Zhu, Qiang
    Wu, Fei
    MEDICAL IMAGE COMPUTING AND COMPUTER ASSISTED INTERVENTION, MICCAI 2022, PT VIII, 2022, 13438 : 610 - 620
  • [46] Transformer-based Multimodal Information Fusion for Facial Expression Analysis
    Zhang, Wei
    Qiu, Feng
    Wang, Suzhen
    Zeng, Hao
    Zhang, Zhimeng
    An, Rudong
    Ma, Bowen
    Ding, Yu
    arXiv, 2022,
  • [47] Improving Efficiency and Robustness of Transformer-based Information Retrieval Systems
    Begoli, Edmon
    Srinivasan, Sudarshan
    Mahbub, Maria
    PROCEEDINGS OF THE 45TH INTERNATIONAL ACM SIGIR CONFERENCE ON RESEARCH AND DEVELOPMENT IN INFORMATION RETRIEVAL (SIGIR '22), 2022, : 3433 - 3435
  • [48] Transformer-based Multimodal Information Fusion for Facial Expression Analysis
    Zhang, Wei
    Qiu, Feng
    Wang, Suzhen
    Zeng, Hao
    Zhang, Zhimeng
    An, Rudong
    Ma, Bowen
    Ding, Yu
    2022 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION WORKSHOPS, CVPRW 2022, 2022, : 2427 - 2436
  • [49] Legal Information Retrieval and Entailment Using Transformer-based Approaches
    Kim, Mi-Young
    Rabelo, Juliano
    Babiker, Housam Khalifa Bashier
    Rahman, Md Abed
    Goebel, Randy
    REVIEW OF SOCIONETWORK STRATEGIES, 2024, 18 (01): : 101 - 121
  • [50] Legal Information Retrieval and Entailment Using Transformer-based Approaches
    Mi-Young Kim
    Juliano Rabelo
    Housam Khalifa Bashier Babiker
    Md Abed Rahman
    Randy Goebel
    The Review of Socionetwork Strategies, 2024, 18 : 101 - 121